summaryrefslogtreecommitdiff
path: root/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
AgeCommit message (Collapse)Author
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-09-02Add Settings key for UWB StateJoy Babafemi
Test: Manual Bug: 191608501 Change-Id: I7656f78f47183e9e61d98a3ccbac94690570df20 Merged-In: I7656f78f47183e9e61d98a3ccbac94690570df20 (cherry picked from commit 760255d89420efb2b948e26cd61535a7b9561c4a)
2021-08-24Remove support: libfeature_support_angle.soTim Van Patten
Remove support for ANGLE's libfeature_support_angle.so. This also removes all of the logic related to checking the rules file, since libfeature_support_angle.so is what parsed the JSON rules file. Bug: b/187342779 Bug: b/184757175 Test: make and manual verification ANGLE is loaded Change-Id: I02ac083fb8144465b60ac0ed2738c73b31addda1 Merged-In: I02ac083fb8144465b60ac0ed2738c73b31addda1
2021-06-11Backup POWER_BUTTON_LONG_PRESSMatt Pietal
Starting with Android 12, start backing up this setting to restore the user's pref across devices. For users upgrading to a 2021+ device, they will get the new default (assistant on long-press). If this user then restores to an older device, they will then get this new behavior on that device as well, even though it isn't the device default. Fixes: 189874533 Test: atest SettingsBackupTest Change-Id: I4b9864045bf12f30da03e3715f5e368bdf48a198
2021-05-21Update location bypass allowlistSoonil Nagarkar
Create a new DeviceConfig entry to replace the prior Settings entry on which the location ignore settings allowlist is based. This allows us to allowlist based on attribution tag, and eliminate holes for large applications. Test: manual + CTS + GTS Bug: 187421886 Change-Id: I31e61db79b93e202bd8c66efae1bb5aaf0c88ff5
2021-05-05Add key ACCESSIBILITY_FLOATING_MENU_MIGRATION_TOOLTIP_PROMPT.Peter_Liang
The key used to show the migration information related to the accessibility floating menu. Bug: 175365399 Test: atest SettingsProviderTest Change-Id: Ifabc412b990c72ad345bab2d5d8539a57bd6ca5d
2021-04-23Use global setting instead of forceWindowBlurDisabledGalia Peycheva
This CL removes the existing TestApi WindowManager#setForceCrossWindowBlurDisabled and replaces it with Settings.Global#ENABLE_WINDOW_BLURS. Bug: 14186649 Test: m && atest BlurTests Change-Id: Ia15b7932ea973a9ed195c507558cdc71f194b366
2021-04-13Merge "Add @SystemApi for Secure.UI_TRANSLATION_ENABLED" into sc-devJohn Li
2021-04-13Add @SystemApi for Secure.UI_TRANSLATION_ENABLEDJohn Li
Bug: 177299699 Test: manual Change-Id: I711d078281ae9cc17ebb21e6c3f857caad31016a
2021-04-12Power + Volume up key chord can now be configured.Dan Sandler
Device default value set in config_keyChordPowerVolumeUp in config.xml; can be overridden for all users with Settings.Global.KEY_CHORD_POWER_VOLUME_UP. Value may be one of: 0 - no-op 1 - vibrate mode (current AOSP default behavior) 2 - launch assistant Bug: 179673796 Test: adb shell settings put global key_chord_volume_up <0, 1, or 2> adb shell dumpsys window | grep mPowerVolUpBehavior adb shell input keycombination POWER VOLUME_UP Change-Id: I0e03155bdbe61d9fdd6838fe2c860749cf360907
2021-03-23Add Settings flag for Transform.John Li
Bug: 177299699 Test: manual Change-Id: I4947117b6bb11678e3ad761204d720354b9e73ae Merged-In: I4947117b6bb11678e3ad761204d720354b9e73ae
2021-03-19Minimal change to remove development settings.Jeff DeCew
Fixes: 183120687 Test: manual Change-Id: I5632e131b47058ebe25ab21db004eb90498bc299
2021-03-10Add quickpickup gestureBeverly
Only registered when: - udfps enrolled - AOD is not enabled - quickpick enabled: adb shell settings put secure doze_quick_pickup_gesture 1 Currently by default, quickpickup is not enabled On gesture trigger, AOD screen will show for 5 seconds Test: manual Bug: 176550666 Change-Id: I804a2590c1d95acad62fbfbc85228ecfc8bfa3ed
2021-02-26Allow non-resizable apps in split-screen (5/n)Chris Li
Replace usages of DEVELOPMENT_ENABLE_SIZECOMPAT_FREEFORM with DEVELOPMENT_ENABLE_NON_RESIZABLE_MULTI_WINDOW so that we can use one setting to control all multi window mode Bug: 176061101 Test: pass existing Change-Id: I873b4902f3995815721401b30236919ffdbc6a82
2021-02-25Android config updates for one handed bouncer.Jamie Garside
This is the changes in Settings (to store the current screen side) for the one-handed keyguard. This also checks in symbols.xml to expose the platform config to SysUI (the lines in symbols.xml are currently in config.xml; I'm assuming that a previous revert didn't remove them). Bug: 170858298 Test: included. Change-Id: I9d91a9360c821562634e83295f5e2e340f6de1d5
2021-02-23Revert "Update the bouncer to be able to move to either side of a wide screen."Jamie Garside
This reverts commit 868e770b824b5d776d64fd9364f24a6aa1ed5ab5. Reason for revert: Breaks password entry - b/180993584 Change-Id: I9a1771b795c90b1cfe6c2457d390ac53235c6c94
2021-02-23Merge changes from topic "HdmiCecVersionSharedPrefs" into sc-devMichal Olech
* changes: [CEC Configuration] Move 'hdmi_cec_version' to SharedPreferences [CEC Configuration] Run HdmiControlService change notifications in the service thread
2021-02-22Update the bouncer to be able to move to either side of a wide screen.Jamie Garside
I'd like to test other things (like tap makes the IME move), but to do that means replacing the mock with a proper fake. That can come later, but this at least tests that the flagging works correctly. The changes between this and commit cae34b8e22f8a7baa845bfd31f472ed728c67a89 is the bouncer height is now measured using wrap_content, so the placement can be controlled properly by the outer View (as the position of the bouncer changes depending on the size of the screen). This reverts commit cae34b8e22f8a7baa845bfd31f472ed728c67a89. Test: Included Bug: 170858298 Change-Id: I18428a6df9abf0e8e37c1c179be6843e4eee793c
2021-02-19[CEC Configuration] Move 'hdmi_cec_version' to SharedPreferencesMichal Olech
Test: cts-tradefed Bug: 171958586 Change-Id: I01d374c9a69d23f0d242c0c8ec2364454692ddd4
2021-02-12Implement stationary location throttlingSoonil Nagarkar
Throttle location providers completely when the device is completely still, and provide "faked" locations instead. Bug: 172688700 Test: manual + atest StationaryThrottlingLocationProviderTest Change-Id: Iba4e50ebf78cd8c6a9f2433ecb6e967d3a533c63
2021-02-08Revert "Update the bouncer to be able to move to either side of a wide screen."Daniel Chapin
This reverts commit 6c5bfcb40fdcf2499098daad37577e7ead67699a. Reason for revert: Bug: 179493042 Test: Manually verified Change-Id: Iebcaa9e92a2f83419c07936aa5aa3c81970da34a
2021-02-03Update the bouncer to be able to move to either side of a wide screen.Jamie Garside
This is currently enabled by settings persist.sysui.keyguard.one_handed_keyguard_enabled to true. If enabled, this will cause "one-handed able" security modes to be measured with half of the width of the SecurityViewContainer. Tapping either side of the screen will then move the keyguard by changing the margins. There's some flaws here, but it's a start. There's a frame of the bouncer being on the wrong side of the screen if the keyguard is on the right, and it doesn't respond to opening/closing the device properly yet. Bug: b/170858298 Change-Id: Ib997b9b3cb4ca7a069c805c7a8f3a79434eebd4c Test: Incoming :)
2021-02-01Change Settings to be able to receive timeout values from LPAJiashen Wang
Bug: 171846124 Test: Tested manually Change-Id: Ib13aa832e186ae964069d888c1c4b8321a0f7fc1
2021-01-26Hide AOD/LS layout changesMatt Pietal
Add support for new sysui overlay in order to disable aod/ls layouts from the preview builds. Bug: 178471752 Test: atest KeyguardUpdateMonitorTest Change-Id: Iaf1dd2ba73368a3c43efe81c10aa9df42df6fdbe
2021-01-22Allow non-resizable apps in split-screen (1/n)Chris Li
1. Add a setting to enable this. 2. Allow non-resizable apps to be moved to split-screen when the setting is on. TODO: 1. Add a developer option for this 2. Fix SizeCompatMode when the non-resizable app is in split screen Bug: 176061101 Test: adb shell settings put global enable_non_resizable_multi_window 1 Test: atest WmTests:ActivityRecordTests Test: atest WmTests:WindowOrganizerTests Test: atest WmTests:WindowManagerSettingsTests Test: atest CtsWindowManagerDeviceTestCases:MultiWindowTests Change-Id: Ife9e5e5848614f072efb3b23f71472561e00488c
2021-01-15Merge "Revert "Create setting key for emergency gesture call number override""TreeHugger Robot
2021-01-14Revert "Create setting key for emergency gesture call number override"Fan Zhang
This reverts commit 8e089728c7050819e82b9e278db4c3487bd78308. Reason for revert: It turns out we don't need this feature Change-Id: Ibc042e451d66a1b87ed416bed41461df52f70a66
2021-01-08Fully custom view notifications now receive minimal decoration when targeting S.Jeff DeCew
* The level of decoration for fully custom notifications can be customized with FULLY_CUSTOM_VIEW_NOTIF_DECORATION * The level of decoration for decorated notifications can be customized with DECORATED_CUSTOM_VIEW_NOTIF_DECORATION * Adds some helpful logic when "backporting" S logic so that we can see what UNDO notifications will really look like. Note: this patch now includes code that used to be in separate reviews: I700472b9c8fba2563b447f570cab7dd60a0a3984 and I55e12843a3edc6e9a78e5b8c848400a8f9228d1c Test: Manual Bug: 173522761 Change-Id: I7aba1aec2ba3023857735754c000977c4491b774
2021-01-07Merge changes from topic "preinstall-overrides" am: 29ed176b46 am: ↵Andrei-Valentin Onea
d1ebbf5086 am: dd1d1cbacc Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520701 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifbdca1201aa118e59b45f7dd89441a210fc2fa9c
2020-12-30Add force_non_debuggable_final_build_for_compatAndrei Onea
This flag forces the compat framework to assume we're on a non-debuggable build, and use stricter rules for enforcing the change id override policy. On a non-debuggable build, this flag has no effect. Test: atest OverrideValidatorImplTest Bug: 158696818 Change-Id: I3b13f1898e7ff00580140debe2ced9f8074502ea
2020-12-28Merge "Add Restricted Mode handling to NetworkPolicyManager"TreeHugger Robot
2020-12-28Add Restricted Mode handling to NetworkPolicyManagerPatrick Rohr
Adds Restricted Mode functionality to NetworkPolicyManager. When this mode is turned on (via setting), only apps with android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS will be able to use the network. For all other apps, the network will be blocked by the firewall. This is controlled by a new allowlist firewall chain fw_restricted_mode. As a first step, this implementation still requires a reboot after the enabling / disabling the mode to take effect. I will provide the dynamic configuration in the next CL. Test: atest CtsHostsideNetworkTests && atest NetworkPolicyManagerServiceTest Bug: 170322816 Bug: 157505406 Bug: 170322455 Bug: 175281879 Change-Id: I0731fa842c69683953baaf9ec3a9a03454f4c607
2020-12-23Add a setting to test the new notification rules on existing apps.Jeff DeCew
Test: manual Change-Id: I560ac597bf8e8320d1d9e404ffcf1e6464cfe82d
2020-12-04Merge "Migrate remote configuration to DeviceConfig."Kweku Adams
2020-12-02Migrate remote configuration to DeviceConfig.Kweku Adams
Move battery saver to retrieve remote configuration values via DeviceConfig. Some products allow users to customize which battery saver toggles are active, so leave the Global settings flag around to track the user's choices. The user's choices will override anything sent from the server. Also renaming some of the flag names since we don't need to support backwards compatibility for server-side pushes. Bug: 79580230 Bug: 124466289 Test: atest com.android.server.power.batterysaver.BatterySaverPolicyTest Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest Test: atest com.android.server.power.batterysaver.BatterySavingStatsTest Test: atest com.android.server.power.PowerManagerServiceTest Test: atest CtsBatterySavingTestCases Test: atest CtsLocationFineTestCases Change-Id: I47684efa5c4426e1c524fb9c1d4d407ee66fa3b7
2020-12-01Allow toggling the location that display settings are read from.Darryl L Johnson
DisplayWindowSettingsProvider currently only supports reading display window settings from a single file location. However, this doesn't support the use case where a device may want to ship with multiple vendor display setting experiences and allow switching between them at runtime. This updates DisplayWindowSettingsProvider to allow overriding the file path that's used to read display settings. The default is still to read from the main settings file stored at /vendor/etc/display_settings.xml but can be changed by setting the global setting: DEVELOPMENT_WM_DISPLAY_SETTINGS_PATH. This also removes the flag DEVELOPMENT_IGNORE_VENDOR_DISPLAY_SETTINGS to since ignoring vendor display settings entirely is no longer needed. Test: atest WindowManagerSettingsTests Test: atest DisplayWindowSettingsProviderTests Bug: 172342357 Bug: 173540615 Change-Id: I11fd2945a4dacef80e1ab921d585c712f20ae55b
2020-12-01Merge "Remove LOCATION_GLOBAL_KILL_SWITCH completely"Soonil Nagarkar
2020-11-27Remove dead isolated storage code from StorageManagerServiceZim
Isolated storage was added in Q (and enabled by default) and has been replaced by FUSE in R Additionally, we can remove the ExternalStorageMountPolicy concept which is only required if isolated storage is false Cleanup in preparation to introduce DeviceConfig changes for transcoding Bug: 169327180 Test: Builds Change-Id: Ie2686d8efa6654ea6c4b4ca8c121c0c1841a6356
2020-11-23Remove LOCATION_GLOBAL_KILL_SWITCH completelySoonil Nagarkar
This functionality is no longer needed as all battery saver related logic is handled within location code. Bug: 69373668 Test: presubmits Change-Id: Ie79d6334e0aff5a6562ae0014b9274c81434b977
2020-11-18Merge "Switch LatencyTracker to the DeviceConfig API"TreeHugger Robot
2020-11-17Create setting key for emergency gesture call number overrideFan Zhang
This setting will store an emergency number locally if government provided emergency number (such as 911, 110) are not desired by user, used by emergency apps such as EmergencyInfo and Personal Safety on Pixel. Bug: 172609395 Test: manual/rebuild Change-Id: I8732c20f0438e521eaec73758242015794c80c3b
2020-11-17Switch LatencyTracker to the DeviceConfig APIMarcin Oczeretko
Test: manual Bug: 162927074 Change-Id: I4eaae9db74ac1b23bdd0e90a6981a852375f788b
2020-11-10Merge "GNSS Satellite Blocklist Renaming"Yu-Han Yang
2020-11-03Add global development setting to enable/disable vendor display settings.Darryl L Johnson
(2/n) This change introduces the DEVELOPMENT_IGNORE_VENDOR_DISPLAY_SETTINGS setting which controls whether or not WindowManagerService should return display vendor settings provided in the vendor/ partition. This will be added as an entry in Developer Options to allow ignoring vendor settings and using the default settings. Test: atest WmTests:WindowManagerSettingsTests Bug: 168808369 Change-Id: Iece0b76e4861be56186333134d7d5b25cab5c7e0
2020-11-02GNSS Satellite Blocklist RenamingYu-Han Yang
Test: on device Bug: 168111993 Change-Id: I2ee4414fbc1fcb7abe8a3d5b1099a3e6e58a6777
2020-10-29Flip BLAST flag.Robert Carr
This flag will enable the BLASTBufferQueue adapter for use by ViewRootImpl. BLASTSync and the BLASTBufferQueue in SurfaceView are still behind seperate flags. Bug: 168506246 Test: Days of manual testing on multiple devices (stressed: app switching, rotation, SurfaceView, PIP, Split-screen). Multiple presubmits. 5 passing runs of flicker. Systrace inspection. App startup perf tests. Inspection of jankstats from experiment based flip in R dogfood. Change-Id: I2b6e37884d938d327479977becbbce8e38e521f0
2020-10-29Merge "Migrate AppStandbyController to DeviceConfig."Kweku Adams
2020-10-29Merge "Removes the settings key,WINDOW_MAGNIFICATION, that is never used"Minche Li
2020-10-28Merge "Add flag for notif dismissal prototype"TreeHugger Robot
2020-10-28Add flag for notif dismissal prototypeLyn Han
New flag: Settings.Global.SHOW_NEW_NOTIF_DISMISS - Do not backup to other devices - To be removed before release Usage: adb shell settings put global show_new_notif_dismiss [0|1] - 0 to disable - 1 to enable Test: treehugger Bug: 171817112 Change-Id: I8712a7f8a2bac6483afd52ede9e478f8b08d661d