/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiSettingsStore.java | 46 private final Context mContext; field in class:WifiSettingsStore 52 mContext = context; 137 final ContentResolver cr = mContext.getContentResolver(); 144 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), 152 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(), 185 Settings.Global.putInt(mContext.getContentResolver(), 199 return Settings.Global.getInt(mContext.getContentResolver(), 208 final ContentResolver cr = mContext.getContentResolver(); 218 return Settings.Global.getInt(mContext.getContentResolver(), 223 return Settings.Global.getInt(mContext [all...] |
H A D | WifiStateMachine.java | 357 private Context mContext; field in class:WifiStateMachine 484 config.creatorName = mContext.getPackageManager().getNameForUid(uid); 490 config.lastUpdateName = mContext.getPackageManager().getNameForUid(uid); 1006 mContext = context; 1012 mWifiNative.initContext(mContext); 1021 mP2pSupported = mContext.getPackageManager().hasSystemFeature( 1029 boolean enableFirmwareLogs = mContext.getResources().getBoolean( 1040 mContext, mWifiInfo, mWifiInjector.getClock()); 1054 mIpManager = mFacade.makeIpManager(mContext, mInterfaceName, new IpManagerCallback()); 1057 mAlarmManager = (AlarmManager) mContext [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | OMADMAdapter.java | 30 private final Context mContext; field in class:OMADMAdapter 125 mContext = context; 231 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | OMANode.java | 16 private final String mContext; field in class:OMANode 32 mContext = context; 60 return mContext;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/ |
H A D | WifiNanServiceImpl.java | 44 private Context mContext; field in class:WifiNanServiceImpl 54 mContext = context.getApplicationContext(); 56 mNanSupported = mContext.getPackageManager() 224 if (mContext.checkCallingOrSelfPermission( 239 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.ACCESS_WIFI_STATE, TAG); 243 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.CHANGE_WIFI_STATE, TAG);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | WifiP2pServiceImpl.java | 107 private Context mContext; field in class:WifiP2pServiceImpl 358 mContext = context; 362 mP2pSupported = mContext.getPackageManager().hasSystemFeature( 365 mThisDevice.primaryDeviceType = mContext.getResources().getString( 382 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.ACCESS_WIFI_STATE, 387 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.CHANGE_WIFI_STATE, 392 mContext.enforceCallingOrSelfPermission( 398 return mContext.checkCallingOrSelfPermission( 403 return mContext.checkCallingOrSelfPermission( 425 mIpManager = new IpManager(mContext, ifnam [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | SupplicantWifiScannerImpl.java | 64 private final Context mContext; field in class:SupplicantWifiScannerImpl 136 mContext = context; 139 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); 145 mHwPnoScanSupported = mContext.getResources().getBoolean(
|
H A D | WifiScanningServiceImpl.java | 121 mContext.enforcePermission( 146 ac.connected(mContext, this, msg.replyTo); 241 private final Context mContext; field in class:WifiScanningServiceImpl 263 mContext = context; 268 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); 282 mContext.registerReceiver( 877 mScannerImpl = mScannerImplFactory.create(mContext, mLooper, mClock); 2151 mTimeoutIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0); 2153 mContext.registerReceiver( 2472 if (mContext [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/ |
H A D | WifiScannerTest.java | 51 private Context mContext; field in class:WifiScannerTest 70 mContext, mLooper.getLooper(), mHandler); 72 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper());
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | RttServiceTest.java | 60 Context mContext; field in class:RttServiceTest 74 mRttServiceImpl = new RttService.RttServiceImpl(mContext, mLooper.getLooper()); 84 verify(mContext).registerReceiver(mBroadcastReceiverCaptor.capture(), 87 mContext, WifiManager.WIFI_STATE_ENABLED);
|
H A D | SoftApManagerTest.java | 65 @Mock Context mContext; field in class:SoftApManagerTest 92 mSoftApManager = new SoftApManager(mContext, 102 verify(mContext).registerReceiver( 209 mBroadcastReceiver, mContext, availableList, new ArrayList<String>()); 225 mBroadcastReceiver, mContext, deviceList, deviceList);
|
H A D | WifiApConfigStoreTest.java | 53 @Mock Context mContext; field in class:WifiApConfigStoreTest 70 when(mContext.getResources()).thenReturn(resources); 120 mContext, mBackupManagerProxy, mApConfigFile.getPath()); 138 mContext, mBackupManagerProxy, mApConfigFile.getPath()); 158 mContext, mBackupManagerProxy, mApConfigFile.getPath()); 173 mContext, mBackupManagerProxy, mApConfigFile.getPath());
|
H A D | WifiCertManagerTest.java | 48 @Mock private Context mContext; field in class:WifiCertManagerTest 102 WifiCertManager certManager = new WifiCertManager(mContext, mConfigFile); 111 TestWifiCertManager certManager = new TestWifiCertManager(mContext); 134 TestWifiCertManager certManager2 = new TestWifiCertManager(mContext);
|
H A D | WifiConfigManagerTest.java | 133 @Mock private Context mContext; field in class:WifiConfigManagerTest 154 when(mContext.getPackageName()).thenReturn(realContext.getPackageName()); 155 when(mContext.getResources()).thenReturn(realContext.getResources()); 156 when(mContext.getPackageManager()).thenReturn(realContext.getPackageManager()); 167 mWifiConfigManager = new WifiConfigManager(mContext, mWifiNative, mFrameworkFacade, mClock,
|
H A D | WifiConnectivityManagerTest.java | 68 mContext = mockContext(); 74 mWifiConnectivityManager = new WifiConnectivityManager(mContext, mWifiStateMachine, 90 private Context mContext; field in class:WifiConnectivityManagerTest
|
H A D | WifiControllerTest.java | 77 @Mock Context mContext; field in class:WifiControllerTest 94 when(mContext.getContentResolver()).thenReturn(mock(ContentResolver.class)); 96 mWifiController = new WifiController(mContext, mWifiStateMachine, 133 when(mFacade.getConfigWiFiDisableInECBM(mContext)).thenReturn(true); 142 when(mFacade.getConfigWiFiDisableInECBM(mContext)).thenReturn(false);
|
H A D | WifiNotificationControllerTest.java | 56 @Mock private Context mContext; field in class:WifiNotificationControllerTest 74 when(mContext.getContentResolver()).thenReturn(mock(ContentResolver.class)); 76 when(mContext.getSystemService(Context.NOTIFICATION_SERVICE)) 79 when(mFrameworkFacade.getIntegerSetting(mContext, 84 mContext, mock_looper.getLooper(), mWifiStateMachine, mFrameworkFacade, 89 verify(mContext) 105 TestUtil.sendWifiStateChanged(mBroadcastReceiver, mContext, WifiManager.WIFI_STATE_ENABLED); 106 TestUtil.sendNetworkStateChanged(mBroadcastReceiver, mContext, 111 TestUtil.sendScanResultsAvailable(mBroadcastReceiver, mContext); 112 TestUtil.sendScanResultsAvailable(mBroadcastReceiver, mContext); [all...] |
H A D | WifiQualifiedNetworkSelectorTest.java | 71 mContext = getContext(); 77 mContext, mWifiInfo, mClock); 91 private Context mContext; field in class:WifiQualifiedNetworkSelectorTest
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | BaseWifiScannerImplTest.java | 61 @Mock Context mContext; field in class:BaseWifiScannerImplTest 85 when(mContext.getSystemService(Context.ALARM_SERVICE)) 88 when(mContext.getResources()).thenReturn(mResources);
|
H A D | SupplicantPnoScannerTest.java | 58 @Mock Context mContext; field in class:SupplicantPnoScannerTest 77 when(mContext.getSystemService(Context.ALARM_SERVICE)) 79 when(mContext.getResources()).thenReturn(mResources); 237 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); 243 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock);
|
H A D | WifiScanningServiceTest.java | 79 @Mock Context mContext; field in class:WifiScanningServiceTest 96 when(mContext.getSystemService(Context.ALARM_SERVICE)) 111 mWifiScanningServiceImpl = new WifiScanningServiceImpl(mContext, mLooper.getLooper(), 285 verify(mContext) 288 TestUtil.sendWifiScanAvailable(broadcastReceiverCaptor.getValue(), mContext,
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseCursorPagerAdapter.java | 40 protected Context mContext; field in class:BaseCursorPagerAdapter 74 return getItem(mContext, mCursor, position); 233 mContext = context;
|
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/ |
H A D | GlifPreferenceLayoutTest.java | 35 private Context mContext; field in class:GlifPreferenceLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 GlifPreferenceLayout layout = new TestLayout(mContext); 52 GlifPreferenceLayout layout = new TestLayout(mContext); 59 GlifPreferenceLayout layout = new TestLayout(mContext); 61 final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(mContext), 68 GlifPreferenceLayout layout = new TestLayout(mContext); 74 layout.addView(layout.onCreateRecyclerView(LayoutInflater.from(mContext), layout,
|
H A D | GlifRecyclerLayoutTest.java | 35 private Context mContext; field in class:GlifRecyclerLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 GlifRecyclerLayout layout = new TestLayout(mContext); 52 LayoutInflater inflater = LayoutInflater.from(mContext); 60 GlifRecyclerLayout layout = new TestLayout(mContext); 67 GlifRecyclerLayout layout = new TestLayout(mContext); 95 GlifRecyclerLayout layout = new TestLayout(mContext);
|
H A D | SetupWizardPreferenceLayoutTest.java | 35 private Context mContext; field in class:SetupWizardPreferenceLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 52 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 59 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 61 final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(mContext), 68 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 74 layout.addView(layout.onCreateRecyclerView(LayoutInflater.from(mContext), layout,
|