/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);
|
DreamManagerService.java | 58 private final Context mContext; 69 mContext = context; 77 mContext.registerReceiver(new BroadcastReceiver() { 89 if (mContext.checkCallingOrSelfPermission("android.permission.DUMP") 134 Settings.Secure.putStringForUser(mContext.getContentResolver(), 150 String name = Settings.Secure.getStringForUser(mContext.getContentResolver(), 288 String names = Settings.Secure.getStringForUser(mContext.getContentResolver(), 318 return name != null && mContext.getPackageManager().getServiceInfo(name, 0) != null; 373 if (mContext.checkCallingOrSelfPermission(permission)
|
/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...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/ |
SigninManager.java | 44 private final Context mContext; 93 mContext = context.getApplicationContext(); 156 builder.setMessage(mContext.getResources().getString(R.string.policy_dialog_message, 206 ChromeSigninController.get(mContext).setSignedInAccountName(mSignInAccount.name); 213 InvalidationController invalidationController = InvalidationController.get(mContext); 217 ProfileSyncService profileSyncService = ProfileSyncService.get(mContext); 218 if (SyncStatusHelper.get(mContext).isSyncEnabled(mSignInAccount) && 251 ChromeSigninController.get(mContext).clearSignedInUser(); 252 ProfileSyncService.get(mContext).signOut();
|
/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);
|
/frameworks/base/services/java/com/android/server/connectivity/ |
PacManager.java | 85 private Context mContext; 136 mContext = context; 149 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); 226 final ContentResolver cr = mContext.getContentResolver(); 265 if (mContext == null) { 313 mContext.bindService(intent, mConnection, 351 mContext.bindService(intent, mProxyConnection, 357 mContext.unbindService(mConnection); 361 mContext.unbindService(mProxyConnection);
|
/frameworks/compile/slang/ |
slang_rs_pragma_handler.cpp | 38 mContext->addPragma(this->getName(), Item); 39 mContext->addExportType(Item); 109 mContext->addPragma(this->getName(), PackageName); 110 mContext->setReflectJavaPackageName(PackageName); 126 mContext->addPragma(this->getName(), Item); 127 mContext->setLicenseNote(Item); 151 mContext->setVersion(1); 156 mContext->addPragma(this->getName(), ss.str()); 157 mContext->setVersion(v);
|
/packages/apps/Browser/src/com/android/browser/view/ |
BookmarkExpandableView.java | 53 private Context mContext; 78 mContext = context; 81 mMaxColumnCount = mContext.getResources() 84 mAdapter = new BookmarkAccountAdapter(mContext); 109 LayoutInflater infalter = LayoutInflater.from(mContext); 293 mContext = context; 294 mInflater = LayoutInflater.from(mContext); 410 groupName = mContext.getString(R.string.local_bookmarks); 424 String bookmarks = mContext.getString(R.string.bookmarks);
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
DataAction.java | 55 private final Context mContext; 75 mContext = context; 105 final boolean hasPhone = PhoneCapabilityTester.isPhone(mContext); 106 final ComponentName smsComponent = PhoneCapabilityTester.getSmsComponent(mContext); 111 if (PhoneCapabilityTester.isPhone(mContext)) { 139 if (PhoneCapabilityTester.isSipPhone(mContext)) { 278 return mContext.getResources().getDrawable(mAlternateIconRes); 281 final PackageManager pm = mContext.getPackageManager(); 288 return mContext.getResources().getString(mAlternateIconDescriptionRes);
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
WorldClockAdapter.java | 46 private final Context mContext; 54 mContext = context; 67 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); 69 mContext.getResources().getString(R.string.default_clock_style)); 95 SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(mContext); 98 mContext.getResources().getString(R.string.home_label), homeTZ, null); 119 SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(mContext); 268 (int)mContext.getResources().getDimension(R.dimen.label_font_size)); 282 dayOfWeek.setText(mContext.getString(R.string.world_day_of_week_label,
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountServerBaseFragment.java | 53 protected Activity mContext; 153 mContext = getActivity(); 155 mContext.setTitle(savedInstanceState.getString(BUNDLE_KEY_ACTIVITY_TITLE)); 157 SetupData.SetupDataContainer container = (SetupData.SetupDataContainer) mContext; 181 (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE); 211 mContext = getActivity(); 243 InputMethodManager imm = (InputMethodManager)mContext. 343 final HostAuth sendAuth = account.getOrCreateHostAuthSend(mContext); 346 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mContext);
|
/packages/apps/Settings/src/com/android/settings/ |
DreamSettings.java | 63 private Context mContext; 79 mContext = activity; 132 mAdapter = new DreamInfoAdapter(mContext); 193 mContext.getString(R.string.screensaver_settings_summary_dock), 194 mContext.getString(R.string.screensaver_settings_summary_sleep), 195 mContext.getString(R.string.screensaver_settings_summary_either_short) 203 return new AlertDialog.Builder(mContext) 218 mContext.unregisterReceiver(mPackageReceiver); 234 mContext.registerReceiver(mPackageReceiver , filter);
|
/cts/tests/tests/content/src/android/content/cts/ |
ComponentNameTest.java | 41 new ComponentName(mContext, "ActivityTestCase"); 53 new ComponentName(mContext, (String) null); 60 new ComponentName(mContext, this.getClass()); 64 new ComponentName(mContext, (Class<?>) null); 213 final ComponentName componentName = new ComponentName(mContext, this.getClass());
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
RotateDrawableTest.java | 47 Resources resources = mContext.getResources(); 93 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass); 182 Drawable drawable = mContext.getResources().getDrawable(R.drawable.testimage); 187 Resources r = mContext.getResources(); 211 Resources resources = mContext.getResources();
|
/cts/tests/tests/view/src/android/view/cts/ |
ViewGroup_MarginLayoutParamsTest.java | 34 private Context mContext; 40 mContext = getInstrumentation().getTargetContext(); 46 XmlResourceParser p = mContext.getResources().getLayout( 53 mMarginLayoutParams = new ViewGroup.MarginLayoutParams(mContext, p); 106 ViewGroup vg = new LinearLayout(mContext);
|