Searched refs:SettingsState (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 122 int configKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_CONFIG, 0); in testLoadValidAconfigProto() 124 SettingsState settingsState = new SettingsState( in testLoadValidAconfigProto() 126 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testLoadValidAconfigProto() 180 int configKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_CONFIG, 0); in testSkipLoadingAconfigFlagWithMissingFields() 182 SettingsState settingsState = new SettingsState( in testSkipLoadingAconfigFlagWithMissingFields() 184 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testSkipLoadingAconfigFlagWithMissingFields() 211 int configKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_CONFIG, 0); in testWritingAconfigFlagStages() 213 SettingsState settingsState = new SettingsState( in testWritingAconfigFlagStages() 215 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testWritingAconfigFlagStages() 265 SettingsState settingsState = getSettingStateObject(); in testInvalidAconfigProtoDoesNotCrash() [all …]
|
D | GenerationRegistryTest.java | 40 final int secureKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SECURE, 0); in testGenerationsWithRegularSetting() 56 final int systemKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SYSTEM, 0); in testGenerationsWithRegularSetting() 73 final int systemKey2 = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SYSTEM, 10); in testGenerationsWithRegularSetting() 98 final int configKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_CONFIG, 0); in testGenerationsWithConfigSetting() 118 final int key = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SECURE, i); in testMaxNumBackingStores() 123 final int key = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SECURE, in testMaxNumBackingStores() 137 final int secureKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SECURE, 0); in testMaxSizeBackingStore() 157 final int secureKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_SECURE, 0); in testUnsetSettings() 176 final int globalKey = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_GLOBAL, 0); in testGlobalSettings() 182 final int globalKey2 = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_GLOBAL, 10); in testGlobalSettings()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | GenerationRegistry.java | 95 (SettingsState.getTypeFromKey(key) == SettingsState.SETTINGS_TYPE_CONFIG); in incrementGeneration() 102 if (SettingsState.isGlobalSettingsKey(key)) { in incrementGenerationInternal() 104 key = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in incrementGenerationInternal() 123 + " key:" + SettingsState.keyToString(key) in incrementGenerationInternal() 137 (SettingsState.getTypeFromKey(key) == SettingsState.SETTINGS_TYPE_CONFIG); in incrementGenerationForUnsetSettings() 151 if (SettingsState.isGlobalSettingsKey(key)) { in addGenerationData() 153 key = SettingsState.makeKey(SettingsState.SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in addGenerationData() 175 + " key:" + SettingsState.keyToString(key)); in addGenerationData() 189 final int secureKey = SettingsState.makeKey( in onUserRemoved() 190 SettingsState.SETTINGS_TYPE_SECURE, userId); in onUserRemoved() [all …]
|
D | SettingsProvider.java | 37 import static com.android.providers.settings.SettingsState.FALLBACK_FILE_SUFFIX; 38 import static com.android.providers.settings.SettingsState.getTypeFromKey; 39 import static com.android.providers.settings.SettingsState.getUserIdFromKey; 40 import static com.android.providers.settings.SettingsState.isConfigSettingsKey; 41 import static com.android.providers.settings.SettingsState.isGlobalSettingsKey; 42 import static com.android.providers.settings.SettingsState.isSecureSettingsKey; 43 import static com.android.providers.settings.SettingsState.isSystemSettingsKey; 44 import static com.android.providers.settings.SettingsState.makeKey; 127 import com.android.providers.settings.SettingsState.Setting; 239 public static final int SETTINGS_TYPE_GLOBAL = SettingsState.SETTINGS_TYPE_GLOBAL; [all …]
|
D | SettingsProtoDumpUtil.java | 101 SettingsState configSettings = settingsRegistry.getSettingsLocked( in dumpProtoLocked() 109 SettingsState globalSettings = settingsRegistry.getSettingsLocked( in dumpProtoLocked() 152 SettingsState secureSettings = settingsRegistry.getSettingsLocked( in dumpProtoUserSettingsLocked() 158 SettingsState systemSettings = settingsRegistry.getSettingsLocked( in dumpProtoUserSettingsLocked() 168 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { in dumpProtoGlobalSettingsLocked() 1648 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { in dumpProtoConfigSettingsLocked() 1675 private static void dumpRepeatedSetting(@NonNull SettingsState settings, in dumpRepeatedSetting() 1685 private static void dumpSetting(@NonNull SettingsState settings, in dumpSetting() 1687 SettingsState.Setting setting = settings.getSettingLocked(settingName); in dumpSetting() 1703 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { in dumpProtoSecureSettingsLocked() [all …]
|
D | SettingsState.java | 110 final class SettingsState { class 343 public SettingsState( in SettingsState() method in SettingsState 862 final boolean isNameTooLong = name.length() > SettingsState.MAX_LENGTH_PER_STRING; in insertSettingLocked() 864 value != null && value.length() > SettingsState.MAX_LENGTH_PER_STRING; in insertSettingLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/ |
D | CommunalTutorialRepository.kt | 85 private data class SettingsState( dataClass 91 private val settingsState: Flow<SettingsState> = 113 private fun observeSettings(userId: Int): Flow<SettingsState> = in observeSettings() 123 private suspend fun readFromSettings(userId: Int): SettingsState = in readFromSettings() 141 val settingsState = SettingsState(hubModeTutorialState) in readFromSettings()
|
/frameworks/proto_logging/stats/ |
D | atoms.proto | 4901 * frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java
|