Searched refs:mContext (Results 251 - 275 of 828) sorted by relevance

<<11121314151617181920>>

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DHierarchicalFolderSelectorAdapter.java39 private Context mContext; field in class:HierarchicalFolderSelectorAdapter
45 mContext = context;
51 mContext = context;
114 display.append(mContext.getResources().getString(formatString, topParentName,
117 display.append(mContext.getResources().getString(R.string.hierarchical_folder_top,
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoPriorityResolver.java78 private Context mContext; field in class:PhotoPriorityResolver
82 mContext = context;
106 final AccountManager am = AccountManager.get(mContext);
122 final PackageManager pm = mContext.getPackageManager();
137 return loadPhotoPriorityFromXml(mContext, parser);
/packages/services/Telephony/src/com/android/services/telephony/
H A DEmergencyCallHelper.java57 private final Context mContext; field in class:EmergencyCallHelper
92 mContext = context;
246 if (Settings.Global.getInt(mContext.getContentResolver(),
251 Settings.Global.putInt(mContext.getContentResolver(),
260 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DStatusBarNotifier.java81 private final Context mContext; field in class:StatusBarNotifier
98 mContext = context;
99 mContactsPreferences = ContactsPreferencesFactory.newContactsPreferences(mContext);
102 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
271 Notification.Builder publicBuilder = new Notification.Builder(mContext);
273 .setColor(mContext.getResources().getColor(R.color.dialer_theme_color))
302 builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color));
328 if (mDialerRingtoneManager.shouldVibrate(mContext.getContentResolver())) {
357 if (call.isVideoCall(mContext)) {
429 return mContext
[all...]
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DCallLogNotificationsHelper.java64 private final Context mContext; field in class:CallLogNotificationsHelper
73 mContext = context;
132 mContext,
155 contactInfo.name = mContext.getResources().getString(R.string.unknown);
247 private final Context mContext; field in class:CallLogNotificationsHelper.DefaultNewCallsQuery
250 mContext = context;
257 if (!PermissionsUtil.hasPermission(mContext, Manifest.permission.READ_CALL_LOG)) {
326 private final Context mContext; field in class:CallLogNotificationsHelper.DefaultNameLookupQuery
329 mContext = context;
336 if (!PermissionsUtil.hasPermission(mContext, Manifes
[all...]
H A DCallLogQueryHandler.java81 private final Context mContext; field in class:CallLogQueryHandler
127 mContext = context.getApplicationContext();
151 if (PermissionsUtil.hasPhonePermissions(mContext)) {
163 if (TelecomUtil.hasReadWriteVoicemailPermissions(mContext)) {
170 if (TelecomUtil.hasReadWriteVoicemailPermissions(mContext)) {
212 Uri uri = TelecomUtil.getCallLogUri(mContext).buildUpon()
226 if (!PermissionsUtil.hasPhonePermissions(mContext)) {
237 startUpdate(UPDATE_MARK_AS_OLD_TOKEN, null, TelecomUtil.getCallLogUri(mContext),
243 if (!PermissionsUtil.hasPhonePermissions(mContext)) {
256 if (!PermissionsUtil.hasPhonePermissions(mContext)) {
[all...]
/packages/apps/Gallery2/src/com/android/photos/
H A DMultiChoiceManager.java66 private Context mContext; field in class:MultiChoiceManager
72 mContext = activity;
93 mode.setTitle(mContext.getResources().getQuantityString(
238 mContext.startActivity(Intent.createChooser(intent, null));
244 .setClass(mContext, FilterShowActivity.class);
245 mContext.startActivity(intent);
249 .setClass(mContext, TrimVideo.class);
250 mContext.startActivity(intent);
255 uri, (Activity) mContext);
264 mContext
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DSharePopup.java56 private Context mContext; field in class:SharePopup
110 mContext = activity;
112 mMimeType = mContext.getContentResolver().getType(mUri);
142 Resources res = mContext.getResources();
215 PopupManager.getInstance(mContext).notifyShowPopup(null);
223 Util.viewUri(mUri, mContext);
238 PackageManager packageManager = mContext.getPackageManager();
256 int width = mContext.getResources().getDimensionPixelSize(R.dimen.share_item_width);
260 SimpleAdapter listItemAdapter = new MySimpleAdapter(mContext, items,
280 mContext
[all...]
/packages/apps/Messaging/src/com/android/messaging/widget/
H A DWidgetConversationListService.java71 return mContext.getContentResolver().query(MessagingContentProvider.CONVERSATIONS_URI,
105 mContext.getPackageName(), R.layout.widget_conversation_list_item);
108 final Resources resources = mContext.getResources();
128 final Intent intent = UIIntents.get().getIntentForConversationActivity(mContext,
207 ConversationListItemView.buildContentDescription(mContext.getResources(),
220 Resources resources = mContext.getResources();
245 final RemoteViews view = new RemoteViews(mContext.getPackageName(),
248 R.id.loading_text, mContext.getText(R.string.view_more_conversations));
264 RemoteViews view = new RemoteViews(mContext.getPackageName(), R.layout.widget_loading);
266 R.id.loading_text, mContext
[all...]
/packages/apps/Settings/src/com/android/settings/notification/
H A DZenModeRuleSettingsBase.java56 protected Context mContext; field in class:ZenModeRuleSettingsBase
77 mContext = getActivity();
166 MetricsLogger.action(mContext, MetricsEvent.ACTION_ZEN_ENABLE_RULE, enabled);
173 mEnabledToast = Toast.makeText(mContext, toastText, Toast.LENGTH_SHORT);
210 MetricsLogger.action(mContext, MetricsEvent.ACTION_ZEN_DELETE_RULE);
218 new ZenRuleNameDialog(mContext, mRule.getName()) {
238 final AlertDialog dialog = new AlertDialog.Builder(mContext)
244 MetricsLogger.action(mContext, MetricsEvent.ACTION_ZEN_DELETE_RULE_OK);
258 Toast.makeText(mContext, R.string.zen_mode_rule_not_found_text, Toast.LENGTH_SHORT)
270 return NotificationManager.from(mContext)
[all...]
/packages/services/Car/car-lib/src/android/car/
H A DCar.java209 private final Context mContext; field in class:Car
304 mContext = context;
328 mContext = context;
376 mContext.unbindService(mServiceConnectionListener);
472 manager = new CarAudioManager(binder, mContext);
475 manager = new CarSensorManager(binder, mContext, mLooper);
484 manager = new CarPackageManager(binder, mContext);
490 manager = new CarCameraManager(binder, mContext);
493 manager = new CarHvacManager(binder, mContext, mLooper);
514 boolean bound = mContext
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DShortcutIntentBuilder.java91 private final Context mContext; field in class:ShortcutIntentBuilder
122 mContext = context;
161 mContentType = mContext.getContentResolver().getType(mUri);
174 ContentResolver resolver = mContext.getContentResolver();
196 ContentResolver resolver = mContext.getContentResolver();
229 ContentResolver resolver = mContext.getContentResolver();
257 return new BitmapDrawable(mContext.getResources(), bitmap);
259 return ContactPhotoManager.getDefaultAvatarDrawableForContact(mContext.getResources(),
295 intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, mContext.getResources().getString(
330 displayName = mContext
[all...]
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DBluetoothPeripheralHandover.java82 final Context mContext; field in class:BluetoothPeripheralHandover
112 mContext = context;
120 ContentResolver contentResolver = mContext.getContentResolver();
152 mContext.registerReceiver(mReceiver, filter);
280 return mContext.getString(resid, mName != null ? mName : R.string.device);
286 if (!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.INPUT_DEVICE))
289 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET))
292 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP))
462 mContext.unregisterReceiver(mReceiver);
484 Toast.makeText(mContext, tex
[all...]
/packages/apps/TV/src/com/android/tv/data/epg/
H A DEpgFetcher.java72 private final Context mContext; field in class:EpgFetcher
82 mContext = context;
83 mInputHelper = TvApplication.getSingletons(mContext).getTvInputManagerHelper();
87 if (Utils.isInternalTvInput(mContext, inputId)) {
100 if (!Features.FETCH_EPG.isEnabled(mContext)) {
108 mRecurringRunner = new RecurringRunner(mContext, EPG_PREFETCH_RECURRING_PERIOD_MS,
139 if (Utils.isInternalTvInput(mContext, input.getId())) {
149 EpgReader epgReader = new StubEpgReader(mContext);
178 mLastEpgTimestamp = PreferenceManager.getDefaultSharedPreferences(mContext).getLong(
186 PreferenceManager.getDefaultSharedPreferences(mContext)
[all...]
/packages/apps/MusicFX/src/com/android/musicfx/
H A DActivityMusic.java169 private Context mContext; field in class:ActivityMusic
229 mContext = this;
251 ControlPanelEffect.initEffectsPreferences(mContext, mCallingPackageName, mAudioSession);
280 final int numPresets = ControlPanelEffect.getParameterInt(mContext, mCallingPackageName,
284 mEQPresetNames[i] = ControlPanelEffect.getParameterString(mContext,
304 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName,
341 ControlPanelEffect.setParameterInt(mContext, mCallingPackageName,
349 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName,
359 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName,
370 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageNam
[all...]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DTelecomServiceImplTest.java174 mContext = mComponentContextFixture.getTestDouble().getApplicationContext();
178 doReturn(mContext).when(mContext).getApplicationContext();
179 doNothing().when(mContext).sendBroadcastAsUser(any(Intent.class), any(UserHandle.class),
182 mContext,
200 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE);
201 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
243 doThrow(new SecurityException()).when(mContext)
272 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission(
316 doThrow(new SecurityException()).when(mContext)
[all...]
H A DContactsAsyncHelperTest.java85 mContext = getTestContext();
93 cah.startObtainPhotoAsync(TOKEN, mContext, null, mListener, COOKIE);
104 cah.startObtainPhotoAsync(TOKEN, mContext, SAMPLE_CONTACT_PHOTO_URI, mListener, COOKIE);
113 cah.startObtainPhotoAsync(TOKEN, mContext, SAMPLE_CONTACT_PHOTO_URI, mListener, COOKIE);
123 int iconSize = mContext.getResources()
132 cah.startObtainPhotoAsync(TOKEN, mContext, SAMPLE_CONTACT_PHOTO_URI_SMALL,
149 is = mContext.getContentResolver().openInputStream(uri);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DHandleApiCalls.java136 private final Context mContext; field in class:HandleApiCalls.DismissAlarmAsync
141 mContext = context;
148 final List<Alarm> alarms = getEnabledAlarms(mContext);
150 final String reason = mContext.getString(R.string.no_scheduled_alarms);
159 mContext.getContentResolver(), i.next().id);
169 final Intent pickSelectionIntent = new Intent(mContext,
174 mContext.startActivity(pickSelectionIntent);
175 Voice.notifySuccess(mActivity, mContext.getString(R.string.pick_alarm_to_dismiss));
181 new FetchMatchingAlarmsAction(mContext, alarms, mIntent, mActivity);
188 final Intent pickSelectionIntent = new Intent(mContext, AlarmSelectionActivit
218 private final Context mContext; field in class:HandleApiCalls.SnoozeAlarmAsync
[all...]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
H A DRawContactDeltaListTests.java86 mContext = getContext();
330 final RawContactDelta updateFirst = getUpdate(mContext, CONTACT_FIRST);
331 final RawContactDelta updateSecond = getUpdate(mContext, CONTACT_SECOND);
341 final RawContactDelta update = getUpdate(mContext, CONTACT_FIRST);
353 final RawContactDelta update = getUpdate(mContext, CONTACT_FIRST);
376 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
378 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
387 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
389 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB,
412 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BO
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DLocalPhotoSource.java59 private Context mContext; field in class:LocalPhotoSource
68 mContext = context;
77 mContext.getContentResolver()
83 mContext.getContentResolver().unregisterContentObserver(mContentObserver);
144 Cursor cursor = mContext.getContentResolver().query(
162 ContentResolver resolver = mContext.getContentResolver();
170 Cursor cursor = mContext.getContentResolver().query(
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DSettingsData.java116 private final Context mContext; field in class:SettingsData
124 mContext = context;
138 loader = new BoundCursorLoader(bindingId, mContext,
198 settingsItems.add(SettingsItem.createGeneralSettingsItem(mContext));
207 settingsItems.add(SettingsItem.fromSelfParticipant(mContext, self));
210 settingsItems.add(SettingsItem.createDefaultMmsSettingsItem(mContext,
218 settingsItems.add(SettingsItem.createDefaultMmsSettingsItem(mContext,
/packages/apps/Nfc/src/com/android/nfc/
H A DRegisteredComponentCache.java48 final Context mContext; field in class:RegisteredComponentCache
57 mContext = context;
75 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, intentFilter, null, null);
80 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, sdFilter, null, null);
84 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, userFilter, null, null);
127 mContext.unregisterReceiver(receiver);
150 pm = mContext.createPackageContextAsUser("android", 0,
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatterySaverSettings.java58 private Context mContext; field in class:BatterySaverSettings
81 mContext = getActivity();
82 mSwitchBar = ((SettingsActivity) mContext).getSwitchBar();
101 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
199 mContext.registerReceiver(this, new IntentFilter(ACTION_POWER_SAVE_MODE_CHANGING));
202 mContext.unregisterReceiver(this);
219 mTriggerPref.update(mContext);
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DDataAction.java56 private final Context mContext; field in class:DataAction
79 mContext = context;
112 final boolean hasPhone = PhoneCapabilityTester.isPhone(mContext);
113 final ComponentName smsComponent = PhoneCapabilityTester.getSmsComponent(mContext);
118 if (PhoneCapabilityTester.isPhone(mContext)) {
146 if (PhoneCapabilityTester.isSipPhone(mContext)) {
294 return mContext.getResources().getDrawable(mAlternateIconRes);
297 final PackageManager pm = mContext.getPackageManager();
304 return mContext.getResources().getString(mAlternateIconDescriptionRes);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DManagedProfileHeuristic.java78 private final Context mContext; field in class:ManagedProfileHeuristic
92 mContext = context;
101 mPrefs = mContext.getSharedPreferences(LauncherFiles.MANAGED_USER_PREFERENCES_KEY,
144 ShortcutInfo si = ShortcutInfo.fromActivityInfo(info, mContext);
198 workFolder.title = mContext.getText(R.string.work_folder_name);
209 mModel.addAndBindAddedWorkspaceItems(mContext, itemList);
222 LauncherModel.addItemToDatabase(mContext, info, workFolderId, 0, 0, 0);
234 mModel.addAndBindAddedWorkspaceItems(mContext, mHomescreenApps);
248 LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(mContext);

Completed in 2877 milliseconds

<<11121314151617181920>>