/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
VersionedPrefs.java | 42 private final Context mContext; 62 mContext = context.getApplicationContext(); 83 return mContext; 119 return MailPrefs.get(mContext).hasMigrationCompleted(); 123 MailPrefs.get(mContext).setMigrationComplete();
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
HtmlConversationTemplates.java | 95 private Context mContext; 101 mContext = context; 200 append(sConversationLower, contentReadyClass, mContext.getString(R.string.hide_elided), 201 mContext.getString(R.string.show_elided), docBaseUri, conversationBaseUri, 232 mContext.getResources().openRawResource(id), "UTF-8");
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorFragment.java | 227 private Context mContext; 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...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContextWrapperTest.java | 87 private Context mContext; 102 mContext = getContext(); 103 mContextWrapper = new ContextWrapper(mContext); 130 new ContextWrapper(mContext); 405 Intent intent = new Intent(mContext, ContextWrapperStubActivity.class); 439 assertSame(mContext.getApplicationContext(), mContextWrapper.getApplicationContext()); 446 sp = PreferenceManager.getDefaultSharedPreferences(mContext); 460 bindExpectResult(mContextWrapper, new Intent(mContext, MockContextWrapperService.class)); 485 assertSame(mContext.getContentResolver(), mContextWrapper.getContentResolver()); 489 MockContextWrapper testContextWrapper = new MockContextWrapper(mContext); [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetHostView.java | 78 Context mContext; 117 mContext = context; 153 Rect padding = getDefaultPaddingForWidget(mContext, info.provider, null); 277 padding = getDefaultPaddingForWidget(mContext, mInfo.provider, padding); 289 AppWidgetManager widgetManager = AppWidgetManager.getInstance(mContext); 318 AppWidgetManager.getInstance(mContext).updateAppWidgetOptions(mAppWidgetId, options); 327 final Context context = mRemoteContext != null ? mRemoteContext : mContext; 390 remoteViews.reapply(mContext, mView, mOnClickHandler); 402 content = remoteViews.apply(mContext, this, mOnClickHandler); 472 if (packageName == null) return mContext; [all...] |
/frameworks/base/services/java/com/android/server/ |
BatteryService.java | 102 private final Context mContext; 141 mContext = context; 146 mCriticalBatteryLevel = mContext.getResources().getInteger( 148 mLowBatteryWarningLevel = mContext.getResources().getInteger( 150 mLowBatteryCloseWarningLevel = mContext.getResources().getInteger( 152 mShutdownBatteryTemperature = mContext.getResources().getInteger( 255 mContext.startActivityAsUser(intent, UserHandle.CURRENT); 274 mContext.startActivityAsUser(intent, UserHandle.CURRENT); 412 mContext.sendBroadcastAsUser(statusIntent, UserHandle.ALL); 422 mContext.sendBroadcastAsUser(statusIntent, UserHandle.ALL) [all...] |
LocationManagerService.java | 133 private final Context mContext; 198 mContext = context; 211 mPackageManager = mContext.getPackageManager(); 214 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 220 mLocationFudger = new LocationFudger(mContext, mLocationHandler); 221 mBlacklist = new LocationBlacklist(mContext, mLocationHandler); 223 mGeofenceManager = new GeofenceManager(mContext, mBlacklist); 245 mContext.getContentResolver().registerContentObserver( 255 mPackageMonitor.register(mContext, mLocationHandler.getLooper(), true); 261 mContext.registerReceiverAsUser(new BroadcastReceiver() [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
ControllerProviderOpsTests.java | 49 private Context mContext; 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, Mailbox.TYPE_INBOX)) [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
EasOutboxService.java | 93 private final Context mContext; 105 mContext = context; 166 OriginalMessageInfo info = getOriginalMessageInfo(mContext, mMessage.mId); 300 Message.update(mContext, Message.CONTENT_URI, msgId, cv); 342 Message msg = Message.restoreMessageWithId(mContext, msgId); 355 referenceInfo = getOriginalMessageInfo(mContext, msgId); 370 Attachment.restoreAttachmentsWithMessageId(mContext, msg.mId); 372 Attachment.restoreAttachmentsWithMessageId(mContext, referenceInfo.mRefId); 395 Rfc822Output.writeTo(mContext, msg, fileOutputStream, smartSend, true, 417 new SendMailEntity(mContext, fileStream, fileLength, modeTag, msg) [all...] |
/frameworks/base/services/java/com/android/server/wifi/ |
WifiService.java | 101 private final Context mContext; 170 ac.connect(mContext, this, msg.replyTo); 243 mWsmChannel.connect(mContext, this, mWifiStateMachine.getHandler()); 262 mWsmChannel.connect(mContext, this, mWifiStateMachine.getHandler()); 277 mContext = context; 281 mWifiStateMachine = new WifiStateMachine(mContext, mInterfaceName); 286 mNotificationController = new WifiNotificationController(mContext, mWifiStateMachine); 287 mTrafficPoller = new WifiTrafficPoller(mContext, mInterfaceName); 288 mSettingsStore = new WifiSettingsStore(mContext); 294 mWifiController = new WifiController(mContext, this, wifiThread.getLooper()) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTest.java | 55 mResources = mContext.getResources(); 122 mContext.getPackageName() + R.raw.testimage); 125 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); 167 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); 177 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); 211 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); 222 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); 261 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); 272 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg");
|
/frameworks/base/core/java/android/content/pm/ |
RegisteredServicesCache.java | 74 public final Context mContext; 115 mContext = context; 134 mContext.registerReceiverAsUser(mPackageReceiver, UserHandle.ALL, intentFilter, null, null); 140 mContext.registerReceiver(mExternalReceiver, sdFilter); 190 handler = new Handler(mContext.getMainLooper()); 275 String[] packages = mContext.getPackageManager().getPackagesForUid(callerUid); 279 mContext.getPackageManager().getPackageInfo(name, 0 /* flags */); 299 final PackageManager pm = mContext.getPackageManager(); 434 PackageManager pm = mContext.getPackageManager();
|
/frameworks/base/core/java/android/net/http/ |
RequestQueue.java | 57 private final Context mContext; 87 mContext, i, this, RequestQueue.this); 178 con = Connection.getConnection(mContext, host, mProxyHost, 213 mContext = context; 238 mContext.registerReceiver(mProxyChangeReceiver, 253 mContext.unregisterReceiver(mProxyChangeReceiver); 267 String host = Proxy.getHost(mContext); 273 mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http"); 386 Connection conn = Connection.getConnection(mContext, host, mProxyHost,
|
/frameworks/support/v4/kitkat/android/support/v4/print/ |
PrintHelperKitkat.java | 50 final Context mContext; 88 mContext = context; 168 PrintManager printManager = (PrintManager) mContext.getSystemService(Context.PRINT_SERVICE); 203 PrintedPdfDocument pdfDocument = new PrintedPdfDocument(mContext, 390 PrintedPdfDocument pdfDocument = new PrintedPdfDocument(mContext, 434 PrintManager printManager = (PrintManager) mContext.getSystemService(Context.PRINT_SERVICE); 457 if (maxSideLength <= 0 || uri == null || mContext == null) { 507 if (uri == null || mContext == null) { 512 is = mContext.getContentResolver().openInputStream(uri);
|
/packages/apps/Browser/src/com/android/browser/ |
SuggestionsAdapter.java | 65 final Context mContext; 87 mContext = ctx; 90 mLinesPortrait = mContext.getResources(). 92 mLinesLandscape = mContext.getResources(). 148 final LayoutInflater inflater = LayoutInflater.from(mContext); 193 ic1.setImageDrawable(mContext.getResources().getDrawable(id)); 459 mContext.getContentResolver().query(ub.build(), COMBINED_PROJECTION, 527 mCursor = searchEngine.getSuggestions(mContext, constraint.toString()); 534 mCursor = searchEngine.getSuggestions(mContext, "");
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthByWeekFragment.java | 119 String tz = Utils.getTimeZone(mContext, mTZUpdater); 266 mFirstDayOfWeek = Utils.getFirstDayOfWeek(mContext); 267 mShowWeekNumber = Utils.getShowWeekNumber(mContext); 369 mFirstDayOfWeek = Utils.getFirstDayOfWeek(mContext); 370 mShowWeekNumber = Utils.getShowWeekNumber(mContext); 372 mHideDeclined = Utils.getHideDeclinedEvents(mContext); 376 mDaysPerWeek = Utils.getDaysPerWeek(mContext); 402 events, data, mContext, mFirstLoadedJulianDay, mLastLoadedJulianDay); 468 CalendarController controller = CalendarController.getInstance(mContext);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MoviePlayer.java | 78 private Context mContext; 121 mContext = movieActivity.getApplicationContext(); 127 mController = new MovieControllerOverlay(mContext); 466 mContext.registerReceiver(this, 471 mContext.unregisterReceiver(this); 492 private final Context mContext; 495 mContext = context; 500 BlobCache cache = CacheManager.getCache(mContext, 518 BlobCache cache = CacheManager.getCache(mContext,
|
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageItem.java | 68 final Context mContext; 113 mContext = context; 208 mAddress = AddressUtils.getFrom(mContext, messageUri); 341 mContext.getString(R.string.messagelist_sender_self); 355 if ((report == null) || !mAddress.equals(mContext.getString( 374 if ((report == null) || !mAddress.equals(mContext.getString( 390 mTimestamp = mContext.getString(R.string.expire_on, 391 MessageUtils.formatTimeStampString(mContext, timestamp)); 393 mTimestamp = MessageUtils.formatTimeStampString(mContext, timestamp);
|
MessageListItem.java | 123 int color = mContext.getResources().getColor(R.color.timestamp_color); 202 String msgSizeText = mContext.getString(R.string.message_size_label) 204 + mContext.getString(R.string.kilobyte); 244 Intent intent = new Intent(mContext, TransactionService.class); 248 mContext.startService(intent); 270 return mContext.getString(R.string.message_timestamp_format, mMessageItem.mContact, 284 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 365 mContext.getResources().getString(R.string.sending_message) : 406 "MmsThumbnailPresenter", mContext, 525 new TextAppearanceSpan(mContext, android.R.style.TextAppearance_Small) [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
ThumbnailManager.java | 72 private final Context mContext; 88 mContext = context; 195 CacheManager.clear(mContext); 220 mImageCacheService = new ImageCacheService(mContext); 311 UriImage uriImage = new UriImage(mContext, mUri); 362 retriever.setDataSource(mContext, mUri); 456 inputStream = mContext.getContentResolver().openInputStream(uri); 468 inputStream = mContext.getContentResolver().openInputStream(uri); 490 int orientation = UriImage.getOrientation(mContext, uri);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SkbContainer.java | 199 mPopupSkb = new PopupWindow(mContext); 267 Resources r = mContext.getResources(); 279 R.xml.skb_qwerty, screenWidth, skbHeight, mContext); 284 screenWidth, skbHeight, mContext); 289 screenWidth, skbHeight, mContext); 294 R.xml.skb_smiley, screenWidth, skbHeight, mContext); 299 R.xml.skb_phone, screenWidth, skbHeight, mContext); 344 miniSkbWidth, miniSkbHeight, mContext); 351 mPopupSkbView = new SoftKeyboardView(mContext, null);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
AccountTypeManager.java | 194 private Context mContext; 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, auth.packageName, false) [all...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipService.java | 70 private Context mContext; 108 mContext = context; 125 mContext.enforceCallingOrSelfPermission( 139 mContext.enforceCallingOrSelfPermission( 154 mContext.enforceCallingOrSelfPermission( 192 mContext.enforceCallingOrSelfPermission( 210 mContext.enforceCallingOrSelfPermission( 224 mContext.enforceCallingOrSelfPermission( 239 mContext.enforceCallingOrSelfPermission( 254 mContext.enforceCallingOrSelfPermission [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
PolicySerializationTestActivity.java | 386 private final Context mContext; 390 mContext = context; 421 return mContext.getString(R.string.da_password_quality_alphabetic); 423 return mContext.getString(R.string.da_password_quality_alphanumeric); 425 return mContext.getString(R.string.da_password_quality_numeric); 427 return mContext.getString(R.string.da_password_quality_something);
|
/cts/tests/tests/location2/src/android/location2/cts/ |
LocationManagerTest.java | 59 private Context mContext; 68 mContext = getInstrumentation().getTargetContext(); 70 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 73 if (Settings.Secure.getInt(mContext.getContentResolver(), 262 mPendingIntent = PendingIntent.getBroadcast(mContext, 0, proximityIntent, 265 mContext.registerReceiver(mIntentReceiver, mIntentReceiver.getFilter());
|