Home
last modified time | relevance | path

Searched refs:Prefs (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java30 import com.android.systemui.Prefs;
31 import com.android.systemui.Prefs.Key;
52 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true); in testMigration()
53 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true); in testMigration()
61 assertTrue(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true )); in testMigration()
62 assertFalse(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, false)); in testMigration()
63 assertTrue(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, true)); in testMigration()
64 assertFalse(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, false)); in testMigration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsOnboarding.java23 import static com.android.systemui.Prefs.Key.DISMISSED_RECENTS_SWIPE_UP_ONBOARDING_COUNT;
24 import static com.android.systemui.Prefs.Key.HAS_DISMISSED_RECENTS_QUICK_SCRUB_ONBOARDING_ONCE;
25 import static com.android.systemui.Prefs.Key.HAS_SEEN_RECENTS_QUICK_SCRUB_ONBOARDING;
26 import static com.android.systemui.Prefs.Key.HAS_SEEN_RECENTS_SWIPE_UP_ONBOARDING;
27 import static com.android.systemui.Prefs.Key.OVERVIEW_OPENED_COUNT;
28 import static com.android.systemui.Prefs.Key.OVERVIEW_OPENED_FROM_HOME_COUNT;
64 import com.android.systemui.Prefs;
499 return Prefs.getBoolean(mContext, HAS_SEEN_RECENTS_SWIPE_UP_ONBOARDING, false); in hasSeenSwipeUpOnboarding()
503 Prefs.putBoolean(mContext, HAS_SEEN_RECENTS_SWIPE_UP_ONBOARDING, hasSeenSwipeUpOnboarding); in setHasSeenSwipeUpOnboarding()
510 return Prefs.getBoolean(mContext, HAS_SEEN_RECENTS_QUICK_SCRUB_ONBOARDING, false); in hasSeenQuickScrubOnboarding()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileRevealController.java3 import static com.android.systemui.Prefs.Key.QS_TILE_SPECS_REVEALED;
9 import com.android.systemui.Prefs;
57 final Set<String> revealedTiles = Prefs.getStringSet( in updateRevealedTiles()
72 Prefs.getStringSet(mContext, QS_TILE_SPECS_REVEALED, Collections.EMPTY_SET)); in addTileSpecsToRevealed()
74 Prefs.putStringSet(mContext, QS_TILE_SPECS_REVEALED, revealedTiles); in addTileSpecsToRevealed()
DAutoAddTracker.java31 import com.android.systemui.Prefs;
32 import com.android.systemui.Prefs.Key;
59 if (Prefs.getBoolean(context, convertPref[0], false)) { in AutoAddTracker()
61 Prefs.remove(context, convertPref[0]); in AutoAddTracker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java52 import com.android.systemui.Prefs;
108 Prefs.putBoolean(context, Prefs.Key.DND_TILE_VISIBLE, visible); in setVisible()
112 return Prefs.getBoolean(context, Prefs.Key.DND_TILE_VISIBLE, false /* defaultValue */); in isVisible()
116 Prefs.putBoolean(context, Prefs.Key.DND_TILE_COMBINED_ICON, combined); in setCombinedIcon()
120 return Prefs.getBoolean(context, Prefs.Key.DND_TILE_COMBINED_ICON, in isCombinedIcon()
290 Prefs.registerListener(mContext, mPrefListener); in handleSetListening()
292 Prefs.unregisterListener(mContext, mPrefListener); in handleSetListening()
305 @Prefs.Key String key) {
306 if (Prefs.Key.DND_TILE_COMBINED_ICON.equals(key) ||
307 Prefs.Key.DND_TILE_VISIBLE.equals(key)) {
DDataSaverTile.java24 import com.android.systemui.Prefs;
63 || Prefs.getBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, false)) { in handleClick()
77 Prefs.putBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, true); in handleClick()
DCellularTile.java19 import static com.android.systemui.Prefs.Key.QS_HAS_TURNED_OFF_MOBILE_DATA;
39 import com.android.systemui.Prefs;
107 if (Prefs.getBoolean(mContext, QS_HAS_TURNED_OFF_MOBILE_DATA, false)) { in maybeShowDisableDialog()
124 Prefs.putBoolean(mContext, QS_HAS_TURNED_OFF_MOBILE_DATA, true); in maybeShowDisableDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java60 import com.android.systemui.Prefs;
272 Prefs.putBoolean(mContext, prefKey, true); in confirmZenIntroduction()
279 return Prefs.Key.DND_CONFIRMED_PRIORITY_INTRODUCTION; in prefKeyForConfirmation()
281 return Prefs.Key.DND_CONFIRMED_SILENCE_INTRODUCTION; in prefKeyForConfirmation()
283 return Prefs.Key.DND_CONFIRMED_ALARM_INTRODUCTION; in prefKeyForConfirmation()
894 Prefs.registerListener(mContext, this); in ZenPrefs()
906 Prefs.putInt(mContext, Prefs.Key.DND_NONE_SELECTED, mNoneSelected); in trackNoneSelected()
918 Prefs.putInt(mContext, Prefs.Key.DND_FAVORITE_BUCKET_INDEX, mMinuteIndex); in setMinuteIndex()
931 mMinuteIndex = clampIndex(Prefs.getInt(mContext, in updateMinuteIndex()
932 Prefs.Key.DND_FAVORITE_BUCKET_INDEX, DEFAULT_BUCKET_INDEX)); in updateMinuteIndex()
[all …]
DVolumeDialogImpl.java90 import com.android.systemui.Prefs;
177 Prefs.getBoolean(context, Prefs.Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, false); in VolumeDialogImpl()
243 if (!Prefs.getBoolean(mContext, Prefs.Key.TOUCHED_RINGER_TOGGLE, false)) { in initDialog()
484 Prefs.putBoolean(mContext, Prefs.Key.TOUCHED_RINGER_TOGGLE, true); in initRingerH()
557 Prefs.putBoolean(mContext, in showCaptionsTooltip()
558 Prefs.Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, true); in showCaptionsTooltip()
644 int seenToastCount = Prefs.getInt(mContext, Prefs.Key.SEEN_RINGER_GUIDANCE_COUNT, 0); in maybeShowToastH()
671 Prefs.putInt(mContext, Prefs.Key.SEEN_RINGER_GUIDANCE_COUNT, seenToastCount); in maybeShowToastH()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerZenModePanel.java30 import com.android.systemui.Prefs;
93 mZenMode = Prefs.getInt(mContext, Prefs.Key.DND_FAVORITE_ZEN, in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DMultiUserSwitch.java33 import com.android.systemui.Prefs;
34 import com.android.systemui.Prefs.Key;
79 && Prefs.getBoolean(getContext(), Key.SEEN_MULTI_USER, false); in hasMultipleUsers()
DStatusBar.java140 import com.android.systemui.Prefs;
2387 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java29 public final class Prefs { class
30 private Prefs() {} // no instantation in Prefs() method in Prefs
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java56 import com.android.systemui.Prefs;
219 Prefs.putInt( in longClick()
221 Prefs.Key.QS_LONG_PRESS_TOOLTIP_SHOWN_COUNT, in longClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java56 import com.android.systemui.Prefs;
57 import com.android.systemui.Prefs.Key;
236 Prefs.putBoolean(mContext, Key.SEEN_MULTI_USER, true); in refreshUsers()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBar.java60 import com.android.systemui.Prefs;
884 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()