/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 80 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/TvSettings/Settings/src/com/android/tv/settings/ |
D | BrowseInfo.java | 89 private final Context mContext; field in BrowseInfo.SoundActivityImageUriGetter 92 mContext = context; in SoundActivityImageUriGetter() 97 return UriUtils.getAndroidResourceUri(mContext.getResources(), in getUri() 98 SoundActivity.getIconResource(mContext.getContentResolver())); in getUri() 104 private final Context mContext; field in BrowseInfo.XmlReader 112 mContext = context; in XmlReader() 122 parser = mContext.getResources().getXml(mXmlResource); in read() 146 mListener.handleRequestedNode(mContext, parser, attrs); in read() 170 private final Context mContext; field in BrowseInfo 188 mContext = context; in BrowseInfo() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotification.java | 90 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/apps/Nfc/src/com/android/nfc/ |
D | NfcService.java | 199 Context mContext; field in NfcService 306 mContext = nfcApplication; in NfcService() 314 mScreenStateHelper = new ScreenStateHelper(mContext); in NfcService() 315 mContentResolver = mContext.getContentResolver(); in NfcService() 316 mDeviceHost = new NativeNfcManager(mContext, this); in NfcService() 323 isNfcProvisioningEnabled = mContext.getResources().getBoolean( in NfcService() 335 mNfcDispatcher = new NfcDispatcher(mContext, mHandoverDataParser, mInProvisionMode); in NfcService() 336 mP2pLinkManager = new P2pLinkManager(mContext, mHandoverDataParser, in NfcService() 339 mPrefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in NfcService() 342 mNfceeAccessControl = new NfceeAccessControl(mContext); in NfcService() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | NotificationImportExportListener.java | 51 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/services/Telephony/src/com/android/phone/ |
D | NotificationMgr.java | 94 private Context mContext; field in NotificationMgr 117 mContext = app; in NotificationMgr() 125 mSubscriptionManager = SubscriptionManager.from(mContext); in NotificationMgr() 126 mTelecomManager = TelecomManager.from(mContext); in NotificationMgr() 305 VoicemailStatusQueryHelper queryHelper = new VoicemailStatusQueryHelper(mContext); in updateMwi() 340 String notificationTitle = mContext.getString(R.string.notification_voicemail_title); in updateMwi() 357 … String titleFormat = mContext.getString(R.string.notification_voicemail_title_count); in updateMwi() 367 notificationText = mContext.getString( in updateMwi() 372 notificationText = mContext.getString( in updateMwi() 376 intent.setClass(mContext, VoicemailSettingsActivity.class); in updateMwi() [all …]
|
D | CarrierConfigLoader.java | 88 private Context mContext; field in CarrierConfigLoader 176 int numPhones = TelephonyManager.from(mContext).getPhoneCount(); 211 mContext.unbindService(conn); 225 mContext.unbindService(mServiceConnection[phoneId]); 230 mContext.unbindService(mServiceConnection[phoneId]); 281 mContext.unbindService(conn); 296 mContext.unbindService(mServiceConnection[phoneId]); 301 mContext.unbindService(mServiceConnection[phoneId]); 317 PreferenceManager.getDefaultSharedPreferences(mContext); 335 mContext = context; in CarrierConfigLoader() [all …]
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | DynamicIndexableContentMonitor.java | 80 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/DeskClock/src/com/android/deskclock/ |
D | HandleDeskClockApiCalls.java | 216 private final Context mContext; field in HandleDeskClockApiCalls.HandleTimersAsync 221 mContext = context; in HandleTimersAsync() 233 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); in doInBackground() 236 final String reason = mContext.getString(R.string.no_timer_set); in doInBackground() 248 … final String reason = mContext.getString(R.string.multiple_timers_available); in doInBackground() 257 final String reason = mContext.getString(R.string.timer_deleted); in doInBackground() 273 final String reason = mContext.getString(R.string.timer_started); in doInBackground() 289 final String reason = mContext.getString(R.string.timer_was_reset); in doInBackground() 308 final String reason = mContext.getString(R.string.timer_stopped); in doInBackground() 333 mContext.sendBroadcast(i); in doInBackground() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceStub.java | 87 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/InCallUI/src/com/android/incallui/ |
D | StatusBarNotifier.java | 60 private final Context mContext; field in StatusBarNotifier 74 mContext = context; in StatusBarNotifier() 77 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in StatusBarNotifier() 258 builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color)); in buildAndSendNotification() 302 if (call.isVideoCall(mContext)) { in createIncomingCallNotification() 358 return mContext.getResources().getString(R.string.card_title_conf_call); in getContentTitle() 385 largeIcon = BitmapFactory.decodeResource(mContext.getResources(), in getLargeIconToDisplay() 398 final int height = (int) mContext.getResources().getDimension( in getRoundedIcon() 400 final int width = (int) mContext.getResources().getDimension( in getRoundedIcon() 437 return mContext.getString(R.string.child_number, call.getChildNumber()); in getContentString() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactDeltaListTests.java | 83 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/UnifiedEmail/src/com/android/mail/widget/ |
D | WidgetService.java | 209 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/services/Telecomm/src/com/android/server/telecom/ui/ |
D | MissedCallNotifierImpl.java | 92 private final Context mContext; field in MissedCallNotifierImpl 99 mContext = context; in MissedCallNotifierImpl() 101 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in MissedCallNotifierImpl() 129 mContext.getContentResolver().update(Calls.CONTENT_URI, values, in clearMissedCalls() 161 mContext.getString(R.string.notification_missedCallsMsg, mMissedCallCount); in showMissedCallNotification() 166 Notification.Builder publicBuilder = new Notification.Builder(mContext); in showMissedCallNotification() 168 .setColor(mContext.getResources().getColor(R.color.theme_color)) in showMissedCallNotification() 171 .setContentTitle(mContext.getText(R.string.userCallActivityLabel)) in showMissedCallNotification() 174 .setContentText(mContext.getText(titleResId)) in showMissedCallNotification() 180 Notification.Builder builder = new Notification.Builder(mContext); in showMissedCallNotification() [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ActivityMusic.java | 169 private Context mContext; field in ActivityMusic 229 mContext = this; in onCreate() 251 ControlPanelEffect.initEffectsPreferences(mContext, mCallingPackageName, mAudioSession); in onCreate() 280 final int numPresets = ControlPanelEffect.getParameterInt(mContext, mCallingPackageName, in onCreate() 284 mEQPresetNames[i] = ControlPanelEffect.getParameterString(mContext, in onCreate() 304 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate() 341 ControlPanelEffect.setParameterInt(mContext, mCallingPackageName, in onCreate() 349 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate() 359 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate() 370 ControlPanelEffect.setParameterBoolean(mContext, mCallingPackageName, in onCreate() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 123 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/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallIntentProcessor.java | 60 private final Context mContext; field in UserCallIntentProcessor 64 mContext = context; in UserCallIntentProcessor() 101 (UserManager) mContext.getSystemService(Context.USER_SERVICE); in processOutgoingCallIntent() 103 && !TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) { in processOutgoingCallIntent() 106 showErrorDialogForRestrictedOutgoingCall(mContext, in processOutgoingCallIntent() 113 if (!canCallNonEmergency && !TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) { in processOutgoingCallIntent() 114 showErrorDialogForRestrictedOutgoingCall(mContext, in processOutgoingCallIntent() 127 && TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) { in processOutgoingCallIntent() 135 Toast.makeText(mContext, mContext.getResources().getString(R.string. in processOutgoingCallIntent() 148 mContext.getContentResolver(), in isTtyModeEnabled() [all …]
|
/packages/apps/FMRadio/src/com/android/fmradio/ |
D | FmMainActivity.java | 145 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/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapServer.java | 62 private Context mContext = null; field in SapServer 110 mContext = context; in SapServer() 121 mContext.registerReceiver(mIntentReceiver, filter); in SapServer() 227 title = mContext.getString(R.string.bluetooth_sap_notif_title); in setNotification() 228 button = mContext.getString(R.string.bluetooth_sap_notif_disconnect_button); in setNotification() 229 text = mContext.getString(R.string.bluetooth_sap_notif_message); in setNotification() 230 ticker = mContext.getString(R.string.bluetooth_sap_notif_ticker); in setNotification() 232 title = mContext.getString(R.string.bluetooth_sap_notif_title); in setNotification() 233 button = mContext.getString(R.string.bluetooth_sap_notif_force_disconnect_button); in setNotification() 234 text = mContext.getString(R.string.bluetooth_sap_notif_disconnecting); in setNotification() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | WidgetConversationService.java | 98 WidgetConversationProvider.rebuildWidget(mContext, mAppWidgetId); in onCreate() 112 return mContext.getContentResolver().query(uri, in doQuery() 145 mContext.getPackageName(), message.getIsIncoming() ? in getViewAt() 158 final Intent intent = UIIntents.get().getIntentForConversationActivity(mContext, in getViewAt() 249 final String attachment = mContext.getString(attachmentStringId); in getViewAt() 344 final String separator = mContext.getString(R.string.enumeration_comma); in updateViewContent() 351 description.append(mContext.getString(senderResId, message.getSenderDisplayName())); in updateViewContent() 356 description.append(mContext.getString(senderResId)); in updateViewContent() 361 final String titleText = mContext.getString(titleResId); in updateViewContent() 364 final String mmsInfoText = mContext.getString( in updateViewContent() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamTransferManager.java | 115 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/ |
D | CalendarViewAdapter.java | 72 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/ |
D | PhoneNumberInteractionTest.java | 64 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/Settings/src/com/android/settings/wifi/ |
D | WpsDialog.java | 66 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 …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserSettings.java | 107 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 …]
|