Home
last modified time | relevance | path

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

123456789

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java78 private Context mContext; field in BluetoothOppNotification
110 mContext = ctx; in BluetoothOppNotification()
111 mNotificationMgr = (NotificationManager)mContext in BluetoothOppNotification()
166 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null, in updateActiveNotification()
187 fileName = mContext.getString(R.string.unknown_file); in updateActiveNotification()
201 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification()
203 item.description = mContext in updateActiveNotification()
253 n.contentIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0); in updateActiveNotification()
259 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null, in updateCompletedNotification()
275 fileName = mContext.getString(R.string.unknown_file); in updateCompletedNotification()
[all …]
DBluetoothOppManager.java65 private Context mContext; field in BluetoothOppManager
126 mContext = context.getApplicationContext(); in init()
143 SharedPreferences settings = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0); in restoreApplicationData()
162 SharedPreferences.Editor editor = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0) in onDestroy()
243 deviceName = BluetoothOppPreference.getInstance(mContext).getName(device); in getDeviceName()
250 deviceName = mContext.getString(R.string.unknown_device); in getDeviceName()
277 ContentResolver contentResolver = mContext.getContentResolver(); in startTransfer()
287 final Uri contentUri = mContext.getContentResolver().insert( in startTransfer()
298 final Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, in startTransfer()
/packages/apps/Phone/src/com/android/phone/
DNotificationMgr.java82 private Context mContext; field in NotificationMgr
111 mContext = context; in NotificationMgr()
216 mQueryHandler = new QueryHandler(mContext.getContentResolver()); in updateNotifications()
388 callName = mContext.getString(R.string.unknown); in notifyMissedCall()
399 expandedText = mContext.getString(R.string.notification_missedCallsMsg, in notifyMissedCall()
410 mContext, // context in notifyMissedCall()
412 mContext.getString( in notifyMissedCall()
415 mContext.getText(titleResId), // expandedTitle in notifyMissedCall()
446 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in updateSpeakerNotification()
554 notification.contentIntent = PendingIntent.getActivity(mContext, 0, in updateInCallNotification()
[all …]
DRinger.java58 Context mContext; field in Ringer
66 mContext = phone.getContext(); in Ringer()
79 mContext = phone.getContext(); in updateRingerContextAfterRadioTechnologyChange()
145 (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in ring()
186 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in shouldVibrate()
209 PhoneUtils.setAudioMode(mContext, AudioManager.MODE_NORMAL); in stopRing()
297 r = RingtoneManager.getRingtone(mContext, mCustomRingtoneUri); in makeLooper()
306 PhoneUtils.setAudioMode(mContext, AudioManager.MODE_RINGTONE); in makeLooper()
/packages/apps/Mms/src/com/android/mms/util/
DDownloadManager.java61 private final Context mContext; field in DownloadManager
112 mContext = context; in DownloadManager()
188 NotificationInd nInd = (NotificationInd) PduPersister.getPduPersister(mContext) in markState()
194 Toast.makeText(mContext, R.string.dl_expired_notification, in markState()
198 SqliteWrapper.delete(mContext, mContext.getContentResolver(), uri, null, null); in markState()
211 Toast.makeText(mContext, getMessage(uri), in markState()
226 SqliteWrapper.update(mContext, mContext.getContentResolver(), in markState()
235 Toast.makeText(mContext, errStr, Toast.LENGTH_LONG).show(); in showErrorCodeToast()
245 .getPduPersister(mContext).load(uri); in getMessage()
249 : mContext.getString(R.string.no_subject); in getMessage()
[all …]
DRateController.java53 private final Context mContext; field in RateController
74 mContext = context; in RateController()
98 SqliteWrapper.insert(mContext, mContext.getContentResolver(), in update()
104 Cursor c = SqliteWrapper.query(mContext, mContext.getContentResolver(), in isLimitSurpassed()
129 mContext.registerReceiver(mBroadcastReceiver, in isAllowedByUser()
138 mContext.startActivity(intent); in isAllowedByUser()
141 mContext.unregisterReceiver(mBroadcastReceiver); in isAllowedByUser()
/packages/apps/IM/src/com/android/im/service/
DAndroidSystemService.java38 private Context mContext; field in AndroidSystemService
43 mContext = context; in initialize()
57 if(mContext == null) { in getHeartbeatService()
61 mHeartbeatServcie = new AndroidHeartBeatService(mContext); in getHeartbeatService()
68 if(mContext == null) { in getSmsService()
72 mSmsService = new AndroidSmsService(mContext); in getSmsService()
DStatusBarNotifier.java46 private Context mContext; field in StatusBarNotifier
55 mContext = context; in StatusBarNotifier()
91 String message = mContext.getString(R.string.subscription_notify_text, nickname); in notifySubscriptionRequest()
105 String title = mContext.getString(R.string.notify_groupchat_label); in notifyGroupInvitation()
106 String message = mContext.getString( in notifyGroupInvitation()
152 res = new Imps.ProviderSettings.QueryMap(mContext.getContentResolver(), in getProviderSettings()
254 notification.setLatestEventInfo(mContext, getTitle(), getMessage(), in createNotification()
255 PendingIntent.getActivity(mContext, 0, intent, 0)); in createNotification()
266 intent.setClass(mContext, ContactListActivity.class); in getDefaultIntent()
274 intent.setClass(mContext, NewChatActivity.class); in getMultipleNotificationIntent()
[all …]
/packages/apps/Email/src/com/android/email/
DMessagingController.java126 private Context mContext; field in MessagingController
129 mContext = _context; in MessagingController()
133 mContext.getString(R.string.mailbox_name_server_inbox).toLowerCase(), in MessagingController()
136 mContext.getString(R.string.mailbox_name_server_outbox).toLowerCase(), in MessagingController()
139 mContext.getString(R.string.mailbox_name_server_drafts).toLowerCase(), in MessagingController()
142 mContext.getString(R.string.mailbox_name_server_trash).toLowerCase(), in MessagingController()
145 mContext.getString(R.string.mailbox_name_server_sent).toLowerCase(), in MessagingController()
148 mContext.getString(R.string.mailbox_name_server_junk).toLowerCase(), in MessagingController()
268 EmailContent.Account.restoreAccountWithId(mContext, accountId); in listFolders()
280 Store store = Store.getInstance(account.getStoreUri(mContext), mContext, null); in listFolders()
[all …]
/packages/apps/GoogleSearch/src/com/android/googlesearch/
DLocationUtils.java27 private Context mContext; field in LocationUtils
46 mContext = context; in LocationUtils()
56 return mContext.getPackageManager().getPackageInfo( in systemHasGoogleSettingsProvider()
68 return android.provider.Settings.Secure.getInt(mContext.getContentResolver(), in userRespondedToLocationOptIn()
83 mContext.startActivity(consent); in showLocationOptIn()
98 return android.provider.Settings.Secure.getInt(mContext.getContentResolver(), in userAcceptedLocationOptIn()
/packages/apps/Mms/src/com/android/mms/transaction/
DSmsMessageSender.java44 private final Context mContext; field in SmsMessageSender
64 mContext = context; in SmsMessageSender()
105 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); in sendMessage()
111 uri = Sms.Outbox.addMessage(mContext.getContentResolver(), mDests[i], in sendMessage()
114 SqliteWrapper.checkSQLiteException(mContext, e); in sendMessage()
123 mContext, 0, in sendMessage()
127 mContext, in sendMessage()
132 mContext, 0, in sendMessage()
135 mContext, in sendMessage()
174 cursor = SqliteWrapper.query(mContext, mContext.getContentResolver(), in getOutgoingServiceCenter()
DRetryScheduler.java51 private final Context mContext; field in RetryScheduler
55 mContext = context; in RetryScheduler()
69 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in isConnected()
102 setRetryAlarm(mContext); in update()
114 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, in scheduleRetry()
129 DefaultRetryScheme scheme = new DefaultRetryScheme(mContext, retryIndex); in scheduleRetry()
160 … Cursor c = SqliteWrapper.query(mContext, mContext.getContentResolver(), uri, in scheduleRetry()
176 MessagingNotification.notifyDownloadFailed(mContext, threadId); in scheduleRetry()
185 SqliteWrapper.update(mContext, mContext.getContentResolver(), in scheduleRetry()
187 MessagingNotification.notifySendFailed(mContext, true); in scheduleRetry()
[all …]
DSendTransaction.java96 PduPersister persister = PduPersister.getPduPersister(mContext); in run()
106 SqliteWrapper.update(mContext, mContext.getContentResolver(), in run()
116 new PduComposer(mContext, sendReq).make()); in run()
147 SqliteWrapper.update(mContext, mContext.getContentResolver(), in run()
155 SqliteWrapper.update(mContext, mContext.getContentResolver(), in run()
DRetrieveTransaction.java129 if (isDuplicateMessage(mContext, retrieveConf)) { in run()
136 PduPersister persister = PduPersister.getPduPersister(mContext); in run()
144 updateContentLocation(mContext, msgUri, mContentLocation); in run()
148 SqliteWrapper.delete(mContext, mContext.getContentResolver(), in run()
154 Recycler.getMmsRecycler().deleteOldMessagesInSameThreadAsMessage(mContext, msgUri); in run()
215 sendPdu(new PduComposer(mContext, acknowledgeInd).make(), mContentLocation); in sendAcknowledgeInd()
217 sendPdu(new PduComposer(mContext, acknowledgeInd).make()); in sendAcknowledgeInd()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotification.java40 Context mContext; field in DownloadNotification
96 mContext = ctx; in DownloadNotification()
97 mNotificationMgr = (NotificationManager) mContext in DownloadNotification()
112 Cursor c = mContext.getContentResolver().query( in updateActiveNotification()
148 title = mContext.getResources().getString( in updateActiveNotification()
180 title.append(mContext.getString(R.string.notification_filename_separator)); in updateActiveNotification()
184 title.append(mContext.getString(R.string.notification_filename_extras, in updateActiveNotification()
208 n.contentIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0); in updateActiveNotification()
217 Cursor c = mContext.getContentResolver().query( in updateCompletedNotification()
257 title = mContext.getResources().getString( in updateCompletedNotification()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DPhoneDisambigDialog.java48 private Context mContext; field in PhoneDisambigDialog
60 mContext = context; in PhoneDisambigDialog()
67 mPhonesAdapter = new PhonesAdapter(mContext, mPhoneItemList); in PhoneDisambigDialog()
69 LayoutInflater inflater = (LayoutInflater) mContext.getSystemService( in PhoneDisambigDialog()
77 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(mContext). in PhoneDisambigDialog()
107 mContext.getContentResolver().update(ContentUris. in onClick()
112 ContactsUtils.initiateSms(mContext, phone); in onClick()
114 ContactsUtils.initiateCall(mContext, phone); in onClick()
156 if (PhoneNumberUtils.compare(PhoneDisambigDialog.this.mContext, in shouldCollapseWith()
/packages/apps/Settings/src/com/android/settings/
DAirplaneModeEnabler.java35 private final Context mContext; field in AirplaneModeEnabler
56 mContext = context; in AirplaneModeEnabler()
61 mPhoneStateReceiver = new PhoneStateIntentReceiver(mContext, mHandler); in AirplaneModeEnabler()
69 mCheckBoxPref.setChecked(isAirplaneModeOn(mContext)); in resume()
92 Settings.System.putInt(mContext.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, in setAirplaneModeOn()
98 mContext.sendBroadcast(intent); in setAirplaneModeOn()
109 mContext.getString(R.string.airplane_mode_summary)); in onAirplaneModeChanged()
/packages/apps/GlobalSearch/src/com/android/globalsearch/
DSuggestionFactoryImpl.java40 private final Context mContext; field in SuggestionFactoryImpl
54 mContext = context; in SuggestionFactoryImpl()
56 mContext.getTheme().resolveAttribute( in SuggestionFactoryImpl()
59 mCorpusItemBackgroundColor = mContext.getResources().getColor(colorValue.resourceId); in SuggestionFactoryImpl()
81 String appCount = mContext.getString(R.string.result_count_count_separator, in getMoreEntry()
86 desc = mContext.getString(R.string.result_count_app_separator, desc, appCount); in getMoreEntry()
94 .title("<i>" + mContext.getString(R.string.more_results) + "</i>") in getMoreEntry()
142 final Resources resources = mContext.getResources(); in getCorpusEntry()
169 String suggestion = mContext.getString(R.string.search_the_web, query); in createSearchTheWebSuggestion()
215 .title(mContext.getString(R.string.go_to_website_title)) in createGoToWebsiteSuggestion()
[all …]
DSuggestionSources.java55 private final Context mContext; field in SuggestionSources
79 mContext = context; in SuggestionSources()
180 mContext.registerReceiver(mBroadcastReceiver, in load()
184 mContext.registerReceiver(mBroadcastReceiver, in load()
188 mContext.getContentResolver().registerContentObserver( in load()
207 mContext.unregisterReceiver(mBroadcastReceiver); in close()
208 mContext.getContentResolver().unregisterContentObserver( in close()
221 String[] trustedPackages = mContext.getResources().getStringArray( in loadTrustedPackages()
251 SuggestionSource source = new SearchableSuggestionSource(mContext, searchable); in addExternalSources()
312 if (Settings.System.getInt(mContext.getContentResolver(), in findWebSearchSource()
[all …]
/packages/apps/Browser/src/com/android/browser/
DWebStorageSizeManager.java109 private final Context mContext; field in WebStorageSizeManager
190 mContext = ctx; in WebStorageSizeManager()
377 if (mContext == null) { in scheduleOutOfSpaceNotification()
385 CharSequence title = mContext.getString( in scheduleOutOfSpaceNotification()
387 CharSequence text = mContext.getString( in scheduleOutOfSpaceNotification()
390 Intent intent = new Intent(mContext, WebsiteSettingsActivity.class); in scheduleOutOfSpaceNotification()
392 PendingIntent.getActivity(mContext, 0, intent, 0); in scheduleOutOfSpaceNotification()
394 notification.setLatestEventInfo(mContext, title, text, contentIntent); in scheduleOutOfSpaceNotification()
399 (NotificationManager) mContext.getSystemService(ns); in scheduleOutOfSpaceNotification()
/packages/apps/Email/tests/src/com/android/email/activity/setup/
DAccountSettingsTests.java43 private Context mContext; field in AccountSettingsTests
60 mContext = this.getInstrumentation().getTargetContext(); in setUp()
70 mContext.getContentResolver().delete(uri, null, null); in tearDown()
154 mAccount.setStoreUri(mContext, storeUri); in getTestIntent()
155 mAccount.setSenderUri(mContext, senderUri); in getTestIntent()
156 mAccount.save(mContext); in getTestIntent()
/packages/apps/Settings/src/com/android/settings/vpn/
DAuthenticationActor.java47 private Context mContext; field in AuthenticationActor
52 mContext = context; in AuthenticationActor()
71 Context c = mContext; in validateInputs()
102 View v = View.inflate(mContext, R.layout.vpn_connect_dialog_view, null); in createConnectView()
117 return mContext; in getContext()
138 mContext.unbindService(this); in connect()
163 mContext.unbindService(this); in disconnect()
190 mContext.unbindService(this); in checkStatus()
197 mContext.unbindService(this); in checkStatus()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowEditor.java42 private final Context mContext; field in SlideshowEditor
46 mContext = context; in SlideshowEditor()
73 mContext, ContentType.TEXT_PLAIN, "text_" + size + ".txt", in addNewSlide()
130 text = new TextModel(mContext, in changeText()
143 mContext, newImage, mModel.getLayout().getImageRegion())); in changeImage()
147 AudioModel audio = new AudioModel(mContext, newAudio); in changeAudio()
154 VideoModel video = new VideoModel(mContext, newVideo, in changeVideo()
DMessageListItem.java136 String msgSizeText = mContext.getString(R.string.message_size_label) in bindNotifInd()
138 + mContext.getString(R.string.kilobyte); in bindNotifInd()
163 Intent intent = new Intent(mContext, TransactionService.class); in bindNotifInd()
167 mContext.startService(intent); in bindNotifInd()
206 "MmsThumbnailPresenter", mContext, in bindCommonMessage()
275 CharSequence template = mContext.getResources().getText(R.string.name_colon); in formatMessage()
283 buf.append(mContext.getResources().getString(R.string.inline_subject, subject)); in formatMessage()
308 int color = mContext.getResources().getColor(R.color.timestamp_color); in formatMessage()
365 MessageUtils.viewMmsMessageAttachment(mContext, mi.mMessageUri, mi.mSlideshow); in onClick()
378 intent.putExtra(Browser.EXTRA_APPLICATION_ID, mContext.getPackageName()); in onMessageListItemClick()
[all …]
/packages/apps/Mms/src/com/android/mms/data/
DWorkingMessage.java69 private final Context mContext; field in WorkingMessage
167 mContext = activity; in WorkingMessage()
168 mContentResolver = mContext.getContentResolver(); in WorkingMessage()
239 mSlideshow = SlideshowModel.createFromMessageUri(mContext, uri); in loadFromUri()
277 mText = readDraftSmsMessage(mContext, threadId, conv); in loadFromConversation()
284 Uri uri = readDraftMmsMessage(mContext, threadId, sb); in loadFromConversation()
363 SlideshowEditor slideShowEditor = new SlideshowEditor(mContext, mSlideshow); in setAttachment()
400 SlideshowModel slideshow = SlideshowModel.createNew(mContext); in ensureSlideshow()
427 media = new ImageModel(mContext, uri, mSlideshow.getLayout().getImageRegion()); in changeMedia()
429 media = new VideoModel(mContext, uri, mSlideshow.getLayout().getImageRegion()); in changeMedia()
[all …]

123456789