/packages/apps/Exchange/src/com/android/exchange/adapter/ |
AttachmentLoader.java | 47 private final Context mContext; 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/ |
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);
|
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.getSystemService(Context.LAYOUT_INFLATER_SERVICE) [all...] |
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.getSystemService(Context.LAYOUT_INFLATER_SERVICE) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
PopupList.java | 58 private final Context mContext; 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/PackageInstaller/src/com/android/packageinstaller/ |
TabsAdapter.java | 44 private final Context mContext; 62 private final Context mContext; 65 mContext = context; 70 View v = new View(mContext); 78 mContext = activity; 87 tabSpec.setContent(new DummyTabFactory(mContext));
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
WidgetConversationListItemViewBuilder.java | 51 private final Context mContext; 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/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
Uploader.java | 56 private final Context mContext; 61 mContext = context; 83 final PackageManager packageManager = mContext.getPackageManager(); 85 mContext.getPackageName()) == PackageManager.PERMISSION_GRANTED; 93 final Intent intent = mContext.registerReceiver(null, new IntentFilter( 102 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
|
/packages/services/Telephony/src/com/android/phone/ |
HfaLogic.java | 72 private Context mContext; 84 mContext = Preconditions.checkNotNull(context); 102 mContext.sendBroadcast(new Intent(action)); 181 mContext.registerReceiver(mReceiver, filter); 186 mContext.unregisterReceiver(mReceiver); 203 mResponseIntent.send(mContext, 0 /* resultCode (not used) */, extraStuff);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
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, ntm, alarmMgr, prefs, at.getAlertCursor() [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppObexServerSession.java | 71 private Context mContext; 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, mInfo.mId, status) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 250 Context mContext; 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...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
RootsCache.java | 66 private final Context mContext; 83 mContext = context; 108 mRecentsRoot.title = mContext.getString(R.string.root_recent); 128 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0); 150 final ContentResolver resolver = mContext.getContentResolver(); 187 final ContentResolver resolver = mContext.getContentResolver(); 188 final PackageManager pm = mContext.getPackageManager(); 231 loadRootsForAuthority(mContext.getContentResolver(), info.authority)); 246 mContext.getContentResolver().registerContentObserver(rootsUri, true, mObserver); 281 authority, loadRootsForAuthority(mContext.getContentResolver(), authority)) [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
ImmersiveModeConfirmation.java | 60 private final Context mContext; 74 mContext = context; 80 mContext.getSystemService(Context.WINDOW_SERVICE); 84 Animation exit = AnimationUtils.loadAnimation(mContext, R.anim.dock_bottom_exit); 93 packages = Settings.Secure.getStringForUser(mContext.getContentResolver(), 109 Settings.Secure.putStringForUser(mContext.getContentResolver(), 189 mContext.getResources().getDimensionPixelSize( 284 mContext.registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_CONFIGURATION_CHANGED)); 289 mContext.unregisterReceiver(mReceiver); 303 mClingWindow = new ClingWindowView(mContext, confirmAction(pkg)) [all...] |
/frameworks/base/services/java/com/android/server/wifi/ |
WifiNotificationController.java | 91 private final Context mContext; 97 mContext = context; 106 mContext.registerReceiver( 219 NotificationManager notificationManager = (NotificationManager) mContext 236 mNotification.contentIntent = TaskStackBuilder.create(mContext) 242 CharSequence title = mContext.getResources().getQuantityText( 244 CharSequence details = mContext.getResources().getQuantityText( 247 mNotification.setLatestEventInfo(mContext, title, details, mNotification.contentIntent); 273 ContentResolver cr = mContext.getContentResolver(); 292 return Settings.Global.getInt(mContext.getContentResolver() [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetService.java | 164 private Context mContext; 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.getContentResolver().query(uri, PROJECTION [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
DefaultVoicemailNotifier.java | 56 private final Context mContext; 79 mContext = context; 104 Resources resources = mContext.getResources(); 156 Notification.Builder notificationBuilder = new Notification.Builder(mContext) 168 contentIntent = new Intent(mContext, CallDetailActivity.class); 172 Intent playIntent = new Intent(mContext, CallDetailActivity.class); 180 PendingIntent.getActivity(mContext, 0, playIntent, 0)); 186 PendingIntent.getActivity(mContext, 0, contentIntent, 0)); 199 Intent intent = new Intent(mContext, CallLogNotificationsService.class); 201 return PendingIntent.getService(mContext, 0, intent, 0) [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
SharePopup.java | 56 private Context mContext; 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.startActivity(intent) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
NotificationStation.java | 90 private Context mContext; 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.getResources() [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadNotifier.java | 62 private final Context mContext; 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, 0, hideIntent, 0)) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsFragment.java | 128 private Context mContext; 189 mContext = activity; 264 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv); 266 HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeySend); 269 Account refreshedAccount = Account.restoreAccountWithId(mContext, mAccount.mId); 332 final String summary = mRingtone != null ? mRingtone.getTitle(mContext) 333 : mContext.getString(R.string.silent_ringtone); 456 Account account = Account.restoreAccountWithId(mContext, accountId); 459 HostAuth.restoreHostAuthWithId(mContext, account.mHostAuthKeyRecv); 461 HostAuth.restoreHostAuthWithId(mContext, account.mHostAuthKeySend) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
AccessibilityManagerServiceTest.java | 96 ensureAccessibilityEnabled(mContext, false); 111 ensureAccessibilityEnabled(mContext, true); 127 ensureAccessibilityEnabled(mContext, true); 142 ensureAccessibilityEnabled(mContext, false); 185 ensureAccessibilityEnabled(mContext, true); 188 ensureOnlyMockServicesEnabled(mContext, true, false); 215 ensureAccessibilityEnabled(mContext, true); 218 ensureOnlyMockServicesEnabled(mContext, true, false); 245 ensureAccessibilityEnabled(mContext, true); 248 ensureOnlyMockServicesEnabled(mContext, true, false) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
BrowserSettings.java | 107 private Context mContext; 138 mContext = context.getApplicationContext(); 139 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); 180 DisplayMetrics metrics = mContext.getResources().getDisplayMetrics(); 188 mWebStorageSizeManager = new WebStorageSizeManager(mContext, 223 sFactoryResetUrl = mContext.getResources().getString(R.string.homepage_base); 226 BrowserProvider.getClientId(mContext.getContentResolver())); 303 settings.setDatabasePath(mContext.getDir("databases", 0).getPath()); 304 settings.setGeolocationDatabasePath(mContext.getDir("geolocation", 0).getPath()); 389 mAppCachePath = mContext.getDir("appcache", 0).getPath() [all...] |
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
InputMethodInfoTest.java | 65 mPackageName = mContext.getPackageName(); 94 intent.setClass(mContext, InputMethodSettingsActivityStub.class); 95 PackageManager pm = mContext.getPackageManager(); 99 mInputMethodInfo = new InputMethodInfo(mContext, resolveInfo); 146 PackageManager pm = mContext.getPackageManager(); 158 PackageManager pm = mContext.getPackageManager(); 198 final InputMethodManager imm = (InputMethodManager) mContext
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
InsertionHandleController.java | 40 private Context mContext; 47 mContext = parent.getContext(); 178 return ((ClipboardManager)mContext.getSystemService( 207 mContainer = new PopupWindow(mContext, null, 225 TypedArray attrs = mContext.obtainStyledAttributes(POPUP_LAYOUT_ATTRS); 242 LayoutInflater inflater = (LayoutInflater)mContext. 301 final int screenWidth = mContext.getResources().getDisplayMetrics().widthPixels;
|