Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 636) sorted by relevance

12345678910>>...26

/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java80 private final Context mContext; field in EmailNotificationController
90 mContext = context.getApplicationContext(); in EmailNotificationController()
138 mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); in createBaseAccountNotificationBuilder()
142 final NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext) in createBaseAccountNotificationBuilder()
153 Account account = Account.restoreAccountWithId(mContext, accountId); in createBaseAccountNotificationBuilder()
192 ContentResolver resolver = mContext.getContentResolver(); in watchForMessages()
199 mAccountObserver = new AccountContentObserver(sNotificationHandler, mContext); in watchForMessages()
264 ContentResolver resolver = mContext.getContentResolver(); in registerMessageNotification()
282 sNotificationHandler, mContext, accountId); in registerMessageNotification()
299 ContentResolver resolver = mContext.getContentResolver(); in unregisterMessageNotification()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java199 Context mContext; field in NfcService
305 mContext = nfcApplication; in NfcService()
313 mScreenStateHelper = new ScreenStateHelper(mContext); in NfcService()
314 mContentResolver = mContext.getContentResolver(); in NfcService()
315 mDeviceHost = new NativeNfcManager(mContext, this); in NfcService()
322 isNfcProvisioningEnabled = mContext.getResources().getBoolean( in NfcService()
334 mNfcDispatcher = new NfcDispatcher(mContext, mHandoverDataParser, mInProvisionMode); in NfcService()
335 mP2pLinkManager = new P2pLinkManager(mContext, mHandoverDataParser, in NfcService()
338 mPrefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in NfcService()
341 mNfceeAccessControl = new NfceeAccessControl(mContext); in NfcService()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DBrowseInfo.java97 private final Context mContext; field in BrowseInfo.SoundActivityImageUriGetter
100 mContext = context; in SoundActivityImageUriGetter()
105 return UriUtils.getAndroidResourceUri(mContext.getResources(), in getUri()
106 SoundActivity.getIconResource(mContext.getContentResolver())); in getUri()
112 private final Context mContext; field in BrowseInfo.XmlReader
120 mContext = context; in XmlReader()
130 parser = mContext.getResources().getXml(mXmlResource); in read()
156 mListener.handleRequestedNode(mContext, parser, attrs); in read()
179 private final Context mContext; field in BrowseInfo
194 mContext = context; in BrowseInfo()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java90 private Context mContext; field in BluetoothOppNotification
134 mContext = ctx; in BluetoothOppNotification()
135 mNotificationMgr = (NotificationManager)mContext in BluetoothOppNotification()
213 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null, in updateActiveNotification()
254 fileName = mContext.getString(R.string.unknown_file); in updateActiveNotification()
269 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification()
271 item.description = mContext in updateActiveNotification()
311 mContext.sendBroadcast(intent, Constants.HANDOVER_STATUS_PERMISSION); in updateActiveNotification()
316 Notification.Builder b = new Notification.Builder(mContext); in updateActiveNotification()
317 b.setColor(mContext.getResources().getColor( in updateActiveNotification()
[all …]
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java89 private Context mContext; field in NotificationMgr
112 mContext = app; in NotificationMgr()
120 mSubscriptionManager = SubscriptionManager.from(mContext); in NotificationMgr()
121 mTelecomManager = TelecomManager.from(mContext); in NotificationMgr()
326 String notificationTitle = mContext.getString(R.string.notification_voicemail_title); in updateMwi()
343 … String titleFormat = mContext.getString(R.string.notification_voicemail_title_count); in updateMwi()
353 notificationText = mContext.getString( in updateMwi()
358 notificationText = mContext.getString( in updateMwi()
363 intent.setClass(mContext, CallFeaturesSetting.class); in updateMwi()
369 mContext.getString(R.string.notification_voicemail_text_format), in updateMwi()
[all …]
/packages/apps/Settings/src/com/android/settings/search/
DDynamicIndexableContentMonitor.java80 private Context mContext; field in DynamicIndexableContentMonitor
103 mContext = context; in register()
105 mHasFeaturePrinting = mContext.getPackageManager().hasSystemFeature( in register()
107 mHasFeatureIme = mContext.getPackageManager().hasSystemFeature( in register()
112 mContext.getSystemService(Context.ACCESSIBILITY_SERVICE); in register()
128 mContext.getSystemService(Context.PRINT_SERVICE); in register()
144 mContext.getSystemService(Context.INPUT_METHOD_SERVICE); in register()
155 mContext.getContentResolver().registerContentObserver( in register()
171 InputManager inputManager = (InputManager) mContext.getSystemService( in unregister()
176 mContext.getContentResolver().unregisterContentObserver( in unregister()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceStub.java87 protected Context mContext; field in EmailServiceStub
90 mContext = context; in init()
100 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); in requestSync()
102 final Account account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey); in requestSync()
105 EmailServiceUtils.getServiceInfoForAccount(mContext, account.mId); in requestSync()
129 Attachment.restoreAttachmentWithId(mContext, attachmentId); in loadAttachment()
138 EmailContent.Message.restoreMessageWithId(mContext, attachment.mMessageKey); in loadAttachment()
146 if (Utility.attachmentExists(mContext, attachment) in loadAttachment()
157 final Account account = Account.restoreAccountWithId(mContext, message.mAccountKey); in loadAttachment()
158 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey); in loadAttachment()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DNotificationImportExportListener.java51 private final Activity mContext; field in NotificationImportExportListener
55 mContext = activity; in NotificationImportExportListener()
64 Toast.makeText(mContext, text, Toast.LENGTH_LONG).show(); in handleMessage()
75 message = mContext.getString(R.string.vcard_import_will_start_message, displayName); in onImportProcessed()
77 displayName = mContext.getString(R.string.vcard_unknown_filename); in onImportProcessed()
78 message = mContext.getString( in onImportProcessed()
90 final Notification notification = constructProgressNotification(mContext, in onImportProcessed()
104 mContext.getString(R.string.progress_notifier_message, in onImportParsed()
108 final String description = mContext.getString(R.string.importing_vcard_description, in onImportParsed()
112 mContext.getApplicationContext(), VCardService.TYPE_IMPORT, description, tickerText, in onImportParsed()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DStatusBarNotifier.java94 private final Context mContext; field in StatusBarNotifier
107 mContext = context; in StatusBarNotifier()
110 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in StatusBarNotifier()
296 builder.setContentText(mContext.getString(contentResId)); in buildAndSendNotification()
300 builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color)); in buildAndSendNotification()
339 if (call.isVideoCall(mContext)) { in createIncomingCallNotification()
393 return mContext.getResources().getString(R.string.card_title_conf_call); in getContentTitle()
421 largeIcon = BitmapFactory.decodeResource(mContext.getResources(), in getLargeIconToDisplay()
429 final int height = (int) mContext.getResources().getDimension( in getLargeIconToDisplay()
431 final int width = (int) mContext.getResources().getDimension( in getLargeIconToDisplay()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetService.java209 private final Context mContext; field in WidgetService.MailFactory
231 mContext = context; in MailFactory()
257 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in MailFactory()
271 saveWidgetInformation(mContext, mAppWidgetId, mAccount, mFolderUri.toString()); in onCreate()
275 if (!mService.isWidgetConfigured(mContext, mAppWidgetId, mAccount)) { in onCreate()
276 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in onCreate()
298 final Resources res = mContext.getResources(); in onCreate()
299 mConversationCursorLoader = new CursorLoader(mContext, widgetConversationQueryUri, in onCreate()
307 mFolderLoader = new CursorLoader(mContext, mFolderUri, UIProvider.FOLDERS_PROJECTION, in onCreate()
314 mAccountLoader = new CursorLoader(mContext, mAccount.uri, in onCreate()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaListTests.java83 mContext = getContext(); in setUp()
315 final RawContactDelta updateFirst = getUpdate(mContext, CONTACT_FIRST); in testUpdateUpdate()
316 final RawContactDelta updateSecond = getUpdate(mContext, CONTACT_SECOND); in testUpdateUpdate()
326 final RawContactDelta update = getUpdate(mContext, CONTACT_FIRST); in testUpdateInsert()
338 final RawContactDelta update = getUpdate(mContext, CONTACT_FIRST); in testInsertUpdateInsert()
361 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataRemoteInsert()
363 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataRemoteInsert()
372 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteInsert()
374 final RawContactDeltaList second = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteInsert()
397 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteDelete()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DActivityMusic.java159 private Context mContext; field in ActivityMusic
219 mContext = this; in onCreate()
241 ControlPanelEffect.initEffectsPreferences(mContext, mCallingPackageName, mAudioSession); in onCreate()
270 final int numPresets = ControlPanelEffect.getParameterInt(mContext, mCallingPackageName, in onCreate()
274 mEQPresetNames[i] = ControlPanelEffect.getParameterString(mContext, in onCreate()
294 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate()
331 ControlPanelEffect.setParameterInt(mContext, mCallingPackageName, in onCreate()
339 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate()
349 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate()
360 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate()
[all …]
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java123 private Context mContext; field in CalendarAppWidgetService.CalendarFactory
168 mContext = context;
202 RemoteViews views = new RemoteViews(mContext.getPackageName(),
215 RemoteViews views = new RemoteViews(mContext.getPackageName(),
217 final Intent intent = CalendarAppWidgetProvider.getLaunchFillInIntent(mContext, 0,
224 RemoteViews views = new RemoteViews(mContext.getPackageName(),
226 final Intent intent = CalendarAppWidgetProvider.getLaunchFillInIntent(mContext, 0,
234 RemoteViews views = new RemoteViews(mContext.getPackageName(),
243 views = new RemoteViews(mContext.getPackageName(),
246 views = new RemoteViews(mContext.getPackageName(), R.layout.widget_item);
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java241 private Context mContext; field in ContactEditorFragment
373 mContext = activity; in onAttach()
374 mEditorUtils = ContactEditorUtils.getInstance(mContext); in onAttach()
555 AccountType accountType = rawContact.getAccountType(mContext); in setData()
573 if (!contact.isUserProfile() && !contact.isWritableContact(mContext)) { in setData()
645 && PhoneCapabilityTester.isPhone(mContext); in arePhoneOptionsChangable()
656 final AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext); in setIntentExtras()
661 RawContactModifier.parseExtras(mContext, type, state, extras); in setIntentExtras()
678 Intent intent = new Intent(mContext, ContactEditorAccountsChangedActivity.class); in selectAccountAndCreateContact()
699 AccountTypeManager.getInstance(mContext).getAccounts(true); in createContact()
[all …]
/packages/apps/FMRadio/src/com/android/fmradio/
DFmMainActivity.java145 private Context mContext = null; field in FmMainActivity
311 String stationName = FmStation.getStationName(mContext, mCurrentStation);
404 Animation anim = AnimationUtils.loadAnimation(mContext, in onAnimationEnd()
407 anim = AnimationUtils.loadAnimation(mContext, R.anim.floatbtn_alpha_in); in onAnimationEnd()
431 Animation anim = AnimationUtils.loadAnimation(mContext, in onAnimationEnd()
452 if (FmStation.isFavoriteStation(mContext, mCurrentStation)) { in updateFavoriteStation()
453 FmStation.removeFromFavorite(mContext, mCurrentStation); in updateFavoriteStation()
457 mTextStationName.setText(FmStation.getStationName(mContext, mCurrentStation)); in updateFavoriteStation()
460 if (FmStation.isStationExist(mContext, mCurrentStation)) { in updateFavoriteStation()
461 FmStation.addToFavorite(mContext, mCurrentStation); in updateFavoriteStation()
[all …]
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamTransferManager.java115 final Context mContext; field in BeamTransferManager
142 mContext = context; in BeamTransferManager()
170 mNotificationManager = (NotificationManager) mContext.getSystemService( in BeamTransferManager()
178 mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT); in whitelistOppDevice()
191 new BluetoothOppHandover(mContext, mRemoteDevice, mUris, mRemoteActivating).start(); in start()
228 mimeType = MimeTypeUtil.getMimeTypeForUri(mContext, uri); in finishTransfer()
286 mContext.sendBroadcast(cancelIntent); in sendBluetoothCancelIntentAndUpdateState()
291 Builder notBuilder = new Notification.Builder(mContext); in updateNotification()
292 notBuilder.setColor(mContext.getResources().getColor( in updateNotification()
298 beamString = mContext.getString(R.string.beam_progress); in updateNotification()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.java72 private final Context mContext; field in CalendarViewAdapter
82 refresh(mContext);
91 mContext = context; in CalendarViewAdapter()
189 if (Utils.getShowWeekNumber(mContext)) { in getView()
321 dayOfWeek = mContext.getString(R.string.agenda_today, in buildDayOfWeek()
322 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
325 dayOfWeek = mContext.getString(R.string.agenda_yesterday, in buildDayOfWeek()
326 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
329 dayOfWeek = mContext.getString(R.string.agenda_tomorrow, in buildDayOfWeek()
330 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildDayOfWeek()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/
DPhoneNumberInteractionTest.java64 private ContactsMockContext mContext; field in PhoneNumberInteractionTest
70 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); in setUp()
71 mContactsProvider = mContext.getContactsProvider(); in setUp()
87 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenOnlyOneNumberAvailable()
92 Intent intent = mContext.getIntentForStartActivity(); in testSendSmsWhenOnlyOneNumberAvailable()
106 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenDataIdIsProvided()
111 Intent intent = mContext.getIntentForStartActivity(); in testSendSmsWhenDataIdIsProvided()
127 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenThereIsPrimaryNumber()
132 Intent intent = mContext.getIntentForStartActivity(); in testSendSmsWhenThereIsPrimaryNumber()
146 assertTrue(phoneItem1.shouldCollapseWith(phoneItem2, mContext)); in testShouldCollapseWith()
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DRetryScheduler.java48 private final Context mContext; field in RetryScheduler
52 mContext = context; in RetryScheduler()
66 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in isConnected()
99 setRetryAlarm(mContext); in update()
111 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, in scheduleRetry()
126 DefaultRetryScheme scheme = new DefaultRetryScheme(mContext, retryIndex); in scheduleRetry()
165 SqliteWrapper.delete(mContext, mContext.getContentResolver(), uri, in scheduleRetry()
189 … Cursor c = SqliteWrapper.query(mContext, mContext.getContentResolver(), uri, in scheduleRetry()
205 MessagingNotification.notifyDownloadFailed(mContext, threadId); in scheduleRetry()
214 SqliteWrapper.update(mContext, mContext.getContentResolver(), in scheduleRetry()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DMissedCallNotifier.java70 private final Context mContext; field in MissedCallNotifier
77 mContext = context; in MissedCallNotifier()
79 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in MissedCallNotifier()
107 mContext.getContentResolver().update(Calls.CONTENT_URI, values, where.toString(), in clearMissedCalls()
134 mContext.getString(R.string.notification_missedCallsMsg, mMissedCallCount); in showMissedCallNotification()
138 Notification.Builder builder = new Notification.Builder(mContext); in showMissedCallNotification()
140 .setColor(mContext.getResources().getColor(R.color.theme_color)) in showMissedCallNotification()
142 .setContentTitle(mContext.getText(titleResId)) in showMissedCallNotification()
156 && !TextUtils.equals(handle, mContext.getString(R.string.handle_restricted))) { in showMissedCallNotification()
158 mContext.getString(R.string.notification_missedCall_call_back), in showMissedCallNotification()
[all …]
/packages/apps/Mms/src/com/android/mms/widget/
DMmsWidgetService.java65 private final Context mContext; field in MmsWidgetService.MmsFactory
79 mContext = context; in MmsFactory()
133 return mContext.getContentResolver().query( in queryAllConversations()
142 cursor = mContext.getContentResolver().query( in queryUnreadCount()
224 Conversation conv = Conversation.from(mContext, mConversationCursor);
228 mContext.getPackageName(), R.layout.widget_conversation);
243 addColor(MessageUtils.formatTimeStampString(mContext, conv.getDate()),
254 from.append(mContext.getResources().getString(R.string.draft_separator));
256 from.append(mContext.getResources().getString(R.string.has_draft));
257 from.setSpan(new TextAppearanceSpan(mContext,
[all …]
/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java107 private Context mContext; field in BrowserSettings
138 mContext = context.getApplicationContext(); in BrowserSettings()
139 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in BrowserSettings()
180 DisplayMetrics metrics = mContext.getResources().getDisplayMetrics();
188 mWebStorageSizeManager = new WebStorageSizeManager(mContext,
223 sFactoryResetUrl = mContext.getResources().getString(R.string.homepage_base);
226 BrowserProvider.getClientId(mContext.getContentResolver()));
303 settings.setDatabasePath(mContext.getDir("databases", 0).getPath()); in syncStaticSettings()
304 settings.setGeolocationDatabasePath(mContext.getDir("geolocation", 0).getPath()); in syncStaticSettings()
391 mAppCachePath = mContext.getDir("appcache", 0).getPath(); in getAppCachePath()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java402 AlertService.generateAlerts(mContext, ntm, new MockAlarmManager(mContext), prefs, in testGenerateAlerts_none()
411 MockAlarmManager alarmMgr = new MockAlarmManager(mContext); in testGenerateAlerts_single()
422 … AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime, in testGenerateAlerts_single()
431 … AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime, in testGenerateAlerts_single()
439 … AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime, in testGenerateAlerts_single()
448 MockAlarmManager alarmMgr = new MockAlarmManager(mContext); in testGenerateAlerts_multiple()
491 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), in testGenerateAlerts_multiple()
504 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), in testGenerateAlerts_multiple()
513 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), in testGenerateAlerts_multiple()
521 MockAlarmManager alarmMgr = new MockAlarmManager(mContext); in testGenerateAlerts_maxAlerts()
[all …]
/packages/apps/Mms/src/com/android/mms/util/
DDownloadManager.java67 private final Context mContext; field in DownloadManager
118 mContext = context; in DownloadManager()
197 NotificationInd nInd = (NotificationInd) PduPersister.getPduPersister(mContext) in markState()
203 Toast.makeText(mContext, R.string.service_message_not_found, in markState()
207 SqliteWrapper.delete(mContext, mContext.getContentResolver(), uri, null, null); in markState()
220 Toast.makeText(mContext, getMessage(uri), in markState()
235 SqliteWrapper.update(mContext, mContext.getContentResolver(), in markState()
244 Toast.makeText(mContext, errStr, Toast.LENGTH_LONG).show(); in showErrorCodeToast()
254 .getPduPersister(mContext).load(uri); in getMessage()
258 : mContext.getString(R.string.no_subject); in getMessage()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWpsDialog.java66 private Context mContext; field in WpsDialog
81 mContext = context; in WpsDialog()
89 mContext.getString(R.string.wifi_wps_onstart_pin), pin)); in WpsDialog()
91 updateDialog(DialogState.WPS_START, mContext.getString( in WpsDialog()
98 mContext.getString(R.string.wifi_wps_complete)); in WpsDialog()
105 msg = mContext.getString(R.string.wifi_wps_failed_overlap); in WpsDialog()
108 msg = mContext.getString(R.string.wifi_wps_failed_wep); in WpsDialog()
111 msg = mContext.getString(R.string.wifi_wps_failed_tkip); in WpsDialog()
114 msg = mContext.getString(R.string.wifi_wps_in_progress); in WpsDialog()
117 msg = mContext.getString(R.string.wifi_wps_failed_generic); in WpsDialog()
[all …]

12345678910>>...26