Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java186 private WifiNetworkFactory mWifiNetworkFactory; field in WifiNetworkFactoryTest
257 mWifiNetworkFactory = new WifiNetworkFactory(mLooper.getLooper(), mContext, in setUp()
278 mWifiNetworkFactory.register(); in setUp()
292 mWifiNetworkFactory.enableVerboseLogging(true); in setUp()
311 assertFalse(mWifiNetworkFactory.hasConnectionRequests()); in testHandleNetworkRequestWithNoSpecifier()
312 mWifiNetworkFactory.needNetworkFor(mNetworkRequest); in testHandleNetworkRequestWithNoSpecifier()
316 assertTrue(mWifiNetworkFactory.hasConnectionRequests()); in testHandleNetworkRequestWithNoSpecifier()
319 mWifiNetworkFactory.needNetworkFor(mNetworkRequest); in testHandleNetworkRequestWithNoSpecifier()
329 mWifiNetworkFactory.releaseNetworkFor(mNetworkRequest); in testHandleNetworkReleaseWithNoSpecifier()
330 assertFalse(mWifiNetworkFactory.hasConnectionRequests()); in testHandleNetworkReleaseWithNoSpecifier()
[all …]
DWifiShellCommandTest.java92 @Mock WifiNetworkFactory mWifiNetworkFactory; field in WifiShellCommandTest
117 when(mWifiInjector.getWifiNetworkFactory()).thenReturn(mWifiNetworkFactory); in setUp()
424 verify(mWifiNetworkFactory, never()).setUserApprovedApp( in testNetworkRequestsSetUserApproved()
433 verify(mWifiNetworkFactory).setUserApprovedApp(TEST_PACKAGE, true); in testNetworkRequestsSetUserApproved()
438 verify(mWifiNetworkFactory).setUserApprovedApp(TEST_PACKAGE, false); in testNetworkRequestsSetUserApproved()
447 verify(mWifiNetworkFactory, never()).hasUserApprovedApp(anyString()); in testNetworkRequestsHasUserApproved()
452 when(mWifiNetworkFactory.hasUserApprovedApp(TEST_PACKAGE)) in testNetworkRequestsHasUserApproved()
457 verify(mWifiNetworkFactory).hasUserApprovedApp(TEST_PACKAGE); in testNetworkRequestsHasUserApproved()
460 when(mWifiNetworkFactory.hasUserApprovedApp(TEST_PACKAGE)) in testNetworkRequestsHasUserApproved()
465 verify(mWifiNetworkFactory, times(2)).hasUserApprovedApp(TEST_PACKAGE); in testNetworkRequestsHasUserApproved()
DClientModeImplTest.java442 @Mock WifiNetworkFactory mWifiNetworkFactory; field in ClientModeImplTest
525 when(mWifiNetworkFactory.getSpecificNetworkRequestUidAndPackageName(any(), any())) in setUp()
536 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(true); in setUp()
675 WifiInjector.REGULAR_NETWORK_CAPABILITIES_FILTER, mWifiNetworkFactory, in initializeCmi()
892 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(false); in triggerConnectWithNoNetworkRequest()
1596 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnected()
1622 when(mWifiNetworkFactory.hasConnectionRequests()).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()
2993 when(mWifiNetworkFactory.getSpecificNetworkRequestUidAndPackageName(any(), any())) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
3393 verify(mWifiNetworkFactory).handleConnectionAttemptEnded( in testReportConnectionEventIsCalledAfterAssociationFailure()
3403 clearInvocations(mWifiDiagnostics, mWifiConfigManager, mWifiNetworkFactory, in testReportConnectionEventIsCalledAfterAssociationFailure()
[all …]
DWifiServiceImplTest.java365 @Mock WifiNetworkFactory mWifiNetworkFactory; field in WifiServiceImplTest
405 when(mWifiInjector.getWifiNetworkFactory()).thenReturn(mWifiNetworkFactory); in setUp()
5095 verify(mWifiNetworkFactory).removeUserApprovedAccessPointsForApp(packageName); in testPackageFullyRemovedBroadcastHandling()
5125 verify(mWifiNetworkFactory).removeUserApprovedAccessPointsForApp(packageName); in testPackageRemovedBroadcastHandling()
5157 verify(mWifiNetworkFactory).removeUserApprovedAccessPointsForApp(packageName); in testPackageDisableBroadcastHandling()
5180 verify(mWifiNetworkFactory, never()).removeUserApprovedAccessPointsForApp(anyString()); in testPackageRemovedBroadcastHandlingWithNoUid()
5203 verify(mWifiNetworkFactory, never()).removeUserApprovedAccessPointsForApp(anyString()); in testPackageRemovedBroadcastHandlingWithNoPackageName()
5589 verify(mWifiNetworkFactory).addCallback(mNetworkRequestMatchCallback); in registerNetworkRequestMatchCallbackAndVerify()
5600 verify(mWifiNetworkFactory).removeCallback(mNetworkRequestMatchCallback); in unregisterNetworkRequestMatchCallbackAndVerify()
5640 verify(mWifiNetworkFactory).clear(); in testFactoryReset()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java222 private final WifiNetworkFactory mWifiNetworkFactory; field in WifiInjector
474 mWifiNetworkFactory = new WifiNetworkFactory( in WifiInjector()
559 mWifiNetworkFactory.enableVerboseLogging(verboseBool); in enableVerboseLogging()
735 REGULAR_NETWORK_CAPABILITIES_FILTER, mWifiNetworkFactory, in makeClientModeImpl()
998 return mWifiNetworkFactory; in getWifiNetworkFactory()
DWifiShellCommand.java156 private final WifiNetworkFactory mWifiNetworkFactory; field in WifiShellCommand
218 mWifiNetworkFactory = wifiInjector.getWifiNetworkFactory(); in WifiShellCommand()
352 mWifiNetworkFactory.removeUserApprovedAccessPointsForApp(packageName); in onCommand()
839 mWifiNetworkFactory.setUserApprovedApp(packageName, approved); in onCommand()
844 boolean hasUserApproved = mWifiNetworkFactory.hasUserApprovedApp(packageName); in onCommand()