Searched refs:mContext (Results 176 - 200 of 509) sorted by relevance

1234567891011>>

/packages/apps/Email/src/com/android/email/mail/store/
H A DExchangeStore.java53 return EmailServiceUtils.getExchangeService(mContext, null);
/packages/apps/Gallery2/src/com/android/camera/
H A DSoundClips.java118 private Context mContext; field in class:SoundClips.SoundPoolPlayer
128 mContext = context;
138 mSoundIDs[i] = mSoundPool.load(mContext, SOUND_RES[i], 1);
161 mSoundIDs[index] = mSoundPool.load(mContext, SOUND_RES[index], 1);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DEventLogLogger.java33 private final Context mContext; field in class:EventLogLogger
42 mContext = context;
44 mPackageName = mContext.getPackageName();
49 return mContext;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DAccessibilityUtils.java47 private Context mContext; field in class:AccessibilityUtils
76 mContext = context;
130 final boolean speakPassword = Settings.Secure.getInt(mContext.getContentResolver(),
196 final CharSequence text = mContext.getText(R.string.spoken_use_headphones);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DVoicemailStatusTable.java50 private final Context mContext; field in class:VoicemailStatusTable
57 mContext = context;
96 c.setNotificationUri(mContext.getContentResolver(), Status.CONTENT_URI);
125 return new DbModifierWithNotification(mTableName, db, mContext);
H A DDbModifierWithNotification.java71 private final Context mContext; field in class:DbModifierWithNotification
90 mContext = context;
94 mVoicemailPermissions = new VoicemailPermissions(mContext);
126 mContext.getContentResolver().notifyChange(Calls.CONTENT_URI, null, false);
202 mContext.getContentResolver().notifyChange(notificationUri, null, true);
225 mContext.sendBroadcast(intent, permissionNeeded);
242 mContext.getPackageManager().queryBroadcastReceivers(intent, 0)) {
258 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller));
/packages/apps/Calendar/src/com/android/calendar/month/
H A DMonthByWeekAdapter.java104 mGestureDetector = new GestureDetector(mContext, new CalendarGestureListener());
105 mController = CalendarController.getInstance(mContext);
106 mHomeTimeZone = Utils.getTimeZone(mContext, null);
213 v = new MonthWeekEventsView(mContext);
219 v = new MonthWeekEventsView(mContext);
279 mFirstDayOfWeek = Utils.getFirstDayOfWeek(mContext);
280 mShowWeekNumber = Utils.getShowWeekNumber(mContext);
281 mHomeTimeZone = Utils.getTimeZone(mContext, null);
282 mOrientation = mContext.getResources().getConfiguration().orientation;
293 mController.sendEvent(mContext, EventTyp
[all...]
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupDetailFragment.java96 private Context mContext; field in class:GroupDetailFragment
131 mContext = activity;
132 mAccountTypeManager = AccountTypeManager.getInstance(mContext);
145 mContext = null;
174 if (mContext != null) {
176 mPhotoManager = ContactPhotoManager.getInstance(mContext);
241 return new GroupMetaDataLoader(mContext, mGroupUri);
273 return GroupMemberLoader.constructLoaderForGroupDetailQuery(mContext, mGroupId);
327 accountType.getDisplayLabel(mContext));
364 mGroupSourceView = GroupDetailDisplayUtils.getNewGroupSourceView(mContext);
[all...]
/packages/apps/Email/src/com/android/email/activity/
H A DActionBarController.java75 private final Context mContext; field in class:ActionBarController
213 mContext = context;
218 mAllFoldersLabel = mContext.getResources().getString(
220 mAccountsSelectorAdapter = new AccountSelectorAdapter(mContext);
240 mAccountDropdown = new AccountDropdownPopup(mContext);
264 final LayoutInflater inflater = LayoutInflater.from(mContext);
412 return AccountSelectorAdapter.createLoader(mContext, accountId, mailboxId);
455 mCallback.onAccountSelected(Account.getDefaultAccountId(mContext));
483 title.setSpan(new TextAppearanceSpan(mContext, R.style.subject_action_bar_title_text),
518 mContext, mCurso
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DSlideView.java108 mImageView = new ImageView(mContext);
141 mVideoView = new VideoView(mContext);
218 mAudioPlayer.setDataSource(mContext, audio);
231 mScrollText = new ScrollView(mContext);
240 mTextView = new TextView(mContext);
462 mScrollViewPort = new ScrollView(mContext) {
478 && !((SlideshowActivity) mContext).isFinishing()) {
485 mViewPort = new LinearLayout(mContext);
519 mTextView = new TextView(mContext);
527 mImageView = new ImageView(mContext);
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DPageDialogsHandler.java39 private Context mContext; field in class:PageDialogsHandler
60 mContext = context;
90 mHttpAuthenticationDialog = new HttpAuthenticationDialog(mContext, host, realm);
140 final LayoutInflater factory = LayoutInflater.from(mContext);
164 new AlertDialog.Builder(mContext)
344 View certificateView = certificate.inflateCertificateView(mContext);
348 LayoutInflater factory = LayoutInflater.from(mContext);
386 return new AlertDialog.Builder(mContext)
H A DCrashRecoveryHandler.java56 private Context mContext; field in class:CrashRecoveryHandler
78 mContext = mController.getActivity().getApplicationContext();
93 File state = new File(mContext.getCacheDir(), STATE_FILE);
161 File stateFile = new File(mContext.getCacheDir(), STATE_FILE);
230 File stateJournal = new File(mContext.getCacheDir(),
235 File stateFile = new File(mContext.getCacheDir(),
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
H A DWorldClockAdapter.java46 private final Context mContext; field in class:WorldClockAdapter
53 mContext = context;
65 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);
67 mContext.getResources().getString(R.string.default_clock_style));
93 SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(mContext);
96 mContext.getResources().getString(R.string.home_label), homeTZ, null);
117 SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(mContext);
260 dayOfWeek.setText(mContext.getString(R.string.world_day_of_week_label,
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountServerBaseFragment.java60 protected Context mContext; field in class:AccountServerBaseFragment
177 mContext = activity;
192 (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
222 mContext = getActivity();
266 InputMethodManager imm = (InputMethodManager)mContext.
338 Account account = Utility.findExistingAccount(mContext, mAccountId,
404 HostAuth sendAuth = account.getOrCreateHostAuthSend(mContext);
407 HostAuth recvAuth = account.getOrCreateHostAuthRecv(mContext);
/packages/apps/Mms/tests/src/com/android/mms/util/
H A DSmileyParserUnitTests.java58 compareImageSpans(new ImageSpan(mContext,
62 compareImageSpans(new ImageSpan(mContext,
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPopupList.java58 private final Context mContext; field in class:PopupList
70 mContext = context;
155 PopupWindow popup = new PopupWindow(mContext);
158 popup.setBackgroundDrawable(mContext.getResources().getDrawable(
161 mContentList = new ListView(mContext, null,
198 convertView = LayoutInflater.from(mContext)
/packages/apps/Mms/src/com/android/mms/model/
H A DMediaModel.java45 protected Context mContext; field in class:MediaModel
69 mContext = context;
84 mContext = context;
217 retriever.setDataSource(mContext, mUri);
232 ContentResolver cr = mContext.getContentResolver();
302 mContext.sendBroadcast(i);
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DAlertServiceTest.java402 AlertService.generateAlerts(mContext, ntm, new MockAlarmManager(mContext), prefs,
411 MockAlarmManager alarmMgr = new MockAlarmManager(mContext);
422 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime,
431 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime,
439 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime,
448 MockAlarmManager alarmMgr = new MockAlarmManager(mContext);
491 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(),
504 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(),
513 AlertService.generateAlerts(mContext, nt
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppObexServerSession.java71 private Context mContext; field in class:BluetoothOppObexServerSession
101 mContext = context;
103 PowerManager pm = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
189 boolean isWhitelisted = BluetoothOppManager.getInstance(mContext).
292 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values);
298 mContext.sendBroadcast(in);
359 Constants.updateShareStatus(mContext, mInfo.mId, status);
370 mContext.getContentResolver().update(contentUri, updateValues, null, null);
379 Constants.updateShareStatus(mContext, mInfo.mId, status);
416 Constants.updateShareStatus(mContext, mInf
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DControllerProviderOpsTests.java49 private Context mContext; field in class:ControllerProviderOpsTests
61 mContext = getContext();
62 mTestController = new TestController(mProviderContext, mContext);
88 assertEquals("", Controller.getMailboxServerName(mContext, -1));
90 assertEquals("Inbox", Controller.getMailboxServerName(mContext, Mailbox.TYPE_INBOX));
91 assertEquals("Outbox", Controller.getMailboxServerName(mContext, Mailbox.TYPE_OUTBOX));
92 assertEquals("Trash", Controller.getMailboxServerName(mContext, Mailbox.TYPE_TRASH));
93 assertEquals("Sent", Controller.getMailboxServerName(mContext, Mailbox.TYPE_SENT));
94 assertEquals("Junk", Controller.getMailboxServerName(mContext, Mailbox.TYPE_JUNK));
99 assertEquals("Inbox", Controller.getMailboxServerName(mContext, Mailbo
[all...]
/packages/apps/Email/src/com/android/email/service/
H A DAttachmentDownloadService.java99 /*package*/ Context mContext; field in class:AttachmentDownloadService
354 Cursor c = mContext.getContentResolver().query(lookupUri, AttachmentInfo.PROJECTION,
357 File cacheDir = mContext.getCacheDir();
362 Account account = Account.restoreAccountWithId(mContext, accountKey);
366 EmailContent.delete(mContext, Attachment.CONTENT_URI, id);
369 AttachmentInfo info = new AttachmentInfo(mContext, c);
371 Attachment att = Attachment.restoreAttachmentWithId(mContext, id);
380 DownloadRequest req = new DownloadRequest(mContext, att);
475 Intent intent = new Intent(mContext, Watchdog.class);
477 PendingIntent.getBroadcast(mContext,
[all...]
/packages/apps/Browser/src/com/android/browser/widget/
H A DBookmarkThumbnailWidgetService.java164 private Context mContext; field in class:BookmarkThumbnailWidgetService.BookmarkFactory
171 mContext = context.getApplicationContext();
177 mPreferences = getWidgetState(mContext, mWidgetId);
189 mPreferences = getWidgetState(mContext, mWidgetId);
212 mContext.getPackageName(), R.layout.bookmarkthumbnailwidget_item);
229 views = new RemoteViews(mContext.getPackageName(),
232 views = new RemoteViews(mContext.getPackageName(),
314 deleteWidgetState(mContext, mWidgetId);
344 mBookmarks = mContext.getContentResolver().query(uri, PROJECTION,
350 Cursor c = mContext
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DDeleteEventHelper.java65 private Context mContext; field in class:DeleteEventHelper
107 mContext = context;
110 mService = new AsyncQueryService(mContext) {
270 AlertDialog dialog = new AlertDialog.Builder(mContext)
278 mContext.getText(android.R.string.ok),
283 mContext.getText(android.R.string.ok),
292 Resources res = mContext.getResources();
321 ArrayAdapter<String> adapter = new ArrayAdapter<String>(mContext,
323 AlertDialog dialog = new AlertDialog.Builder(mContext)
325 mContext
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetModel.java246 final Context mContext; field in class:CalendarAppWidgetModel
260 mContext = context;
278 String tz = Utils.getTimeZone(mContext, null);
365 whenString.append(Utils.formatDateRange(mContext, start, end, flags));
368 if (DateFormat.is24HourFormat(mContext)) {
374 whenString.append(Utils.formatDateRange(mContext, start, end, flags));
391 eventInfo.title = mContext.getString(R.string.no_title_label);
413 label = mContext.getString(R.string.agenda_tomorrow,
414 Utils.formatDateRange(mContext, millis, millis, flags).toString());
417 label = Utils.formatDateRange(mContext, milli
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DRawContactDeltaTests.java65 mContext = getContext();
92 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
102 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
120 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
134 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
166 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
177 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
214 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
259 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
293 final RawContact before = getRawContact(mContext, TEST_CONTACT_I
[all...]

Completed in 6637 milliseconds

1234567891011>>