/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/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
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/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 final 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;
|
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/ |
InvalidationPreferences.java | 46 this.editor = PreferenceManager.getDefaultSharedPreferences(mContext).edit(); 79 private final Context mContext; 82 this.mContext = Preconditions.checkNotNull(context.getApplicationContext()); 106 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); 120 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); 147 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); 164 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext);
|
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/ |
BackupRestoreConfirmation.java | 79 Context mContext; 81 mContext = context; 89 Toast.makeText(mContext, R.string.toast_backup_started, Toast.LENGTH_LONG).show(); 100 Toast.makeText(mContext, R.string.toast_backup_ended, Toast.LENGTH_LONG).show(); 106 Toast.makeText(mContext, R.string.toast_restore_started, Toast.LENGTH_LONG).show(); 117 Toast.makeText(mContext, R.string.toast_restore_ended, Toast.LENGTH_SHORT).show(); 123 Toast.makeText(mContext, R.string.toast_timeout, Toast.LENGTH_LONG).show();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
BaseStatusBar.java | 164 mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0); 217 mWindowManager = (WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE); 223 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 226 mContext.getContentResolver().registerContentObserver( 235 mLocale = mContext.getResources().getConfiguration().locale; 299 mContext.registerReceiver(mBroadcastReceiver, filter); 319 final Locale locale = mContext.getResources().getConfiguration().locale; 344 mContext.getString(R.string.accessibility_notification_dismissed)); 367 ApplicationInfo info = mContext.getPackageManager().getApplicationInfo(sbn.getPackageName(), 0); 383 intent.setComponent(intent.resolveActivity(mContext.getPackageManager())) [all...] |
/frameworks/base/services/java/com/android/server/dreams/ |
DreamController.java | 50 private final Context mContext; 75 mContext = context; 101 mContext.sendBroadcastAsUser(mCloseNotificationShadeIntent, UserHandle.ALL); 119 if (!mContext.bindServiceAsUser(intent, mCurrentDream, 148 mContext.sendBroadcastAsUser(mDreamingStoppedIntent, UserHandle.ALL); 170 mContext.unbindService(oldDream); 200 mContext.sendBroadcastAsUser(mDreamingStartedIntent, UserHandle.ALL);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
SmartCamera.java | 67 private MffContext mContext; 151 mContext = new MffContext(this); 236 if (mContext != null) { 237 mContext.onPause(); 245 if (mContext != null) { 246 mContext.onResume(); 263 mGraph = GraphReader.readXmlGraphResource(mContext, R.raw.camera_graph);
|
/packages/apps/Browser/src/com/android/browser/homepages/ |
RequestHandler.java | 53 Context mContext;
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/ |
PeopleActivityTest.java | 79 private ContactsMockContext mContext; 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/Settings/src/com/android/settings/deviceinfo/ |
MiscFilesHandler.java | 77 private final Context mContext; 80 mContext = context; 182 Formatter.formatFileSize(mContext, selectedDataSize), 183 Formatter.formatFileSize(mContext, mAdapter.getDataSize()))); 190 private Context mContext; 193 mContext = activity; 254 view.setFileSize(Formatter.formatFileSize(mContext, item.mSize));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
NetworkController.java | 138 Context mContext; 181 mContext = context; 184 ConnectivityManager cm = (ConnectivityManager)mContext.getSystemService( 205 mHspaDataDistinguishable = mContext.getResources().getBoolean( 207 mNetworkNameSeparator = mContext.getString(R.string.status_bar_network_name_separator); 208 mNetworkNameDefault = mContext.getString( 218 mWifiChannel.connect(mContext, handler, wifiMessenger); 232 mWimaxSupported = mContext.getResources().getBoolean( 244 mLastLocale = mContext.getResources().getConfiguration().locale; 506 mAirplaneMode = (Settings.Global.getInt(mContext.getContentResolver() [all...] |
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
DownloadManagerBaseTest.java | 49 protected Context mContext = null; 134 private Context mContext = null; 144 mContext = context; 166 ConnectivityManager connManager = (ConnectivityManager)mContext.getSystemService( 179 mContext = getInstrumentation().getContext(); 180 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); 204 mContext.registerReceiver(receiver, new IntentFilter( 219 WifiManager manager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); 226 WiFiChangedReceiver receiver = new WiFiChangedReceiver(mContext); 227 mContext.registerReceiver(receiver, new IntentFilter [all...] |
/frameworks/base/services/java/com/android/server/net/ |
NetworkPolicyManagerService.java | 234 private final Context mContext; 301 mContext = checkNotNull(context, "missing context"); 356 mContext.registerReceiver(mScreenReceiver, screenFilter); 360 mContext.registerReceiver(mConnReceiver, connFilter, CONNECTIVITY_INTERNAL, mHandler); 366 mContext.registerReceiver(mPackageReceiver, packageFilter, null, mHandler); 369 mContext.registerReceiver( 376 mContext.registerReceiver(mUserReceiver, userFilter, null, mHandler); 380 mContext.registerReceiver( 385 mContext.registerReceiver(mAllowReceiver, allowFilter, MANAGE_NETWORK_POLICY, mHandler); 389 mContext.registerReceiver(mSnoozeWarningReceiver, snoozeWarningFilter [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
FilterGraph.java | 51 private MffContext mContext; 71 private MffContext mContext; 81 mContext = context; 119 VariableSource valueSource = new VariableSource(mContext, name); 128 FrameSlotSource filter = new FrameSlotSource(mContext, name, slotName); 134 FrameSlotTarget filter = new FrameSlotTarget(mContext, name, slotName); 222 VariableSource valueSource = new VariableSource(mContext, valueSourceName); 272 FilterGraph graph = new FilterGraph(mContext, parent); 295 branch = new BranchFilter(mContext, branchName, false); 365 return mContext; [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ActionBarAdapter.java | 74 private final Context mContext; 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.getString(R.string.contactsFavoritesLabel)) [all...] |
/frameworks/base/services/java/com/android/server/ |
AppWidgetService.java | 55 Context mContext; 64 mContext = context; 81 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 86 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 96 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 102 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, 108 mContext.registerReceiver(new BroadcastReceiver() { 231 service = new AppWidgetServiceImpl(mContext, userId, mSaveStateHandler); 316 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG);
|