Commit Graph

891995 Commits

Author SHA1 Message Date
Suprabh Shukla
247c434e66 Count app restriction events
Log a counter every time an app is put under battery restriction.

Test: N/A

Bug: 280192659
Change-Id: I688f6e33fe74d637a453c5d5ecfbcf0d6c7f9379
2023-05-05 10:44:08 -07:00
Mark Renouf
05a834b1d8 Merge "Skip shared element transition for implicit intent" into udc-dev 2023-05-05 17:44:04 +00:00
Yunfan Chen
efe599ed8e Merge "Collect change before starting transition" into udc-dev am: 793951c7c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22954343

Change-Id: If5cb7f623f1e1dddeb6a2659629e51de0f859d40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:35:50 +00:00
Kevin Hufnagle
5920afbfee Merge "docs: Fix typo in isCredential attr" into udc-dev am: 0a55efee89
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22988846

Change-Id: Ia792ed9b67b467d60c76ec959f01e9bcde083f7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:34:11 +00:00
Vlad Popa
e9d2c474a5 Merge "CSD: Remove volume based warning when CSD is enabled" into udc-dev am: df234b337a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23026611

Change-Id: I9318cf007fb0411f0afda2d6ffefcb155d111bfe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:33:39 +00:00
Aurélien Pomini
04d3c066ea Merge "Fix WallpaperManagerInternal NPE" into udc-dev am: 8977208b9d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23048820

Change-Id: I6f2dd27736a0d0fc02feaec9a90c0120b9f8e783
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:32:44 +00:00
Yunfan Chen
793951c7c9 Merge "Collect change before starting transition" into udc-dev 2023-05-05 17:29:42 +00:00
Jerry Chang
9c6a04791d Merge "Fix not showing divider when re-entering split with rotation" into udc-dev am: a30b77d0ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23056499

Change-Id: I307efd1b1a2118cf137a2a265ff351b3f66fb329
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:27:52 +00:00
Arpan Kaphle
c8c01cc548 Adding Final Phase Exception String to Logs
This attempts to find all framework only exceptions, and adds that to
our collection and emit system.

Bug: 271135048
Test: Build, Waiting for E2E (won't submit without E2E)
Change-Id: I72540ebc337d48e9a014c5bf4069d22d370dbc12
2023-05-05 17:26:18 +00:00
Arpan Kaphle
f3b471ad79 Adds to Aggregate Candidate Metric query and count
Also, designs setup for authentication entry collection, and creates a
new abstraction object for said collection. Given that authentication
entries can occur in loops, this starts to think about how we might
aggregate authentication entries.

On top of this, this re-designs the session id in the collection system
so that it is immutable once created.

Bug: 271135048
Test: Build + Won't submit w/o E2E test

Change-Id: Ib32036430f5cf0249a651a2867758de08f19e63b
2023-05-05 17:26:18 +00:00
Arpan Kaphle
d5b8749006 Candidate Aggregate Metrics Setup + sessId Focus
This sets up the design for how candidate aggregate metrics will be
collected, and runs through the whole flow up to emits. Currently, many
values are default values, and will be filled in as the design is
extended out. It does handle the split session id logic, however,
between the two tracks. Also, after deliberation, we now use the
hashCode of a random UUID to get closer to ~ (1/2^(32))
collision rate - their hashcode is pretty random, utilizing an int
conversion from a bitwise xor operation of the most and least
significant bits from the already high entropy uuid. This will provide
more security than the binder implementation, especially under time and
device id buckets, against collisions.

Bug: 271135048
Test: Build and Won't Submit without E2E Test
Change-Id: I8e7455dd6eaf8adb15035f6a9262f34a0c20531f
2023-05-05 17:26:18 +00:00
Caitlin Shkuratov
526d3ecae7 [Mobile] Remove mobile_roaming_large view.
It looks like this was added for provider model (b/175421071), and
provider model is no longer supported.

Fixes: 281070805
Test: compiles
Test: roaming indicator still appears
Change-Id: Ic8dc6d1755e1a77d912ba41060c0086b54242cd6
2023-05-05 17:23:21 +00:00
Ikram Gabiyev
74188e9b43 Set sourceRectHint null if too small
Set sourceRectHint in pictureInPictureParams to null
if it is smaller than the entry bounds in PipTransition.
This makes sure we use content overlay to enter PiP.

Bug: 280508242
Test: reproduce the steps in the bug
Change-Id: Id622756e6005ae6535373f4975638eb3971d917c
2023-05-05 10:21:16 -07:00
Kevin Hufnagle
0a55efee89 Merge "docs: Fix typo in isCredential attr" into udc-dev 2023-05-05 17:18:26 +00:00
Vlad Popa
df234b337a Merge "CSD: Remove volume based warning when CSD is enabled" into udc-dev 2023-05-05 17:17:43 +00:00
Aurélien Pomini
8977208b9d Merge "Fix WallpaperManagerInternal NPE" into udc-dev 2023-05-05 17:13:40 +00:00
Jerry Chang
a30b77d0ca Merge "Fix not showing divider when re-entering split with rotation" into udc-dev 2023-05-05 17:06:56 +00:00
Atneya Nair
afc0103315 Merge changes from topic "hds_identity" into udc-dev am: 8fc7d8d1ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22672862

Change-Id: Id288dfa2e80d73389060ced23e557951e03f5450
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:00:57 +00:00
Atneya Nair
469222a172 Plumb trusted config through soundtrigger stack am: 31316ca79d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22690713

Change-Id: Ib1bf9a37a5a8dc72bc5d66533ede73a1d2a36623
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 17:00:52 +00:00
Christine Franks
97a17efb34 Disable context sync telecom code by default
Bug: 281069627
Test: n/a
Change-Id: I915ccb0b02bd76ea975a94c2e02e4dfc5ba27724
2023-05-05 17:00:22 +00:00
Miranda Kephart
d573de9501 Merge "Update screenshot and long screenshot UI to match mocks" into udc-dev am: 2f80e5e175
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22760954

Change-Id: I7044dba45415f77be68e12b367683bbfc27490c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:58:41 +00:00
Massimo Carli
e473fb081c Merge "Handle uiMode change in CompatUI" into udc-dev am: 19d41263b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22744866

Change-Id: I3dc8d8fd94b252cb46653d637115db5559a4836f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:58:19 +00:00
Aurélien Pomini
fa48ffe60d WallpaperManager getDrawable & al clarifications
By "getDrawable & al", I mean all wallpaper read methods with a which flag

The exhaustive list (reviewers, please check that I did not miss one):
 - getDrawable(which)
 - peekDrawable(which)
 - getFastDrawable(which)
 - peekFastDrawable(which)
 - peekWallpaperDimensions(which)
 - getBitmap(hardware, which)
 - getBitmapAsUser(userId, hardware, which)

This CL does a couple things:
 - Clarify the javadoc of getDrawable & al public methods. In particular
   clarify when the method will return null and when it will return the
   default built-in wallpaper, and that getDrawable/getFastDrawable are
   the same as peekDrawable/peekFastDrawable respectively. Also
   deduplicate some copied/pasted javadoc, and mention all equivalences
   between functions.
 - Replace duplicated code in peekDrawable/peekFastDrawable
 - Adapt the API of get|peek(Fast)Drawable|Bitmap to return null with FLAG_LOCK
   when there is no static lock-only wallpaper.
 - Add a hidden overload of getBitmap with a "boolean returnDefault" argument
   (to always return the default wallpaper instead of null) and use it
   in ImageWallpaper
 - Small nit: use a try-with-resource and refactor getDefaultWallpaper
   slightly (it is now used in two places after recent changes, but one
   was not using the cached mDefaultWallpaper)

Bug: 253507223
Test: atest WallpaperManagerTest
Change-Id: I3acd46ec76df5035940f2af360dda145d98b5901
2023-05-05 16:57:22 +00:00
Aaron Liu
35c9f4854a Merge "Clean up PREVENT_BYPASS_KEYGUARD flag" into udc-dev am: f6bbf92bf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22911532

Change-Id: I07a761de36d5ae5ebd1b87f94c905e55e1254314
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:54:32 +00:00
Peiyong Lin
c306fc21bf Merge "Refactor ANGLE usage code." into udc-dev am: 8cd878fbcf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22560145

Change-Id: Ied099113df02b2e106198db3ff440d0132cde4db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:50:45 +00:00
Treehugger Robot
c0b9c4717b Merge "Add vsync id and timestamp to WindowInfosListener" into udc-dev am: de47bc295b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22954274

Change-Id: Ib1c9589bde3cc32312be20cd22228df669186ee2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:48:29 +00:00
Atneya Nair
8fc7d8d1ab Merge changes from topic "hds_identity" into udc-dev
* changes:
  Remove voiceinteraction identity fabrication
  Plumb trusted config through soundtrigger stack
2023-05-05 16:45:33 +00:00
Liran Binyamin
9a0b92c48a Update the color of the bubble expanded view pointer arrow to match the background color of the overflow expanded view.
Fixes: 280868378
Test: Tested on a physical device
Change-Id: Iafbe48ffbd9c6ddbeaa0a27bac0f01f7d289464b
2023-05-05 16:45:26 +00:00
Miranda Kephart
2f80e5e175 Merge "Update screenshot and long screenshot UI to match mocks" into udc-dev 2023-05-05 16:42:16 +00:00
Mark Renouf
73f0b2af19 scroll capture: Recover gracefully when anchor view is lost
When manipulating a RecyclerView, the position of a visible child
view is used as a feedback signal for scroll tracking. If the view
remains detached after scrolling, view operations fail and crash
the application.

Detect this condition and return an empty result. If the RecyclerView
moved during this request, the remaining tiles will be offset by the
same amount. This will manifest as a missing section of content.

Logging has been added to identify and track this bug.

Test: manual repro w/test app; see bug
Bug: 239050369
Change-Id: I5a0a62aaad10ffa7838d7902fd9c5f4f84b52ce6
2023-05-05 16:41:50 +00:00
Massimo Carli
19d41263b7 Merge "Handle uiMode change in CompatUI" into udc-dev 2023-05-05 16:32:44 +00:00
Aaron Liu
f6bbf92bf4 Merge "Clean up PREVENT_BYPASS_KEYGUARD flag" into udc-dev 2023-05-05 16:27:41 +00:00
Peiyong Lin
8cd878fbcf Merge "Refactor ANGLE usage code." into udc-dev 2023-05-05 16:24:16 +00:00
Sherry Zhou
31f53679b1 Fix weather clock clipped when swiping in Lockscreen
The cause is that layer will be clipped to the bound when alpha < 1.0

Previously reverted due to b/280863001, b/280873846

Test: atest KeyguardClockSwitchControllerTest, KeyguardStatusViewTest
      TurnOffUnlockScreenToAoD, LockscreenWithNone
Bug: 279487893
Change-Id: Ia73ea00920ca0147e0acc5d2919b457203b7575e
2023-05-05 16:21:56 +00:00
Treehugger Robot
de47bc295b Merge "Add vsync id and timestamp to WindowInfosListener" into udc-dev 2023-05-05 16:19:42 +00:00
Ats Jenk
2135972703 Add and update log statements for desktop proto
Add and update log statements in DesktopTasksController to include the
controller name in log string. Simplifies tracking down the messages.
Add log statements to DesktopModeTaskRepository to ease debugging.

Bug: 280657549
Test: build wmshell
Change-Id: I37579eba3b0a8b6883f2f2b745061028b42db369
2023-05-05 09:18:14 -07:00
Ats Jenk
38c655b84a Create a Kotlin class for using protolog in wmshell
Protolog is currently not supported in Kotlin files. The tool can only
process java files.
Creating a Kotlin based class that has a similar API and should be a
drop-replacement.

Bug: 280657549
Test: build wmshell
Change-Id: Ie27b2980930a7c26408773d05bb47f9802398d1b
2023-05-05 09:18:10 -07:00
Treehugger Robot
cdf11ab7e9 Merge "Add --no-compile-sdk-metadata switch to AAPT2" into udc-dev am: 0e27ed29b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23039165

Change-Id: I71e31564fb8a68eb08cd2389f920ad712ed2b61b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:06:37 +00:00
Riddle Hsu
a4b15ed033 Restrict change mode to apply transition background
Previously it only checks the transition type. It will incorrectly
add the background color for a CHANGE mode window.

An example:
 CLOSE type {
   CLOSE mode: translucent
   CHANGE mode: opaque
 }

Bug: 281010752
Test: Launch a translucent activity and it calls
      Activity#finishAndRemoveTask(). A fullscreen background
      color should not show.
Change-Id: Iff51289467c448b422f4011e14b9fd61de881b45
2023-05-06 00:05:46 +08:00
Brad Hinegardner
ac430218ff Merge "Align the lockscreen shortcuts haptics with the animation" into udc-dev am: d8d6ce336f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23036927

Change-Id: I950e331b509dc47f8a558631405519e1713e98e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 16:04:53 +00:00
Caitlin Shkuratov
9086588d36 [Mobile] Show the roaming icon in the top-right on RTL.
The old roaming drawable took up the full space of the signal icon, so
it couldn't be moved around using gravities alone. Reducing its size
to be just the size of the R lets us move it around correctly in RTL.

Fixes: 230795372
Test: `adb shell am broadcast -a com.android.systemui.demo -e command
network -e mobile show -e level 2 -e datatype roam -e slot 4 -e roam
show` -> see roaming icon in top-left of signal icon.
Test: above command in RTL -> see roaming icon in top-right of signal
icon.

Change-Id: Ie8be70a3c92e88bcfe0a9bdd9610995ccbfd9529
2023-05-05 15:52:08 +00:00
Treehugger Robot
0e27ed29b3 Merge "Add --no-compile-sdk-metadata switch to AAPT2" into udc-dev 2023-05-05 15:43:30 +00:00
Reema Bajwa
fa3d854ac3 Revert usage of ParceledListSlice in UI interface
Causes exception when screen is rotated

Test: built & deployed locally
Bug: 280524540

Change-Id: I45d2b5cbf6309c4809c3a0d3343c441a991e8e2f
2023-05-05 15:26:21 +00:00
Brad Hinegardner
d8d6ce336f Merge "Align the lockscreen shortcuts haptics with the animation" into udc-dev 2023-05-05 15:18:22 +00:00
Aurélien Pomini
c206441b06 Fix WallpaperManagerInternal NPE
Some targets don't have a WallpaperManager, thus this null check is
necessary to avoid crashes. A crash was detected in Android auto
emulator.

Fixes: 280883891
Test: build completed successfully
Change-Id: Ie475e9ba1999f109572252303e4103e5f977b4bd
2023-05-05 15:15:58 +00:00
Jean-Michel Trivi
183c8a3a27 AudioService: fix removeDeviceAsNonDefaultForStrategy regression
Calling AudioManager.removeDeviceAsNonDefaultForStrategy with
an invalid strategy is expected to fail (as documented).
Fix by returning a failure when the useCase (aka strategy) and
role is not found in the map of roles for the audio devices.

Bug: 280554476
Test: atest android.media.audio.cts.NonDefaultDeviceForStrategyTest#testInvalidStrategy
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8777944d3010a3be3d69405300b4a4e0b9f961a5)
Merged-In: I29f9d9a5d9e7fb2c0865dfa0c86e7531bb148b41
Change-Id: I29f9d9a5d9e7fb2c0865dfa0c86e7531bb148b41
2023-05-05 15:12:36 +00:00
András Kurucz
bd114eb6fb Update the Aod Icon colors after the HUN->AOD transition
The NotificationAreaController is responsible for adding the
StatusBarIconViews to their appropriate container and update their
looks. An icon is usually added through updateNotificationIcons(List<ListEntry> entries),
which adds the icons and updates their colors. It works well if AOD icons are added through this path.
However there is another path through onFullyHiddenChanged(boolean
fullyHidden) and if an AOD icon becomes visible during this update, we
miss to update its color. In case of black PNG icons it resulted in an
_invisible_ notification on the AOD.

To trigger this path:
 - show aod
 - turn off faceauth bypass
 - post a Pulsing notif with a black PNG icon

Fixes: 276353191
Test: post notifs on AOD and observe their color
Change-Id: I0c1e97e9862d8d100e8710f6d825200603f0b2a4
2023-05-05 15:11:26 +00:00
Seigo Nonaka
70ac31c90a Merge "Retruns true for hasSelection in reversed selection case" into udc-dev am: aa93568740
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22891120

Change-Id: I2a0e09f36435c6c7dc429b743970f77458f4c13c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 15:02:10 +00:00
Jigar Thakkar
12d9810743 Merge "Add config to control app cloning building blocks" into udc-dev am: a3b93dcc4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22850256

Change-Id: I90dee2afd1d5088f5c5f3f9902558ef23533dab1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 15:01:46 +00:00
Reema Bajwa
8d0494ca4b Reduce timeout to 3 seconds for provider response
Bug: 280869004
Test: built & deployed locally

Change-Id: I1c38eca1a4106f15304afc2c31691a2e7d795003
2023-05-05 15:01:28 +00:00