Searched refs:mContext (Results 151 - 175 of 876) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/
H A DMasterClearReceiver.java77 private final Context mContext; field in class:MasterClearReceiver.WipeAdoptableDisksTask
81 mContext = context;
90 mProgressDialog.setMessage(mContext.getText(R.string.progress_erasing));
97 StorageManager sm = (StorageManager) mContext.getSystemService(
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationBlacklist.java46 private final Context mContext; field in class:LocationBlacklist
57 mContext = context;
61 mContext.getContentResolver().registerContentObserver(Settings.Secure.getUriFor(
63 // mContext.getContentResolver().registerContentObserver(Settings.Secure.getUriFor(
129 flatString = Settings.Secure.getStringForUser(mContext.getContentResolver(), key,
/frameworks/ex/common/java/com/android/common/
H A DNetworkConnectivityListener.java44 private Context mContext; field in class:NetworkConnectivityListener
139 mContext = context;
153 mContext.unregisterReceiver(mReceiver);
154 mContext = null;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxAggregatorManager.java34 private Context mContext; field in class:BordeauxAggregatorManager
39 mAggregatorManager = BordeauxManagerService.getAggregatorManager(mContext);
49 mContext = context;
50 mAggregatorManager = BordeauxManagerService.getAggregatorManager(mContext);
H A DBordeauxPredictor.java35 private Context mContext; field in class:BordeauxPredictor
40 mContext = context;
46 mContext = context;
66 mPredictor = BordeauxManagerService.getPredictor(mContext, mName);
H A DBordeauxRanker.java42 private Context mContext; field in class:BordeauxRanker
58 mRanker = BordeauxManagerService.getRanker(mContext, mName);
68 mContext = context;
74 mContext = context;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DBaseMenuWrapper.java31 final Context mContext; field in class:BaseMenuWrapper
38 mContext = context;
55 wrappedItem = MenuWrapperFactory.wrapSupportMenuItem(mContext, supportMenuItem);
76 wrappedMenu = MenuWrapperFactory.wrapSupportSubMenu(mContext, supportSubMenu);
/frameworks/base/core/java/android/hardware/fingerprint/
H A DFingerprintManager.java170 private Context mContext; field in class:FingerprintManager
426 } else if (mHandler.getLooper() != mContext.getMainLooper()){
427 mHandler = new MyHandler(mContext.getMainLooper());
457 mContext.getOpPackageName());
598 return mService.getEnrolledFingerprints(userId, mContext.getOpPackageName());
625 mContext.getOpPackageName());
642 return mService.isHardwareDetected(deviceId, mContext.getOpPackageName());
661 return mService.getAuthenticatorId(mContext.getOpPackageName());
767 mContext = context;
794 mService.cancelAuthentication(mToken, mContext
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DGlobalActions.java105 private final Context mContext; field in class:GlobalActions
130 mContext = context;
132 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
151 mContext.getContentResolver().registerContentObserver(
154 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
157 mShowSilentToggle = SHOW_SILENT_TOGGLE && !mContext.getResources().getBoolean(
218 mSilentModeAction = new SilentModeTriStateAction(mContext, mAudioManager, mHandler);
235 mContext.startActivity(ecmDialogIntent);
264 String[] defaultActions = mContext.getResources().getStringArray(
279 if (Settings.Global.getInt(mContext
961 private final Context mContext; field in class:GlobalActions.SilentModeTriStateAction
1129 private final Context mContext; field in class:GlobalActions.GlobalActionsDialog
[all...]
H A DImmersiveModeConfirmation.java59 private final Context mContext; field in class:ImmersiveModeConfirmation
71 mContext = context;
77 mContext.getSystemService(Context.WINDOW_SERVICE);
81 Animation exit = AnimationUtils.loadAnimation(mContext, R.anim.dock_bottom_exit);
91 value = Settings.Secure.getStringForUser(mContext.getContentResolver(),
105 Settings.Secure.putStringForUser(mContext.getContentResolver(),
178 mContext.getResources().getDimensionPixelSize(
238 .loadInterpolator(mContext, android.R.interpolator.linear_out_slow_in);
297 mContext.registerReceiver(mReceiver,
303 mContext
[all...]
H A DEnableAccessibilityController.java61 String text = mContext.getString(R.string.continue_to_enable_accessibility);
65 String text = mContext.getString(R.string.enable_accessibility_canceled);
71 mTts.speak(mContext.getString(R.string.accessibility_enabled),
85 private final Context mContext; field in class:EnableAccessibilityController
102 mContext = context;
104 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
217 mContext);
252 ContentResolver resolver = mContext.getContentResolver();
/frameworks/base/core/java/android/app/
H A DNotificationManager.java174 mContext = context;
212 String pkg = mContext.getPackageName();
220 if (mContext.getApplicationInfo().targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1) {
230 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id,
246 String pkg = mContext.getPackageName();
258 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id,
291 String pkg = mContext.getPackageName();
305 String pkg = mContext.getPackageName();
320 String pkg = mContext.getPackageName();
439 return service.isNotificationPolicyAccessGranted(mContext
515 private Context mContext; field in class:NotificationManager
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java75 private Context mContext; field in class:ConnectivityManagerTestBase
125 mContext = getInstrumentation().getContext();
128 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
130 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
140 mContext.registerReceiver(mConnectivityReceiver,
151 mContext.registerReceiver(mWifiReceiver, mIntentFilter);
267 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
275 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
278 KeyguardManager km = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE);
462 mContext
[all...]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java55 private Context mContext; field in class:BandwidthTest
71 mContext = mRunner.getTargetContext();
72 mConnectionUtil = new ConnectionUtil(mContext);
76 mTManager = (TelephonyManager)mContext.getSystemService(Context.TELEPHONY_SERVICE);
117 TrafficStats.startDataProfiling(mContext);
120 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
173 TrafficStats.startDataProfiling(mContext);
175 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
226 TrafficStats.startDataProfiling(mContext);
233 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistManager.java53 private final Context mContext; field in class:AssistManager
93 mContext = context;
95 mWindowManager = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);
98 mContext.getContentResolver().registerContentObserver(
112 mView = (AssistOrbContainer) LayoutInflater.from(mContext).inflate(
148 mContext.getResources().getDimensionPixelSize(R.dimen.assist_orb_scrim_height),
188 boolean structureEnabled = Settings.Secure.getIntForUser(mContext.getContentResolver(),
191 final Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE))
206 final ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext,
212 mContext
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DServiceMonitor.java153 private final Context mContext; field in class:ServiceMonitor
165 mContext = context;
172 ContentResolver cr = mContext.getContentResolver();
182 mContext.registerReceiver(mBroadcastReceiver, filter);
188 String cn = Settings.Secure.getStringForUser(mContext.getContentResolver(),
202 final PackageManager pm = mContext.getPackageManager();
219 boolean stopped = mContext.stopService(new Intent().setComponent(mServiceName));
221 mContext.unbindService(mServiceConnection);
242 mBound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE);
291 Settings.Secure.putStringForUser(mContext
[all...]
/frameworks/base/services/core/java/com/android/server/search/
H A DSearchManagerService.java65 private final Context mContext; field in class:SearchManagerService
77 mContext = context;
80 mContext.registerReceiver(new BootCompletedReceiver(), filter);
81 mContext.registerReceiver(new UserReceiver(),
89 boolean userExists = ((UserManager) mContext.getSystemService(Context.USER_SERVICE))
100 searchables = new Searchables(mContext, userId);
126 mContext.unregisterReceiver(BootCompletedReceiver.this);
170 mContext.sendBroadcastAsUser(intent, new UserHandle(changingUserId));
195 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
261 assistIntent.resolveTypeIfNeeded(mContext
[all...]
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbService.java81 private final Context mContext; field in class:UsbService
99 settings = new UsbSettingsManager(mContext, new UserHandle(userId));
107 mContext = context;
111 final PackageManager pm = mContext.getPackageManager();
129 mContext.registerReceiver(mReceiver, filter, null, null);
222 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
228 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
259 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
266 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
273 mContext
[all...]
/frameworks/base/core/java/android/widget/
H A DCursorAdapter.java61 protected Context mContext; field in class:CursorAdapter
179 mContext = context;
210 } else if (theme == mContext.getTheme()) {
211 mDropDownContext = mContext;
213 mDropDownContext = new ContextThemeWrapper(mContext, theme);
285 v = newView(mContext, mCursor, parent);
289 bindView(v, mContext, mCursor);
296 final Context context = mDropDownContext == null ? mContext : mDropDownContext;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DListMenuPresenter.java39 Context mContext; field in class:ListMenuPresenter
64 mContext = context;
65 mInflater = LayoutInflater.from(mContext);
81 mContext = new ContextThemeWrapper(context, mThemeRes);
82 mInflater = LayoutInflater.from(mContext);
83 } else if (mContext != null) {
84 mContext = context;
86 mInflater = LayoutInflater.from(mContext);
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLifecycleTest.java32 mTabIntent = new Intent(mContext, LaunchpadTabActivity.class);
33 mTabIntent.putExtra("tab", new ComponentName(mContext,
/frameworks/base/libs/hwui/
H A DAnimationContext.h47 AnimationContext& context() { return mContext; }
69 AnimationContext& mContext; member in class:android::uirenderer::AnimationHandle
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserInfoController.java49 private final Context mContext; field in class:UserInfoController
59 mContext = context;
63 mContext.registerReceiver(mReceiver, filter);
68 mContext.registerReceiverAsUser(mProfileReceiver, UserHandle.ALL, profileFilter,
123 currentUserContext = mContext.createPackageContextAsUser("android", 0,
136 final Resources res = mContext.getResources();
145 final UserManager um = UserManager.get(mContext);
153 avatar = new BitmapDrawable(mContext.getResources(),
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DPlayerController.java49 private Activity mContext; field in class:PlayerController
59 mContext = context;
61 mServiceIntent = new Intent(mContext, PlayerService.class);
151 mContext.unbindService(mServiceConnection);
155 mContext.bindService(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE);
167 mContext.setMediaController(null);
186 mController = new MediaController(mContext, token);
187 mContext.setMediaController(mController);
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
H A DCamera2DeviceTester.java52 public Context mContext = InstrumentationRegistry.getTargetContext(); field in class:Camera2DeviceTester
59 (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE);

Completed in 9048 milliseconds

1234567891011>>