Searched defs:mContext (Results 126 - 150 of 790) sorted by last modified time

1234567891011>>

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiSettingsStore.java46 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 DWifiStateMachine.java357 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 DOMADMAdapter.java30 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 DOMANode.java16 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 DWifiNanServiceImpl.java44 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 DWifiP2pServiceImpl.java107 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 DSupplicantWifiScannerImpl.java64 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 DWifiScanningServiceImpl.java121 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 DWifiScannerTest.java51 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 DRttServiceTest.java60 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 DSoftApManagerTest.java65 @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 DWifiApConfigStoreTest.java53 @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 DWifiCertManagerTest.java48 @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 DWifiConfigManagerTest.java133 @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 DWifiConnectivityManagerTest.java68 mContext = mockContext();
74 mWifiConnectivityManager = new WifiConnectivityManager(mContext, mWifiStateMachine,
90 private Context mContext; field in class:WifiConnectivityManagerTest
H A DWifiControllerTest.java77 @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 DWifiNotificationControllerTest.java56 @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 DWifiQualifiedNetworkSelectorTest.java71 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 DBaseWifiScannerImplTest.java61 @Mock Context mContext; field in class:BaseWifiScannerImplTest
85 when(mContext.getSystemService(Context.ALARM_SERVICE))
88 when(mContext.getResources()).thenReturn(mResources);
H A DSupplicantPnoScannerTest.java58 @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 DWifiScanningServiceTest.java79 @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 DBaseCursorPagerAdapter.java40 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 DGlifPreferenceLayoutTest.java35 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 DGlifRecyclerLayoutTest.java35 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 DSetupWizardPreferenceLayoutTest.java35 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,

Completed in 313 milliseconds

1234567891011>>