/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalTest.java | 79 private SupplicantP2pIfaceHal mDut; field in SupplicantP2pIfaceHalTest 219 mDut = new SupplicantP2pIfaceHalSpy(); in setUp() 297 assertFalse(mDut.setupIface(mIfaceName)); in testDuplicateSetupIfaceV1_1_Fails() 313 assertTrue(mDut.teardownIface(mIfaceName)); in testTeardown_successV1_1() 322 assertFalse(mDut.teardownIface(mIfaceName)); in testInvalidTeardownInterfaceV1_1_Fails() 342 assertFalse(mDut.teardownIface(mIfaceName)); in testMisorderSupplicantDeathHandlingV1_1() 359 assertNull(mDut.getName()); in testGetName_success() 361 assertEquals(mIfaceName, mDut.getName()); in testGetName_success() 376 assertNull(mDut.getName()); in testGetName_failure() 378 assertTrue(mDut.isInitializationComplete()); in testGetName_failure() [all …]
|
D | SupplicantP2pIfaceCallbackImplTest.java | 67 private SupplicantP2pIfaceCallbackImpl mDut; field in SupplicantP2pIfaceCallbackImplTest 92 mDut = new SupplicantP2pIfaceCallbackImplSpy(mP2pIfaceHal, mIface, mMonitor); in setUp() 123 mDut.onDeviceFound( in testOnDeviceFound_success() 130 mDut.onDeviceFound( in testOnDeviceFound_success() 155 mDut.onDeviceFound( in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 198 mDut.onDeviceFound( in testOnDeviceFound_invalidArguments() 208 mDut.onDeviceFound( in testOnDeviceFound_invalidArguments() 218 mDut.onDeviceFound( in testOnDeviceFound_invalidArguments() 228 mDut.onDeviceFound( in testOnDeviceFound_invalidArguments() 238 mDut.onDeviceFound( in testOnDeviceFound_invalidArguments() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareMetricsTest.java | 67 private WifiAwareMetrics mDut; field in WifiAwareMetricsTest 109 mDut = new WifiAwareMetrics(mClock); in setUp() 121 mDut.recordEnableUsage(); in testEnableDisableUsageMetrics() 123 mDut.recordDisableUsage(); in testEnableDisableUsageMetrics() 125 mDut.recordEnableUsage(); in testEnableDisableUsageMetrics() 127 mDut.recordDisableUsage(); in testEnableDisableUsageMetrics() 130 log = mDut.consolidateProto(); in testEnableDisableUsageMetrics() 141 mDut.recordEnableUsage(); in testEnableDisableUsageMetrics() 144 log = mDut.consolidateProto(); in testEnableDisableUsageMetrics() 155 mDut.clear(); in testEnableDisableUsageMetrics() [all …]
|
D | WifiAwareStateManagerTest.java | 117 private WifiAwareStateManager mDut; field in WifiAwareStateManagerTest 173 mDut = new WifiAwareStateManager(); in setUp() 174 mDut.setNative(mMockNativeManager, mMockNative); in setUp() 175 mDut.start(mMockContext, mMockLooper.getLooper(), mAwareMetricsMock, in setUp() 178 mDut.startLate(); in setUp() 185 installMocksInStateManager(mDut, mMockAwareDataPathStatemanager); in setUp() 188 mDut.tryToGetAwareCapability(); in setUp() 191 mDut.onCapabilitiesUpdateResponse(transactionId.getValue(), getCapabilities()); in setUp() 279 mDut.enableUsage(); in testRequestMacAddresses() 283 mDut.connect(clientId1, uid1, pid1, callingPackage, callingFeature, mockCallback1, in testRequestMacAddresses() [all …]
|
D | WifiAwareNativeManagerTest.java | 55 private WifiAwareNativeManager mDut; field in WifiAwareNativeManagerTest 101 mDut = new MockableWifiAwareNativeManager(mWifiAwareStateManagerMock, in setUp() 103 mDut.start(mHandlerMock); in setUp() 150 assertNull("Interface non-null!", mDut.getWifiNanIface()); in testControlFlowWithoutInterface() 167 assertNull("Interface non-null!", mDut.getWifiNanIface()); in testReferenceCounting() 170 mDut.tryToGetAware(TEST_WS); in testReferenceCounting() 174 assertEquals("Interface mismatch", mWifiNanIfaceMock, mDut.getWifiNanIface()); in testReferenceCounting() 177 mDut.releaseAware(); in testReferenceCounting() 179 assertNull("Interface non-null!", mDut.getWifiNanIface()); in testReferenceCounting() 184 mDut.tryToGetAware(TEST_WS); in testReferenceCounting() [all …]
|
D | WifiAwareServiceImplTest.java | 83 private WifiAwareServiceImplSpy mDut; field in WifiAwareServiceImplTest 154 mDut = new WifiAwareServiceImplSpy(mContextMock); in setup() 155 mDut.fakeUid = mDefaultUid; in setup() 156 mDut.start(mHandlerThreadMock, mAwareStateManagerMock, mWifiAwareShellCommandMock, in setup() 171 mDut.isUsageEnabled(); in testIsUsageEnabled() 178 mDut.getAvailableAwareResources(); in testGetAwareResources() 187 mDut.isInstantCommunicationModeEnabled(); in testInstantCommunicationMode() 192 mDut.enableInstantCommunicationMode(mPackageName, true); in testInstantCommunicationMode() 196 mDut.enableInstantCommunicationMode(mPackageName, true); in testInstantCommunicationMode() 218 assertFalse(mDut.isDeviceAttached()); in testConnectWithConfig() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 122 private WifiAwareStateManager mDut; field in WifiAwareDataPathStateManagerTest 173 mDut = new WifiAwareStateManager(); in setUp() 174 mDut.setNative(mMockNativeManager, mMockNative); in setUp() 175 mDut.start(mMockContext, mMockLooper.getLooper(), mAwareMetricsMock, in setUp() 177 mDut.startLate(); in setUp() 186 mDut.mDataPathMgr.mNetdWrapper = mMockNetdWrapper; in setUp() 187 mDut.mDataPathMgr.mNiWrapper = mMockNetworkInterface; in setUp() 218 mDut.queryCapabilities(); in testCreateDeleteAllInterfaces() 221 mDut.onCapabilitiesUpdateResponse(transactionId.getValue(), capabilities); in testCreateDeleteAllInterfaces() 225 mDut.createAllDataPathInterfaces(); in testCreateDeleteAllInterfaces() [all …]
|
D | WifiAwareNativeApiTest.java | 88 private MockableWifiAwareNativeApi mDut; field in WifiAwareNativeApiTest 116 mDut = new MockableWifiAwareNativeApi(mWifiAwareNativeManagerMock); in setup() 360 mDut.publish(tid, pid, pubDefault); in testDiscoveryRangingSettings() 361 mDut.publish(tid, pid, pubWithRanging); in testDiscoveryRangingSettings() 362 mDut.subscribe(tid, pid, subDefault); in testDiscoveryRangingSettings() 363 mDut.subscribe(tid, pid, subWithMin); in testDiscoveryRangingSettings() 364 mDut.subscribe(tid, pid, subWithMax); in testDiscoveryRangingSettings() 365 mDut.subscribe(tid, pid, subWithMinMax); in testDiscoveryRangingSettings() 566 assertTrue(mDut.disable((short) 10)); in testDisableConfigRequest() 593 collector.checkThat(mDut.onCommand(parentShellMock), equalTo(expectSuccess ? 0 : -1)); in setSettablePowerParam() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttMetricsTest.java | 52 private RttMetrics mDut; field in RttMetricsTest 68 mDut = new RttMetrics(mClock); in setUp() 79 log = mDut.consolidateProto(); in testRecordRequest() 94 mDut.clear(); in testRecordRequest() 95 mDut.recordRequest(ws1, requestAp1); in testRecordRequest() 97 mDut.recordRequest(ws1, requestAp2); in testRecordRequest() 99 mDut.recordRequest(ws1, requestAp5); in testRecordRequest() 101 mDut.recordRequest(ws1, requestAp6); in testRecordRequest() 103 mDut.recordRequest(ws1, requestAp5); in testRecordRequest() 105 mDut.recordRequest(ws1, requestAp5); in testRecordRequest() [all …]
|
D | RttServiceImplTest.java | 108 private RttServiceImplSpy mDut; field in RttServiceImplTest 188 mDut = new RttServiceImplSpy(mockContext); in setUp() 189 mDut.fakeUid = mDefaultUid; in setUp() 228 mDut.start(mMockLooper.getLooper(), mockClock, mockAwareManager, mockNative, in setUp() 239 assertTrue(mDut.isAvailable()); in setUp() 274 mDut.startRanging(mockIbinder, mPackageName, mFeatureId, null, requests[i], in testRangingFlow() 286 mDut.onRangingResults(mIntCaptor.getValue(), results.get(i).second); in testRangingFlow() 294 mDut.onRangingResults(mIntCaptor.getValue(), results.get(i).second); in testRangingFlow() 339 mDut.startRanging(mockIbinder, mPackageName, mFeatureId, null, request, mockCallback); in testRangingFlowUsingAwarePeerHandles() 364 mDut.onRangingResults(mIntCaptor.getValue(), results.first); in testRangingFlowUsingAwarePeerHandles() [all …]
|
D | RttNativeTest.java | 72 private RttNative mDut; field in RttNativeTest 114 mDut = new RttNative(mockRttServiceImpl, mockHalDeviceManager); in setUp() 115 mDut.start(null); in setUp() 127 assertTrue(mDut.isReady()); in setUp() 139 mDut.rangeRequest(cmdId, request, true); in testRangeRequest() 208 mDut.rangeRequest(cmdId, request, true); in testRangeRequestWithLimitedCapabilities() 262 mDut.rangeRequest(cmdId, request, true); in testRangeRequestWithLimitedCapabilitiesNoOverlap() 294 assertFalse(mDut.isReady()); in testWifiDown() 297 mDut.rangeRequest(cmdId, request, true); in testWifiDown() 311 assertFalse(mDut.isReady()); in testRttControllerLifecycle() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaIfaceHalTest.java | 183 private SupplicantStaIfaceHalSpy mDut; field in SupplicantStaIfaceHalTest 299 mDut = new SupplicantStaIfaceHalSpy(); in setUp() 415 assertFalse(mDut.cancelWps(WLAN1_IFACE_NAME)); in testEnsureOperationFailsUntilSetupInterfaces() 419 assertTrue(mDut.setupIface(WLAN1_IFACE_NAME)); in testEnsureOperationFailsUntilSetupInterfaces() 421 assertTrue(mDut.cancelWps(WLAN1_IFACE_NAME)); in testEnsureOperationFailsUntilSetupInterfaces() 434 assertFalse(mDut.setupIface(WLAN0_IFACE_NAME)); in testDuplicateSetupIfaceV1_1_Fails() 444 assertTrue(mDut.teardownIface(WLAN0_IFACE_NAME)); in testTeardownInterface() 447 assertFalse(mDut.cancelWps(WLAN0_IFACE_NAME)); in testTeardownInterface() 459 assertTrue(mDut.teardownIface(WLAN0_IFACE_NAME)); in testTeardownInterfaceV1_1() 463 assertFalse(mDut.cancelWps(WLAN0_IFACE_NAME)); in testTeardownInterfaceV1_1() [all …]
|
D | HalDeviceManagerTest.java | 109 private HalDeviceManager mDut; field in HalDeviceManagerTest 199 mDut = new HalDeviceManagerSpy(); in before() 231 mDut.stop(); in testStartStopFlow() 273 mDut.registerStatusListener(callback2, mHandler); in testMultipleCallbackRegistrations() 274 mDut.registerStatusListener(callback1, mHandler); in testMultipleCallbackRegistrations() 275 mDut.registerStatusListener(callback2, mHandler); in testMultipleCallbackRegistrations() 317 collector.checkThat(mDut.start(), equalTo(true)); in testWifiDeathAndRegistration() 354 collector.checkThat(mDut.start(), equalTo(true)); in testWifiFail() 422 mDut.createNanIface(nanDestroyedListener, mHandler, TEST_WORKSOURCE_0); in testCacheMismatchError() 443 Set<Integer> results = mDut.getSupportedIfaceTypes(); in testGetSupportedIfaceTypesError() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
D | WifiP2pManagerTest.java | 40 private WifiP2pManager mDut; field in WifiP2pManagerTest 56 mDut = new WifiP2pManager(mP2pServiceMock); in setUp() 66 mTestLooper.getLooper(), null, null, mDut)) { in testChannelFinalize() argument 78 mTestLooper.getLooper(), null, null, mDut); in testChannelClose()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 70 private WifiAwareManager mDut; field in WifiAwareManagerTest 124 mDut = new WifiAwareManager(mockContext, mockAwareService); in setUp() 138 mDut.isAvailable(); in testIsUsageEnable() 148 mDut.getCharacteristics(); in testGetCharacteristics() 159 mDut.isDeviceAttached(); in testIsAttached() 170 mDut.isInstantCommunicationModeEnabled(); in testEnableInstantCommunicationMode() 172 mDut.enableInstantCommunicationMode(true); in testEnableInstantCommunicationMode() 181 mDut.getAvailableAwareResources(); in testGetAvailableAwareResource() 205 mDut.attach(mockCallback, mMockLooperHandler); in testConnectFlow() 228 mDut.attach(mockCallback, mMockLooperHandler); in testConnectFlow() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 54 private WifiRttManager mDut; field in WifiRttManagerTest 71 mDut = new WifiRttManager(mockContext, mockRttService); in setUp() 93 mDut.startRanging(request, mMockLooperExecutor, callbackMock); in testRangeSuccess() 117 mDut.startRanging(request, mMockLooperExecutor, callbackMock); in testRangeFail()
|