/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | MediaSizeUtils.java | 90 private final Context mContext; field in class:MediaSizeUtils.MediaSizeComparator 102 mContext = context; 104 mCurrentStandard = Integer.parseInt(mContext.getString(R.string.mediasize_standard)); 116 .parseInt(mContext.getString(R.string.mediasize_standard)); 144 int lhsStandard = getStandardForMediaSize(mContext, lhs); 145 int rhsStandard = getStandardForMediaSize(mContext, rhs); 161 return getLabel(mContext, lhs).compareTo(getLabel(mContext, rhs));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | UserDetailView.java | 49 mAdapter = new Adapter(mContext, controller); 60 private final Context mContext; field in class:UserDetailView.Adapter 65 mContext = context; 73 mContext, convertView, parent); 77 String name = getName(mContext, item); 79 v.bind(name, getDrawable(mContext, item), item.resolveId()); 98 mContext, tag.enforcedAdmin); 101 MetricsLogger.action(mContext, MetricsEvent.QS_SWITCH_USER);
|
H A D | DndTile.java | 76 mContext.registerReceiver(mReceiver, new IntentFilter(ACTION_SET_VISIBLE)); 116 SysUIToast.makeText(mContext, mContext.getString( 121 MetricsLogger.action(mContext, getMetricsCategory(), !mState.value); 126 int zen = Prefs.getInt(mContext, Prefs.Key.DND_FAVORITE_ZEN, Global.ZEN_MODE_ALARMS); 133 return mContext.getString(R.string.quick_settings_dnd_label); 146 state.label = mContext.getString(R.string.quick_settings_dnd_priority_label); 147 state.contentDescription = mContext.getString( 152 state.label = mContext.getString(R.string.quick_settings_dnd_none_label); 153 state.contentDescription = mContext [all...] |
H A D | NightDisplayTile.java | 38 mController = new NightDisplayController(mContext, ActivityManager.getCurrentUser()); 43 return NightDisplayController.isAvailable(mContext); 54 MetricsLogger.action(mContext, getMetricsCategory(), activated); 66 mController = new NightDisplayController(mContext, newUserId); 78 state.label = mContext.getString(R.string.quick_settings_night_display_label); 81 state.contentDescription = mContext.getString(isActivated 111 return mContext.getString(R.string.quick_settings_night_display_label);
|
H A D | WorkModeTile.java | 67 MetricsLogger.action(mContext, getMetricsCategory(), !mState.value); 88 return mContext.getString(R.string.quick_settings_work_mode_label); 99 state.label = mContext.getString(R.string.quick_settings_work_mode_label); 102 state.contentDescription = mContext.getString( 106 state.contentDescription = mContext.getString( 121 return mContext.getString(R.string.accessibility_quick_settings_work_mode_changed_on); 123 return mContext.getString(R.string.accessibility_quick_settings_work_mode_changed_off);
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | CountryDetectorBase.java | 35 protected final Context mContext; field in class:CountryDetectorBase 40 mContext = ctx;
|
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/ |
H A D | GlifPreferenceLayoutTest.java | 35 private Context mContext; field in class:GlifPreferenceLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 GlifPreferenceLayout layout = new TestLayout(mContext); 52 GlifPreferenceLayout layout = new TestLayout(mContext); 59 GlifPreferenceLayout layout = new TestLayout(mContext); 61 final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(mContext), 68 GlifPreferenceLayout layout = new TestLayout(mContext); 74 layout.addView(layout.onCreateRecyclerView(LayoutInflater.from(mContext), layout,
|
H A D | SetupWizardPreferenceLayoutTest.java | 35 private Context mContext; field in class:SetupWizardPreferenceLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 52 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 59 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 61 final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(mContext), 68 SetupWizardPreferenceLayout layout = new TestLayout(mContext); 74 layout.addView(layout.onCreateRecyclerView(LayoutInflater.from(mContext), layout,
|
H A D | GlifRecyclerLayoutTest.java | 35 private Context mContext; field in class:GlifRecyclerLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 GlifRecyclerLayout layout = new TestLayout(mContext); 52 LayoutInflater inflater = LayoutInflater.from(mContext); 60 GlifRecyclerLayout layout = new TestLayout(mContext); 67 GlifRecyclerLayout layout = new TestLayout(mContext); 95 GlifRecyclerLayout layout = new TestLayout(mContext);
|
H A D | SetupWizardRecyclerLayoutTest.java | 35 private Context mContext; field in class:SetupWizardRecyclerLayoutTest 40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), 46 SetupWizardRecyclerLayout layout = new TestLayout(mContext); 52 LayoutInflater inflater = LayoutInflater.from(mContext); 60 SetupWizardRecyclerLayout layout = new TestLayout(mContext); 67 SetupWizardRecyclerLayout layout = new TestLayout(mContext); 95 SetupWizardRecyclerLayout layout = new TestLayout(mContext);
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionInflater.java | 54 private Context mContext; field in class:TransitionInflater 57 mContext = context; 77 XmlResourceParser parser = mContext.getResources().getXml(resource); 106 XmlResourceParser parser = mContext.getResources().getXml(resource); 149 transition = new Fade(mContext, attrs); 151 transition = new ChangeBounds(mContext, attrs); 153 transition = new Slide(mContext, attrs); 155 transition = new Explode(mContext, attrs); 157 transition = new ChangeImageTransform(mContext, attrs); 159 transition = new ChangeTransform(mContext, attr [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeUI.java | 68 mEnabled = mContext.getResources().getBoolean(R.bool.enable_volume_ui); 70 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 72 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); 73 mMediaSessionManager = (MediaSessionManager) mContext 75 final ZenModeController zenController = new ZenModeControllerImpl(mContext, mHandler); 76 mVolumeComponent = new VolumeDialogComponent(this, mContext, null, zenController); 80 mContext, Settings.Secure.VOLUME_CONTROLLER_SERVICE_COMPONENT, 106 DndTile.setVisible(mContext, true); 119 final ApplicationInfo ai = mContext.getPackageManager().getApplicationInfo(pkg, 0); 120 final String rt = mContext [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | SharedPreferencesBackupHelper.java | 73 private Context mContext; field in class:SharedPreferencesBackupHelper 87 mContext = context; 96 Context context = mContext; 119 Context context = mContext;
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PhoneFallbackEventHandler.java | 44 Context mContext; field in class:PhoneFallbackEventHandler 53 mContext = context; 87 MediaSessionLegacyHelper.getHelper(mContext).sendVolumeKeyEvent(event, false); 128 mContext.startActivity(intent); 155 mContext.sendOrderedBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF, 172 Configuration config = mContext.getResources().getConfiguration(); 183 mContext.startActivity(intent); 218 MediaSessionLegacyHelper.getHelper(mContext).sendVolumeKeyEvent(event, false); 272 mContext.startActivity(intent); 280 mSearchManager = (SearchManager) mContext [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardSecurityModel.java | 41 private final Context mContext; field in class:KeyguardSecurityModel 47 mContext = context; 49 mIsPukScreenAvailable = mContext.getResources().getBoolean( 58 KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PreviewPageFrame.java | 40 mSelectedElevation = mContext.getResources().getDimension( 42 mNotSelectedElevation = mContext.getResources().getDimension( 44 mSelectedPageAlpha = mContext.getResources().getFraction( 46 mNotSelectedAlpha = mContext.getResources().getFraction(
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockImageSpan.java | 29 private Context mContext; field in class:RestrictedLockImageSpan 37 mContext = context; 38 mExtraPadding = mContext.getResources().getDimensionPixelSize( 40 mRestrictedPadlock = RestrictedLockUtils.getRestrictedPadlock(mContext);
|
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/ |
H A D | BaseTest.java | 26 System.setProperty("dexmaker.dexcache", mContext.getCacheDir().getPath());
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
H A D | SysuiTestCase.java | 28 System.setProperty("dexmaker.dexcache", mContext.getCacheDir().getPath());
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | SensorNotificationService.java | 37 private Context mContext; field in class:SensorNotificationService 44 mContext = context; 54 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); 68 mContext.sendBroadcastAsUser(i, UserHandle.ALL);
|
H A D | SerialService.java | 28 private final Context mContext; field in class:SerialService 32 mContext = context; 38 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null); 53 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null);
|
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/ |
H A D | AlarmImpl.java | 33 private Context mContext; field in class:AlarmImpl 37 mContext = context; 51 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); 53 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, wakupIntent, 0);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ThemedSpinnerAdapter.java | 106 private final Context mContext; field in class:ThemedSpinnerAdapter.Helper 111 mContext = context; 125 } else if (theme == mContext.getTheme()) { 128 final Context context = new ContextThemeWrapper(mContext, theme);
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | SearchManagerTest.java | 76 Context mContext; field in class:SearchManagerTest 90 mContext = testActivity; 115 mContext.getSystemService(Context.SEARCH_SERVICE); 118 mContext.getSystemService(Context.SEARCH_SERVICE); 129 mContext.getSystemService(Context.SEARCH_SERVICE); 143 mContext.getSystemService(Context.SEARCH_SERVICE); 158 mContext.getSystemService(Context.SEARCH_SERVICE);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | AutoTileManager.java | 33 private final Context mContext; field in class:AutoTileManager 38 mContext = context; 48 mColorsSetting = new SecureSetting(mContext, mHandler, 54 Prefs.putBoolean(mContext, Key.QS_INVERT_COLORS_ADDED, true); 81 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true); 104 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true); 121 Prefs.putBoolean(mContext, Key.QS_HOTSPOT_ADDED, true);
|