/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() 65 assertTrue(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true )); in testMigration() 66 assertFalse(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, false)); in testMigration() 67 assertTrue(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, true)); in testMigration() 68 assertFalse(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, false)); in testMigration()
|
/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; 64 final Set<String> revealedTiles = Prefs.getStringSet( in updateRevealedTiles() 79 Prefs.getStringSet(mContext, QS_TILE_SPECS_REVEALED, Collections.EMPTY_SET)); in addTileSpecsToRevealed() 81 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; 69 if (Prefs.getBoolean(mContext, convertPref[0], false)) { in initialize() 71 Prefs.remove(mContext, convertPref[0]); in initialize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityFloatingMenu.java | 27 import static com.android.systemui.Prefs.Key.HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP; 43 import com.android.systemui.Prefs; 152 final String absolutePositionString = Prefs.getString(context, in getPosition() 153 Prefs.Key.ACCESSIBILITY_FLOATING_MENU_POSITION, /* defaultValue= */ null); in getPosition() 185 Prefs.putString(context, Prefs.Key.ACCESSIBILITY_FLOATING_MENU_POSITION, in savePosition() 193 if (!Prefs.get(context).getBoolean( in showDockTooltipIfNecessary() 200 Prefs.putBoolean(context, HAS_SEEN_ACCESSIBILITY_FLOATING_MENU_DOCK_TOOLTIP, true); in showDockTooltipIfNecessary()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | DndTile.java | 53 import com.android.systemui.Prefs; 110 Prefs.putBoolean(context, Prefs.Key.DND_TILE_VISIBLE, visible); in setVisible() 114 return prefs.getBoolean(Prefs.Key.DND_TILE_VISIBLE, false /* defaultValue */); in isVisible() 118 Prefs.putBoolean(context, Prefs.Key.DND_TILE_COMBINED_ICON, combined); in setCombinedIcon() 122 return sharedPreferences.getBoolean(Prefs.Key.DND_TILE_COMBINED_ICON, in isCombinedIcon() 295 Prefs.registerListener(mContext, mPrefListener); in handleSetListening() 297 Prefs.unregisterListener(mContext, mPrefListener); in handleSetListening() 310 @Prefs.Key String key) { 311 if (Prefs.Key.DND_TILE_COMBINED_ICON.equals(key) || 312 Prefs.Key.DND_TILE_VISIBLE.equals(key)) {
|
D | DataSaverTile.java | 30 import com.android.systemui.Prefs; 81 || Prefs.getBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, false)) { in handleClick() 93 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; 45 import com.android.systemui.Prefs; 133 if (Prefs.getBoolean(mContext, QS_HAS_TURNED_OFF_MOBILE_DATA, false)) { in maybeShowDisableDialog() 151 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 …]
|
D | VolumeDialogImpl.java | 109 import com.android.systemui.Prefs; 268 Prefs.getBoolean(context, Prefs.Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, false); in VolumeDialogImpl() 411 if (!Prefs.getBoolean(mContext, Prefs.Key.TOUCHED_RINGER_TOGGLE, false)) { in initDialog() 1024 Prefs.putBoolean(mContext, Prefs.Key.TOUCHED_RINGER_TOGGLE, true); in initRingerH() 1109 Prefs.putBoolean(mContext, in showCaptionsTooltip() 1110 Prefs.Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, true); in showCaptionsTooltip() 1202 int seenToastCount = Prefs.getInt(mContext, Prefs.Key.SEEN_RINGER_GUIDANCE_COUNT, 0); in maybeShowToastH() 1229 Prefs.putInt(mContext, Prefs.Key.SEEN_RINGER_GUIDANCE_COUNT, seenToastCount); in maybeShowToastH()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/ |
D | CommandRegistry.kt | 21 import com.android.systemui.Prefs 177 for (field in Prefs.Key::class.java.declaredFields) { in execute() 179 pw.println(field.get(Prefs.Key::class.java)) in execute()
|
/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/tests/src/com/android/systemui/volume/ |
D | VolumeDialogImplTest.java | 41 import com.android.systemui.Prefs; 99 Prefs.putInt(mContext, in setup() 100 Prefs.Key.SEEN_RINGER_GUIDANCE_COUNT, in setup() 103 Prefs.putBoolean(mContext, Prefs.Key.HAS_SEEN_ODI_CAPTIONS_TOOLTIP, false); in setup()
|
/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/ |
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>() 71 private const val TOOLTIP_PREFS_KEY = Prefs.Key.CONTROLS_STRUCTURE_SWIPE_TOOLTIP_COUNT in <lambda>() 388 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 | 47 import com.android.systemui.Prefs; 130 return Prefs.get(context); in provideSharePreferences()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherController.java | 63 import com.android.systemui.Prefs; 64 import com.android.systemui.Prefs.Key; 319 Prefs.putBoolean(mContext, Key.SEEN_MULTI_USER, true); in refreshUsers()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBar.java | 146 import com.android.systemui.Prefs; 2807 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()
|