Home
last modified time | relevance | path

Searched refs:mAppContext (Results 1 – 25 of 64) sorted by relevance

123

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultCategoryProvider.java56 protected final Context mAppContext; field in DefaultCategoryProvider
61 mAppContext = context.getApplicationContext(); in DefaultCategoryProvider()
121 new FetchCategoriesTask(delegatingReceiver, mAppContext).execute(); in doFetch()
130 protected final Context mAppContext; field in DefaultCategoryProvider.FetchCategoriesTask
134 mAppContext = context.getApplicationContext(); in FetchCategoriesTask()
140 InjectorProvider.getInjector().getFormFactorChecker(mAppContext); in doInBackground()
149 … if (mAppContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LIVE_WALLPAPER)) { in doInBackground()
151 mAppContext, getExcludedLiveWallpaperPackageNames()); in doInBackground()
155 mAppContext.getString(R.string.live_wallpapers_category_title), in doInBackground()
156 mAppContext.getString(R.string.live_wallpaper_collection_id), in doInBackground()
[all …]
DDefaultWallpaperPersister.java72 private final Context mAppContext; // The application's context. field in DefaultWallpaperPersister
85 mAppContext = context.getApplicationContext(); in DefaultWallpaperPersister()
86 mDeviceProtectedContext = mAppContext.createDeviceProtectedStorageContext(); in DefaultWallpaperPersister()
120 Display display = ((WindowManager) mAppContext.getSystemService(Context.WINDOW_SERVICE)) in setIndividualWallpaper()
153 Display display = ((WindowManager) mAppContext.getSystemService(Context.WINDOW_SERVICE)) in setIndividualWallpaperWithPosition()
344 .getCurrentRotatingWallpaperComponent(mAppContext); in setWallpaperInRotation()
362 .getNextRotatingWallpaperComponent(mAppContext); in setWallpaperBitmapInNextRotation()
381 mRotatingWallpaperComponentChecker.getNextRotatingWallpaperComponent(mAppContext); in finalizeWallpaperForNextRotation()
457 mAppContext); in finalizeWallpaperForRotatingComponent()
565 … pendingFile = File.createTempFile("rotating_pending", ".jpg", mAppContext.getFilesDir()); in setWallpaperBitmapInRotationLive()
[all …]
DDefaultWallpaperRefresher.java50 private final Context mAppContext; field in DefaultWallpaperRefresher
61 mAppContext = context.getApplicationContext(); in DefaultWallpaperRefresher()
64 mWallpaperPreferences = injector.getPreferences(mAppContext); in DefaultWallpaperRefresher()
65 mLiveWallpaperStatusChecker = injector.getLiveWallpaperStatusChecker(mAppContext); in DefaultWallpaperRefresher()
66 mUserEventLogger = injector.getUserEventLogger(mAppContext); in DefaultWallpaperRefresher()
71 mDeviceProtectedContext = mAppContext.createDeviceProtectedStorageContext(); in DefaultWallpaperRefresher()
96 InjectorProvider.getInjector().getWallpaperManagerCompat(mAppContext); in GetWallpaperMetadataAsyncTask()
109 .isLockWallpaperSet(mAppContext); in doInBackground()
171 … Arrays.asList(mAppContext.getResources().getString(R.string.fallback_wallpaper_title))); in setFallbackHomeScreenWallpaperMetadata()
182 wallpaperComponent.loadLabel(mAppContext.getPackageManager()).toString())); in setFallbackHomeScreenWallpaperMetadata()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DGrayscaleConditionController.java44 private final Context mAppContext; field in GrayscaleConditionController
52 mAppContext = appContext; in GrayscaleConditionController()
54 mColorDisplayManager = mAppContext.getSystemService(ColorDisplayManager.class); in GrayscaleConditionController()
67 mAppContext.getString(R.string.config_grayscale_settings_intent), in isDisplayable()
78 mAppContext.startActivity(mIntent); in onPrimaryClick()
94 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
95 .setName(mAppContext.getPackageName() + "/" + mAppContext.getText( in buildContextualCard()
97 .setTitleText(mAppContext.getText(R.string.condition_grayscale_title).toString()) in buildContextualCard()
99 mAppContext.getText(R.string.condition_grayscale_summary).toString()) in buildContextualCard()
100 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_gray_scale_24dp)) in buildContextualCard()
[all …]
DHotspotConditionController.java45 private final Context mAppContext; field in HotspotConditionController
52 mAppContext = appContext; in HotspotConditionController()
81 mAppContext, UserManager.DISALLOW_CONFIG_TETHERING, UserHandle.myUserId()); in onActionClick()
83 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mAppContext, admin); in onActionClick()
85 ConnectivityManager cm = (ConnectivityManager) mAppContext.getSystemService( in onActionClick()
96 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
97 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
98 + mAppContext.getText(R.string.condition_hotspot_title)) in buildContextualCard()
99 .setTitleText(mAppContext.getText(R.string.condition_hotspot_title).toString()) in buildContextualCard()
101 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_hotspot)) in buildContextualCard()
[all …]
DAirplaneModeConditionController.java41 private final Context mAppContext; field in AirplaneModeConditionController
45 mAppContext = appContext; in AirplaneModeConditionController()
57 return WirelessUtils.isAirplaneModeOn(mAppContext); in isDisplayable()
68 ConnectivityManager.from(mAppContext).setAirplaneMode(false); in onActionClick()
76 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
77 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
78 + mAppContext.getText(R.string.condition_airplane_title)) in buildContextualCard()
79 .setTitleText(mAppContext.getText(R.string.condition_airplane_title).toString()) in buildContextualCard()
80 .setSummaryText(mAppContext.getText(R.string.condition_airplane_summary).toString()) in buildContextualCard()
81 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_airplanemode_active)) in buildContextualCard()
[all …]
DConditionManager.java46 private final Context mAppContext; field in ConditionManager
52 mAppContext = context.getApplicationContext(); in ConditionManager()
154 mCardControllers.add(new AirplaneModeConditionController(mAppContext, this /* manager */)); in initCandidates()
156 new BackgroundDataConditionController(mAppContext, this /* manager */)); in initCandidates()
157 mCardControllers.add(new BatterySaverConditionController(mAppContext, this /* manager */)); in initCandidates()
158 mCardControllers.add(new CellularDataConditionController(mAppContext, this /* manager */)); in initCandidates()
159 mCardControllers.add(new DndConditionCardController(mAppContext, this /* manager */)); in initCandidates()
160 mCardControllers.add(new HotspotConditionController(mAppContext, this /* manager */)); in initCandidates()
161 mCardControllers.add(new NightDisplayConditionController(mAppContext, this /* manager */)); in initCandidates()
162 mCardControllers.add(new RingerVibrateConditionController(mAppContext, this /* manager */)); in initCandidates()
[all …]
DDndConditionCardController.java46 private final Context mAppContext; field in DndConditionCardController
52 mAppContext = appContext; in DndConditionCardController()
54 mNotificationManager = mAppContext.getSystemService(NotificationManager.class); in DndConditionCardController()
70 mAppContext.registerReceiver(mReceiver, DND_FILTER); in startMonitoringStateChange()
75 mAppContext.unregisterReceiver(mReceiver); in stopMonitoringStateChange()
97 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
98 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
99 + mAppContext.getText(R.string.condition_zen_title)) in buildContextualCard()
100 .setTitleText(mAppContext.getText(R.string.condition_zen_title).toString()) in buildContextualCard()
102 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_do_not_disturb_on_24dp)) in buildContextualCard()
[all …]
DWorkModeConditionController.java47 private final Context mAppContext; field in WorkModeConditionController
55 mAppContext = appContext; in WorkModeConditionController()
56 mUm = mAppContext.getSystemService(UserManager.class); in WorkModeConditionController()
90 .setActionText(mAppContext.getText(R.string.condition_turn_on)) in buildContextualCard()
91 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
92 + mAppContext.getText(R.string.condition_work_title)) in buildContextualCard()
93 .setTitleText(mAppContext.getText(R.string.condition_work_title).toString()) in buildContextualCard()
94 .setSummaryText(mAppContext.getText(R.string.condition_work_summary).toString()) in buildContextualCard()
95 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_signal_workmode_enable)) in buildContextualCard()
102 mAppContext.registerReceiver(mReceiver, FILTER); in startMonitoringStateChange()
[all …]
DCellularDataConditionController.java41 private final Context mAppContext; field in CellularDataConditionController
48 mAppContext = appContext; in CellularDataConditionController()
86 .setActionText(mAppContext.getText(R.string.condition_turn_on)) in buildContextualCard()
87 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
88 + mAppContext.getText(R.string.condition_cellular_title)) in buildContextualCard()
89 .setTitleText(mAppContext.getText(R.string.condition_cellular_title).toString()) in buildContextualCard()
90 .setSummaryText(mAppContext.getText(R.string.condition_cellular_summary).toString()) in buildContextualCard()
91 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_cellular_off)) in buildContextualCard()
98 mAppContext.registerReceiver(mReceiver, DATA_CONNECTION_FILTER); in startMonitoringStateChange()
103 mAppContext.unregisterReceiver(mReceiver); in stopMonitoringStateChange()
DBatterySaverConditionController.java36 private final Context mAppContext; field in BatterySaverConditionController
42 mAppContext = appContext; in BatterySaverConditionController()
70 BatterySaverUtils.setPowerSaveMode(mAppContext, false, in onActionClick()
79 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
80 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
81 + mAppContext.getText(R.string.condition_battery_title)) in buildContextualCard()
82 .setTitleText(mAppContext.getText(R.string.condition_battery_title).toString()) in buildContextualCard()
83 .setSummaryText(mAppContext.getText(R.string.condition_battery_summary).toString()) in buildContextualCard()
84 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_battery_saver_accent_24dp)) in buildContextualCard()
DRingerMutedConditionController.java31 private final Context mAppContext; field in RingerMutedConditionController
35 mAppContext = appContext; in RingerMutedConditionController()
54 mAppContext.getText(R.string.condition_device_muted_action_turn_on_sound)) in buildContextualCard()
55 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
56 + mAppContext.getText(R.string.condition_device_muted_title)) in buildContextualCard()
57 .setTitleText(mAppContext.getText(R.string.condition_device_muted_title).toString()) in buildContextualCard()
59 mAppContext.getText(R.string.condition_device_muted_summary).toString()) in buildContextualCard()
60 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_notifications_off_24dp)) in buildContextualCard()
DRingerVibrateConditionController.java31 private final Context mAppContext; field in RingerVibrateConditionController
35 mAppContext = appContext; in RingerVibrateConditionController()
55 mAppContext.getText(R.string.condition_device_muted_action_turn_on_sound)) in buildContextualCard()
56 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
57 + mAppContext.getText(R.string.condition_device_vibrate_title)) in buildContextualCard()
59 mAppContext.getText(R.string.condition_device_vibrate_title).toString()) in buildContextualCard()
61 mAppContext.getText(R.string.condition_device_vibrate_summary).toString()) in buildContextualCard()
62 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_volume_ringer_vibrate)) in buildContextualCard()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DGrayscaleConditionController.java44 private final Context mAppContext; field in GrayscaleConditionController
52 mAppContext = appContext; in GrayscaleConditionController()
54 mColorDisplayManager = mAppContext.getSystemService(ColorDisplayManager.class); in GrayscaleConditionController()
67 mAppContext.getString(R.string.config_grayscale_settings_intent), in isDisplayable()
78 mAppContext.startActivity(mIntent); in onPrimaryClick()
94 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
95 .setName(mAppContext.getPackageName() + "/" + mAppContext.getText( in buildContextualCard()
97 .setTitleText(mAppContext.getText(R.string.condition_grayscale_title).toString()) in buildContextualCard()
99 mAppContext.getText(R.string.condition_grayscale_summary).toString()) in buildContextualCard()
100 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_gray_scale_24dp)) in buildContextualCard()
[all …]
DAirplaneModeConditionController.java41 private final Context mAppContext; field in AirplaneModeConditionController
45 mAppContext = appContext; in AirplaneModeConditionController()
57 return WirelessUtils.isAirplaneModeOn(mAppContext); in isDisplayable()
68 ConnectivityManager.from(mAppContext).setAirplaneMode(false); in onActionClick()
76 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
77 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
78 + mAppContext.getText(R.string.condition_airplane_title)) in buildContextualCard()
79 .setTitleText(mAppContext.getText(R.string.condition_airplane_title).toString()) in buildContextualCard()
80 .setSummaryText(mAppContext.getText(R.string.condition_airplane_summary).toString()) in buildContextualCard()
81 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_airplanemode_active)) in buildContextualCard()
[all …]
DHotspotConditionController.java45 private final Context mAppContext; field in HotspotConditionController
52 mAppContext = appContext; in HotspotConditionController()
81 mAppContext, UserManager.DISALLOW_CONFIG_TETHERING, UserHandle.myUserId()); in onActionClick()
83 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mAppContext, admin); in onActionClick()
85 ConnectivityManager cm = (ConnectivityManager) mAppContext.getSystemService( in onActionClick()
96 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
97 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
98 + mAppContext.getText(R.string.condition_hotspot_title)) in buildContextualCard()
99 .setTitleText(mAppContext.getText(R.string.condition_hotspot_title).toString()) in buildContextualCard()
101 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_hotspot)) in buildContextualCard()
[all …]
DConditionManager.java46 private final Context mAppContext; field in ConditionManager
52 mAppContext = context.getApplicationContext(); in ConditionManager()
154 mCardControllers.add(new AirplaneModeConditionController(mAppContext, this /* manager */)); in initCandidates()
156 new BackgroundDataConditionController(mAppContext, this /* manager */)); in initCandidates()
157 mCardControllers.add(new BatterySaverConditionController(mAppContext, this /* manager */)); in initCandidates()
158 mCardControllers.add(new CellularDataConditionController(mAppContext, this /* manager */)); in initCandidates()
159 mCardControllers.add(new DndConditionCardController(mAppContext, this /* manager */)); in initCandidates()
160 mCardControllers.add(new HotspotConditionController(mAppContext, this /* manager */)); in initCandidates()
161 mCardControllers.add(new NightDisplayConditionController(mAppContext, this /* manager */)); in initCandidates()
162 mCardControllers.add(new RingerVibrateConditionController(mAppContext, this /* manager */)); in initCandidates()
[all …]
DDndConditionCardController.java46 private final Context mAppContext; field in DndConditionCardController
52 mAppContext = appContext; in DndConditionCardController()
54 mNotificationManager = mAppContext.getSystemService(NotificationManager.class); in DndConditionCardController()
70 mAppContext.registerReceiver(mReceiver, DND_FILTER); in startMonitoringStateChange()
75 mAppContext.unregisterReceiver(mReceiver); in stopMonitoringStateChange()
97 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
98 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
99 + mAppContext.getText(R.string.condition_zen_title)) in buildContextualCard()
100 .setTitleText(mAppContext.getText(R.string.condition_zen_title).toString()) in buildContextualCard()
102 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_do_not_disturb_on_24dp)) in buildContextualCard()
[all …]
DWorkModeConditionController.java47 private final Context mAppContext; field in WorkModeConditionController
55 mAppContext = appContext; in WorkModeConditionController()
56 mUm = mAppContext.getSystemService(UserManager.class); in WorkModeConditionController()
90 .setActionText(mAppContext.getText(R.string.condition_turn_on)) in buildContextualCard()
91 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
92 + mAppContext.getText(R.string.condition_work_title)) in buildContextualCard()
93 .setTitleText(mAppContext.getText(R.string.condition_work_title).toString()) in buildContextualCard()
94 .setSummaryText(mAppContext.getText(R.string.condition_work_summary).toString()) in buildContextualCard()
95 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_signal_workmode_enable)) in buildContextualCard()
102 mAppContext.registerReceiver(mReceiver, FILTER); in startMonitoringStateChange()
[all …]
DCellularDataConditionController.java41 private final Context mAppContext; field in CellularDataConditionController
48 mAppContext = appContext; in CellularDataConditionController()
86 .setActionText(mAppContext.getText(R.string.condition_turn_on)) in buildContextualCard()
87 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
88 + mAppContext.getText(R.string.condition_cellular_title)) in buildContextualCard()
89 .setTitleText(mAppContext.getText(R.string.condition_cellular_title).toString()) in buildContextualCard()
90 .setSummaryText(mAppContext.getText(R.string.condition_cellular_summary).toString()) in buildContextualCard()
91 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_cellular_off)) in buildContextualCard()
98 mAppContext.registerReceiver(mReceiver, DATA_CONNECTION_FILTER); in startMonitoringStateChange()
103 mAppContext.unregisterReceiver(mReceiver); in stopMonitoringStateChange()
DBatterySaverConditionController.java36 private final Context mAppContext; field in BatterySaverConditionController
42 mAppContext = appContext; in BatterySaverConditionController()
70 BatterySaverUtils.setPowerSaveMode(mAppContext, false, in onActionClick()
79 .setActionText(mAppContext.getText(R.string.condition_turn_off)) in buildContextualCard()
80 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
81 + mAppContext.getText(R.string.condition_battery_title)) in buildContextualCard()
82 .setTitleText(mAppContext.getText(R.string.condition_battery_title).toString()) in buildContextualCard()
83 .setSummaryText(mAppContext.getText(R.string.condition_battery_summary).toString()) in buildContextualCard()
84 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_battery_saver_accent_24dp)) in buildContextualCard()
DRingerVibrateConditionController.java31 private final Context mAppContext; field in RingerVibrateConditionController
35 mAppContext = appContext; in RingerVibrateConditionController()
55 mAppContext.getText(R.string.condition_device_muted_action_turn_on_sound)) in buildContextualCard()
56 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
57 + mAppContext.getText(R.string.condition_device_vibrate_title)) in buildContextualCard()
59 mAppContext.getText(R.string.condition_device_vibrate_title).toString()) in buildContextualCard()
61 mAppContext.getText(R.string.condition_device_vibrate_summary).toString()) in buildContextualCard()
62 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_volume_ringer_vibrate)) in buildContextualCard()
DRingerMutedConditionController.java31 private final Context mAppContext; field in RingerMutedConditionController
35 mAppContext = appContext; in RingerMutedConditionController()
54 mAppContext.getText(R.string.condition_device_muted_action_turn_on_sound)) in buildContextualCard()
55 .setName(mAppContext.getPackageName() + "/" in buildContextualCard()
56 + mAppContext.getText(R.string.condition_device_muted_title)) in buildContextualCard()
57 .setTitleText(mAppContext.getText(R.string.condition_device_muted_title).toString()) in buildContextualCard()
59 mAppContext.getText(R.string.condition_device_muted_summary).toString()) in buildContextualCard()
60 .setIconDrawable(mAppContext.getDrawable(R.drawable.ic_notifications_off_24dp)) in buildContextualCard()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.java42 private final Context mAppContext; field in AlarmUpdateHandler
51 mAppContext = context.getApplicationContext(); in AlarmUpdateHandler()
68 ContentResolver cr = mAppContext.getContentResolver(); in asyncAddAlarm()
108 ContentResolver cr = mAppContext.getContentResolver(); in asyncUpdateAlarm()
130 AlarmNotifications.updateNotification(mAppContext, newInstance); in asyncUpdateAlarm()
135 AlarmStateManager.deleteAllInstances(mAppContext, alarm.id); in asyncUpdateAlarm()
165 AlarmStateManager.deleteAllInstances(mAppContext, alarm.id); in asyncDeleteAlarm()
166 return Alarm.deleteAlarm(mAppContext.getContentResolver(), alarm.id); in asyncDeleteAlarm()
186 final String time = DateFormat.getTimeFormat(mAppContext).format( in showPredismissToast()
188 final String text = mAppContext.getString(R.string.alarm_is_dismissed, time); in showPredismissToast()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCreationFragment.java65 private Context mAppContext; field in AccountCreationFragment
105 mAppContext = getActivity().getApplicationContext(); in onActivityCreated()
176 return new MailAsyncTaskLoader<Boolean>(mAppContext) { in onCreateLoader()
185 AccountSettingsUtils.commitSettings(mAppContext, account); in onCreateLoader()
187 EmailServiceUtils.setupAccountManagerAccount(mAppContext, account, in onCreateLoader()
206 new AccountPreferences(mAppContext, account.getEmailAddress()) in onCreateLoader()
212 AccountSettingsUtils.commitSettings(mAppContext, account); in onCreateLoader()
252 return new MailAsyncTaskLoader<Account>(mAppContext) {
258 account.refresh(mAppContext);
292 return new MailAsyncTaskLoader<Account>(mAppContext) {
[all …]

123