/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | AutoAddTrackerTest.java | 30 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/ |
D | RecentsOnboarding.java | 23 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/ |
D | QSTileRevealController.java | 3 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()
|
D | AutoAddTracker.java | 31 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/ |
D | DndTile.java | 52 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)) {
|
D | DataSaverTile.java | 24 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()
|
D | CellularTile.java | 19 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/ |
D | ZenModePanel.java | 60 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 …]
|
D | VolumeDialogImpl.java | 90 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/ |
D | TunerZenModePanel.java | 30 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/ |
D | MultiUserSwitch.java | 33 import com.android.systemui.Prefs; 34 import com.android.systemui.Prefs.Key; 79 && Prefs.getBoolean(getContext(), Key.SEEN_MULTI_USER, false); in hasMultipleUsers()
|
D | StatusBar.java | 140 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/ |
D | Prefs.java | 29 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/ |
D | QSTileImpl.java | 56 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/ |
D | UserSwitcherController.java | 56 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/ |
D | CarStatusBar.java | 60 import com.android.systemui.Prefs; 884 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()
|