Home
last modified time | relevance | path

Searched refs:mSecureSettings (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuInfoRepository.java85 private final SecureSettings mSecureSettings; field in MenuInfoRepository
156 mSecureSettings = secureSettings; in MenuInfoRepository()
174 callback.onReady(mSecureSettings.getIntForUser( in loadMigrationTooltipVisibility()
218 mSecureSettings.putIntForUser( in updateMigrationTooltipVisibility()
243 mSecureSettings.registerContentObserverForUserSync( in registerObserversAndCallbacks()
244 mSecureSettings.getUriFor(Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS), in registerObserversAndCallbacks()
248 mSecureSettings.registerContentObserverForUserSync( in registerObserversAndCallbacks()
249 mSecureSettings.getUriFor(ENABLED_ACCESSIBILITY_SERVICES), in registerObserversAndCallbacks()
254 mSecureSettings.registerContentObserverForUserSync( in registerObserversAndCallbacks()
255 mSecureSettings.getUriFor(Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE), in registerObserversAndCallbacks()
[all …]
DAccessibilityFloatingMenuController.java60 private final SecureSettings mSecureSettings; field in AccessibilityFloatingMenuController
114 mSecureSettings = secureSettings; in AccessibilityFloatingMenuController()
190 mAccessibilityManager, mSecureSettings); in showFloatingMenu()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DReduceBrightColorsControllerImpl.java48 private final SecureSettings mSecureSettings; field in ReduceBrightColorsControllerImpl
59 mSecureSettings = secureSettings; in ReduceBrightColorsControllerImpl()
80 mSecureSettings.unregisterContentObserverSync(mContentObserver); in ReduceBrightColorsControllerImpl()
81 mSecureSettings.registerContentObserverForUserSync( in ReduceBrightColorsControllerImpl()
97 mSecureSettings.registerContentObserverForUserSync( in addCallback()
109 mSecureSettings.unregisterContentObserverSync(mContentObserver); in removeCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationTypesUpdater.java44 private final SecureSettings mSecureSettings; field in ComplicationTypesUpdater
58 mSecureSettings = secureSettings; in ComplicationTypesUpdater()
72 mSecureSettings.registerContentObserverForUserSync( in onStart()
76 mSecureSettings.registerContentObserverForUserSync( in onStart()
80 mSecureSettings.registerContentObserverForUserSync( in onStart()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qrcodescanner/controller/
DQRCodeScannerControllerTest.java70 private FakeSettings mSecureSettings; field in QRCodeScannerControllerTest
79 mSecureSettings = new FakeSettings(); in setUpLocal()
80 mSecureSettings.putInt(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, enableSettingInt); in setUpLocal()
107 mSecureSettings, mProxyFake, mUserTracker); in setUpLocal()
114 return mSecureSettings.getStringForUser(Settings.Secure.SHOW_QR_CODE_SCANNER_SETTING, in getSettingsQRCodeDefaultComponent()
278 mSecureSettings.putStringForUser(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, "0", in verifyPreferenceChange()
280 mSecureSettings.putStringForUser(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, "0", in verifyPreferenceChange()
283 mSecureSettings.putStringForUser(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, "1", in verifyPreferenceChange()
285 mSecureSettings.putStringForUser(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, "1", in verifyPreferenceChange()
300 mSecureSettings.putStringForUser(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, "0", in verifyPreferenceChangeToSameValue()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DKeyguardNotificationVisibilityProviderTest.java101 private final FakeSettings mSecureSettings = new FakeSettings(); field in KeyguardNotificationVisibilityProviderTest
123 mSecureSettings, in setup()
234 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, true); in notifyListeners_onSettingChange_lockScreenShowNotifs()
245 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, true); in notifyListeners_onSettingChange_lockScreenAllowPrivateNotifs()
253 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, true); in hideSilentNotificationsPerUserSettingWithHighPriorityParent()
254 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS, false); in hideSilentNotificationsPerUserSettingWithHighPriorityParent()
275 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, true); in keyguardShowing_hideSilentNotifications_perUserSetting()
276 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS, false); in keyguardShowing_hideSilentNotifications_perUserSetting()
288 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, true); in keyguardShowing_hideSilentNotifications_perUserSetting_withHighPriorityParent()
289 mSecureSettings.putBool(Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS, false); in keyguardShowing_hideSilentNotifications_perUserSetting_withHighPriorityParent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSettingsController.java57 private final SecureSettings mSecureSettings; field in NotificationSettingsController
69 mSecureSettings = secureSettings; in NotificationSettingsController()
95 mSecureSettings.unregisterContentObserverSync(mContentObserver); in NotificationSettingsController()
97 mSecureSettings.registerContentObserverForUserSync( in NotificationSettingsController()
134 mSecureSettings.registerContentObserverForUserSync( in addCallback()
162 mSecureSettings.unregisterContentObserverSync(mContentObserver); in removeCallback()
187 return mSecureSettings.getStringForUser(setting, userId); in getCurrentSettingValue()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayControllerTest.java115 private SecureSettings mSecureSettings; field in ThemeOverlayControllerTest
169 mSecureSettings, mWallpaperManager, mUserManager, mDeviceProvisionedController, in setup()
205 verify(mSecureSettings).registerContentObserverForUserSync( in setup()
291 when(mSecureSettings.getStringForUser( in onWallpaperColorsChanged_preservesWallpaperPickerTheme()
320 when(mSecureSettings.getStringForUser( in onWallpaperColorsChanged_resetThemeIfNotPreset()
328 verify(mSecureSettings).putStringForUser( in onWallpaperColorsChanged_resetThemeIfNotPreset()
355 when(mSecureSettings.getStringForUser( in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers()
367 verify(mSecureSettings).putStringForUser( in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers()
387 when(mSecureSettings.getStringForUser( in onWallpaperColorsChanged_keepsThemeWhenSetFromLockScreen()
396 verify(mSecureSettings, never()).putStringForUser( in onWallpaperColorsChanged_keepsThemeWhenSetFromLockScreen()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java78 private SecureSettings mSecureSettings; field in AutoAddTrackerTest
84 mSecureSettings = new FakeSettings(); in setUp()
86 mSecureSettings.putStringForUser(Secure.QS_AUTO_ADDED_TILES, null, USER); in setUp()
96 mSecureSettings.putStringForUser(Secure.QS_AUTO_ADDED_TILES, SAVER, USER); in testChangeFromBackup()
209 mSecureSettings.getStringForUser(Secure.QS_AUTO_ADDED_TILES, USER)); in testSettingRestoredWithTilesNotRemovedInSource_noAutoAddedInTarget()
233 mSecureSettings.getStringForUser(Secure.QS_AUTO_ADDED_TILES, USER)); in testSettingRestoredWithTilesRemovedInSource_noAutoAddedInTarget()
258 mSecureSettings.getStringForUser(Secure.QS_AUTO_ADDED_TILES, USER)); in testSettingRestoredWithTilesRemovedInSource_sameAutoAddedinTarget()
283 String setting = mSecureSettings.getStringForUser(Secure.QS_AUTO_ADDED_TILES, USER); in testSettingRestoredWithTilesRemovedInSource_othersAutoAddedinTarget()
302 mSecureSettings, in createAutoAddTracker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qrcodescanner/controller/
DQRCodeScannerController.java91 private final SecureSettings mSecureSettings; field in QRCodeScannerController
118 mSecureSettings = secureSettings; in QRCodeScannerController()
252 mQRCodeScannerEnabled = mSecureSettings.getIntForUser(LOCK_SCREEN_SHOW_QR_CODE_SCANNER, 0, in updateQRCodeScannerPreferenceDetails()
255 mSecureSettings.putStringForUser(Settings.Secure.SHOW_QR_CODE_SCANNER_SETTING, in updateQRCodeScannerPreferenceDetails()
344 mSecureSettings.unregisterContentObserverSync(value); in unregisterQRCodePreferenceObserver()
349 mSecureSettings.putStringForUser(Settings.Secure.SHOW_QR_CODE_SCANNER_SETTING, null, in unregisterQRCodePreferenceObserver()
421 mSecureSettings.registerContentObserverForUserSync( in registerQRCodePreferenceObserver()
422 mSecureSettings.getUriFor(LOCK_SCREEN_SHOW_QR_CODE_SCANNER), false, in registerQRCodePreferenceObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java61 private final SecureSettings mSecureSettings; field in GuestResumeSessionReceiver
77 int guestLoginState = mSecureSettings.getIntForUser(
83 mSecureSettings.putIntForUser(SETTING_GUEST_HAS_LOGGED_IN, guestLoginState,
88 mSecureSettings.putIntForUser(SETTING_GUEST_HAS_LOGGED_IN, guestLoginState,
111 mSecureSettings = secureSettings; in GuestResumeSessionReceiver()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationTypesUpdaterTest.java59 private FakeSettings mSecureSettings; field in ComplicationTypesUpdaterTest
75 mSecureSettings = new FakeSettings(); in setUp()
79 mSecureSettings, mDreamOverlayStateController, mMonitor); in setUp()
104 mSecureSettings.putBoolForUser( in testPushUpdateToDreamOverlayStateControllerOnChange()
DComplicationHostViewControllerTest.java100 private SecureSettings mSecureSettings; field in ComplicationHostViewControllerTest
116 mSecureSettings = new FakeSettings(); in setup()
117 mSecureSettings.putFloatForUser( in setup()
126 mSecureSettings); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/controller/
DQuickAccessWalletController.java73 private final SecureSettings mSecureSettings; field in QuickAccessWalletController
99 mSecureSettings = secureSettings; in QuickAccessWalletController()
152 mSecureSettings.unregisterContentObserverSync(mWalletPreferenceObserver); in unregisterWalletChangeObservers()
157 mSecureSettings.unregisterContentObserverSync(mDefaultPaymentAppObserver); in unregisterWalletChangeObservers()
315 mSecureSettings.registerContentObserverForUserSync( in setupDefaultPaymentAppObserver()
354 mSecureSettings.registerContentObserverForUserSync( in setupWalletPreferenceObserver()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationSettingsTest.java95 private SecureSettings mSecureSettings; field in WindowMagnificationSettingsTest
117 when(mSecureSettings.getIntForUser(anyString(), anyInt(), anyInt())).then( in setUp()
119 when(mSecureSettings.getFloatForUser(anyString(), anyFloat(), anyInt())).then( in setUp()
124 mSecureSettings); in setUp()
142 verify(mSecureSettings).getIntForUser( in initSettingPanel_checkAllowDiagonalScrollingWithSecureSettings()
295 verify(mSecureSettings).putIntForUser( in performClick_setDiagonalScrollingSwitch_toggleDiagonalScrollingSwitchMode()
396 verify(mSecureSettings).registerContentObserverForUserSync( in showSettingsPanel_observerRegistered()
411 verify(mSecureSettings).unregisterContentObserverSync(any(ContentObserver.class)); in hideSettingsPanel_observerUnregistered()
575 when(mSecureSettings.getIntForUser( in setupMagnificationCapabilityAndMode()
579 when(mSecureSettings.getIntForUser( in setupMagnificationCapabilityAndMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImpl.java65 private final SecureSettings mSecureSettings; field in FlashlightControllerImpl
94 mSecureSettings = secureSettings; in FlashlightControllerImpl()
246 mSecureSettings.putInt(Settings.Secure.FLASHLIGHT_AVAILABLE, 0);
257 mSecureSettings.putInt(Settings.Secure.FLASHLIGHT_AVAILABLE, 1);
258 mSecureSettings.putInt(Secure.FLASHLIGHT_ENABLED, enabled ? 1 : 0);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DColorCorrectionTileTest.java75 private SecureSettings mSecureSettings; field in ColorCorrectionTileTest
82 mSecureSettings = new FakeSettings(); in setUp()
98 mSecureSettings in setUp()
DColorInversionTileTest.java80 private SecureSettings mSecureSettings; field in ColorInversionTileTest
87 mSecureSettings = new FakeSettings(); in setUp()
103 mSecureSettings in setUp()
DDreamTileTest.java94 private SecureSettings mSecureSettings; field in DreamTileTest
107 mSecureSettings = new FakeSettings(); in setUp()
135 mSecureSettings.putInt(Settings.Secure.SCREENSAVER_ENABLED, 1); in testNotAvailable()
262 mSecureSettings.putIntForUser(Settings.Secure.SCREENSAVER_ENABLED, enabled ? 1 : 0, in setScreensaverEnabled()
284 mSecureSettings, in constructTileForTest()
/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
DDeviceStateRotationLockSettingsManager.java59 private final SecureSettings mSecureSettings; field in DeviceStateRotationLockSettingsManager
69 mSecureSettings = secureSettings; in DeviceStateRotationLockSettingsManager()
104 mSecureSettings in listenForSettingsChange()
296 mSecureSettings.putStringForUser( in persistSettingIfChanged()
303 return mSecureSettings.getStringForUser( in getPersistedSettingValue()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuControllerTest.java85 private SecureSettings mSecureSettings; field in AccessibilityFloatingMenuControllerTest
157 mAccessibilityManager, mSecureSettings); in onKeyguardVisibilityChanged_showing_destroyWidget()
184 mAccessibilityManager, mSecureSettings); in onUserSwitching_destroyWidget()
198 mAccessibilityManager, mSecureSettings); in onUserSwitch_onKeyguardVisibilityChangedToTrue_destroyWidget()
330 mKeyguardUpdateMonitor, mSecureSettings, displayTracker); in setUpController()
DMenuItemAccessibilityDelegateTest.java70 private final SecureSettings mSecureSettings = TestUtils.mockSecureSettings(); field in MenuItemAccessibilityDelegateTest
86 mSecureSettings); in setUp()
91 mSecureSettings)); in setUp()
97 mock(IAccessibilityFloatingMenu.class), mSecureSettings)); in setUp()
DMenuInfoRepositoryTest.java62 private SecureSettings mSecureSettings; field in MenuInfoRepositoryTest
75 mMockSettingsContentsChanged, mSecureSettings); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationSettings.java78 private final SecureSettings mSecureSettings; field in WindowMagnificationSettings
144 mSecureSettings = secureSettings; in WindowMagnificationSettings()
146 mAllowDiagonalScrolling = mSecureSettings.getIntForUser( in WindowMagnificationSettings()
322 mSecureSettings.unregisterContentObserverSync(mMagnificationCapabilityObserver); in hideSettingPanel()
383 mSecureSettings.registerContentObserverForUserSync( in showSettingPanel()
413 return mSecureSettings.getIntForUser( in getMagnificationMode()
420 return mSecureSettings.getIntForUser( in getMagnificationCapability()
644 boolean enabled = mSecureSettings.getIntForUser( in toggleDiagonalScrolling()
652 mSecureSettings.putIntForUser( in setDiagonalScrolling()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java73 private FakeSettings mSecureSettings; field in LocationControllerImplTest
88 mSecureSettings = new FakeSettings(); in setup()
101 mSecureSettings); in setup()
251 mSecureSettings.putInt(Settings.Secure.LOCATION_SHOW_SYSTEM_OPS, 1); in testCallbackNotified_additionalOps_shouldShowSystem()
284 mSecureSettings.putInt(Settings.Secure.LOCATION_SHOW_SYSTEM_OPS, 0); in testCallbackNotified_additionalOps_shouldShowSystem()

123