Home
last modified time | relevance | path

Searched refs:request2 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java133 NsdServiceInfo request2 = new NsdServiceInfo("another_name", "another_type"); in testRegisterService() local
135 request2.setPort(2202); in testRegisterService()
143 manager.registerService(request2, PROTOCOL, listener2); in testRegisterService()
147 sendResponse(NsdManager.REGISTER_SERVICE_SUCCEEDED, 0, key2, request2); in testRegisterService()
148 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService()
175 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java880 RangingRequest request2 = RttTestUtils.getDummyRangingRequest((byte) 2); in testRangingTimeout() local
884 request2); in testRangingTimeout()
888 mDut.startRanging(mockIbinder, mPackageName, null, request2, mockCallback); in testRangingTimeout()
903 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(request2), eq(true)); in testRangingTimeout()
917 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request2)); in testRangingTimeout()
918 verify(mockMetrics).recordResult(eq(request2), eq(result2.first)); in testRangingTimeout()
938 RangingRequest request2 = RttTestUtils.getDummyRangingRequest((byte) 2); in testRangingThrottleBackground() local
974 mDut.startRanging(mockIbinder, mPackageName, null, request2, mockCallback); in testRangingThrottleBackground()
1024 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request2)); in testRangingThrottleBackground()
1073 RangingRequest request2 = RttTestUtils.getDummyRangingRequest((byte) 2); in runTestRangingThrottleBackgroundWorkSources() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java148 public int compare(Request request1, Request request2) { in getAppListSorted()
149 return Long.compare(request1.requestFinishTime, request2.requestFinishTime); in getAppListSorted()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java171 DataUsageRequest request2 = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_twoRequests_twoIds() local
173 assertTrue(request2.requestId > request1.requestId); in testRegister_twoRequests_twoIds()
174 assertTrue(Objects.equals(sTemplateWifi, request2.template)); in testRegister_twoRequests_twoIds()
175 assertEquals(THRESHOLD_BYTES, request2.thresholdInBytes); in testRegister_twoRequests_twoIds()
/frameworks/av/camera/tests/
DCameraBinderTests.cpp549 hardware::camera2::CaptureRequest request2; in TEST_F() local
550 request2.mPhysicalCameraSettings.push_back({cameraId8.string(), requestTemplate}); in TEST_F()
551 request2.mSurfaceList.add(surface); in TEST_F()
552 request2.mIsReprocess = false; in TEST_F()
555 res = device->submitRequest(request2, /*streaming*/true, in TEST_F()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java347 CaptureRequest request2 = builder.build(); in testSubmitBadRequest() local
349 SubmitInfo requestInfo = mCameraUser.submitRequest(request2, /* streaming */false); in testSubmitBadRequest()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2582 NetworkRequest request2 = new NetworkRequest.Builder() in testNoMutableNetworkRequests() local
2589 assertException(() -> { mCm.requestNetwork(request2, new NetworkCallback()); }, expected); in testNoMutableNetworkRequests()
2590 assertException(() -> { mCm.requestNetwork(request2, pendingIntent); }, expected); in testNoMutableNetworkRequests()