Searched refs:mWifiNetworkFactory (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkFactoryTest.java | 217 private WifiNetworkFactory mWifiNetworkFactory; field in WifiNetworkFactoryTest 297 mWifiNetworkFactory = new WifiNetworkFactory(mLooper.getLooper(), mContext, in setUp() 319 mWifiNetworkFactory.register(); in setUp() 333 mWifiNetworkFactory.enableVerboseLogging(true); in setUp() 361 assertFalse(mWifiNetworkFactory.hasConnectionRequests()); in testHandleNetworkRequestWithNoSpecifier() 362 mWifiNetworkFactory.needNetworkFor(mNetworkRequest); in testHandleNetworkRequestWithNoSpecifier() 366 assertTrue(mWifiNetworkFactory.hasConnectionRequests()); in testHandleNetworkRequestWithNoSpecifier() 369 mWifiNetworkFactory.needNetworkFor(mNetworkRequest); in testHandleNetworkRequestWithNoSpecifier() 379 mWifiNetworkFactory.releaseNetworkFor(mNetworkRequest); in testHandleNetworkReleaseWithNoSpecifier() 380 assertFalse(mWifiNetworkFactory.hasConnectionRequests()); in testHandleNetworkReleaseWithNoSpecifier() [all …]
|
D | WifiShellCommandTest.java | 104 @Mock WifiNetworkFactory mWifiNetworkFactory; field in WifiShellCommandTest 132 when(mWifiInjector.getWifiNetworkFactory()).thenReturn(mWifiNetworkFactory); in setUp() 427 verify(mWifiNetworkFactory, never()).setUserApprovedApp( in testNetworkRequestsSetUserApproved() 436 verify(mWifiNetworkFactory).setUserApprovedApp(TEST_PACKAGE, true); in testNetworkRequestsSetUserApproved() 441 verify(mWifiNetworkFactory).setUserApprovedApp(TEST_PACKAGE, false); in testNetworkRequestsSetUserApproved() 450 verify(mWifiNetworkFactory, never()).hasUserApprovedApp(anyString()); in testNetworkRequestsHasUserApproved() 455 when(mWifiNetworkFactory.hasUserApprovedApp(TEST_PACKAGE)) in testNetworkRequestsHasUserApproved() 460 verify(mWifiNetworkFactory).hasUserApprovedApp(TEST_PACKAGE); in testNetworkRequestsHasUserApproved() 462 when(mWifiNetworkFactory.hasUserApprovedApp(TEST_PACKAGE)) in testNetworkRequestsHasUserApproved() 467 verify(mWifiNetworkFactory, times(2)).hasUserApprovedApp(TEST_PACKAGE); in testNetworkRequestsHasUserApproved()
|
D | ClientModeImplTest.java | 557 @Mock WifiNetworkFactory mWifiNetworkFactory; field in ClientModeImplTest 665 when(mWifiNetworkFactory.getSpecificNetworkRequestUids(any(), any())) in setUp() 667 when(mWifiNetworkFactory.getSpecificNetworkRequestUidAndPackageName(any(), any())) in setUp() 682 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(true); in setUp() 828 WifiInjector.REGULAR_NETWORK_CAPABILITIES_FILTER, mWifiNetworkFactory, in initializeCmi() 1170 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(false); in triggerConnectWithNoNetworkRequest() 2370 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnected() 2397 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp() 2840 when(mWifiNetworkFactory.getSpecificNetworkRequestUids(any(), any())) in testWrongPasswordWithLocalOnlyConnection() 2842 when(mWifiNetworkFactory.getSpecificNetworkRequestUidAndPackageName(any(), any())) in testWrongPasswordWithLocalOnlyConnection() [all …]
|
D | WifiServiceImplTest.java | 466 @Mock WifiNetworkFactory mWifiNetworkFactory; field in WifiServiceImplTest 540 when(mWifiInjector.getWifiNetworkFactory()).thenReturn(mWifiNetworkFactory); in setUp() 6180 verify(mWifiNetworkFactory).removeApp(packageName); in testPackageFullyRemovedBroadcastHandling() 6212 verify(mWifiNetworkFactory).removeApp(packageName); in testPackageRemovedBroadcastHandling() 6242 verify(mWifiNetworkFactory, never()).removeApp(anyString()); in testPackageRemovedWithReplacingBroadcastHandling() 6276 verify(mWifiNetworkFactory).removeApp(packageName); in testPackageDisableBroadcastHandling() 6301 verify(mWifiNetworkFactory, never()).removeApp(anyString()); in testPackageRemovedBroadcastHandlingWithNoUid() 6326 verify(mWifiNetworkFactory, never()).removeApp(anyString()); in testPackageRemovedBroadcastHandlingWithNoPackageName() 6719 verify(mWifiNetworkFactory).addCallback(mNetworkRequestMatchCallback); in registerNetworkRequestMatchCallbackAndVerify() 6730 verify(mWifiNetworkFactory).removeCallback(mNetworkRequestMatchCallback); in unregisterNetworkRequestMatchCallbackAndVerify() [all …]
|
D | WifiCarrierInfoManagerTest.java | 162 @Mock WifiNetworkFactory mWifiNetworkFactory; field in WifiCarrierInfoManagerTest 233 when(mWifiInjector.getWifiNetworkFactory()).thenReturn(mWifiNetworkFactory); in setUp() 2530 verify(mWifiNetworkFactory, times(2)).updateSubIdsInCapabilitiesFilter( in testActiveSubsChangeUpdateWifiNetworkFactory()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 244 private final WifiNetworkFactory mWifiNetworkFactory; field in WifiInjector 550 mWifiNetworkFactory = new WifiNetworkFactory( in WifiInjector() 671 mWifiNetworkFactory.enableVerboseLogging(verboseEnabled); in enableVerboseLogging() 878 REGULAR_NETWORK_CAPABILITIES_FILTER, mWifiNetworkFactory, in makeClientModeImpl() 1123 return mWifiNetworkFactory; in getWifiNetworkFactory()
|
D | WifiShellCommand.java | 207 private final WifiNetworkFactory mWifiNetworkFactory; field in WifiShellCommand 460 mWifiNetworkFactory = wifiInjector.getWifiNetworkFactory(); in WifiShellCommand() 622 mWifiThreadRunner.post(() -> mWifiNetworkFactory.removeApp(packageName), in onCommand() 1280 mWifiNetworkFactory.setUserApprovedApp(packageName, approved); in onCommand() 1285 boolean hasUserApproved = mWifiNetworkFactory.hasUserApprovedApp(packageName); in onCommand()
|
D | WifiServiceImpl.java | 310 private final WifiNetworkFactory mWifiNetworkFactory; field in WifiServiceImpl 549 mWifiNetworkFactory = mWifiInjector.getWifiNetworkFactory(); in WifiServiceImpl() 7066 mWifiNetworkFactory.addLocalOnlyConnectionStatusListener(listener, packageName, 7097 mWifiNetworkFactory.removeLocalOnlyConnectionStatusListener(listener, packageName),
|