/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
H A D | SupplicantP2pIfaceHalTest.java | 359 assertNull(mDut.getName()); in testGetName_success() 376 assertNull(mDut.getName()); in testGetName_failure() 393 assertNull(mDut.getName()); in testGetName_exception() 406 assertFalse(mDut.find(1)); in testFind_success() 409 assertTrue(mDut.find(1)); in testFind_success() 420 assertFalse(mDut.find(1)); in testFind_failure() 432 assertFalse(mDut.find(0)); in testFind_exception() 482 assertFalse(mDut.flush()); in testFlush_success() 484 assertTrue(mDut.flush()); in testFlush_success() 494 assertFalse(mDut.flush()); in testFlush_failure() [all …]
|
H A D | SupplicantP2pIfaceCallbackImplTest.java | 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() 369 mDut.onGroupStarted( in testOnGroupStarted_success() 374 mDut.onGroupStarted( in testOnGroupStarted_success() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
H A D | WifiAwareMetricsTest.java | 67 private WifiAwareMetrics mDut; field in WifiAwareMetricsTest 121 mDut.recordEnableUsage(); in testEnableDisableUsageMetrics() 123 mDut.recordDisableUsage(); in testEnableDisableUsageMetrics() 125 mDut.recordEnableUsage(); in testEnableDisableUsageMetrics() 141 mDut.recordEnableUsage(); in testEnableDisableUsageMetrics() 155 mDut.clear(); in testEnableDisableUsageMetrics() 167 mDut.clear(); in testEnableDisableUsageMetrics() 182 mDut.recordEnableAware(); in testEnableDisableAwareMetrics() 186 mDut.recordEnableAware(); in testEnableDisableAwareMetrics() 216 mDut.clear(); in testEnableDisableAwareMetrics() [all …]
|
H A D | WifiAwareStateManagerTest.java | 178 mDut.startLate(); in setUp() 279 mDut.enableUsage(); in testRequestMacAddresses() 380 mDut.enableUsage(); in testAwareDataPathInterfaceUpDown() 425 mDut.enableUsage(); in testDisableUsageDisablesApis() 469 mDut.enableUsage(); in testDisableUsageFlow() 516 mDut.enableUsage(); in testDisableUsageFlow() 558 mDut.enableUsage(); in testHalFailureEnableAndConfigure() 602 mDut.enableUsage(); in testAwareEventsDelivery() 687 mDut.enableUsage(); in testHalNoResponseTimeout() 751 mDut.enableUsage(); in testPublishFail() [all …]
|
H A D | WifiAwareNativeManagerTest.java | 55 private WifiAwareNativeManager mDut; field in WifiAwareNativeManagerTest 103 mDut.start(mHandlerMock); in setUp() 170 mDut.tryToGetAware(TEST_WS); in testReferenceCounting() 177 mDut.releaseAware(); in testReferenceCounting() 184 mDut.tryToGetAware(TEST_WS); in testReferenceCounting() 191 mDut.tryToGetAware(TEST_WS); in testReferenceCounting() 195 mDut.releaseAware(); in testReferenceCounting() 199 mDut.releaseAware(); in testReferenceCounting() 227 mDut.tryToGetAware(TEST_WS); in testRequestFlowWithAsyncDeletes() 240 mDut.releaseAware(); in testRequestFlowWithAsyncDeletes() [all …]
|
H A D | WifiAwareServiceImplTest.java | 83 private WifiAwareServiceImplSpy mDut; field in WifiAwareServiceImplTest 155 mDut.fakeUid = mDefaultUid; in setup() 171 mDut.isUsageEnabled(); in testIsUsageEnabled() 178 mDut.getAvailableAwareResources(); in testGetAwareResources() 218 assertFalse(mDut.isDeviceAttached()); in testConnectWithConfig() 224 assertTrue(mDut.isDeviceAttached()); in testConnectWithConfig() 235 assertTrue(mDut.isDeviceAttached()); in testDisconnect() 240 assertFalse(mDut.isDeviceAttached()); in testDisconnect() 249 mDut.disconnect(-1, mBinderMock); in testFailOnInvalidClientId() 278 mDut.fakeUid = mDefaultUid + 1; in testFailOnAccessClientIdFromWrongUid() [all …]
|
H A D | WifiAwareDataPathStateManagerTest.java | 122 private WifiAwareStateManager mDut; field in WifiAwareDataPathStateManagerTest 173 mDut = new WifiAwareStateManager(); in setUp() 177 mDut.startLate(); in setUp() 218 mDut.queryCapabilities(); in testCreateDeleteAllInterfaces() 225 mDut.createAllDataPathInterfaces(); in testCreateDeleteAllInterfaces() 240 mDut.deleteAllDataPathInterfaces(); in testCreateDeleteAllInterfaces() 261 mDut.createAllDataPathInterfaces(); in testCreateDeleteAllInterfaces() 427 mDut.deleteAllDataPathInterfaces(); in testDestroyNdiDuringNdpSetupResponder() 1997 mDut.queryCapabilities(); in initOobDataPathEndPoint() 2004 mDut.enableUsage(); in initOobDataPathEndPoint() [all …]
|
H A 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() 612 mDut.enableAndConfigure(transactionId, configRequest, notifyIdentityChange, in validateEnableAndConfigure() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
H A 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() 154 mDut.clear(); in testRecordRequest() 218 mDut.clear(); in testRecordResult() 262 mDut.clear(); in testRecordResult() 321 mDut.clear(); in testRecordMissingResults() 372 mDut.clear(); in testRecordNullArrayResults() 402 mDut.clear(); in testRecordResultsStatuses() [all …]
|
H A D | RttServiceImplTest.java | 108 private RttServiceImplSpy mDut; field in RttServiceImplTest 189 mDut.fakeUid = mDefaultUid; in setUp() 239 assertTrue(mDut.isAvailable()); in setUp() 647 mDut.cancelRanging(worksourceCancel); in testCancelRangingFullMatch() 694 mDut.cancelRanging(worksourceCancel); in testCancelRangingPartialMatch() 1161 mDut.disable(); in testDontRejectFloodingRequestsVariousUids() 1245 mDut.disable(); in runFloodRequestsTest() 1323 mDut.disable(); in runDisableRttFlow() 1332 assertFalse(mDut.isAvailable()); in runDisableRttFlow() 1351 mDut.enableIfPossible(); in runDisableRttFlow() [all …]
|
H A D | RttNativeTest.java | 72 private RttNative mDut; field in RttNativeTest 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() 320 assertTrue(mDut.isReady()); in testRttControllerLifecycle() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | SupplicantStaIfaceHalTest.java | 183 private SupplicantStaIfaceHalSpy mDut; field in SupplicantStaIfaceHalTest 1621 assertTrue(mDut.setLogLevel(true)); in testSetLogLevel() 1760 assertTrue(mDut.startDaemon()); in testStartDaemonV1_0() 1772 assertTrue(mDut.startDaemon()); in testStartDaemonV1_1() 1789 mDut.terminate(); in testTerminateV1_0() 1813 mDut.terminate(); in testTerminateV1_1() 2459 assertTrue(mDut.initialize()); in executeAndValidateInitializationSequence() 2522 assertTrue(mDut.initialize()); in executeAndValidateInitializationSequenceV1_1() 2594 assertTrue(mDut.initialize()); in executeAndValidateInitializationSequenceV1_2() 2654 assertTrue(mDut.initialize()); in executeAndValidateInitializationSequenceV1_3() [all …]
|
H A D | HalDeviceManagerTest.java | 109 private HalDeviceManager mDut; field in HalDeviceManagerTest 231 mDut.stop(); in testStartStopFlow() 946 mDut.stop(); in testCreateApWithStaModeUpTestChipV1() 976 assertTrue(mDut.start()); in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners() 1007 mDut.stop(); in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners() 1047 mDut.stop(); in testCreateApWithApModeUpTestChipV1() 1442 mDut.removeIface(apIface); in testInterfaceCreationFlowTestChipV2() 1855 mDut.removeIface(apIface); in testInterfaceCreationFlowTestChipV3() 2157 mDut.removeIface(apIface); in testInterfaceCreationFlowTestChipV4() 2721 mDut.initialize(); in executeAndValidateInitializationSequence() [all …]
|
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
H A 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()
|
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
H A D | WifiAwareManagerTest.java | 70 private WifiAwareManager mDut; field in WifiAwareManagerTest 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() 250 mDut.attach(mockCallback, mMockLooperHandler); in testConnectFailure() [all …]
|
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
H A 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()
|