Searched refs:DreamSettings (Results 1 – 12 of 12) sorted by relevance
41 DreamSettings.WHILE_CHARGING_ONLY,42 DreamSettings.WHILE_DOCKED_ONLY,43 DreamSettings.EITHER_CHARGING_OR_DOCKED,44 DreamSettings.NEVER_DREAM64 assertThat(DreamSettings.getSettingFromPrefKey(KEYS.get(i))).isEqualTo(SETTINGS[i]); in getSettingFromPrefKey()67 assertThat(DreamSettings.getSettingFromPrefKey("garbage value")) in getSettingFromPrefKey()74 assertThat(DreamSettings.getKeyFromSetting(SETTINGS[i])).isEqualTo(KEYS.get(i)); in getKeyFromSetting()77 assertThat(DreamSettings.getKeyFromSetting(-1)) in getKeyFromSetting()78 .isEqualTo(DreamSettings.NEVER_DREAM); in getKeyFromSetting()84 assertThat(DreamSettings.getDreamSettingDescriptionResId(SETTINGS[i])) in getDreamSettingDescriptionResId()[all …]
67 .isEqualTo(DreamSettings.getKeyFromSetting(DreamBackend.WHILE_CHARGING)); in getDefaultKeyReturnsCurrentWhenToDreamSetting()71 .isEqualTo(DreamSettings.getKeyFromSetting(DreamBackend.WHILE_DOCKED)); in getDefaultKeyReturnsCurrentWhenToDreamSetting()75 .isEqualTo(DreamSettings.getKeyFromSetting(DreamBackend.EITHER)); in getDefaultKeyReturnsCurrentWhenToDreamSetting()79 .isEqualTo(DreamSettings.getKeyFromSetting(DreamBackend.NEVER)); in getDefaultKeyReturnsCurrentWhenToDreamSetting()84 final String key = DreamSettings.getKeyFromSetting(DreamBackend.WHILE_CHARGING); in setDreamWhileCharging()91 final String key = DreamSettings.getKeyFromSetting(DreamBackend.WHILE_DOCKED); in setDreamWhileDocked()98 final String key = DreamSettings.getKeyFromSetting(DreamBackend.EITHER); in setDreamWhileChargingOrDocked()105 final String key = DreamSettings.getKeyFromSetting(DreamBackend.NEVER); in setDreamNever()
64 mContext.getString(DreamSettings.getDreamSettingDescriptionResId(testSetting)); in updateSummary()
21 import com.android.settings.dream.DreamSettings;46 preference.setSummary(DreamSettings.getSummaryTextWithDreamName(mContext)); in updateState()
21 import com.android.car.developeroptions.dream.DreamSettings;46 preference.setSummary(DreamSettings.getSummaryTextWithDreamName(mContext)); in updateState()
81 return DreamSettings.getKeyFromSetting(mBackend.getWhenToDreamSetting()); in getDefaultKey()86 mBackend.setWhenToDream(DreamSettings.getSettingFromPrefKey(key)); in setDefaultKey()
43 int resId = DreamSettings.getDreamSettingDescriptionResId(mBackend.getWhenToDreamSetting()); in updateState()
43 public class DreamSettings extends DashboardFragment { class
78 import com.android.settings.dream.DreamSettings;218 DreamSettings.class.getName(),