Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java31 import com.android.systemui.Prefs;
32 import com.android.systemui.Prefs.Key;
55 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true); in testMigration()
56 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true); in testMigration()
64 assertTrue(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true )); in testMigration()
65 assertFalse(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, false)); in testMigration()
66 assertTrue(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, true)); in testMigration()
67 assertFalse(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, false)); in testMigration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsOnboarding.java22 import static com.android.systemui.Prefs.Key.DISMISSED_RECENTS_SWIPE_UP_ONBOARDING_COUNT;
23 import static com.android.systemui.Prefs.Key.HAS_DISMISSED_RECENTS_QUICK_SCRUB_ONBOARDING_ONCE;
24 import static com.android.systemui.Prefs.Key.HAS_SEEN_RECENTS_QUICK_SCRUB_ONBOARDING;
25 import static com.android.systemui.Prefs.Key.HAS_SEEN_RECENTS_SWIPE_UP_ONBOARDING;
26 import static com.android.systemui.Prefs.Key.OVERVIEW_OPENED_COUNT;
27 import static com.android.systemui.Prefs.Key.OVERVIEW_OPENED_FROM_HOME_COUNT;
63 import com.android.systemui.Prefs;
505 return Prefs.getBoolean(mContext, HAS_SEEN_RECENTS_SWIPE_UP_ONBOARDING, false); in hasSeenSwipeUpOnboarding()
509 Prefs.putBoolean(mContext, HAS_SEEN_RECENTS_SWIPE_UP_ONBOARDING, hasSeenSwipeUpOnboarding); in setHasSeenSwipeUpOnboarding()
516 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.java32 import com.android.systemui.Prefs;
33 import com.android.systemui.Prefs.Key;
63 if (Prefs.getBoolean(context, convertPref[0], false)) { in AutoAddTracker()
65 Prefs.remove(context, convertPref[0]); in AutoAddTracker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataSaverTile.java24 import com.android.systemui.Prefs;
59 || Prefs.getBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, false)) { in handleClick()
73 Prefs.putBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, true); in handleClick()
DDndTile.java52 import com.android.systemui.Prefs;
115 Prefs.putBoolean(context, Prefs.Key.DND_TILE_VISIBLE, visible); in setVisible()
119 return prefs.getBoolean(Prefs.Key.DND_TILE_VISIBLE, false /* defaultValue */); in isVisible()
123 Prefs.putBoolean(context, Prefs.Key.DND_TILE_COMBINED_ICON, combined); in setCombinedIcon()
127 return sharedPreferences.getBoolean(Prefs.Key.DND_TILE_COMBINED_ICON, in isCombinedIcon()
300 Prefs.registerListener(mContext, mPrefListener); in handleSetListening()
302 Prefs.unregisterListener(mContext, mPrefListener); in handleSetListening()
315 @Prefs.Key String key) {
316 if (Prefs.Key.DND_TILE_COMBINED_ICON.equals(key) ||
317 Prefs.Key.DND_TILE_VISIBLE.equals(key)) {
DCellularTile.java19 import static com.android.systemui.Prefs.Key.QS_HAS_TURNED_OFF_MOBILE_DATA;
40 import com.android.systemui.Prefs;
114 if (Prefs.getBoolean(mContext, QS_HAS_TURNED_OFF_MOBILE_DATA, false)) { in maybeShowDisableDialog()
131 Prefs.putBoolean(mContext, QS_HAS_TURNED_OFF_MOBILE_DATA, true); in maybeShowDisableDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java61 import com.android.systemui.Prefs;
276 Prefs.putBoolean(mContext, prefKey, true); in confirmZenIntroduction()
283 return Prefs.Key.DND_CONFIRMED_PRIORITY_INTRODUCTION; in prefKeyForConfirmation()
285 return Prefs.Key.DND_CONFIRMED_SILENCE_INTRODUCTION; in prefKeyForConfirmation()
287 return Prefs.Key.DND_CONFIRMED_ALARM_INTRODUCTION; in prefKeyForConfirmation()
900 Prefs.registerListener(mContext, this); in ZenPrefs()
912 Prefs.putInt(mContext, Prefs.Key.DND_NONE_SELECTED, mNoneSelected); in trackNoneSelected()
924 Prefs.putInt(mContext, Prefs.Key.DND_FAVORITE_BUCKET_INDEX, mMinuteIndex); in setMinuteIndex()
937 mMinuteIndex = clampIndex(Prefs.getInt(mContext, in updateMinuteIndex()
938 Prefs.Key.DND_FAVORITE_BUCKET_INDEX, DEFAULT_BUCKET_INDEX)); in updateMinuteIndex()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DTooltipManager.kt30 import com.android.systemui.Prefs in <lambda>()
61 private var shown = Prefs.getInt(context, preferenceName, 0) in <lambda>()
66 Prefs.putInt(context, preferenceName, num) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DPriorityOnboardingDialogController.kt45 import com.android.systemui.Prefs in <lambda>()
81 Prefs.putBoolean(context, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING, true) in <lambda>()
87 Prefs.putBoolean(context, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING, true) in <lambda>()
DNotificationConversationInfo.java66 import com.android.systemui.Prefs;
521 return !Prefs.getBoolean(mUserContext, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING, false); in shouldShowPriorityOnboarding()
/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.java137 import com.android.systemui.Prefs;
2586 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java43 public final class Prefs { class
44 private Prefs() {} // no instantation in Prefs() method in Prefs
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsFavoritingActivity.kt36 import com.android.systemui.Prefs in <lambda>()
70 private const val TOOLTIP_PREFS_KEY = Prefs.Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT in <lambda>()
380 return Prefs.getInt(applicationContext, TOOLTIP_PREFS_KEY, 0) < TOOLTIP_MAX_SHOWN in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DDependencyProvider.java42 import com.android.systemui.Prefs;
96 return Prefs.get(context); in provideSharePreferences()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationConversationInfoTest.java76 import com.android.systemui.Prefs;
1030 Prefs.putBoolean(mContext, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING, false); in testSelectPriorityPresentsOnboarding_firstTime()
1072 Prefs.putBoolean(mContext, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING, true); in testSelectPriorityDoesNotShowOnboarding_secondTime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java59 import com.android.systemui.Prefs;
279 Prefs.putInt( in longClick()
281 Prefs.Key.QS_LONG_PRESS_TOOLTIP_SHOWN_COUNT, in longClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleStackView.java23 import static com.android.systemui.Prefs.Key.HAS_SEEN_BUBBLES_EDUCATION;
24 import static com.android.systemui.Prefs.Key.HAS_SEEN_BUBBLES_MANAGE_EDUCATION;
88 import com.android.systemui.Prefs;
1726 Prefs.putBoolean(getContext(), HAS_SEEN_BUBBLES_EDUCATION, true); in maybeShowStackUserEducation()
1815 Prefs.putBoolean(getContext(), HAS_SEEN_BUBBLES_MANAGE_EDUCATION, true); in maybeShowManageEducation()
2919 || !Prefs.getBoolean(getContext(), HAS_SEEN_BUBBLES_EDUCATION, false); in shouldShowBubblesEducation()
2925 || !Prefs.getBoolean(getContext(), HAS_SEEN_BUBBLES_MANAGE_EDUCATION, false); in shouldShowManageEducation()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/statusbar/
DCarStatusBar.java37 import com.android.systemui.Prefs;
451 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java60 import com.android.systemui.Prefs;
61 import com.android.systemui.Prefs.Key;
254 Prefs.putBoolean(mContext, Key.SEEN_MULTI_USER, true); in refreshUsers()