Home
last modified time | relevance | path

Searched refs:Prefs (Results 1 – 18 of 18) 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()
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/
DQSTileRevealController.java3 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()
DAutoAddTracker.java32 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/
DAccessibilityFloatingMenu.java27 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/
DDndTile.java53 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)) {
DDataSaverTile.java30 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()
DCellularTile.java19 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/
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 …]
DVolumeDialogImpl.java109 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/
DCommandRegistry.kt21 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/
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/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java41 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/
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/
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>()
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/
DDependencyProvider.java47 import com.android.systemui.Prefs;
130 return Prefs.get(context); in provideSharePreferences()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java63 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/
DStatusBar.java146 import com.android.systemui.Prefs;
2807 for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) { in dump()