Home
last modified time | relevance | path

Searched refs:request1 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java132 NsdServiceInfo request1 = new NsdServiceInfo("a_name", "a_type"); in testRegisterService() local
134 request1.setPort(2201); in testRegisterService()
140 manager.registerService(request1, PROTOCOL, listener1); in testRegisterService()
151 sendResponse(NsdManager.REGISTER_SERVICE_FAILED, err, key1, request1); in testRegisterService()
152 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService()
155 manager.registerService(request1, PROTOCOL, listener1); in testRegisterService()
158 sendResponse(NsdManager.REGISTER_SERVICE_SUCCEEDED, 0, key3, request1); in testRegisterService()
159 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService()
167 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java872 RangingRequest request1 = RttTestUtils.getDummyRangingRequest((byte) 1); in testRangingTimeout() local
875 request1); in testRangingTimeout()
880 mDut.startRanging(mockIbinder, mPackageName, null, request1, mockCallback); in testRangingTimeout()
885 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(request1), eq(true)); in testRangingTimeout()
909 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request1)); in testRangingTimeout()
930 RangingRequest request1 = RttTestUtils.getDummyRangingRequest((byte) 1); in testRangingThrottleBackground() local
937 request1); in testRangingThrottleBackground()
952 mDut.startRanging(mockIbinder, mPackageName, null, request1, mockCallback); in testRangingThrottleBackground()
955 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(request1), eq(true)); in testRangingThrottleBackground()
1016 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request1)); in testRangingThrottleBackground()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java172 DataUsageRequest request1 = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_twoRequests_twoIds() local
174 assertTrue(request1.requestId > 0); in testRegister_twoRequests_twoIds()
175 assertTrue(Objects.equals(sTemplateWifi, request1.template)); in testRegister_twoRequests_twoIds()
176 assertEquals(THRESHOLD_BYTES, request1.thresholdInBytes); in testRegister_twoRequests_twoIds()
180 assertTrue(request2.requestId > request1.requestId); in testRegister_twoRequests_twoIds()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java107 public int compare(Request request1, Request request2) { in getAppListSorted()
108 return Long.compare(request1.requestFinishTime, request2.requestFinishTime); in getAppListSorted()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java336 CaptureRequest request1 = builder.build(); in testSubmitBadRequest() local
338 SubmitInfo requestInfo = mCameraUser.submitRequest(request1, /* streaming */false); in testSubmitBadRequest()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2241 NetworkRequest request1 = new NetworkRequest.Builder() in testNoMutableNetworkRequests() local
2249 assertException(() -> { mCm.requestNetwork(request1, new NetworkCallback()); }, expected); in testNoMutableNetworkRequests()
2250 assertException(() -> { mCm.requestNetwork(request1, pendingIntent); }, expected); in testNoMutableNetworkRequests()