/frameworks/base/core/java/android/hardware/location/ |
H A D | ActivityRecognitionHardware.java | 56 private final Context mContext; field in class:ActivityRecognitionHardware 71 mContext = context; 219 mContext.enforceCallingPermission(HARDWARE_PERMISSION, ENFORCE_HW_PERMISSION_MESSAGE);
|
H A D | ContextHubService.java | 65 private final Context mContext; field in class:ContextHubService 88 mContext = context; 235 if (mContext.checkCallingOrSelfPermission("android.permission.DUMP") 260 mContext.enforceCallingPermission(HARDWARE_PERMISSION, ENFORCE_HW_PERMISSION_MESSAGE);
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbManager.java | 286 private final Context mContext; field in class:UsbManager 293 mContext = context; 431 mService.requestDevicePermission(device, mContext.getPackageName(), pi); 457 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | IInputMethodWrapper.java | 73 final Context mContext; field in class:IInputMethodWrapper 84 final Context mContext; field in class:IInputMethodWrapper.InputMethodSessionCallbackWrapper 90 mContext = context; 100 new IInputMethodSessionWrapper(mContext, session, mChannel); 116 mContext = context.getApplicationContext(); 117 mCaller = new HandlerCaller(mContext, null, this, true /*asyncHandler*/); 193 mContext, (InputChannel)args.arg1,
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkFactory.java | 97 private final Context mContext; field in class:NetworkFactory 113 mContext = context; 121 ConnectivityManager.from(mContext).registerNetworkFactory(mMessenger, LOG_TAG); 128 ConnectivityManager.from(mContext).unregisterNetworkFactory(mMessenger);
|
H A D | NetworkPolicyManager.java | 111 private final Context mContext; field in class:NetworkPolicyManager 118 mContext = context; 208 return mService.getNetworkPolicies(mContext.getOpPackageName());
|
/frameworks/base/core/java/android/os/ |
H A D | DropBoxManager.java | 47 private final Context mContext; field in class:DropBoxManager 258 mContext = context; 268 mContext = null; 285 && mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { 306 && mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) {
|
/frameworks/base/core/java/android/preference/ |
H A D | GenericInflater.java | 48 protected final Context mContext; field in class:GenericInflater 110 mContext = context; 122 mContext = newContext; 166 return mContext; 295 mConstructorArgs[0] = mContext; 376 Class clazz = mContext.getClassLoader().loadClass( 426 T item = (mFactory == null) ? null : mFactory.onCreateItem(name, mContext, attrs);
|
/frameworks/base/core/java/android/printservice/ |
H A D | PrintJob.java | 52 private final Context mContext; field in class:PrintJob 56 mContext = context; 359 mContext.getPackageName());
|
/frameworks/base/core/java/android/security/net/config/ |
H A D | XmlConfigSource.java | 44 private Context mContext; field in class:XmlConfigSource 59 mContext = context; 92 try (XmlResourceParser parser = mContext.getResources().getXml(mResourceId)) { 94 mContext = null; 99 + mContext.getResources().getResourceEntryName(mResourceId), e); 197 source = new ResourceCertificateSource(sourceId, mContext); 395 Resources resources = mContext.getResources();
|
/frameworks/base/core/java/android/service/notification/ |
H A D | StatusBarNotification.java | 46 private Context mContext; // used for inflation & icon expansion field in class:StatusBarNotification 340 if (mContext == null) { 344 mContext = context.createApplicationContext(ai, 347 mContext = null; 350 if (mContext == null) { 351 mContext = context; 353 return mContext;
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TtsEngines.java | 73 private final Context mContext; field in class:TtsEngines 105 mContext = ctx; 114 String engine = getString(mContext.getContentResolver(), 138 PackageManager pm = mContext.getPackageManager(); 159 PackageManager pm = mContext.getPackageManager(); 198 PackageManager pm = mContext.getPackageManager(); 332 getString(mContext.getContentResolver(), Settings.Secure.TTS_DEFAULT_LOCALE)); 368 getString(mContext.getContentResolver(), Settings.Secure.TTS_DEFAULT_LOCALE), 520 final String prefList = Settings.Secure.getString(mContext.getContentResolver(), 532 Settings.Secure.putString(mContext [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 126 private final Context mContext; field in class:ScaleGestureDetector 198 mContext = context; 411 mGestureDetector = new GestureDetector(mContext, gestureListener, mHandler);
|
/frameworks/base/core/java/android/widget/ |
H A D | ArrayAdapter.java | 65 private final Context mContext; field in class:ArrayAdapter 180 mContext = context; 339 return mContext; 395 + mContext.getResources().getResourceName(mFieldId) 443 final Context context = new ContextThemeWrapper(mContext, theme);
|
H A D | CursorAdapter.java | 61 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;
|
H A D | Toast.java | 87 final Context mContext; field in class:Toast 100 mContext = context; 117 String pkg = mContext.getOpPackageName(); 137 getService().cancelToast(mContext.getPackageName(), mTN); 295 setText(mContext.getText(resId));
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | StandaloneActionMode.java | 34 private Context mContext; field in class:StandaloneActionMode 45 mContext = context; 67 setTitle(resId != 0 ? mContext.getString(resId) : null); 72 setSubtitle(resId != 0 ? mContext.getString(resId) : null);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenu.java | 36 private Context mContext; field in class:ActionMenu 43 mContext = context; 48 return mContext; 60 return add(groupId, itemId, order, mContext.getResources().getString(titleRes)); 73 PackageManager pm = mContext.getPackageManager();
|
H A D | BaseMenuPresenter.java | 35 protected Context mContext; field in class:BaseMenuPresenter 64 mContext = context; 65 mInflater = LayoutInflater.from(mContext);
|
H A D | ListMenuPresenter.java | 41 Context mContext; field in class:ListMenuPresenter 66 mContext = context; 67 mInflater = LayoutInflater.from(mContext); 83 mContext = new ContextThemeWrapper(context, mThemeRes); 84 mInflater = LayoutInflater.from(mContext); 85 } else if (mContext != null) { 86 mContext = context; 88 mInflater = LayoutInflater.from(mContext);
|
H A D | MenuPopupHelper.java | 41 private final Context mContext; field in class:MenuPopupHelper 76 mContext = context; 215 final WindowManager windowManager = (WindowManager) mContext.getSystemService( 222 final int minSmallestWidthCascading = mContext.getResources().getDimensionPixelSize( 228 popup = new CascadingMenuPopup(mContext, mAnchorView, mPopupStyleAttr, 231 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, 269 final float density = mContext.getResources().getDisplayMetrics().density;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ExploreByTouchHelper.java | 80 private final Context mContext; field in class:ExploreByTouchHelper 102 mContext = forView.getContext(); 103 mManager = (AccessibilityManager) mContext.getSystemService(Context.ACCESSIBILITY_SERVICE); 608 (AccessibilityManager) mContext.getSystemService(Context.ACCESSIBILITY_SERVICE);
|
/frameworks/base/core/java/com/android/server/backup/ |
H A D | AccountSyncSettingsBackupHelper.java | 82 private Context mContext; field in class:AccountSyncSettingsBackupHelper 86 mContext = context; 87 mAccountManager = AccountManager.get(mContext); 129 mContext.getUserId());
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestBase.java | 75 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 D | BandwidthTest.java | 55 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...] |