Home
last modified time | relevance | path

Searched refs:client2 (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/vms/
DVmsClientTest.java123 VmsClient client2 = connectVmsClient(mClientCallback2); in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions() local
134 assertThat(client2.getAvailableLayers()).isEqualTo(expectedLayers); in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
135 assertThat(client2.getSubscriptionState()).isEqualTo(expectedSubscriptions); in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
153 VmsClient client2 = connectVmsClient(mClientCallback2); in testRegisterProvider_SameIdForSameInfo_MultipleClients() local
156 int providerId2 = client2.registerProvider(PROVIDER_DESC1); in testRegisterProvider_SameIdForSameInfo_MultipleClients()
228 VmsClient client2 = connectVmsClient(mClientCallback2); in testSetSubscriptions_MultipleClients() local
233 client2.setSubscriptions(asSet( in testSetSubscriptions_MultipleClients()
266 VmsClient client2 = connectVmsClient(mClientCallback2); in testSetSubscriptions_OverwriteSubscription_MultipleClients() local
271 client2.setSubscriptions(asSet( in testSetSubscriptions_OverwriteSubscription_MultipleClients()
274 client2.setSubscriptions(asSet( in testSetSubscriptions_OverwriteSubscription_MultipleClients()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DConnectedClientsTrackerTest.kt61 private val client2 = TetheredClient(client2Addr, listOf( constant
119 doReturn(listOf(client1, client2)).`when`(server1).allLeases in runUpdateConnectedClientsTest()
120 assertSameClients(listOf(client1, client2), assertNewClients(tracker, servers)) in runUpdateConnectedClientsTest()
124 assertSameClients(listOf(client1, client2, client3), assertNewClients(tracker, servers)) in runUpdateConnectedClientsTest()
168 doReturn(listOf(client2)).`when`(server2).allLeases in testLocalOnlyAndTetheredHotspotClients()
169 assertSameClients(listOf(client1, client2), assertNewClients(tracker, servers, in testLocalOnlyAndTetheredHotspotClients()
191 doReturn(listOf(client1, client2)).`when`(server1).allLeases in testUpdateConnectedClients_LeaseExpiration()
193 assertSameClients(listOf(client1, client2, client3), assertNewClients( in testUpdateConnectedClients_LeaseExpiration()
/packages/modules/Connectivity/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt96 val client2 = TetheredClient(TEST_OTHER_MACADDR, listOf(TEST_ADDRINFO2), TETHERING_USB) in makeLinkAddress() constant
100 TETHERING_USB), client1.addAddresses(client2)) in makeLinkAddress()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java380 WifiAwareClientState client2 = new WifiAwareClientState(mMockContext, 11, uid2, 0, null, in testDiscoverySessionMetrics() local
385 clients.put(11, client2); in testDiscoverySessionMetrics()
440 client2.addSession( in testDiscoverySessionMetrics()
457 client2.addSession( in testDiscoverySessionMetrics()
532 mDut.recordDiscoverySessionDuration(client2.getSession(102).getCreationTime(), in testDiscoverySessionMetrics()
533 client2.getSession(102).isPublishSession(), 0); in testDiscoverySessionMetrics()
534 client2.removeSession(102); in testDiscoverySessionMetrics()
538 client2.addSession( in testDiscoverySessionMetrics()
DWifiAwareStateManagerTest.java4001 final int client2 = 199; in testEnableDisableOnLocationModeChanges() local
4039 mDut.connect(client2, uid, pid, callingPackage, callingFeature, mockCallback2, in testEnableDisableOnLocationModeChanges()
4042 inOrder.verify(mockCallback2).onConnectSuccess(client2); in testEnableDisableOnLocationModeChanges()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java381 TestClient client2, ScanResults results2) in verifyMultipleSingleScanResults() argument
386 client2.verifyScanResultsReceived(new WifiScanner.ScanData[]{results2.getScanData()}); in verifyMultipleSingleScanResults()
387 client2.verifySingleScanCompletedReceived(); in verifyMultipleSingleScanResults()
1279 TestClient client2 = new TestClient(); in sendSingleScanAndPendingScanAndListenerThenDisableWifi() local
1287 client2.sendSingleScanRequest(requestSettings2, null); in sendSingleScanAndPendingScanAndListenerThenDisableWifi()
1289 client2.verifySuccessfulResponse(); in sendSingleScanAndPendingScanAndListenerThenDisableWifi()
1303 client2.verifyFailedResponse(WifiScanner.REASON_UNSPECIFIED, "Scan was interrupted"); in sendSingleScanAndPendingScanAndListenerThenDisableWifi()
1553 TestClient client2 = new TestClient(); in sendMultipleSingleScanRequestWhilePreviousScanRunning() local
1567 client2.sendSingleScanRequest(requestSettings2, null); in sendMultipleSingleScanRequestWhilePreviousScanRunning()
1569 client2.verifySuccessfulResponse(); in sendMultipleSingleScanRequestWhilePreviousScanRunning()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalAidlImplTest.java2459 final String client2 = mPeerMacAddress; in testSetClientList() local
2473 String clientList = client1 + " " + client2; in testSetClientList()
2498 final String client2 = mPeerMacAddress; in testSetClientListFailureDueToGetNetwork() local
2504 String clientList = client1 + " " + client2; in testSetClientListFailureDueToGetNetwork()
2517 MacAddress client2 = new MacAddress(); in testGetClientList() local
2519 client2.data = NativeUtil.macAddressToByteArray(mPeerMacAddress); in testGetClientList()
2520 MacAddress[] clientList = {client1, client2}; in testGetClientList()
2535 + " " + NativeUtil.macAddressFromByteArray(client2.data); in testGetClientList()
2548 MacAddress client2 = new MacAddress(); in testGetClientListFailureDueToGetNetwork() local
2550 client2.data = NativeUtil.macAddressToByteArray(mPeerMacAddress); in testGetClientListFailureDueToGetNetwork()
[all …]
DSupplicantP2pIfaceHalHidlImplTest.java2609 final String client2 = mPeerMacAddress; in testSetClientList() local
2626 String clientList = client1 + " " + client2; in testSetClientList()
2652 final String client2 = mPeerMacAddress; in testSetClientListFailureDueToGetNetwork() local
2665 String clientList = client1 + " " + client2; in testSetClientListFailureDueToGetNetwork()
2679 final String client2 = mPeerMacAddress; in testGetClientList() local
2704 String clientList = client1 + " " + client2; in testGetClientList()
2719 final String client2 = mPeerMacAddress; in testGetClientListFailureDueToGetNetwork() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVehicleStubUnitTest.java1257 VehicleStub.SubscriptionClient client2 = fakeVehicleStub.newSubscriptionClient(callback2); in testSubscribeOnChangePropTwoClientSubscribeSameProp() local
1260 client2.subscribe(options); in testSubscribeOnChangePropTwoClientSubscribeSameProp()
1267 client2.unsubscribe(VehicleProperty.ENGINE_OIL_LEVEL); in testSubscribeOnChangePropTwoClientSubscribeSameProp()
1553 VehicleStub.SubscriptionClient client2 = fakeVehicleStub.newSubscriptionClient(callback2); in testUnsubscribeContinuousPropTwoClient() local
1556 client2.subscribe(options); in testUnsubscribeContinuousPropTwoClient()
1568 client2.unsubscribe(VehicleProperty.FUEL_LEVEL); in testUnsubscribeContinuousPropTwoClient()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java288 byte[] client2 = MacAddress.fromString("a:b:c:d:e:f").toByteArray(); in testStaticIpv4()
297 tester.runDhcp(client2); in testStaticIpv4()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogManagerUnitTest.java145 TestClient client2 = new TestClient(); in testRegisterMultipleClients() local
148 () -> mCarWatchdogManager.registerClient(mExecutor, client2, TIMEOUT_CRITICAL)); in testRegisterMultipleClients()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java788 final NsdManager client2 = connectClient(mService); in testPerClientListenerLimit() local
815 client2.registerService(testServiceInfo2, NsdManager.PROTOCOL_DNS_SD, Runnable::run, in testPerClientListenerLimit()
817 client2.discoverServices(testType2, NsdManager.PROTOCOL_DNS_SD, in testPerClientListenerLimit()
1881 final NsdManager client2 = connectClient(mService); in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly() local
1922 client2.discoverServices(SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, wifiNetwork, in testTakeMulticastLockOnBehalfOfClient_ForForegroundAppsOnly()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DScanManagerTest.java1431 ScanClient client2 = createScanClient(1, isFiltered, SCAN_MODE_BALANCED); in testMetricsScanRadioDurationMultiScan() local
1447 sendMessageWaitForProcessed(createStartStopScanMessage(true, client2)); in testMetricsScanRadioDurationMultiScan()
1465 sendMessageWaitForProcessed(createStartStopScanMessage(false, client2)); in testMetricsScanRadioDurationMultiScan()