/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/data/repository/ |
D | ColorInversionRepositoryImplTest.kt | 76 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_initiallyGetsSettingsValue() 87 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 89 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 91 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 104 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 105 settings.putIntForUser(SETTING_NAME, DISABLED, testUser2.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 110 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 123 val actualValue = settings.getIntForUser(SETTING_NAME, testUser1.identifier) in setEnabled() 134 val actualValue = settings.getIntForUser(SETTING_NAME, testUser1.identifier) in setDisabled() 139 private const val SETTING_NAME = ACCESSIBILITY_DISPLAY_INVERSION_ENABLED constant
|
D | ColorCorrectionRepositoryImplTest.kt | 76 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_initiallyGetsSettingsValue() 87 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 90 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 93 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 106 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 107 settings.putIntForUser(SETTING_NAME, DISABLED, testUser2.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 113 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 127 val actualValue = settings.getIntForUser(SETTING_NAME, testUser1.identifier) in setEnabled() 138 val actualValue = settings.getIntForUser(SETTING_NAME, testUser1.identifier) in setDisabled() 143 private const val SETTING_NAME = ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED constant
|
D | OneHandedModeRepositoryImplTest.kt | 69 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_initiallyGetsSettingsValue() 82 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 88 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingUpdated_valueUpdated() 99 settings.putIntForUser(SETTING_NAME, DISABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 100 settings.putIntForUser(SETTING_NAME, DISABLED, testUser2.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 105 settings.putIntForUser(SETTING_NAME, ENABLED, testUser1.identifier) in isEnabled_settingForUserOneOnly_valueUpdatedForUserOneOnly() 118 val actualValue = settings.getIntForUser(SETTING_NAME, testUser1.identifier) in setEnabled() 129 val actualValue = settings.getIntForUser(SETTING_NAME, testUser1.identifier) in setDisabled() 134 private const val SETTING_NAME = Settings.Secure.ONE_HANDED_MODE_ENABLED constant
|
D | UserA11yQsShortcutsRepositoryTest.kt | 54 SETTING_NAME, in targetsMatchesSetting() 65 private const val SETTING_NAME = Settings.Secure.ACCESSIBILITY_QS_TARGETS constant
|
D | AccessibilityQsShortcutsRepositoryImplTest.kt | 93 SETTING_NAME, in storeA11yQsShortcutTargetsForUser() 100 private const val SETTING_NAME = Settings.Secure.ACCESSIBILITY_QS_TARGETS constant
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/camera/data/repository/ |
D | CameraAutoRotateRepositoryImplTest.kt | 52 settings.putIntForUser(SETTING_NAME, DISABLE, testUser.identifier) in isCameraAutoRotateSettingEnabled_3times() 58 settings.putIntForUser(SETTING_NAME, ENABLE, testUser.identifier) in isCameraAutoRotateSettingEnabled_3times() 62 settings.putIntForUser(SETTING_NAME, DISABLE, testUser.identifier) in isCameraAutoRotateSettingEnabled_3times() 66 settings.putIntForUser(SETTING_NAME, ENABLE, testUser.identifier) in isCameraAutoRotateSettingEnabled_3times() 88 settings.putIntForUser(SETTING_NAME, DISABLE, testUser.identifier) in isCameraAutoRotateSettingEnabled_0Times() 93 settings.putIntForUser(SETTING_NAME, DISABLE, testUser.identifier) in isCameraAutoRotateSettingEnabled_0Times() 121 private const val SETTING_NAME = Settings.Secure.CAMERA_AUTOROTATE constant
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 86 private static final String SETTING_NAME = "test_setting"; field in SettingsStateTest 416 settingsWriter.insertSettingLocked(SETTING_NAME, "1", null, false, TEST_PACKAGE); in testInitializeSetting_preserveFlagNotSet() 421 assertFalse(settingsReader.getSettingLocked(SETTING_NAME).isValuePreservedInRestore()); in testInitializeSetting_preserveFlagNotSet() 427 settingsWriter.insertSettingLocked(SETTING_NAME, "1", null, false, TEST_PACKAGE); in testModifySetting_preserveFlagSet() 428 settingsWriter.insertSettingLocked(SETTING_NAME, "2", null, false, TEST_PACKAGE); in testModifySetting_preserveFlagSet() 433 assertTrue(settingsReader.getSettingLocked(SETTING_NAME).isValuePreservedInRestore()); in testModifySetting_preserveFlagSet() 439 settingsWriter.insertSettingLocked(SETTING_NAME, "1", null, false, TEST_PACKAGE); in testModifySettingOverrideableByRestore_preserveFlagNotSet() 440 settingsWriter.insertSettingLocked(SETTING_NAME, "2", null, false, false, TEST_PACKAGE, in testModifySettingOverrideableByRestore_preserveFlagNotSet() 446 assertFalse(settingsReader.getSettingLocked(SETTING_NAME).isValuePreservedInRestore()); in testModifySettingOverrideableByRestore_preserveFlagNotSet() 453 settingsWriter.insertSettingLocked(SETTING_NAME, "1", null, false, TEST_PACKAGE); in testModifySettingOverrideableByRestore_preserveFlagAlreadySet_flagValueUnchanged() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/settings/repository/ |
D | UserAwareSecureSettingsRepositoryTest.kt | 67 val enabled by collectLastValue(repository.boolSettingForActiveUser(SETTING_NAME)) in settingEnabledEmitsValueForCurrentUser() 77 val enabled by collectValues(repository.boolSettingForActiveUser(SETTING_NAME)) in settingEnabledEmitsNewValueWhenSettingChanges() 90 val enabled by collectLastValue(repository.boolSettingForActiveUser(SETTING_NAME)) in settingEnabledEmitsValueForNewUserWhenUserChanges() 100 secureSettings.putBoolForUser(SETTING_NAME, enabled, userInfo.id) in setSettingValueForUser() 104 const val SETTING_NAME = "SETTING_NAME" constant
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/ |
D | ColorInversionRepository.kt | 61 .observerFlow(userHandle.identifier, SETTING_NAME) in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 75 SETTING_NAME, in isEnabled() 82 private const val SETTING_NAME = Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED in isEnabled() constant
|
D | ColorCorrectionRepository.kt | 61 .observerFlow(userHandle.identifier, SETTING_NAME) in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 75 SETTING_NAME, in isEnabled() 82 private const val SETTING_NAME = Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED in isEnabled() constant
|
D | OneHandedModeRepository.kt | 61 .observerFlow(userHandle.identifier, SETTING_NAME) in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 75 SETTING_NAME, in isEnabled() 82 private const val SETTING_NAME = Settings.Secure.ONE_HANDED_MODE_ENABLED in isEnabled() constant
|
D | UserA11yQsShortcutsRepository.kt | 51 .observerFlow(userId, SETTING_NAME) 63 val settingValue = secureSettings.getStringForUser(SETTING_NAME, userId) ?: "" in getA11yQsShortcutTargets() 68 const val SETTING_NAME = Settings.Secure.ACCESSIBILITY_QS_TARGETS constant
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/camera/data/repository/ |
D | CameraAutoRotateRepository.kt | 63 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userId) == ENABLED in isCameraAutoRotateSettingEnabled() 66 const val SETTING_NAME = Settings.Secure.CAMERA_AUTOROTATE in isCameraAutoRotateSettingEnabled() constant
|