summaryrefslogtreecommitdiff
path: root/core/java/android/provider
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the SADeviceState to AdiDeviceStateVlad Popa2024-02-171-0/+7
| | | | | | | | | | | | | | | | The idea is to have a device state catalog for all the known devices. Also refactored the name of the Settings.Secure key entry for persistence. The current code will check the legacy key first, erase it and update the new key. Test: atest SpatializerHelperTest & AudioDeviceBrokerTest Bug: 278265907 Bug: 285588444 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:41f08b8d70260839a96d1ebb412eb8766b386b76) Merged-In: Idabcc84cb0f5f6f88ba5aebc435511ab95016ef3 Change-Id: Idabcc84cb0f5f6f88ba5aebc435511ab95016ef3 Change-Id: I1452fcecaa82c466b807235a884ebb8388dd5a27
* Allow to disable battery lightSam Mortimer2023-10-051-0/+6
| | | | Change-Id: Ia4a1bb45aacf3a25839e9873a7a8d2e131fbc0ea
* Weather: Add switches to show city/temp on lockscreen [1/2]mydongistiny2023-10-051-0/+12
| | | | | | | | | | Disable city by default Enable temp by default also correct the default icon AICP edits: add backup/settings validators Change-Id: I8403edfd69492d5a6a588ce7dc4a153528d821cb
* fwb: Slim recents TSpiritCroc2023-08-041-0/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partly includes: commit fbbe5de6640ac0b8a52e948d246b19b4487ce521 Author: ezio84 <brabus84@gmail.com> Date: Sat Oct 21 14:46:24 2017 +0200 Slim Recents 3.0 [1/3] Refactored/improved everything. Slim Recents won't never die. http://i.imgur.com/PO3RSeg.gif [SpiritCroc] Bring to P Change-Id: I9deb0412e2421df2ac2755f2111a3cec70a7d2c4 commit c14325728a9d87d35e2137bb6f0dba77769592df Author: SpiritCroc <dev@spiritcroc.de> Date: Tue Apr 2 11:06:14 2019 +0200 Slim recents old enter/exit animation [1/3] Change-Id: Ib10f54d56de9c4dc6cab827c21cca9363ffaa820 Change-Id: I3c3486fa94a35f17e48c7a2943cad7fea5c69e78
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-10/+100
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Merge "Foldable rotation settings: persist postures instead of device ↵Christian Göllner2023-03-161-5/+30
| |\ | | | | | | | | | states" into tm-qpr-dev
| | * Foldable rotation settings: persist postures instead of device statesChristian Göllner2023-03-131-5/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Device state ids can change, and therefore shouldn't be persisted. We define our custom ids for device postures, which will not change. 1. We define our custom posture ids in Settings.Secure. These match the current device state ids. This way we don't have to wipe users' settings. 2. We convert device ids to postures, based on the config arrays "config_foldedDeviceStates", "config_halfFoldedDeviceStates", and "config_openDeviceStates". Test: unit tests Test: manually by trying the different auto-rotation scenarios in different postures. Fixes: 261968395 Change-Id: I396e9c92230e75e186b6a70198ee16b41e508a1e
| * | Add screensaver home control settingLucas Silva2023-03-131-0/+8
| |/ | | | | | | | | | | | | | | | | | | | | This setting controls whether home controls are visible on the screensaver Bug: 271330583 Test: verified setting correctly disables/enables button Test: make -j64 RunSettingsLibRoboTests ROBOTEST_FILTER="com.android.settingslib.dream.DreamBackendTest" Test: atest ComplicationTypesUpdaterTest Change-Id: I44e0e8c4f81984604f4b47489b91f07285c75e15
| * Add key ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGEDCandice Lo2023-03-071-0/+9
| | | | | | | | | | | | | | | | | | | | We use the key to track if users change the font size in Settings and not use the default scaled value. Bug: 269679768 Test: atest SettingsProviderTest Change-Id: I8854f484ddec4669aa08b3ca60590fdb198dd970 Merged-In: I6a20e2af38064be2b03e2cdda530964989a2d0b0
| * RESTRICT AUTOMERGE Add activeUnlock config to force dismissKeyguardBeverly2023-02-141-1/+12
| | | | | | | | | | | | | | | | | | On some wakeup active unlock triggers Test: manual Test: atest KeyguardUpdateMonitorTest ActiveUnlockConfigTest Fixes: 267170467 Change-Id: Ib1aa68a7407f9e902d78f1d949471edddb26281a
| * sysui: Observe weather enabled for lockscreen.Adnan Begovic2023-02-071-0/+7
| | | | | | | | | | | | | | Bug: 261757708 Test: manually, unit Change-Id: I7a7830cb8875d74a447b3ee07105899418a084c4 Merged-In: I7a7830cb8875d74a447b3ee07105899418a084c4
| * Some wake-ups can be considered unlock-intentsBeverly2023-01-311-0/+11
| | | | | | | | | | | | | | | | | | | | For the purposes of active unlock. These values can currently be configured with an adb command. For example: adb shell settings put secure active_unlock_wakeups_considered_unlock_intents "15\|16" Test: atest ActiveUnlockConfigTest Fixes: 265939476 Change-Id: Ia5093a63c5724e4a53ee29994759bf1f47ce1b7e
| * Merge "Update unseen filter setting access to account for tri-state" into ↵Steve Elliott2023-01-201-1/+1
| |\ | | | | | | | | | tm-qpr-dev
| | * Update unseen filter setting access to account for tri-stateSteve Elliott2023-01-201-1/+1
| | | | | | | | | | | | | | | | | | Bug: 254647461 Test: atest KeyguardCoordinatorTest Change-Id: I1d27ec1fe27f42c276a935edaa353b0f3efe5b9d
| * | Merge "Performant auth update for fingerprint." into tm-qpr-devJoshua Mccloskey2023-01-181-1/+3
| |\ \ | | |/ | |/|
| | * Performant auth update for fingerprint.Joshua McCloskey2023-01-171-1/+3
| | | | | | | | | | | | | | | | | | | | | Test: verified setting is forced to default for a given user. Bug: 265264294 Change-Id: Idb6e060553a4c7c6b637f13b42d421e44f3cbc15 Merged-In: Idb6e060553a4c7c6b637f13b42d421e44f3cbc15
| * | Merge "Add new dock setup states to state enum" into tm-qpr-devLucas Silva2023-01-131-1/+19
| |\ \ | | |/ | |/|
| | * Add new dock setup states to state enumLucas Silva2023-01-111-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | Dock setup could be incomplete or it could have timed out Bug: 265037150 Test: flashed device and verified behavior which uses these new enums Change-Id: I6e67432df5eeb81fd83c86d22b456ee1caa806fb
| * | Added performant auth setting for fingeprintJoshua McCloskey2023-01-111-3/+2
| |/ | | | | | | | | | | | | | | Remove previous setting, so that users have the feature enabled by default. Test: Verified manually in settings page that the setting is present. Bug: 265031172 Change-Id: I2cf5de3854432eebad2b9d8a70d71568257b46cd
* | Re apply "SystemUI: Introduce OOS style notification clear all button [1/2]"00day02023-05-051-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | @neobuddy89: * Adapt with 13 monet colors. * Polished icons from material design icons. * Remove unneccessary cruft. * Fix stray OOS button on headsup. * Add NPE checks Change-Id: If56ed8752188b26d2662b9575a094a81e636e90c Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com>
* | base: Add switch to unlink ringtone and notifications volume [1/2]Pranav Vashi2023-05-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | * Make use of AOSP config to set default initial value Ref: https://github.com/crdroidandroid/android_frameworks_base/commit/345ff7b8618bd57f6c6ccbf875cf860338deb513 https://github.com/crdroidandroid/android_frameworks_base/commit/ab1aad9aa76391d675ca38a93f23120032c1d957 Change-Id: Ib0adde055d91527a57b203cb488bce6f62974322 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Revert "Revert "SystemUI: Bring back good ol' circle battery style""Bruno Martins2023-05-051-2/+25
| | | | | | | | | | | | This reverts commit 0b34a54d6328d33e478a67af0df9cb4e5feb0ab4. Change-Id: I4e075410d05410a8d93d33d815bea705b045515a
* | Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-032-3/+55
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * Secure setting to control seen notif filterSteve Elliott2022-12-141-0/+10
| | | | | | | | | | | | | | | | | | Bug: 254647461 Test: manual 1: adb shell settings put secure \ lock_screen_show_only_unseen_notifications <0|1> Observe: seen notifs will appear / disappear from keyguard Change-Id: Ia660fabc7077f5060e3b63d36dca2eb6310d792e
| * Add DOCK_SETUP_PROMPTED enum value to Settings.Will Leshner2022-12-051-0/+9
| | | | | | | | | | | | | | | | | | A new dock setup state to indicate that dock setup has been prompted but not yet started. Bug: 259586571 Test: manually Change-Id: I38a17f5e4b03693c7b45e7ed8987af1f37192b16
| * Add contrast level in settingsAurélien Pomini2022-11-231-0/+7
| | | | | | | | | | | | | | Test: treehugger Bug: 259091608 Change-Id: Ib68b6688fdc06843b80a2582a78942b514149f3e
| * Implement StylusListener SystemUI CoreStartable.Vania Januar2022-11-181-0/+9
| | | | | | | | | | | | | | | | | | | | StylusListener detects first usage of a stylus, and updates the STYLUS_EVER_USED Settings flag. Bug: 251206662 DD: go/stylus-first-usage-options Test: StylusListenerTest Change-Id: I165481d1166e31b5b8560da5c695003d105068ef
| * Merge "Introduce concept of DockUser" into tm-qpr-devAdam Bookatz2022-11-161-3/+3
| |\
| | * Introduce concept of DockUserAdam Bookatz2022-11-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dreams and docking often refers to "user zero" or "system user". But more generally, the special user for dreams or switching-to-on-docking need not be user 0, and in fact won't be in certain modes. So this needs updating. Test: the files mentioned in the topic Bug: 257333623 Change-Id: Ic671c91c32e9bf24695b067ff97cf9fa65534b1e Merged-In: Ic671c91c32e9bf24695b067ff97cf9fa65534b1e
| * | Merge "Add experiment flag namespace for Multi-Gen LRU" into tm-qpr-devKalesh Singh2022-11-151-0/+7
| |\ \ | | |/ | |/|
| | * Add experiment flag namespace for Multi-Gen LRUKalesh Singh2022-11-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For testing Multi-Gen LRU page reclaim Bug: 258917809 Bug: 227651406 Test: adb shell device_config put mglru_native lru_gen_enabled [none, core, ..., all] Test: verify MG RLU is enabled/disabled: cat /sys/kernel/mm/lru_gen/enabled Merged-In: I2aa7032de2c45385e4c0ada787ba7799e50c8a53 Change-Id: I2aa7032de2c45385e4c0ada787ba7799e50c8a53
| * | Update java doc of ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITYArc Wang2022-11-141-0/+3
| |/ | | | | | | | | | | | | | | | | To ensure developers know that the Intent only supports on some devices. Bug: 258549553 Test: NA Change-Id: I09da4a4f319aa240a574552fb0deb954772acb83
| * Merge changes from topic "require-screen-on-to-auth" into tm-qpr-devJoshua Mccloskey2022-11-031-0/+7
| |\ | | | | | | | | | | | | | | | * changes: Fix keyguard logic for listening to sfps Implement SFPS “require screen on to auth”
| | * Implement SFPS “require screen on to auth”Grace Cheng2022-11-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creates new setting on SFPS to require screen on before unlocking a device. Also sets up toggles for this setting at the end of fingerprint enrollment and on the fingerprint settings page, and adds test to verify expected behavior. Test: atest KeyguardUpdateMonitorTest#testStartsListeningForSfps_whenKeyguardIsVisible_ifRequireScreenOnToAuthEnabled Fixes: 249169615 Fixes: 245343077 Fixes: 248530806 Change-Id: Ibc55dfa6667ec281add11a2665fceb073974ccb0 Merged-In: I4aa716fb5b288ef6f92a5c403a1fd5e586e889d0
| * | [SettingsProvider] workaround for DevicePolicyResourcesManagerSongchun Fan2022-10-271-3/+20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DevicePolicyResourcesManager.getString() was added in T and called in many places inside system server. However, it uses DeviceConfig.getBoolean to determine if a feature is enabled or not. In the places where it is called from inside system server, `clearCallingIdentity` was not always called, which can result in DeviceConfig.getBoolean throwing SecurityException due to mismatched AttributionSource (calling uid is the caller from the binder client, while the context is "android" which should have calling uid 0). Context is "android" because it is inside the system server where the DevicePolicyManager instance is created. This bug might lead to unexpected behavior such as packages failing to be uninstalled by admin. The easiest fix is to place a bypass in SettingsProvider and manually clear the calling uid there. This fix also allows for the cleanest backporting as it can be cherry-picked into T without touching all the places where DevicePolicyResourcesManager.getString() is called in the system server. BUG: 252663068 Test: manual Merged-In: I37a6ceb29575593018b93093562c85d49770a43c Change-Id: I37a6ceb29575593018b93093562c85d49770a43c (cherry picked from commit b127850fda23698be0247e5b2110cdd01fff8fd7)
* | Revert t-battery-customizations topic commits before QPR2 mergeMichael Bestas2023-03-261-57/+2
| | | | | | | | | | | | | | Conflicts with QPR2 changes Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I0c0e5cfac6c356266cf91219a5a71ce8b2b3172e
* | Revert "frameworks: Add unlinked ringtone and notification volumes"Michael Bestas2023-03-261-8/+0
| | | | | | | | | | | | | | | | Conflicts with QPR2 implementation This reverts commit 35ccfd76968a9e55fe46987e896c41831055285c. Change-Id: I3bdcb7d9ca0fbf4e8fdb996b64669c98943578f4
* | Revert "Keyguard: Allow user configurable fingerprint wake-and-unlock"Michael Bestas2023-03-261-7/+0
| | | | | | | | | | | | | | | | Replaced by AOSP implementation This reverts commit 9a7dc3fa0b1319e46c69501b4383cf6e4ded0440. Change-Id: I2dba8ff3fe167eaea472f54b44498eba50330c65
* | base: volume key music control [1/2]maxwen2023-02-191-0/+7
| | | | | | | | | | | | | | | | | | | | Forward port from 4.4 times Big thanks to CM for some important hints how to implement this e.g. https://github.com/CyanogenMod/android_frameworks_base/commit/e9a5363f51d22e776813ae18272734dfc992947f Change-Id: I116aa603d3b641c2629259fca2993c2381c80469 Signed-off-by: koron393 <koron393@gmail.com>
* | Reimlpement " base: Import Wi-Fi standard icon [1/2]"ReallySnow2023-02-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | * Show Wi-Fi 4/5/6 standard on statusbar idoybh: added setting to backup ** it was reverted before r16 merge Co-authored-by: Col_or <col_or@qq.com> Co-authored-by: Kujou Yuko <i@779.moe> Change-Id: I8c513399bbb919c1019522422ecb91bbbc808fda
* | SystemUI: Add API for runtime taskbar configDanny Lin2023-02-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | Allow Launcher3 to override the taskbar state at runtime based on user preference. ** AICP edits: add backup validators Change-Id: Ic2616ff974e98e03edbcdbdf677fa40b40b37abb Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com>
* | base: Allow disabling ripple effect on unlock [1/2]Rishawn2023-02-191-0/+7
| | | | | | | | | | | | | | | | | | | | neobuddy89: * Reverse logic. Enabled animation by default. ArrowOS: * Add keys into backup and validators. Change-Id: Idecaa59547159d0a2b0ecdb55a207377bd466710
* | base: Add support for window ignore secure [1/2]LibXZR2023-02-191-0/+7
| | | | | | | | | | | | Feature: yt/KSCOPE-23 Change-Id: Ia9447ca17f6b24152b64526c25710a77e1388ce6 Signed-off-by: LibXZR <i@xzr.moe>
* | Add toggle to disable charging animation [1/2]Anushek Prasal2023-02-191-0/+7
| | | | | | | | | | | | | | | | @neobuddy89: Use same toggle for wireless charging animation too. @semdoc: add backup & settings validators Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I23ce1b9db22c30844c90f01c08053f1933f6fd8f
* | QSPanel: Initial Impl to show detailed data usage (1/2)Trishiraj2023-02-191-0/+6
| | | | | | | | | | Signed-off-by: Trishiraj <gamerprince.exp@gmail.com> Change-Id: Iadefbb213a45e93057e2bd20b27fa1faab1d6075
* | Don't change public APILuca Stefani2023-01-311-0/+5
| | | | | | | | | | | | * This is fine on master, but not on REL branches Change-Id: I4baa4e26df8f39a9e46d1d68129a1f7039244882 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Merge tag 'android-13.0.0_r20' into t13.0Semavi Ulusoy2023-01-041-3/+20
|\ \ | | | | | | | | | | | | | | | Android 13.0.0 release 20 Change-Id: If4abc6a25843dbccba1fc3cc4250eb10b193f27c
| * | [SettingsProvider] workaround for DevicePolicyResourcesManagerSongchun Fan2022-11-151-3/+20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DevicePolicyResourcesManager.getString() was added in T and called in many places inside system server. However, it uses DeviceConfig.getBoolean to determine if a feature is enabled or not. In the places where it is called from inside system server, `clearCallingIdentity` was not always called, which can result in DeviceConfig.getBoolean throwing SecurityException due to mismatched AttributionSource (calling uid is the caller from the binder client, while the context is "android" which should have calling uid 0). Context is "android" because it is inside the system server where the DevicePolicyManager instance is created. This bug might lead to unexpected behavior such as packages failing to be uninstalled by admin. The easiest fix is to place a bypass in SettingsProvider and manually clear the calling uid there. This fix also allows for the cleanest backporting as it can be cherry-picked into T without touching all the places where DevicePolicyResourcesManager.getString() is called in the system server. BUG: 252663068 Test: manual Merged-In: I37a6ceb29575593018b93093562c85d49770a43c Change-Id: I37a6ceb29575593018b93093562c85d49770a43c (cherry picked from commit b127850fda23698be0247e5b2110cdd01fff8fd7) (cherry picked from commit 3b873ef5c2e2a1527ded7cbcad1993af15277831) Merged-In: I37a6ceb29575593018b93093562c85d49770a43c
* | SystemUI: qs columns count settingsmaxwen2023-01-031-0/+18
| | | | | | | | | | | | and vertical qs tile layout settings (and resource config) Change-Id: I5b519ad62d17fec16400229264c66cbbde2a2031
* | Battery charge warning [1/2]Nicolas Dhouailly2022-12-301-0/+18
| | | | | | | | | | | | Signed-off-by: SuperDroidBond <superdroidbond@yahoo.com> Signed-off-by: blinoff82 <blinov.in@gmail.com> Change-Id: I5846daceaf56d11eff5527b5d891fd31be89eae2