/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/settings/ |
D | ControlsSettingsDialogManagerImplTest.kt | 72 private lateinit var secureSettings: FakeSettings in <lambda>() variable in com.android.systemui.controls.settings.ControlsSettingsDialogManagerImplTest 84 secureSettings = FakeSettings() in <lambda>() 87 secureSettings.userId = userTracker.userId in <lambda>() 103 secureSettings, in <lambda>() 131 secureSettings.putBool(SETTING_SHOW, true) in <lambda>() 132 secureSettings.putBool(SETTING_ACTION, true) in <lambda>() 143 secureSettings.putBool(SETTING_SHOW, true) in <lambda>() 144 secureSettings.putBool(SETTING_ACTION, false) in <lambda>() 154 secureSettings.putBool(SETTING_SHOW, true) in <lambda>() 155 secureSettings.putBool(SETTING_ACTION, false) in <lambda>() [all …]
|
D | ControlsSettingsRepositoryImplTest.kt | 57 private lateinit var secureSettings: FakeSettings variable in com.android.systemui.controls.settings.ControlsSettingsRepositoryImplTest 62 secureSettings = FakeSettings() in setUp() 74 secureSettings = secureSettings, in setUp() 89 secureSettings.putBool(LOCKSCREEN_SHOW, true) in showInLockScreen() 92 secureSettings.putBool(LOCKSCREEN_SHOW, false) in showInLockScreen() 95 secureSettings.putBoolForUser(LOCKSCREEN_SHOW, true, 1) in showInLockScreen() 115 secureSettings.putBoolForUser(LOCKSCREEN_SHOW, true, 1) in showInLockScreen_changesInOtherUsersAreNotQueued() 116 secureSettings.putBoolForUser(LOCKSCREEN_SHOW, false, 1) in showInLockScreen_changesInOtherUsersAreNotQueued() 136 secureSettings.putBool(LOCKSCREEN_ACTION, true) in actionInLockScreen() 139 secureSettings.putBool(LOCKSCREEN_ACTION, false) in actionInLockScreen() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | ActiveUnlockConfigTest.kt | 59 private lateinit var secureSettings: FakeSettings variable in com.android.keyguard.ActiveUnlockConfigTest 79 secureSettings = FakeSettings() in setUp() 83 secureSettings, in setUp() 106 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_WAKE, 1, currentUser) in onWakeupSettingChanged() 107 updateSetting(secureSettings.getUriFor(ACTIVE_UNLOCK_ON_WAKE)) in onWakeupSettingChanged() 142 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_UNLOCK_INTENT_LEGACY, 1, currentUser) in onUnlockIntentLegacySettingChanged() 143 updateSetting(secureSettings.getUriFor(ACTIVE_UNLOCK_ON_UNLOCK_INTENT_LEGACY)) in onUnlockIntentLegacySettingChanged() 179 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_UNLOCK_INTENT, 1, currentUser) in onUnlockIntentSettingChanged() 180 updateSetting(secureSettings.getUriFor(ACTIVE_UNLOCK_ON_UNLOCK_INTENT)) in onUnlockIntentSettingChanged() 209 secureSettings.putStringForUser( in onBioFailSettingChanged() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSettingsControllerTest.kt | 70 @Mock private lateinit var secureSettings: SecureSettings variable in com.android.systemui.statusbar.notification.row.NotificationSettingsControllerTest 90 secureSettings, in setUp() 116 verify(secureSettings, never()).unregisterContentObserverSync(any()) in updateContentObserverRegistration_onUserChange_noSettingsListeners() 117 verify(secureSettings, never()) in updateContentObserverRegistration_onUserChange_noSettingsListeners() 134 verify(secureSettings).unregisterContentObserverSync(any()) in updateContentObserverRegistration_onUserChange_withSettingsListeners() 135 verify(secureSettings) in updateContentObserverRegistration_onUserChange_withSettingsListeners() 142 verifyZeroInteractions(secureSettings) in addCallback_onlyFirstForUriRegistersObserver() 144 verify(secureSettings) in addCallback_onlyFirstForUriRegistersObserver() 153 verify(secureSettings) in addCallback_onlyFirstForUriRegistersObserver() 160 verifyZeroInteractions(secureSettings) in addCallback_secondUriRegistersObserver() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | ActiveUnlockConfig.kt | 53 private val secureSettings: SecureSettings, constant in com.android.keyguard.ActiveUnlockConfig 120 private val wakeUri = secureSettings.getUriFor(ACTIVE_UNLOCK_ON_WAKE) 122 secureSettings.getUriFor(ACTIVE_UNLOCK_ON_UNLOCK_INTENT_LEGACY) 123 private val unlockIntentUri = secureSettings.getUriFor(ACTIVE_UNLOCK_ON_UNLOCK_INTENT) 124 private val bioFailUri = secureSettings.getUriFor(ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL) 125 private val faceErrorsUri = secureSettings.getUriFor(ACTIVE_UNLOCK_ON_FACE_ERRORS) 127 secureSettings.getUriFor(ACTIVE_UNLOCK_ON_FACE_ACQUIRE_INFO) 129 secureSettings.getUriFor(ACTIVE_UNLOCK_ON_UNLOCK_INTENT_WHEN_BIOMETRIC_ENROLLED) 131 secureSettings.getUriFor(ACTIVE_UNLOCK_WAKEUPS_CONSIDERED_UNLOCK_INTENTS) 133 secureSettings.getUriFor(ACTIVE_UNLOCK_WAKEUPS_TO_FORCE_DISMISS_KEYGUARD) [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | UserSettingObserverTest.kt | 50 private lateinit var secureSettings: SecureSettings in <lambda>() variable in com.android.systemui.qs.UserSettingObserverTest 57 secureSettings = FakeSettings() in <lambda>() 62 secureSettings, in <lambda>() 87 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>() 97 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>() 108 secureSettings.putIntForUser("other", 2, USER) in <lambda>() 114 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>() 117 secureSettings.putIntForUser(TEST_SETTING, 4, USER) in <lambda>() 124 assertThat(secureSettings.getIntForUser(TEST_SETTING, USER)).isEqualTo(5) in <lambda>() 141 secureSettings.putIntForUser(TEST_SETTING, 3, OTHER_USER) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/ |
D | AutoAddableSettingTest.kt | 46 private val secureSettings = FakeSettings() constant in com.android.systemui.qs.pipeline.domain.autoaddable.AutoAddableSettingTest 49 secureSettings, 70 secureSettings.putIntForUser(SETTING, 0, userId) in settingSetTo0_noSignal() 81 secureSettings.putIntForUser(SETTING, 42, userId) in settingSetToNon0_signal() 92 secureSettings.putIntForUser(SETTING, /* value */ 42, /* userHandle */ 1) in settingSetForUser_onlySignalInThatUser() 104 secureSettings.putIntForUser(SETTING, 1, userId) in multipleNonZeroChanges_onlyOneSignal() 105 secureSettings.putIntForUser(SETTING, 2, userId) in multipleNonZeroChanges_onlyOneSignal()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | NotifUiAdjustmentProviderTest.kt | 65 private val secureSettings: SecureSettings = mock() constant in com.android.systemui.statusbar.notification.collection.inflation.NotifUiAdjustmentProviderTest 80 secureSettings, 90 verifyNoMoreInteractions(secureSettings) in setup() 92 verify(secureSettings).getIntForUser(eq(SHOW_NOTIFICATION_SNOOZE), any(), any()) in setup() 94 verify(secureSettings) in setup() 97 verifyNoMoreInteractions(secureSettings, dirtyListener) in setup() 127 clearInvocations(secureSettings) in additionalAddDoesNotRegisterAgain() 129 verifyNoMoreInteractions(secureSettings) in additionalAddDoesNotRegisterAgain() 135 with(inOrder(secureSettings, dirtyListener)) { in onChangeWillQueryThenNotifyDirty() 136 verify(secureSettings).getIntForUser(eq(SHOW_NOTIFICATION_SNOOZE), any(), any()) in onChangeWillQueryThenNotifyDirty() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 939 SettingsState secureSettings = mSettingsRegistry.getSettingsLocked( in dumpForUserLocked() local 941 if (secureSettings != null) { in dumpForUserLocked() 942 dumpSettingsLocked(secureSettings, pw); in dumpForUserLocked() 944 secureSettings.dumpHistoricalOperations(pw); in dumpForUserLocked() 3157 SettingsState secureSettings = getSettingsLocked(SETTINGS_TYPE_SECURE, userId); 3158 ensureSecureSettingAndroidIdSetLocked(secureSettings); 3578 SettingsState secureSettings = mSettingsStates.get(secureKey); 3579 migrateLegacySettingsLocked(secureSettings, database, TABLE_SECURE); 3580 ensureSecureSettingAndroidIdSetLocked(secureSettings); 3581 secureSettings.persistSettingsLocked(); [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceProvisionedControllerImplTest.kt | 71 private lateinit var secureSettings: FakeSettings variable in com.android.systemui.statusbar.policy.DeviceProvisionedControllerImplTest 80 secureSettings = FakeSettings() in setUp() 85 secureSettings, in setUp() 116 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, START_USER) in testUserSetupWhenCreated() 136 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, START_USER) in testUserSetupChange() 147 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, otherUser) in testUserSetupChange_otherUser() 157 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, otherUser) in testCurrentUserSetup() 199 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, START_USER) in testListenerCalledOnUserSetupChanged() 229 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, START_USER) in testRemoveListener()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | DndTileTest.kt | 107 private lateinit var secureSettings: SecureSettings variable in com.android.systemui.qs.tiles.DndTileTest 115 secureSettings = FakeSettings() in setUp() 141 secureSettings, in setUp() 154 secureSettings.putIntForUser(KEY, Settings.Secure.ZEN_DURATION_PROMPT, DEFAULT_USER) in testForceExpandIcon_durationAskAlways_true() 164 secureSettings.putIntForUser(KEY, 60, DEFAULT_USER) in testForceExpandIcon_durationNotAskAlways_false() 174 secureSettings.putIntForUser(KEY, 60, DEFAULT_USER) in testForceExpandIcon_changeWhileListening() 183 secureSettings.putIntForUser(KEY, Settings.Secure.ZEN_DURATION_PROMPT, DEFAULT_USER) in testForceExpandIcon_changeWhileListening() 193 secureSettings.putIntForUser(KEY, Settings.Secure.ZEN_DURATION_PROMPT, DEFAULT_USER) in testLaunchDialogFromViewWhenPrompt() 206 secureSettings.putIntForUser(KEY, 60, DEFAULT_USER) in testNoLaunchDialogWhenNotPrompt()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/smartspace/ |
D | LockscreenTargetFilterTest.kt | 57 @Mock private lateinit var secureSettings: SecureSettings variable in com.android.systemui.smartspace.LockscreenTargetFilterTest 80 secureSettings.getUriFor( in setup() 91 `when`(secureSettings.getIntForUser(eq(setting) ?: setting, anyInt(), anyInt())) in testLockscreenAllowPrivateNotifications() 95 secureSettings, in testLockscreenAllowPrivateNotifications() 119 `when`(secureSettings.getIntForUser(eq(setting) ?: setting, anyInt(), anyInt())) in testLockscreenAllowPrivateNotifications() 132 `when`(secureSettings.getIntForUser(eq(setting) ?: setting, anyInt(), anyInt())) in testUserSwitchCallback() 136 secureSettings, in testUserSwitchCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | AutoAddTracker.kt | 58 private val secureSettings: SecureSettings, in <lambda>() constant in com.android.systemui.qs.AutoAddTracker 154 secureSettings.registerContentObserverForUserSync( in <lambda>() 155 secureSettings.getUriFor(Settings.Secure.QS_AUTO_ADDED_TILES), in <lambda>() 165 secureSettings.unregisterContentObserverSync(contentObserver) in <lambda>() 238 secureSettings.putStringForUser( in <lambda>() 256 val current = secureSettings.getStringForUser(Settings.Secure.QS_AUTO_ADDED_TILES, userId) in <lambda>() 270 private val secureSettings: SecureSettings, in <lambda>() constant in com.android.systemui.qs.AutoAddTracker.Builder 286 secureSettings, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/ |
D | CommunalSettingsRepository.kt | 74 private val secureSettings: SecureSettings, constant in com.android.systemui.communal.data.repository.CommunalSettingsRepositoryImpl 108 secureSettings in getWidgetCategories() 114 secureSettings.getIntForUser( in <lambda>() 134 secureSettings in getBackground() 139 secureSettings.getIntForUser( in getBackground() 149 secureSettings in getEnabledByUser() 154 secureSettings.getIntForUser( in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuViewLayerController.java | 38 AccessibilityManager accessibilityManager, SecureSettings secureSettings) { in MenuViewLayerController() argument 42 context, accessibilityManager, secureSettings); in MenuViewLayerController() 48 new MenuView(context, menuViewModel, menuViewAppearance, secureSettings), in MenuViewLayerController() 50 secureSettings); in MenuViewLayerController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/ |
D | ColorCorrectionRepository.kt | 53 private val secureSettings: SecureSettings, in isEnabled() constant in com.android.systemui.accessibility.data.repository.ColorCorrectionRepositoryImpl 60 secureSettings in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 74 secureSettings.putIntForUser( in isEnabled()
|
D | ColorInversionRepository.kt | 53 private val secureSettings: SecureSettings, in isEnabled() constant in com.android.systemui.accessibility.data.repository.ColorInversionRepositoryImpl 60 secureSettings in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 74 secureSettings.putIntForUser( in isEnabled()
|
D | OneHandedModeRepository.kt | 53 private val secureSettings: SecureSettings, in isEnabled() constant in com.android.systemui.accessibility.data.repository.OneHandedModeRepositoryImpl 60 secureSettings in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 74 secureSettings.putIntForUser( in isEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/ |
D | FaceSettingsRepositoryImplTest.kt | 57 @Mock private lateinit var secureSettings: SecureSettings variable in com.android.systemui.biometrics.data.repository.FaceSettingsRepositoryImplTest 63 repository = FaceSettingsRepositoryImpl(mainHandler, secureSettings) in setup() 84 verify(secureSettings) in startsRepoImmediatelyWithAllSettingKeys() 109 verify(secureSettings) in <lambda>() 119 secureSettings.mockIntSetting(setting, if (value) 1 else 0) in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/ |
D | CommunalTutorialRepositoryImplTest.kt | 50 private lateinit var secureSettings: FakeSettings variable in com.android.systemui.communal.data.repository.CommunalTutorialRepositoryImplTest 59 secureSettings = FakeSettings() in setUp() 69 secureSettings, in setUp() 140 secureSettings.putIntForUser(Settings.Secure.HUB_MODE_TUTORIAL_STATE, state, user.id) in setTutorialStateSetting() 144 return secureSettings.getIntForUser(Settings.Secure.HUB_MODE_TUTORIAL_STATE, user.id) in getTutorialStateSetting()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeviceProvisionedControllerImpl.kt | 48 private val secureSettings: SecureSettings, constant in com.android.systemui.statusbar.policy.DeviceProvisionedControllerImpl 63 private val userSetupUri = secureSettings.getUriFor(Settings.Secure.USER_SETUP_COMPLETE) 127 secureSettings.registerContentObserverForUserSync( in init() 145 secureSettings.getIntForUser( in updateValues() 154 secureSettings.getIntForUser( in updateValues() 185 secureSettings.getIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 0, user) != 0 in isUserSetup()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/data/repository/ |
D | UserA11yQsShortcutsRepositoryTest.kt | 36 private val secureSettings = FakeSettings() constant 43 secureSettings, 53 secureSettings.putStringForUser( in targetsMatchesSetting()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/ |
D | UserAutoAddRepository.kt | 41 private val secureSettings: SecureSettings, in <lambda>() constant in com.android.systemui.qs.pipeline.data.repository.UserAutoAddRepository 87 secureSettings.registerContentObserverForUserSync(SETTING, observer, userId) in <lambda>() 88 awaitClose { secureSettings.unregisterContentObserverSync(observer) } in <lambda>() 122 secureSettings.putStringForUser( in <lambda>() 135 (secureSettings.getStringForUser(SETTING, userId) ?: "").toTilesSet() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/filters/ |
D | LockscreenTargetFilter.kt | 38 private val secureSettings: SecureSettings, constant in com.android.systemui.smartspace.filters.LockscreenTargetFilter 83 secureSettings.getUriFor(Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS), in addListener() 143 secureSettings.getIntForUser(setting, 0, userTracker.userId) == 1 in updateUserContentSettings() 149 secureSettings.getIntForUser(setting, 0, managedId) == 1 in updateUserContentSettings()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
D | KeyguardNotificationVisibilityProvider.kt | 84 private val secureSettings: SecureSettings, constant in com.android.systemui.statusbar.notification.interruption.KeyguardNotificationVisibilityProviderImpl 89 secureSettings.getUriFor(Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS) 138 secureSettings.registerContentObserverForUserSync( in start() 144 secureSettings.registerContentObserverForUserSync( in start() 153 secureSettings.registerContentObserverForUserSync( in start() 266 secureSettings.getBoolForUser( in readShowSilentNotificationSetting()
|