/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SsidTranslatorTest.java | 56 private @Mock WifiContext mWifiContext; field in SsidTranslatorTest 66 when(mWifiContext.getResources()).thenReturn(mResources); in setUp() 86 SsidTranslator ssidTranslator = new SsidTranslator(mWifiContext, mHandler); in testGetTranslatedSsid() 88 verify(mWifiContext).registerReceiver( in testGetTranslatedSsid() 107 broadcastReceiverCaptor.getValue().onReceive(mWifiContext, in testGetTranslatedSsid() 121 broadcastReceiverCaptor.getValue().onReceive(mWifiContext, in testGetTranslatedSsid() 141 SsidTranslator ssidTranslator = new SsidTranslator(mWifiContext, mHandler); in testGetTranslatedSsidForStaIface() 143 verify(mWifiContext).registerReceiver( in testGetTranslatedSsidForStaIface() 146 broadcastReceiverCaptor.getValue().onReceive(mWifiContext, in testGetTranslatedSsidForStaIface() 174 SsidTranslator ssidTranslator = new SsidTranslator(mWifiContext, mHandler); in testGetAllPossibleOriginalSsids() [all …]
|
D | WifiDialogManagerTest.java | 82 @Mock WifiContext mWifiContext; field in WifiDialogManagerTest 95 when(mWifiContext.getWifiDialogApkPkgName()).thenReturn(WIFI_DIALOG_APK_PKG_NAME); in setUp() 96 when(mWifiContext.getSystemService(ActivityManager.class)).thenReturn(mActivityManager); in setUp() 97 when(mWifiContext.getResources()).thenReturn(mResources); in setUp() 100 doThrow(SecurityException.class).when(mWifiContext).startActivityAsUser(any(), any(), in setUp() 102 mDialogManager = new WifiDialogManager(mWifiContext, mWifiThreadRunner, mFrameworkFacade, in setUp() 105 verify(mWifiContext).registerReceiver(mBroadcastReceiverArgumentCaptor.capture(), any(), in setUp() 254 Intent intent = verifyStartActivityAsUser(1, mWifiContext); in testSimpleDialog_launchAndResponse_notifiesCallback() 277 intent = verifyStartActivityAsUser(2, mWifiContext); in testSimpleDialog_launchAndResponse_notifiesCallback() 292 intent = verifyStartActivityAsUser(3, mWifiContext); in testSimpleDialog_launchAndResponse_notifiesCallback() [all …]
|
D | InterfaceConflictManagerTest.java | 78 @Mock WifiContext mWifiContext; field in InterfaceConflictManagerTest 113 when(mWifiContext.getResources()).thenReturn(mResources); in setup() 135 mDut = new InterfaceConflictManager(mWifiInjector, mWifiContext, mFrameworkFacade, mHdm, in initInterfaceConflictManager() 478 verify(mWifiContext).registerReceiver(receiver.capture(), any(IntentFilter.class)); in testP2pInterfaceRemovalIsAutoApprovedWhenP2pIsDisconnected() 486 receiver.getValue().onReceive(mWifiContext, intent); in testP2pInterfaceRemovalIsAutoApprovedWhenP2pIsDisconnected() 517 verify(mWifiContext).registerReceiver(receiver.capture(), any(IntentFilter.class)); in testP2pInterfaceRemovalNeedUserApprovalWhenP2pIsConnected() 525 receiver.getValue().onReceive(mWifiContext, intent); in testP2pInterfaceRemovalNeedUserApprovalWhenP2pIsConnected()
|
D | WifiPseudonymManagerTest.java | 73 private WifiContext mWifiContext; field in WifiPseudonymManagerTest 115 mWifiContext, mWifiInjector, mClock, mAlarmManager, mLooper); in setUp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiService.java | 39 private final WifiContext mWifiContext; field in WifiService 43 mWifiContext = new WifiContext(contextBase); in WifiService() 44 WifiInjector injector = new WifiInjector(mWifiContext); in WifiService() 45 mImpl = new WifiServiceImpl(mWifiContext, injector); in WifiService()
|
D | WifiPseudonymManager.java | 83 private final WifiContext mWifiContext; field in WifiPseudonymManager 125 ConnectivityManager cm = mWifiContext.getSystemService( 146 mWifiContext = wifiContext; in WifiPseudonymManager() 412 WifiStringResourceWrapper wrapper = mWifiContext.getStringResourceWrapper(subId, carrierId); in getServerUrl() 459 ConnectivityManager cm = mWifiContext.getSystemService( in onAlarm() 470 entitlement = new CarrierSpecificServiceEntitlement(mWifiContext, subId, in onAlarm() 480 ConnectivityManager cm = mWifiContext.getSystemService(ConnectivityManager.class); in isNetworkConnected()
|
D | ThroughputScorer.java | 51 private final WifiContext mWifiContext; field in ThroughputScorer 79 mWifiContext = wifiContext; in ThroughputScorer() 185 if (candidate.getLastSelectionWeight() > 0.0 && (mWifiContext.getResources().getBoolean( in scoreCandidate()
|
D | SsidTranslator.java | 75 private final @NonNull WifiContext mWifiContext; field in SsidTranslator 93 mWifiContext = wifiContext; in SsidTranslator() 101 Resources res = mWifiContext.getResources(); in handleBootCompleted() 126 mWifiContext.registerReceiver(new BroadcastReceiver() { in handleBootCompleted() 154 Resources res = mWifiContext.getResources(); in updateCurrentLocaleCharset()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | WifiResourceCacheTest.java | 42 @Mock WifiContext mWifiContext; field in WifiResourceCacheTest 48 when(mWifiContext.getResources()).thenReturn(mResources); in setup() 49 mWifiResourceCache = new WifiResourceCache(mWifiContext); in setup()
|
/packages/modules/Wifi/WifiDialog/src/com/android/wifi/dialog/ |
D | WifiDialogActivity.java | 81 private @Nullable WifiContext mWifiContext; field in WifiDialogActivity 92 if (mWifiContext == null) { in getWifiContext() 93 mWifiContext = new WifiContext(this); in getWifiContext() 95 return mWifiContext; in getWifiContext()
|