Searched refs:mContext (Results 26 - 50 of 788) sorted by relevance

1234567891011>>

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneSubInfo.java38 private Context mContext; field in class:PhoneSubInfo
49 mContext = phone.getContext();
69 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
77 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
86 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
94 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
102 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
110 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
118 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
126 mContext
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DMediaSizeUtils.java74 private final Context mContext; field in class:MediaSizeUtils.MediaSizeComparator
77 mContext = context;
82 String currentStandard = mContext.getString(R.string.mediasize_standard);
83 String lhsStandard = getStandardForMediaSize(mContext, lhs);
84 String rhsStandard = getStandardForMediaSize(mContext, rhs);
100 return lhs.getLabel(mContext.getPackageManager()).
101 compareTo(rhs.getLabel(mContext.getPackageManager()));
/frameworks/support/tests/java/android/support/v4/content/
H A DFileProviderTest.java60 strat.addRoot("tag", mContext.getFilesDir());
62 File file = buildPath(mContext.getFilesDir(), "file.test");
66 file = buildPath(mContext.getFilesDir(), "subdir", "file.test");
80 strat.addRoot("tag", mContext.getFilesDir());
82 File file = buildPath(mContext.getFilesDir(), "..", "file.test");
92 strat.addRoot("tag1", mContext.getFilesDir());
95 File file = buildPath(mContext.getFilesDir(), "file.test");
101 strat.addRoot("tag2", mContext.getFilesDir());
103 file = buildPath(mContext.getFilesDir(), "file.test");
110 strat.addRoot("tag", mContext
[all...]
/frameworks/base/core/java/android/content/
H A DClipboardManager.java55 private final Context mContext; field in class:ClipboardManager
109 mContext = context;
123 getService().setPrimaryClip(clip, mContext.getOpPackageName());
133 return getService().getPrimaryClip(mContext.getOpPackageName());
145 return getService().getPrimaryClipDescription(mContext.getOpPackageName());
156 return getService().hasPrimaryClip(mContext.getOpPackageName());
167 mPrimaryClipChangedServiceListener, mContext.getOpPackageName());
195 return clip.getItemAt(0).coerceToText(mContext);
214 return getService().hasClipboardText(mContext.getOpPackageName());
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DAirplaneModeTile.java39 mSetting = new GlobalSetting(mContext, mHandler, Global.AIRPLANE_MODE_ON) {
59 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
69 state.label = mContext.getString(R.string.quick_settings_airplane_mode_label);
72 state.contentDescription = mContext.getString(
76 state.contentDescription = mContext.getString(
84 return mContext.getString(R.string.accessibility_quick_settings_airplane_changed_on);
86 return mContext.getString(R.string.accessibility_quick_settings_airplane_changed_off);
96 mContext.registerReceiver(mReceiver, filter);
98 mContext.unregisterReceiver(mReceiver);
H A DLocationTile.java71 state.label = mContext.getString(R.string.quick_settings_location_label);
72 state.contentDescription = mContext.getString(
76 state.label = mContext.getString(R.string.quick_settings_location_label);
77 state.contentDescription = mContext.getString(
85 return mContext.getString(R.string.accessibility_quick_settings_location_changed_on);
87 return mContext.getString(R.string.accessibility_quick_settings_location_changed_off);
H A DUserDetailView.java46 mAdapter = new Adapter(mContext, controller);
53 private Context mContext; field in class:UserDetailView.Adapter
57 mContext = context;
64 mContext, convertView, parent);
68 String name = getName(mContext, item);
70 v.bind(name, getDrawable(mContext, item));
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiSettingsStore.java45 private final Context mContext; field in class:WifiSettingsStore
51 mContext = context;
136 final ContentResolver cr = mContext.getContentResolver();
143 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(),
151 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(),
165 final ContentResolver cr = mContext.getContentResolver();
178 final ContentResolver cr = mContext.getContentResolver();
188 return Settings.Global.getInt(mContext.getContentResolver(),
193 return Settings.Global.getInt(mContext.getContentResolver(),
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFrameManager.java29 private FilterContext mContext; field in class:FrameManager
54 return mContext;
58 return mContext != null ? mContext.getGLEnvironment() : null;
65 mContext = context;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTestUtils.java26 private final Context mContext; field in class:CameraBinderTestUtils
30 mContext = context;
53 if (CameraBinderTestUtils.isFeatureAvailable(mContext,
59 if (CameraBinderTestUtils.isFeatureAvailable(mContext,
66 && CameraBinderTestUtils.isFeatureAvailable(mContext,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSystemUIDialog.java30 private final Context mContext; field in class:SystemUIDialog
34 mContext = context;
55 setMessage(mContext.getString(resId));
59 setButton(BUTTON_POSITIVE, mContext.getString(resId), onClick);
63 setButton(BUTTON_NEGATIVE, mContext.getString(resId), onClick);
/frameworks/base/location/java/android/location/
H A DGpsMeasurementListenerTransport.java29 private final Context mContext; field in class:GpsMeasurementListenerTransport
36 mContext = context;
44 mContext.getPackageName());
H A DGpsNavigationMessageListenerTransport.java29 private final Context mContext; field in class:GpsNavigationMessageListenerTransport
38 mContext = context;
46 mContext.getPackageName());
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DService.java34 private final Context mContext; field in class:Service
39 mContext = context;
45 return mContext;
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DStateController.java33 protected Context mContext; field in class:StateController
38 mContext = context;
/frameworks/base/services/core/java/com/android/server/location/
H A DCountryDetectorBase.java35 protected final Context mContext; field in class:CountryDetectorBase
40 mContext = ctx;
/frameworks/base/core/java/android/transition/
H A DTransitionInflater.java53 private Context mContext; field in class:TransitionInflater
56 mContext = context;
75 XmlResourceParser parser = mContext.getResources().getXml(resource);
102 XmlResourceParser parser = mContext.getResources().getXml(resource);
145 transition = new Fade(mContext, attrs);
147 transition = new ChangeBounds(mContext, attrs);
149 transition = new Slide(mContext, attrs);
151 transition = new Explode(mContext, attrs);
153 transition = new ChangeImageTransform(mContext, attrs);
155 transition = new ChangeTransform(mContext, attr
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSFooter.java46 private final Context mContext; field in class:QSFooter
65 mContext = context;
138 mDialog = new SystemUIDialog(mContext);
150 return mContext.getString(R.string.disconnect_vpn);
152 return mContext.getString(R.string.disable_vpn);
157 return mContext.getString(R.string.quick_settings_done);
165 return mContext.getString(
171 return mContext.getString(
178 return mContext.getString(
186 return mContext
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DNotificationController.java60 private final Context mContext; field in class:NotificationController
64 mContext = context;
66 mContext.getSystemService(Context.NOTIFICATION_SERVICE);
118 Notification.Builder builder = new Notification.Builder(mContext)
122 .addAction(R.drawable.stat_notify_cancelling, mContext.getString(R.string.cancel),
128 .setColor(mContext.getResources().getColor(
134 Notification.Builder builder = new Notification.Builder(mContext)
138 .addAction(R.drawable.stat_notify_cancelling, mContext.getString(R.string.cancel),
140 .addAction(R.drawable.ic_restart, mContext.getString(R.string.restart),
146 .setColor(mContext
[all...]
/frameworks/base/core/java/android/app/backup/
H A DSharedPreferencesBackupHelper.java73 private Context mContext; field in class:SharedPreferencesBackupHelper
87 mContext = context;
96 Context context = mContext;
119 Context context = mContext;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPreviewPageFrame.java40 mSelectedElevation = mContext.getResources().getDimension(
42 mNotSelectedElevation = mContext.getResources().getDimension(
44 mSelectedPageAlpha = mContext.getResources().getFraction(
46 mNotSelectedAlpha = mContext.getResources().getFraction(
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsAppWidgetHost.java33 Context mContext; field in class:RecentsAppWidgetHost
40 mContext = context;
55 mContext = null;
72 mConfig.updateSearchBarAppWidgetId(mContext, -1);
/frameworks/base/services/core/java/com/android/server/
H A DNetworkScoreService.java55 private final Context mContext; field in class:NetworkScoreService
60 mContext = context;
66 ContentResolver cr = mContext.getContentResolver();
70 String defaultPackage = mContext.getResources().getString(
73 NetworkScorerAppManager.setActiveScorer(mContext, defaultPackage);
81 if (!NetworkScorerAppManager.isCallerActiveScorer(mContext, getCallingUid())) {
120 if (NetworkScorerAppManager.isCallerActiveScorer(mContext, getCallingUid()) ||
121 mContext.checkCallingOrSelfPermission(permission.BROADCAST_SCORE_NETWORKS) ==
133 mContext.enforceCallingOrSelfPermission(permission.BROADCAST_SCORE_NETWORKS, TAG);
141 if (NetworkScorerAppManager.isCallerActiveScorer(mContext, getCallingUi
[all...]
H A DSerialService.java28 private final Context mContext; field in class:SerialService
32 mContext = context;
38 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null);
53 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null);
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
H A DAlarmImpl.java33 private Context mContext; field in class:AlarmImpl
37 mContext = context;
51 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
53 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, wakupIntent, 0);

Completed in 1560 milliseconds

1234567891011>>