/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 80 @Mock private WifiInjector mWifiInjector; field in WifiPermissionsUtilTest 141 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionApproved() 155 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionDenied() 169 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionWithException() 194 mMockContext, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 217 mMockContext, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions() 233 mMockContext, mMockUserManager, mWifiInjector); in testCannotAccessScanResult_AppNotAllowed() 261 mMockContext, mMockUserManager, mWifiInjector); in testenforceCanAccessScanResults_UserOrProfileNotCurrent() 281 mMockContext, mMockUserManager, mWifiInjector); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission() 306 mMockContext, mMockUserManager, mWifiInjector); in testLegacyForegroundAppWithOtherPermissionsDenied() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MemoryStoreImplTest.java | 44 @Mock WifiInjector mWifiInjector; field in MemoryStoreImplTest 51 mMemoryStoreImpl = new MemoryStoreImpl(mContext, mWifiInjector, mWifiScoreCard); in setUp() 68 when(mWifiInjector.getIpMemoryStore()).thenReturn(mIpMemoryStore); in testStartInstallsItself() 80 when(mWifiInjector.getIpMemoryStore()).thenReturn(mIpMemoryStore); in testThatStopDoesPendingWrites() 108 when(mWifiInjector.getIpMemoryStore()).thenReturn(mIpMemoryStore); in wifiScoreCardReadShouldCallIpMemoryStoreRetrieveBlob() 143 when(mWifiInjector.getIpMemoryStore()).thenReturn(mIpMemoryStore); in wifiScoreCardWriteShouldCallIpMemoryStoreStoreBlob() 166 when(mWifiInjector.getIpMemoryStore()).thenReturn(mIpMemoryStore); in exceptionDisablesFurtherOperations()
|
D | ActiveModeWardenTest.java | 62 @Mock WifiInjector mWifiInjector; field in ActiveModeWardenTest 98 when(mWifiInjector.getSelfRecovery()).thenReturn(mSelfRecovery); in setUp() 99 when(mWifiInjector.getWifiDiagnostics()).thenReturn(mWifiDiagnostics); in setUp() 100 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp() 122 return new ActiveModeWarden(mWifiInjector, in createActiveModeWarden() 173 }).when(mWifiInjector).makeClientModeManager( in enterClientModeActiveState() 201 }).when(mWifiInjector).makeScanOnlyModeManager( in enterScanOnlyModeActiveState() 233 }).when(mWifiInjector).makeSoftApManager(any(WifiManager.SoftApCallback.class), in enterSoftApActiveMode() 568 when(mWifiInjector.getWifiApConfigStore()).thenReturn(mWifiApConfigStore); in testStartSoftApModeTwiceWithTwoConfigs() 578 when(mWifiInjector.makeSoftApManager(any(WifiManager.SoftApCallback.class), in testStartSoftApModeTwiceWithTwoConfigs() [all …]
|
D | WificondControlTest.java | 92 @Mock private WifiInjector mWifiInjector; field in WificondControlTest 212 when(mWifiInjector.makeWificond()).thenReturn(mWificond); in setUp() 221 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); in setUp() 223 mWificondControl = new WificondControl(mWifiInjector, mWifiMonitor, mCarrierNetworkConfig, in setUp() 227 verify(mWifiInjector).makeWificond(); in setUp() 236 when(mWifiInjector.makeWificond()).thenReturn(mWificond); in testSetupInterfaceForClientMode() 258 when(mWifiInjector.makeWificond()).thenReturn(null); in testSetupInterfaceForClientModeErrorWhenWificondIsNotStarted() 262 verify(mWifiInjector, times(2)).makeWificond(); in testSetupInterfaceForClientModeErrorWhenWificondIsNotStarted() 272 when(mWifiInjector.makeWificond()).thenReturn(mWificond); in testSetupInterfaceForClientModeErrorWhenWificondFailedToSetupInterface() 353 when(mWifiInjector.makeWificond()).thenReturn(mWificond); in testSetupInterfaceForSoftApMode() [all …]
|
D | LastMileLoggerTest.java | 48 @Mock WifiInjector mWifiInjector; field in LastMileLoggerTest 54 when(mWifiInjector.makeLog(anyString())).thenReturn(mLog); in setUp() 62 mLastMileLogger = new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), in setUp() 68 new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), mTraceEnableFile.getPath(), in ctorDoesNotCrash()
|
D | WifiServiceImplTest.java | 216 @Mock WifiInjector mWifiInjector; field in WifiServiceImplTest 335 WifiInjector.sWifiInjector = mWifiInjector; in setUp() 338 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in setUp() 339 when(mWifiInjector.getWifiCountryCode()).thenReturn(mWifiCountryCode); in setUp() 340 when(mWifiInjector.getWifiController()).thenReturn(mWifiController); in setUp() 341 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); in setUp() 342 when(mWifiInjector.getClientModeImpl()).thenReturn(mClientModeImpl); in setUp() 345 when(mWifiInjector.getActiveModeWarden()).thenReturn(mActiveModeWarden); in setUp() 346 when(mWifiInjector.getWifiServiceHandlerThread()).thenReturn(mHandlerThread); in setUp() 347 when(mWifiInjector.getPowerProfile()).thenReturn(mPowerProfile); in setUp() [all …]
|
D | ClientModeImplTest.java | 350 @Mock WifiInjector mWifiInjector; field in ClientModeImplTest 408 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); in setUp() 409 when(mWifiInjector.getClock()).thenReturn(new Clock()); in setUp() 410 when(mWifiInjector.getWifiLastResortWatchdog()).thenReturn(mWifiLastResortWatchdog); in setUp() 411 when(mWifiInjector.getPropertyService()).thenReturn(mPropertyService); in setUp() 412 when(mWifiInjector.getBuildProperties()).thenReturn(mBuildProperties); in setUp() 413 when(mWifiInjector.getKeyStore()).thenReturn(mock(KeyStore.class)); in setUp() 414 when(mWifiInjector.getWifiBackupRestore()).thenReturn(mock(WifiBackupRestore.class)); in setUp() 415 when(mWifiInjector.getWifiDiagnostics()).thenReturn(mWifiDiagnostics); in setUp() 416 when(mWifiInjector.getWifiConfigManager()).thenReturn(mWifiConfigManager); in setUp() [all …]
|
D | WakeupControllerTest.java | 73 @Mock private WifiInjector mWifiInjector; field in WakeupControllerTest 95 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp() 96 when(mWifiInjector.getWifiSettingsStore()).thenReturn(mWifiSettingsStore); in setUp() 97 when(mWifiInjector.getWifiController()).thenReturn(mWifiController); in setUp() 98 when(mWifiInjector.getWifiNative()).thenReturn(mWifiNative); in setUp() 137 mWifiInjector, in initializeWakeupController()
|
D | WifiDiagnosticsTest.java | 66 @Mock WifiInjector mWifiInjector; field in WifiDiagnosticsTest 127 when(mWifiInjector.makeLog(anyString())).thenReturn(mLog); in setUp() 128 when(mWifiInjector.getJavaRuntime()).thenReturn(mJavaRuntime); in setUp() 129 when(mWifiInjector.getActivityManagerService()).thenReturn(mActivityManagerService); in setUp() 130 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); in setUp() 133 mContext, mWifiInjector, mWifiNative, mBuildProperties, mLastMileLogger, mClock); in setUp()
|
D | CarrierNetworkEvaluatorTest.java | 82 @Mock private WifiInjector mWifiInjector; field in CarrierNetworkEvaluatorTest 159 mWifiInjector); in setUp() 161 when(mWifiInjector.makeTelephonyManager()).thenReturn(mTelephonyManager); in setUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 186 private final WifiInjector mWifiInjector; field in WifiServiceImpl 453 mWifiInjector = wifiInjector; in WifiServiceImpl() 456 mFacade = mWifiInjector.getFrameworkFacade(); in WifiServiceImpl() 457 mWifiMetrics = mWifiInjector.getWifiMetrics(); in WifiServiceImpl() 458 mWifiTrafficPoller = mWifiInjector.getWifiTrafficPoller(); in WifiServiceImpl() 459 mUserManager = mWifiInjector.getUserManager(); in WifiServiceImpl() 460 mCountryCode = mWifiInjector.getWifiCountryCode(); in WifiServiceImpl() 461 mClientModeImpl = mWifiInjector.getClientModeImpl(); in WifiServiceImpl() 462 mActiveModeWarden = mWifiInjector.getActiveModeWarden(); in WifiServiceImpl() 464 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in WifiServiceImpl() [all …]
|
D | WakeupController.java | 65 private final WifiInjector mWifiInjector; field in WakeupController 151 mWifiInjector = wifiInjector; in WakeupController() 232 mWifiInjector.getWifiScanner().registerScanListener(mScanListener); in start() 246 filterDfsScanResults(mWifiInjector.getWifiScanner().getSingleScanResults()); in start() 282 mWifiInjector.getWifiScanner().deregisterScanListener(mScanListener); in stop() 302 int[] dfsChannels = mWifiInjector.getWifiNative() in filterDfsScanResults() 413 if (mWifiInjector.getWifiSettingsStore().handleWifiToggled(true /* wifiEnabled */)) { in enableWifi() 414 mWifiInjector.getWifiController().sendMessage(CMD_WIFI_TOGGLED); in enableWifi()
|
D | ActiveModeWarden.java | 53 private final WifiInjector mWifiInjector; field in ActiveModeWarden 131 mWifiInjector = wifiInjector; in ActiveModeWarden() 139 mSelfRecovery = mWifiInjector.getSelfRecovery(); in ActiveModeWarden() 140 mWifiDiagnostics = mWifiInjector.getWifiDiagnostics(); in ActiveModeWarden() 141 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in ActiveModeWarden() 420 mManager = mWifiInjector.makeClientModeManager(mListener); in enter() 504 mManager = mWifiInjector.makeScanOnlyModeManager(mListener); in enter() 601 ActiveModeManager manager = mWifiInjector.makeSoftApManager(callback, softapConfig); in startSoftAp() 652 mWifiInjector.getSelfRecovery().trigger(SelfRecovery.REASON_WIFINATIVE_FAILURE); in onStatusChanged()
|
D | MemoryStoreImpl.java | 47 @NonNull private final WifiInjector mWifiInjector; field in MemoryStoreImpl 53 mWifiInjector = Preconditions.checkNotNull(wifiInjector); in MemoryStoreImpl() 137 mIpMemoryStore = mWifiInjector.getIpMemoryStore(); in start()
|
D | CarrierNetworkEvaluator.java | 54 private final WifiInjector mWifiInjector; field in CarrierNetworkEvaluator 63 mWifiInjector = wifiInjector; in CarrierNetworkEvaluator() 68 mTelephonyManager = mWifiInjector.makeTelephonyManager(); in getTelephonyManager()
|
D | WificondControl.java | 87 private WifiInjector mWifiInjector; field in WificondControl 134 mWifiInjector = wifiInjector; in WificondControl() 153 mWifiInjector.getWifiMetrics().incrementPnoFoundNetworkEventCount(); in OnPnoNetworkFound() 159 mWifiInjector.getWifiMetrics().incrementPnoScanFailedCount(); in OnPnoScanFailed() 165 mWifiInjector.getWifiMetrics().incrementPnoScanStartedOverOffloadCount(); in OnPnoScanOverOffloadStarted() 171 mWifiInjector.getWifiMetrics().incrementPnoScanFailedOverOffloadCount(); in OnPnoScanOverOffloadFailed() 304 mWificond = mWifiInjector.makeWificond(); in retrieveWificondAndRegisterForDeath() 757 mWifiInjector.getWifiMetrics().incrementPnoScanStartAttempCount(); in startPnoScan() 759 mWifiInjector.getWifiMetrics().incrementPnoScanFailedCount(); in startPnoScan() 939 mWifiNative = mWifiInjector.getWifiNative(); in isEnhancedOpenSupported()
|
D | ClientModeImpl.java | 194 private final WifiInjector mWifiInjector; field in ClientModeImpl 750 mTelephonyManager = mWifiInjector.makeTelephonyManager(); in getTelephonyManager() 776 mWifiInjector = wifiInjector; in ClientModeImpl() 777 mWifiMetrics = mWifiInjector.getWifiMetrics(); in ClientModeImpl() 800 mWifiPermissionsUtil = mWifiInjector.getWifiPermissionsUtil(); in ClientModeImpl() 801 mWifiConfigManager = mWifiInjector.getWifiConfigManager(); in ClientModeImpl() 803 mPasspointManager = mWifiInjector.getPasspointManager(); in ClientModeImpl() 805 mWifiMonitor = mWifiInjector.getWifiMonitor(); in ClientModeImpl() 806 mWifiDiagnostics = mWifiInjector.getWifiDiagnostics(); in ClientModeImpl() 807 mWifiPermissionsWrapper = mWifiInjector.getWifiPermissionsWrapper(); in ClientModeImpl() [all …]
|
D | ScanRequestProxy.java | 82 private final WifiInjector mWifiInjector; field in ScanRequestProxy 240 mWifiInjector = wifiInjector; in ScanRequestProxy() 262 mWifiScanner = mWifiInjector.getWifiScanner(); in retrieveWifiScannerIfNecessary()
|
D | WifiNetworkFactory.java | 107 private final WifiInjector mWifiInjector; field in WifiNetworkFactory 384 mWifiInjector = wifiInjector; in WifiNetworkFactory() 742 mWifiInjector.getClientModeImpl().sendMessage(msg); in connectToNetwork() 767 mWifiInjector.getClientModeImpl().disconnectCommand(); in handleConnectToNetworkUserSelectionInternal() 971 mWifiInjector.getClientModeImpl().disconnectCommand(); in teardownForConnectedNetwork() 1012 mWifiScanner = mWifiInjector.getWifiScanner(); in retrieveWifiScanner()
|
D | WifiLastResortWatchdog.java | 99 private WifiInjector mWifiInjector; field in WifiLastResortWatchdog 116 mWifiInjector = wifiInjector; in WifiLastResortWatchdog() 252 mWifiInjector.getSelfRecovery().trigger(SelfRecovery.REASON_LAST_RESORT_WATCHDOG); in noteConnectionFailureAndTriggerIfNeeded()
|
D | WifiMonitor.java | 105 private final WifiInjector mWifiInjector; field in WifiMonitor 110 mWifiInjector = wifiInjector; in WifiMonitor()
|
D | WifiDiagnostics.java | 124 private WifiInjector mWifiInjector; field in WifiDiagnostics 147 mWifiInjector = wifiInjector; in WifiDiagnostics() 287 mWifiInjector.getActivityManagerService().requestWifiBugReport( in takeBugReport()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 139 @Mock WifiInjector mWifiInjector; field in WifiP2pServiceImplTest 696 mWifiInjector, mWifiNative); in setUpWifiP2pServiceImpl() 720 when(mWifiInjector.getFrameworkFacade()).thenReturn(mFrameworkFacade); in setUpWifiP2pServiceImpl() 721 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in setUpWifiP2pServiceImpl() 722 when(mWifiInjector.getWifiP2pMetrics()).thenReturn(mWifiP2pMetrics); in setUpWifiP2pServiceImpl() 723 when(mWifiInjector.getWifiP2pMonitor()).thenReturn(mWifiMonitor); in setUpWifiP2pServiceImpl() 724 when(mWifiInjector.getWifiP2pNative()).thenReturn(mWifiNative); in setUpWifiP2pServiceImpl() 725 when(mWifiInjector.getWifiP2pServiceHandlerThread()).thenReturn(mHandlerThread); in setUpWifiP2pServiceImpl() 726 when(mWifiInjector.getWifiPermissionsUtil()).thenReturn(mWifiPermissionsUtil); in setUpWifiP2pServiceImpl() 745 mWifiP2pServiceImpl = new WifiP2pServiceImpl(mContext, mWifiInjector); in setUpWifiP2pServiceImpl() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 56 private final WifiInjector mWifiInjector; field in PasspointNetworkEvaluator 82 mWifiInjector = wifiInjector; in PasspointNetworkEvaluator() 88 mTelephonyManager = mWifiInjector.makeTelephonyManager(); in getTelephonyManager()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMonitor.java | 82 private final WifiInjector mWifiInjector; field in WifiP2pMonitor 87 mWifiInjector = wifiInjector; in WifiP2pMonitor()
|