- Sep 29, 2023
-
-
Caitlin Shkuratov authored
This change majorly involves: 1) Replacing the methods inside SystemBarAttributesListener to be in flows form instead. 2) Moving CentralSurface's bar mode calculations to the repo. This change also minorly involves: 1) Adding an OngoingCallRepository that has the ongoing call status. 2) Updating StatusBarBoundsProvider to have an #addListener method instead of injecting the listeners directly. 3) Updating LetterboxAppearanceCalculator to have the status bar bounds passed to it instead of fetching them. Bug: 300519002 Fixes: 301605450 Test: Assortment of letterboxing tests, including: - On landscape tablet, open landscaped app. Move app to be center, left, and right, and verify status bar icons are visible in all locations. Verify newly added status bar icons get the right color. - Without rotating device at all (aka ensure #onStatusBarBoundsChanged is never called), letterbox an app and verify it looks correct. - Enter split screen in landscape with letterboxed app on left, typical app on right. Verify icons are correct in all split screen sizes. Rotate to portrait then rotate back. Verify icons get correct color again. - Enter split screen in portrait with typical light app on top. Rotate to landscape then rotate back. Verify system icons are still dark colored afer rotation. Test: Assortment of ongoing call tests, including: - Start ongoing call then enter immersive mode in app. Verify status bar still displays with semi-transparent background. Verify status bar can be swiped away. - General smoke test Test: Assortment of bar mode tests, including: - Use app in low profile mode -> verify notif icons disappear (replaced by dot) and only battery icon shows on the right and is dimmed - Verify status bar is transparent on homescreen background with sufficient contrast - Verify status bar has gradient scrim on homescreen background that needs extra contrast - Verify status bar appears correctly with apps that request specific background color Test: Verify dumps of StatusBarModeRepositoryImpl and LetterboxAppearanceCalculator Test: atest StatusBarModeRepositoryImplTest OngoingCallControllerTest LetterboxAppearanceCalculatorTest LightBarControllerTest Test: atest SystemUITests Change-Id: I5b084356691fca03411461748f56fe6841f1b83e
-
- Sep 27, 2023
-
-
Caitlin Shkuratov authored
The next CL will move the status bar mode & appearance calculations which require some updates to the LetterboxAppearanceCalculator APIs. This CL makes those API changes so that the next CL is slightly cleaner. Changes: - Use List instead of Array. (Kotlin data classes require List instead of Array and the upcoming repo will use data classes) - Directly fetch the icon colors instead of getting them from LightBarController. (Removing this LightBarController dependency means that the next CL won't have a circular dependency) Bug: 300519002 Test: smoke test of letterboxing effect on status bar icons Test: dump LetterboxAppearanceCalculator Test: atest LetterboxAppearanceCalculatorTest Change-Id: Ifafceabd19de86961693136e26df5314728340ca
-
Treehugger Robot authored
-
Fabian Kozynski authored
-
Fabian Kozynski authored
* changes: Apply restore to repositories Add a QSSettingsRestoredRepository
-
Brad Hinegardner authored
-
Oleg Petšjonkin authored
-
Piotr Wilczyński authored
-
Piotr Wilczyński authored
-
Ilyas Sung authored
Merge "Fix security bug - A malicious DPC can crash the device by setting policies of large sizes using up all the memory on the device and crashing it." into main
-
Mårten Kongstad authored
A previous CL added the auto-generated aconfig Flags.FLAG sources to metalava's input when generating core/api/current.txt, so metalava would expand the Flags.FLAG to their values. Do the same for the build targets for the other (system, module-lib, test) API signature files in core/api. Also update the API signature files accordingly. Bug: 301859633 Test: m checkapi Change-Id: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
-
Nicolò Mazzucato authored
-
Piotr Wilczyński authored
The brightness scale 0-255 will now match the slider, i.e. setting brighthess to 0.23 * 255 will set it to 23% on the slider. This will work regardless of the brightness limits (e.g. HBM) - if HBM is on, 255 will still be the max value on the slider, so the max value allowed in HBM mode. This only affects the int scale of the brightness setting. The brightness int values in config files will remain unchanged. Bug: 183655602 Test: atest com.android.server.display Test: atest android.display.cts Change-Id: I8e8ede6fa4ee945899e33a2ba45a290bf704d166
-
Iván Budnik authored
-
Thiébaud Weksteen authored
Merge "enforce_permission_counter: Find targets automatically" into main am: f964854d am: 26dd6859 am: 6318b81e am: d5762de0 am: 3710ce6e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2761525 Change-Id: Ie40f2d01be7355adb91890390f73bc506ca6fb8f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Ibrahim Yilmaz authored
-
Thiébaud Weksteen authored
Merge "enforce_permission_counter: Find targets automatically" into main am: f964854d am: 26dd6859 am: 6318b81e am: d5762de0 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2761525 Change-Id: I28383851abfd4eba0805dacbe5df11e29b1d2be5 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Gustavo Pagani authored
Merge "Implement MVP for Single Provider - Single Password flow for get credential request." into main
-
Winson Chung authored
-
Winson Chung authored
-
Thiébaud Weksteen authored
Merge "enforce_permission_counter: Find targets automatically" into main am: f964854d am: 26dd6859 am: 6318b81e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2761525 Change-Id: I0c9b5d3fdc2587b0624faeab7a49d2e8da730ba1 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Riddle Hsu authored
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: c02513e0 am: eea96871 am: f3237ed7 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I82a5b8121b3bd209a7165564e378d92a8c99a093 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: bdfde51c am: d892d1a6 am: e3d862e3 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I03ab423fdef598ce630a173bf469eaf7e90f1ebf Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: 4d5ec612 am: aa374efb am: b795f3d4 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Ide064b4647c3b3170836910fb2032a01d39e312d Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Thiébaud Weksteen authored
Merge "enforce_permission_counter: Find targets automatically" into main am: f964854d am: 26dd6859 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2761525 Change-Id: I04544d93fc601226ffe3f1fddedc23c6a815c3c4 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: 0bf2b2bb am: 06a33f25 am: 0b778937 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Icc21566a4f197b39d3157ae7937dc4840e83f2aa Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: c02513e0 am: a7f2ab6f am: 66fa0db9 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I401faceaf349f0c6735ad729a5f0fb6365abae77 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: bdfde51c am: 3bbb8d1d am: 0fa85ae5 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I02f3439edbcd3843c9a4e2e513d04e58e77b2d72 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Thiébaud Weksteen authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2761525 Change-Id: Ie849a0978447e7d95ada95c6a2590cc25c1fbccf Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: c02513e0 am: eea96871 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Ia8663a83e93290a4351a155de0b58922c62bbb3f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: bdfde51c am: d892d1a6 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Ia6381f130e2e93e710c9fa13a05034d4811e962f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: 4d5ec612 am: aa374efb Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I580a69ca84b75ad44804a49f7bfb50602b0f83a2 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: 0bf2b2bb am: 06a33f25 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Ief3f0db498005df316437fe16be024b8a2d2de6f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: c02513e0 am: a7f2ab6f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Iede15eeb75b7be9c564a29fae63dcedbd56f2fbc Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: bdfde51c am: 3bbb8d1d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I04c42b02e1e62cfcb761779f31885c5108c39acd Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Thiébaud Weksteen authored
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: 53927dcb Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Ic1de0c0ed9ef59f02546f387e01f5ab33c34884d Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 5498e007 am: 1d43ff79 am: 1b2a424f am: 4d5ec612 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: I34e9473bfa84eb39676ea31575cece622c17feca Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Pinyao Ting authored
Merge "Restrict number of shortcuts can be added through addDynamicShortcuts" into sc-dev am: 110f1d8b am: ab7d63a7 am: fb370205 am: ebab9abb am: 74d48a21 am: 229d5594 am: 19e4d074 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23623415 Change-Id: Ifae14d778073a6624afdbebbf6ef76d92cdfb9ed Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-