/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | AttachmentLoader.java | 47 private final Context mContext; field in class:AttachmentLoader 56 mContext = service.mContext; 61 mMessage = Message.restoreMessageWithId(mContext, mMessageId); 111 AttachmentUtilities.saveAttachment(mContext, in, mAttachment); 162 tmpFile = File.createTempFile("eas_", "tmp", mContext.getCacheDir());
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
H A D | EditorColorBorder.java | 91 if (!ParametricEditor.useCompact(mContext)) { 98 mParameterString = mContext.getString(R.string.color_border_size); 108 view.setText(mContext.getString(R.string.color_border_size)); 141 ((FilterShowActivity)mContext).onShowMenu(popupMenu); 189 if (ParametricEditor.useCompact(mContext)) { 198 mTabletUI = new EditorColorBorderTabletUI(this, mContext, editControl);
|
H A D | EditorChanSat.java | 91 paramString = mContext.getString(mMenuStrings[mode]); 100 mButton.setText(mContext.getString(R.string.editor_chan_sat_main)); 102 if (useCompact(mContext)) { 119 ((FilterShowActivity)mContext).onShowMenu(popupMenu); 125 String menuString = mContext.getString(mMenuStrings[0]); 128 mButton.setText(mContext.getString(R.string.saturation)); 134 if (useCompact(mContext)) { 165 String text = mContext.getString(rep.getTextId()).toUpperCase(); 173 if (useCompact(mContext)) { 182 (LayoutInflater) mContext [all...] |
H A D | EditorVignette.java | 84 if (useCompact(mContext)) { 131 String text = mContext.getString(rep.getTextId()).toUpperCase(); 149 paramString = mContext.getString(mMenuStrings[mode]); 158 mButton.setText(mContext.getString(R.string.vignette_main)); 160 if (useCompact(mContext)) { 177 ((FilterShowActivity)mContext).onShowMenu(popupMenu); 183 String menuString = mContext.getString(mMenuStrings[0]); 186 mButton.setText(mContext.getString(R.string.vignette_main)); 192 if (useCompact(mContext)) { 201 (LayoutInflater) mContext [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PopupList.java | 58 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 D | MediaModel.java | 45 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/UnifiedEmail/src/com/android/mail/widget/ |
H A D | WidgetConversationListItemViewBuilder.java | 51 private final Context mContext; field in class:WidgetConversationListItemViewBuilder 116 mContext = context; 163 Conversation.getSubjectAndSnippetForDisplay(mContext, filteredSubject, snippet)); 180 mContext.getPackageName(), R.layout.widget_conversation_list_item); 197 if (mContext.getResources().getBoolean(R.bool.display_folder_colors_in_widget)) { 198 mFolderDisplayer = new WidgetFolderDisplayer(mContext);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
H A D | AlertServiceTest.java | 402 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 D | BluetoothOppObexServerSession.java | 71 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 D | ControllerProviderOpsTests.java | 49 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/Nfc/src/com/android/nfc/ |
H A D | NfcService.java | 250 Context mContext; field in class:NfcService 297 mContext.enforceCallingOrSelfPermission(NFC_PERM, NFC_PERM_ERROR); 450 mContext = nfcApplication; 451 mContentResolver = mContext.getContentResolver(); 452 mDeviceHost = new NativeNfcManager(mContext, this); 454 mHandoverManager = new HandoverManager(mContext); 457 isNfcProvisioningEnabled = mContext.getResources().getBoolean( 470 mNfcDispatcher = new NfcDispatcher(mContext, mHandoverManager, mInProvisionMode); 471 mP2pLinkManager = new P2pLinkManager(mContext, mHandoverManager, 474 mSecureElement = new NativeNfcSecureElement(mContext); [all...] |
H A D | NfcDispatcher.java | 62 final Context mContext; field in class:NfcDispatcher 76 mContext = context; 78 mTechListFilters = new RegisteredComponentCache(mContext, 217 DispatchInfo dispatch = new DispatchInfo(mContext, tag, message); 272 overrideIntent.send(mContext, Activity.RESULT_OK, intent); 285 overrideIntent.send(mContext, Activity.RESULT_OK, intent); 297 overrideIntent.send(mContext, Activity.RESULT_OK, intent); 368 pm = mContext.createPackageContextAsUser("android", 0, 421 pm = mContext.createPackageContextAsUser("android", 0, 450 Intent intent = new Intent(mContext, TechListChooserActivit [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
H A D | BookmarkThumbnailWidgetService.java | 164 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 D | DeleteEventHelper.java | 65 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 D | CalendarAppWidgetModel.java | 246 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/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ShortcutIntentBuilder.java | 82 private final Context mContext; field in class:ShortcutIntentBuilder 111 mContext = context; 151 mContentType = mContext.getContentResolver().getType(mUri); 164 ContentResolver resolver = mContext.getContentResolver(); 186 ContentResolver resolver = mContext.getContentResolver(); 218 ContentResolver resolver = mContext.getContentResolver(); 247 bitmap = ((BitmapDrawable) mContext.getResources().getDrawableForDensity( 280 intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, mContext.getResources().getString( 343 Drawable overlay = mContext.getResources().getDrawableForDensity( 359 final Resources r = mContext [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
H A D | RawContactDeltaTests.java | 65 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...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | NotificationStation.java | 90 private Context mContext; field in class:NotificationStation 105 mContext = activity; 106 mPm = mContext.getPackageManager(); 111 new ComponentName(mContext.getPackageName(), 142 mAdapter = new NotificationHistoryAdapter(mContext); 150 mContext.unregisterReceiver(mPackageReceiver); 166 mContext.registerReceiver(mPackageReceiver , filter); 199 StatusBarNotification[] active = mNoMan.getActiveNotifications(mContext.getPackageName()); 200 StatusBarNotification[] dismissed = mNoMan.getHistoricalNotifications(mContext.getPackageName(), 50); 261 r = mContext [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadNotifier.java | 62 private final Context mContext; field in class:DownloadNotifier 89 mContext = context; 125 final Resources res = mContext.getResources(); 141 final Notification.Builder builder = new Notification.Builder(mContext); 167 uri, mContext, DownloadReceiver.class); 170 builder.setContentIntent(PendingIntent.getBroadcast(mContext, 191 final Intent intent = new Intent(action, uri, mContext, DownloadReceiver.class); 194 builder.setContentIntent(PendingIntent.getBroadcast(mContext, 198 uri, mContext, DownloadReceiver.class); 199 builder.setDeleteIntent(PendingIntent.getBroadcast(mContext, [all...] |
/packages/apps/Email/src/com/android/email/service/ |
H A D | AttachmentDownloadService.java | 108 /*package*/ Context mContext; field in class:AttachmentDownloadService 360 } else if (Attachment.restoreAttachmentWithId(mContext, req.attachmentId) == null) { 389 Cursor c = mContext.getContentResolver().query(lookupUri, 393 File cacheDir = mContext.getCacheDir(); 398 Account account = Account.restoreAccountWithId(mContext, att.mAccountKey); 402 EmailContent.delete(mContext, Attachment.CONTENT_URI, att.mId); 405 AttachmentInfo info = new AttachmentInfo(mContext, att); 418 DownloadRequest req = new DownloadRequest(mContext, att); 513 Intent intent = new Intent(mContext, Watchdog.class); 515 PendingIntent.getBroadcast(mContext, [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | ContactEditorFragment.java | 227 private Context mContext; field in class:ContactEditorFragment 350 mContext = activity; 351 mEditorUtils = ContactEditorUtils.getInstance(mContext); 525 AccountType accountType = rawContact.getAccountType(mContext); 543 if (!contact.isUserProfile() && !contact.isWritableContact(mContext)) { 608 final AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext); 613 RawContactModifier.parseExtras(mContext, type, state, extras); 630 Intent intent = new Intent(mContext, ContactEditorAccountsChangedActivity.class); 651 AccountTypeManager.getInstance(mContext).getAccounts(true); 669 final AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext); [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | AccountTypeManager.java | 194 private Context mContext; field in class:AccountTypeManagerImpl 230 ContactListFilterController.getInstance(mContext).checkFilterValidity(true); 290 mContext = context; 293 mAccountManager = AccountManager.get(mContext); 318 mContext.registerReceiver(mBroadcastReceiver, filter); 322 mContext.registerReceiver(mBroadcastReceiver, sdFilter); 327 mContext.registerReceiver(mBroadcastReceiver, filter); 419 accountType = new GoogleAccountType(mContext, auth.packageName); 421 accountType = new ExchangeAccountType(mContext, auth.packageName, type); 426 accountType = new ExternalAccountType(mContext, aut [all...] |
/packages/apps/Browser/src/com/android/browser/homepages/ |
H A D | RequestHandler.java | 53 Context mContext;
field in class:RequestHandler 63 mContext = context.getApplicationContext();
110 Template t = Template.getCachedTemplate(mContext, R.raw.most_visited);
111 Cursor historyResults = mContext.getContentResolver().query(
117 Cursor bookmarkResults = mContext.getContentResolver().query(
162 Template t = Template.getCachedTemplate(mContext, R.raw.folder_view);
235 Resources res = mContext.getResources();
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
H A D | PeopleActivityTest.java | 79 private ContactsMockContext mContext; field in class:PeopleActivityTest 89 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); 90 mContactsProvider = mContext.getContactsProvider(); 91 mSettingsProvider = mContext.getSettingsProvider(); 93 services.setContentResolver(mContext.getContentResolver()); 127 if (!PhoneCapabilityTester.isUsingTwoPanes(mContext)) return; 156 mContext.verify();
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
H A D | EasSync.java | 107 final List<MessageStateChange> changes = MessageStateChange.getChanges(mContext, mAccountId, 124 final Cursor mailboxCursor = mContext.getContentResolver().query( 161 final ContentResolver cr = mContext.getContentResolver(); 187 final Account account = Account.restoreAccountWithId(mContext, mAccountId); 192 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId); 196 final EmailSyncParser parser = new EmailSyncParser(mContext, mContext.getContentResolver(),
|