/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | AutoAddTrackerTest.java | 31 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/ |
D | RecentsOnboarding.java | 22 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/ |
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 | 32 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/ |
D | DataSaverTile.java | 24 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()
|
D | DndTile.java | 52 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)) {
|
D | CellularTile.java | 19 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/ |
D | ZenModePanel.java | 61 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/ |
D | TooltipManager.kt | 30 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/ |
D | PriorityOnboardingDialogController.kt | 45 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>()
|
D | NotificationConversationInfo.java | 66 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/ |
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 | 137 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/ |
D | Prefs.java | 43 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/ |
D | ControlsFavoritingActivity.kt | 36 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/ |
D | DependencyProvider.java | 42 import com.android.systemui.Prefs; 96 return Prefs.get(context); in provideSharePreferences()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationConversationInfoTest.java | 76 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/ |
D | QSTileImpl.java | 59 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/ |
D | BubbleStackView.java | 23 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/ |
D | CarStatusBar.java | 37 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/ |
D | UserSwitcherController.java | 60 import com.android.systemui.Prefs; 61 import com.android.systemui.Prefs.Key; 254 Prefs.putBoolean(mContext, Key.SEEN_MULTI_USER, true); in refreshUsers()
|