Searched refs:mContext (Results 76 - 100 of 509) sorted by relevance

1234567891011>>

/packages/apps/Camera/src/com/android/camera/
H A DPreferenceInflater.java44 private Context mContext; field in class:PreferenceInflater
47 mContext = context;
51 return inflate(mContext.getResources().getXml(resId));
61 Class<?> clazz = mContext.getClassLoader().loadClass(name);
79 Object args[] = new Object[]{mContext, attrs};
/packages/apps/Gallery2/src/com/android/camera/
H A DPreferenceInflater.java44 private Context mContext; field in class:PreferenceInflater
47 mContext = context;
51 return inflate(mContext.getResources().getXml(resId));
61 Class<?> clazz = mContext.getClassLoader().loadClass(name);
79 Object args[] = new Object[]{mContext, attrs};
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DDetailsAddressResolver.java35 private final AbstractGalleryActivity mContext; field in class:DetailsAddressResolver
48 ReverseGeocoder geocoder = new ReverseGeocoder(mContext.getAndroidContext());
58 mContext = context;
64 mAddressLookupJob = mContext.getThreadPool().submit(
85 Context context = mContext.getAndroidContext();
/packages/apps/LegacyCamera/src/com/android/camera/
H A DPreferenceInflater.java44 private Context mContext; field in class:PreferenceInflater
47 mContext = context;
51 return inflate(mContext.getResources().getXml(resId));
61 Class<?> clazz = mContext.getClassLoader().loadClass(name);
79 Object args[] = new Object[]{mContext, attrs};
/packages/apps/Nfc/src/com/android/nfc/
H A DP2pEventManager.java33 final Context mContext; field in class:P2pEventManager
48 mContext = context;
51 mNotificationManager = (NotificationManager) mContext.getSystemService(
55 final int uiModeType = mContext.getResources().getConfiguration().uiMode
105 mContext.getString(R.string.beam_handover_not_supported));
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DAbstractSource.java39 private final Context mContext; field in class:AbstractSource
47 mContext = context;
53 return mContext;
60 new PackageIconLoader(mContext, iconPackage, mUiThread, mIconLoaderExecutor));
104 return QsbApplication.get(mContext).getVoiceSearch()
H A DSearchableCorpusFactory.java36 private final Context mContext; field in class:SearchableCorpusFactory
46 mContext = context;
60 return mContext;
120 return new WebCorpus(mContext, mConfig, mSettings, executor, webSource, browserSource);
125 return new AppsCorpus(mContext, mConfig, appsSource);
130 return new SingleSourceCorpus(mContext, mConfig, source);
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupBrowseListFragment.java75 private Context mContext; field in class:GroupBrowseListFragment
114 mAdapter = new GroupBrowseListAdapter(mContext);
145 setAddAccountsVisibility(!ContactsUtils.areGroupWritableAccountsAvailable(mContext));
163 leftPadding = mContext.getResources().getDimensionPixelOffset(
166 rightPadding = mContext.getResources().getDimensionPixelOffset(
176 mContext = activity;
182 mContext = null;
200 return new GroupListLoader(mContext);
215 setAddAccountsVisibility(!ContactsUtils.areGroupWritableAccountsAvailable(mContext));
271 if (mContext
[all...]
/packages/apps/Mms/src/com/android/mms/transaction/
H A DPushReceiver.java61 private Context mContext; field in class:PushReceiver.ReceivePushTask
63 mContext = context;
80 PduPersister p = PduPersister.getPduPersister(mContext);
81 ContentResolver cr = mContext.getContentResolver();
89 threadId = findThreadId(mContext, pdu, type);
97 MessagingPreferenceActivity.getIsGroupMmsEnabled(mContext), null);
101 SqliteWrapper.update(mContext, cr, uri, values, null, null);
121 if (!isDuplicateNotification(mContext, nInd)) {
127 MessagingPreferenceActivity.getIsGroupMmsEnabled(mContext),
131 Intent svc = new Intent(mContext, TransactionServic
[all...]
H A DSmsSingleRecipientSender.java59 mDest = Conversation.verifySingleRecipient(mContext, mThreadId, mDest);
69 boolean moved = Sms.moveMessageToFolder(mContext, mUri, Sms.MESSAGE_TYPE_OUTBOX, 0);
87 mContext, 0,
91 mContext,
99 mContext,
113 sentIntents.add(PendingIntent.getBroadcast(mContext, requestCode, intent, 0));
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppNotification.java90 private Context mContext; field in class:BluetoothOppNotification
134 mContext = ctx;
135 mNotificationMgr = (NotificationManager)mContext
213 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null,
254 fileName = mContext.getString(R.string.unknown_file);
269 item.description = mContext.getString(R.string.notification_sending, fileName);
271 item.description = mContext
311 mContext.sendBroadcast(intent, Constants.HANDOVER_STATUS_PERMISSION);
316 Notification.Builder b = new Notification.Builder(mContext);
335 b.setContentIntent(PendingIntent.getBroadcast(mContext,
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DSlideshowEditor.java42 private final Context mContext; field in class:SlideshowEditor
46 mContext = context;
77 mContext, ContentType.TEXT_PLAIN, "text_" + size + ".txt",
151 text = new TextModel(mContext,
164 mContext, newImage, mModel.getLayout().getImageRegion()));
168 AudioModel audio = new AudioModel(mContext, newAudio);
175 VideoModel video = new VideoModel(mContext, newVideo,
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiEnabler.java40 private final Context mContext; field in class:WifiEnabler
69 mContext = context;
81 mContext.registerReceiver(mReceiver, mIntentFilter);
86 mContext.unregisterReceiver(mReceiver);
109 if (isChecked && !WirelessSettings.isRadioAllowed(mContext, Settings.Global.RADIO_WIFI)) {
110 Toast.makeText(mContext, R.string.wifi_in_airplane_mode, Toast.LENGTH_SHORT).show();
127 Toast.makeText(mContext, R.string.wifi_error, Toast.LENGTH_SHORT).show();
172 //setSummary(Summary.get(mContext, info.getSSID(), state));
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/
H A DPhoneNumberInteractionTest.java74 private ContactsMockContext mContext; field in class:PhoneNumberInteractionTest
80 mContext = new ContactsMockContext(getInstrumentation().getTargetContext());
81 mContactsProvider = mContext.getContactsProvider();
97 mContext, ContactDisplayUtils.INTERACTION_SMS, null);
102 Intent intent = mContext.getIntentForStartActivity();
116 mContext, ContactDisplayUtils.INTERACTION_SMS, null);
121 Intent intent = mContext.getIntentForStartActivity();
137 mContext, ContactDisplayUtils.INTERACTION_SMS, null);
142 Intent intent = mContext.getIntentForStartActivity();
178 mContext, ContactDisplayUtil
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarViewAdapter.java72 private final Context mContext; field in class:CalendarViewAdapter
82 refresh(mContext);
91 mContext = context;
189 if (Utils.getShowWeekNumber(mContext)) {
321 dayOfWeek = mContext.getString(R.string.agenda_today,
322 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime,
325 dayOfWeek = mContext.getString(R.string.agenda_yesterday,
326 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime,
329 dayOfWeek = mContext.getString(R.string.agenda_tomorrow,
330 DateUtils.formatDateRange(mContext, mFormatte
[all...]
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DHandoverTransfer.java84 final Context mContext; field in class:HandoverTransfer
108 mContext = context;
130 mNotificationManager = (NotificationManager) mContext.getSystemService(
138 mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT);
164 mimeType = BluetoothOppHandover.getMimeTypeForUri(mContext, uri);
214 Builder notBuilder = new Notification.Builder(mContext);
218 beamString = mContext.getString(R.string.beam_progress);
220 beamString = mContext.getString(R.string.beam_outgoing);
230 mContext.getString(R.string.cancel), mCancelIntent);
245 notBuilder.setTicker(mContext
[all...]
H A DBluetoothHeadsetHandover.java79 final Context mContext; field in class:BluetoothHeadsetHandover
104 mContext = context;
134 mContext.registerReceiver(mReceiver, filter);
204 toast(mContext.getString(R.string.disconnecting_headset ) + " " +
216 toast(mContext.getString(R.string.disconnected_headset) + " " + mName);
225 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET))
228 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP))
268 toast(mContext.getString(R.string.connecting_headset) + " " + mName + "...");
280 toast(mContext.getString(R.string.connected_headset) + " " + mName);
284 toast (mContext
[all...]
/packages/apps/Mms/src/com/android/mms/widget/
H A DMmsWidgetService.java66 private final Context mContext; field in class:MmsWidgetService.MmsFactory
80 mContext = context;
134 return mContext.getContentResolver().query(
143 cursor = mContext.getContentResolver().query(
225 Conversation conv = Conversation.from(mContext, mConversationCursor);
229 mContext.getPackageName(), R.layout.widget_conversation);
244 addColor(MessageUtils.formatTimeStampString(mContext, conv.getDate()),
255 from.append(mContext.getResources().getString(R.string.draft_separator));
257 from.append(mContext.getResources().getString(R.string.has_draft));
258 from.setSpan(new TextAppearanceSpan(mContext,
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DPhotoSelectionHandler.java64 protected final Context mContext; field in class:PhotoSelectionHandler
74 mContext = context;
94 mContext, mPhotoView, listener, mPhotoMode);
121 mContext, listener.getCurrentPhotoFile());
143 return mState.indexOfFirstWritableRawContact(mContext);
175 final AccountType accountType = AccountTypeManager.getInstance(mContext).getAccountType(
199 final String croppedPath = ContactPhotoUtils.pathForCroppedPhoto(mContext, fileName);
203 mContext,
213 Toast.makeText(mContext, R.string.photoPickerNotFoundText, Toast.LENGTH_LONG).show();
241 Cursor c = mContext
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetService.java123 private Context mContext; field in class: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
[all...]
/packages/apps/Email/src/com/android/email/activity/
H A DRecentMailboxManager.java79 private final Context mContext; field in class:RecentMailboxManager
91 mContext = context;
114 Cursor cursor = mContext.getContentResolver().query(Mailbox.CONTENT_URI,
144 mContext.getContentResolver().update(
158 if (EmailContent.count(mContext, Mailbox.CONTENT_URI, RECENT_SELECTION, args) == 0) {
161 long mailbox = Controller.getInstance(mContext).findOrCreateMailboxOfType(
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
H A DAbstractSyncParser.java46 protected Context mContext; field in class:AbstractSyncParser
65 mContext = mService.mContext;
66 mContentResolver = mContext.getContentResolver();
154 ExchangeService.reloadFolderList(mContext, mAccount.mId, true);
220 mMailbox.update(mContext, cv);
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DTabsAdapter.java44 private final Context mContext; field in class:TabsAdapter
61 private final Context mContext; field in class:TabsAdapter.DummyTabFactory
64 mContext = context;
69 View v = new View(mContext);
77 mContext = activity;
86 tabSpec.setContent(new DummyTabFactory(mContext));
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DCorporaAdapter.java45 private final Context mContext; field in class:CorporaAdapter
58 mContext = context;
155 return mContext.getResources().getDrawable(R.mipmap.search_app_icon);
163 return mContext.getText(R.string.corpus_label_global);
178 return (CorpusView) LayoutInflater.from(mContext).inflate(mCorpusViewRes, parent, false);
182 return (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
/packages/apps/Settings/src/com/android/settings/net/
H A DUidDetailProvider.java42 private final Context mContext; field in class:UidDetailProvider
50 mContext = context.getApplicationContext();
90 final Resources res = mContext.getResources();
91 final PackageManager pm = mContext.getPackageManager();
110 final ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService(
120 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);

Completed in 576 milliseconds

1234567891011>>