Searched refs:mContext (Results 126 - 150 of 509) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditor.java46 protected Context mContext; field in class:Editor
145 mContext = context;
155 LayoutInflater inflater = (LayoutInflater) mContext.getSystemService
225 s = mContext.getString(mLocalRepresentation.getTextId());
227 mButton.setText(calculateUserMessage(mContext, s, ""));
237 String text = mContext.getString(representation.getTextId()).toUpperCase();
260 PopupMenu pmenu = new PopupMenu(mContext, button);
263 menu.add(Menu.NONE, Menu.FIRST + i, 0, mContext.getString(strId[i]));
/packages/apps/Mms/src/com/android/mms/transaction/
H A DMmsMessageSender.java49 private final Context mContext; field in class:MmsMessageSender
61 mContext = context;
75 PduPersister p = PduPersister.getPduPersister(mContext);
116 SqliteWrapper.insert(mContext, mContext.getContentResolver(),
124 mContext.startService(new Intent(mContext, TransactionService.class));
131 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);
H A DSendTransaction.java92 PduPersister persister = PduPersister.getPduPersister(mContext);
102 SqliteWrapper.update(mContext, mContext.getContentResolver(),
114 new PduComposer(mContext, sendReq).make());
145 SqliteWrapper.update(mContext, mContext.getContentResolver(),
153 SqliteWrapper.update(mContext, mContext.getContentResolver(),
H A DTransaction.java39 protected Context mContext; field in class:Transaction
63 mContext = context;
176 mContext, token,
196 mContext, SendingProgressTokenManager.NO_TOKEN,
212 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
/packages/apps/Mms/src/com/android/mms/ui/
H A DConversationListItem.java113 buf.append(mContext.getResources().getString(R.string.message_count_format,
116 mContext.getResources().getColor(R.color.message_count_color)),
120 buf.append(mContext.getResources().getString(R.string.draft_separator));
123 buf.append(mContext.getResources().getString(R.string.has_draft));
125 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before,
128 mContext.getResources().getColor(R.drawable.text_color_red)),
144 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage);
234 Drawable background = mContext.getResources().getDrawable(backgroundId);
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DPackageIconLoaderTest.java56 return new PackageIconLoader(mContext, mContext.getPackageName(), mThread.getHandler(),
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatterySipper.java34 final Context mContext; field in class:BatterySipper
67 mContext = context;
74 icon = mContext.getResources().getDrawable(iconId);
110 PackageManager pm = mContext.getPackageManager();
116 name = mContext.getResources().getString(R.string.process_kernel_label);
118 name = mContext.getResources().getString(R.string.process_mediaserver_label);
121 icon = mContext.getResources().getDrawable(iconId);
136 PackageManager pm = mContext.getPackageManager();
/packages/apps/VideoEditor/src/com/android/videoeditor/
H A DTransitionsAdapter.java77 (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
101 return BitmapFactory.decodeResource(mContext.getResources(),
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DRawContactReadOnlyEditorView.java136 CharSequence accountType = type.getDisplayLabel(mContext);
137 mAccountTypeTextView.setText(mContext.getString(R.string.external_profile_title,
142 CharSequence accountType = type.getDisplayLabel(mContext);
144 accountType = mContext.getString(R.string.account_phone);
149 mContext.getString(R.string.from_account_format, mAccountName));
154 mAccountTypeTextView.setText(mContext.getString(R.string.account_type_format,
157 mAccountTypeTextView.setTextColor(mContext.getResources().getColor(
162 mAccountIcon.setImageDrawable(type.getDisplayIcon(mContext));
181 mContext.getString(R.string.missing_name));
191 Toast.makeText(mContext, mContex
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DBrowserBookmarksAdapter.java38 Context mContext; field in class:BrowserBookmarksAdapter
48 mContext = context;
65 bindGridView(view, mContext, object);
73 return mContext.getText(R.string.other_bookmarks);
117 item.thumbnail = new BitmapDrawable(mContext.getResources(), thumbnail);
H A DHttpAuthenticationDialog.java34 private final Context mContext; field in class:HttpAuthenticationDialog
50 mContext = context;
111 LayoutInflater factory = LayoutInflater.from(mContext);
126 String title = mContext.getText(R.string.sign_in_to).toString().replace(
129 mDialog = new AlertDialog.Builder(mContext)
H A DSystemAllowGeolocationOrigins.java45 private final Context mContext; field in class:SystemAllowGeolocationOrigins
51 mContext = context.getApplicationContext();
62 mContext.getContentResolver().registerContentObserver(uri, false, mSettingObserver);
72 mContext.getContentResolver().unregisterContentObserver(mSettingObserver);
158 String value = Settings.Secure.getString(mContext.getContentResolver(),
H A DWallpaperHandler.java49 private Context mContext; field in class:WallpaperHandler
55 mContext = context;
71 mWallpaperProgress = new ProgressDialog(mContext);
73 mWallpaperProgress.setMessage(mContext.getResources()
85 WallpaperManager wm = WallpaperManager.getInstance(mContext);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DProviderStatusWatcher.java75 private final Context mContext; field in class:ProviderStatusWatcher
108 mContext = context;
142 mContext.getContentResolver()
164 mContext.getContentResolver().unregisterContentObserver(this);
230 Cursor cursor = mContext.getContentResolver().query(ProviderStatus.CONTENT_URI,
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
H A DContactDeletionInteractionTest.java66 private ContactsMockContext mContext; field in class:ContactDeletionInteractionTest
82 mContext = new ContactsMockContext(getInstrumentation().getTargetContext());
84 services.setContentResolver(mContext.getContentResolver());
106 mContactsProvider = mContext.getContactsProvider();
164 mContext.verify();
/packages/apps/Email/src/com/android/email/activity/
H A DMailboxFinder.java43 private final Context mContext; field in class:MailboxFinder
78 mContext = context.getApplicationContext();
175 if (Account.isSecurityHold(mContext, mAccountId)) {
181 long mailboxId = Mailbox.findMailboxOfType(mContext, mAccountId, mMailboxType);
188 final boolean accountExists = Account.isValidId(mContext, mAccountId);
/packages/apps/Phone/src/com/android/phone/
H A DOtaStartupReceiver.java48 private Context mContext; field in class:OtaStartupReceiver
72 OtaUtils.maybeDoOtaCall(mContext, mHandler, MIN_READY);
91 OtaUtils.maybeDoOtaCall(mContext, mHandler, MIN_READY);
102 mContext = context;
147 OtaUtils.maybeDoOtaCall(mContext, mHandler, MIN_READY);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoPriorityResolver.java65 private Context mContext; field in class:PhotoPriorityResolver
69 mContext = context;
93 final AccountManager am = AccountManager.get(mContext);
109 final PackageManager pm = mContext.getPackageManager();
117 return loadPhotoPriorityFromXml(mContext, parser);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DDefaultVoicemailNotifier.java56 private final Context mContext; field in class:DefaultVoicemailNotifier
79 mContext = context;
104 Resources resources = mContext.getResources();
155 Notification.Builder notificationBuilder = new Notification.Builder(mContext)
167 contentIntent = new Intent(mContext, CallDetailActivity.class);
171 Intent playIntent = new Intent(mContext, CallDetailActivity.class);
179 PendingIntent.getActivity(mContext, 0, playIntent, 0));
185 PendingIntent.getActivity(mContext, 0, contentIntent, 0));
198 Intent intent = new Intent(mContext, CallLogNotificationsService.class);
200 return PendingIntent.getService(mContext,
[all...]
/packages/apps/Gallery2/src/com/android/photos/
H A DMultiChoiceManager.java65 private Context mContext; field in class:MultiChoiceManager
71 mContext = activity;
92 mode.setTitle(mContext.getResources().getQuantityString(
237 mContext.startActivity(Intent.createChooser(intent, null));
243 .setClass(mContext, FilterShowActivity.class);
244 mContext.startActivity(intent);
248 .setClass(mContext, TrimVideo.class);
249 mContext.startActivity(intent);
254 uri, (Activity) mContext);
263 mContext
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DSharePopup.java56 private Context mContext; field in class:SharePopup
110 mContext = activity;
112 mMimeType = mContext.getContentResolver().getType(mUri);
142 Resources res = mContext.getResources();
215 PopupManager.getInstance(mContext).notifyShowPopup(null);
223 Util.viewUri(mUri, mContext);
238 PackageManager packageManager = mContext.getPackageManager();
256 int width = mContext.getResources().getDimensionPixelSize(R.dimen.share_item_width);
260 SimpleAdapter listItemAdapter = new MySimpleAdapter(mContext, items,
280 mContext
[all...]
/packages/apps/Email/src/com/android/email/
H A DSecurityPolicy.java55 private Context mContext; field in class:SecurityPolicy
83 mContext = context.getApplicationContext();
94 mContext = context;
133 Cursor c = mContext.getContentResolver().query(Policy.CONTENT_URI,
209 mDPM = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
597 Account account = Account.restoreAccountWithId(mContext, accountId);
600 oldPolicy = Policy.restorePolicyWithId(mContext, account.mPolicyKey);
607 setAccountPolicy(mContext, account, policy, securityKey);
619 NotificationController.getInstance(mContext).showSecurityNeededNotification(account);
622 setAccountHoldFlag(mContext, accoun
[all...]
H A DMessagingController.java137 private final Context mContext; field in class:MessagingController
149 mContext = _context.getApplicationContext();
248 final Account account = Account.restoreAccountWithId(mContext, accountId);
261 TrafficStats.setThreadStatsTag(TrafficFlags.getSyncFlags(mContext, account));
265 Store store = Store.getInstance(account, mContext);
273 localFolderCursor = mContext.getContentResolver().query(
302 mContext, accountId, mailboxId);
307 mContext.getContentResolver().delete(uri, null, null);
354 TrafficStats.setThreadStatsTag(TrafficFlags.getSyncFlags(mContext, account));
361 NotificationController nc = NotificationController.getInstance(mContext);
[all...]
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DActionBarAdapter.java74 private final Context mContext; field in class:ActionBarAdapter
113 textView.setTextAppearance(mContext,
120 textView.setTextAppearance(mContext,
128 mContext = context;
131 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext);
133 mShowHomeIcon = mContext.getResources().getBoolean(R.bool.show_home_icon);
150 int searchViewWidth = mContext.getResources().getDimensionPixelSize(
163 mSearchView.setQueryHint(mContext.getString(R.string.hint_findContacts));
187 ArrayAdapter<String> navAdapter = new CustomArrayAdapter(mContext,
189 navAdapter.add(mContext
[all...]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DEasOutboxService.java92 private final Context mContext; field in class:EasOutboxService.SendMailEntity
104 mContext = context;
165 OriginalMessageInfo info = getOriginalMessageInfo(mContext, mMessage.mId);
312 Message.update(mContext, Message.CONTENT_URI, msgId, cv);
336 Message msg = Message.restoreMessageWithId(mContext, msgId);
349 referenceInfo = getOriginalMessageInfo(mContext, msgId);
362 Rfc822Output.writeTo(mContext, msgId, fileOutputStream, smartSend, true);
383 new SendMailEntity(mContext, fileStream, fileLength, modeTag, msg);
481 TrafficStats.setThreadStatsTag(TrafficFlags.getSmtpFlags(mContext, mAccount));
482 File cacheDir = mContext
[all...]

Completed in 606 milliseconds

1234567891011>>