Commit Graph

891995 Commits

Author SHA1 Message Date
Calvin Huang
6f968fe7e2 Check lineHeight without cast
checkArgumentNonNegative with cast doesn't work properly if
-1 < lineHeight < 0

Fix: 280028267
Test: atest android.widget.cts.TextViewTest
Change-Id: I5a1244eb0c5a0f91671a77f6203178cbee2b64e5
2023-05-08 22:06:27 +00:00
Mady Mellor
50daced221 Return early in removeTask if there is no task token
Test: atest TaskViewTest
Bug: 280957479
Change-Id: I6fbcb47f6fc88d0d77443989a8e2f3ca0780bae4
2023-05-08 14:54:40 -07:00
Nicholas Ambur
1677ae66dc add KeyphraseEnrollmentInfo to VoiceInteraction dumpsys
Test: build and verify VoiceInteraction dump manually
Bug: 281551611
Change-Id: Ib1da59526f265af2c8263ec698c5d60450c7e358
2023-05-08 21:40:22 +00:00
John Reck
ac175cc44f Use AHardwareBuffer_getAllocationSize
Test: android.graphics.cts.BitmapTest#testGetAllocationSizeWrappedBuffer
Bug: 280338223
Change-Id: I3baf204e59988c11a58a06fcb90a5e14525492e9
2023-05-08 17:40:05 -04:00
Evan Rosky
6749d0ba90 Start tracking unknownvisibility immediately for launchBehind
Previously, we only started tracking unknownVisibility in
`realStartActivity` which happens after completePause. This is
too late since there can be an arbitrary amount of time before
we get pause and launchBehind apps lifetime shouldn't be
tied to a different task anyways. This CL starts tracking it
on start so that the transition system doesn't interpret it
as syncFinished before we know if it will be visible or not.

Bug: 277759491
Test: Launch home from dream multiple times.
Change-Id: Ifabc089e396717565d351139d761bb967c8946ae
2023-05-08 14:21:08 -07:00
Chandru S
f05f84ad10 Add onTrustManagedChanged state to TrustRepository
Bug: 275600559
Test: atest TrustRepositoryTest

Change-Id: I2ddeae63df6c1aa2317e570e1befc2f23e15a159
2023-05-08 14:10:41 -07:00
Aaron Liu
ac4c6aa72f Merge "Release flag" into udc-dev 2023-05-08 21:09:06 +00:00
Charles Chen
e317679003 Merge "Skip VisualQueryDetectionService being destroyed for SDK bump" into udc-dev 2023-05-08 21:06:03 +00:00
Ats Jenk
232654be2a Use empty string instead of nullable for leak report email
Leak report email was set to be nullable in some modules and not
nullable in others. This was causing undeterministic build failures when
building SystemUI with gradle.
Removing nullable annotation from leak report email dependency and using
empty string instead of null.
Only setting the email in leak report email intent when the email string
is not null or empty.

Bug: 281537214
Test: full build: m -j

Change-Id: Ic798ae8aba76ba29f9ded8dd8a549fd4c31962a6
2023-05-08 14:04:18 -07:00
Shawn Lee
106fe406dd Merge "Add a null check to prevent NPE when status bar isn't inflated" into udc-dev am: a59d1b8ed6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23065719

Change-Id: I00d5e3a054ad2e3bfe6ead36f7c9cb9cd8777cd8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 20:54:13 +00:00
Helen Qin
317fa77f66 Support autoselect for create flows.
Bug: 281078569
Test: manual
Change-Id: I5e0a395bba4712b7fc1f22b5c51977bc0db667b0
2023-05-08 20:50:43 +00:00
TreeHugger Robot
e5257275ae Merge "Disable context sync telecom code by default" into udc-dev 2023-05-08 20:50:27 +00:00
Raphael Kim
83e2e0e82b [CDM] remove platform version exchange protocol
Bug: 280846138
Test: Tested manually from raven (U) -> r11 (T)
Change-Id: I78d4b6cd334963d44e1081f97f190e83da8ea5ee
2023-05-08 13:43:24 -07:00
Taran Singh
9f25a43381 Flip the debug flag in HandwritingModeController
Disable the debug flag for logging in HandwritingModeController.
When its on, it may log very verbose, not relevant to users/developers.

Bug: 210039666
Test: Manually build and test
Change-Id: I6ec5d93864f6bf365ef420f38ac3f059fe70b987
2023-05-08 20:36:27 +00:00
Eghosa Ewansiha-Vlachavas
210132d78f Make letterbox education dialog react to dark/light themes
Update letterbox education dialog to use colours assigned based on
the system theme.
Force letterbox education dialog component to be recreated if the system theme
has been change or device is docked while the dialoge is visible

Fixes: 270936761
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Change-Id: I3422c4ca7d7abdc085b28b341f7d539bc1447f66
2023-05-08 20:21:20 +00:00
Treehugger Robot
4d859e7bc3 Merge "scroll capture: Recover gracefully when anchor view is lost" into udc-dev 2023-05-08 19:53:28 +00:00
Nick Kovacs
4f861a59f5 Enable low target sdk install block
Removed the feature flag guarding the low target sdk block.

Bug: 237321649
Test: atest PackageManagerTests
Change-Id: I9a3b9e9f65ed75732f01762e1beee47c355f15a4
2023-05-08 19:52:30 +00:00
jiewenlei
22e251a307 Update javadoc to reflect "autofill for all apps" changes.
For SetImportantForAutofill: https://screenshot.googleplex.com/AHAHKeXN7a649Hx
For isImportantForAutofill: https://screenshot.googleplex.com/8TNagJWZtatdKfh
Test: m
Bug: 264489182

Change-Id: I0c2b6e2208b6d667c486c23cbbea32a087255f33
2023-05-08 19:48:41 +00:00
Sudheer Shanka
4bd98b45b6 Merge "Add a new cmd to wait for a specific broadcast to be dispatched." into udc-dev 2023-05-08 19:41:25 +00:00
Song Chun Fan
66250a0520 Merge "[pm] fix ConcurrentModificationException in AppsFilter" into udc-dev 2023-05-08 19:40:57 +00:00
Song Chun Fan
feb7e1c37d Merge "Revert "Revert "[SettingsProvider] skip caching in system server""" into udc-dev am: 23cdcba71c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22999028

Change-Id: Ieb0bcc4e9d4175c919056821377726ad055aa6a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:36:33 +00:00
Dmitry Dementyev
d8c138bbe5 Remove unnecessary flag check from RecoverableKeystoreDb.
Flag was enabled in prod for a few weeks.

Bug: 279231962
Test: manual
Change-Id: Iccbf3b86aa630ebfb86f6d2a4f15fe9f70bb685c
2023-05-08 19:35:42 +00:00
Jean-Michel Trivi
a7f114849b AudioService: log stream mute events
Mute events are logged separately from volume events as
those happen more often and would cause older mute events
to roll off the logging window
Log an error when trying to unmute a stream that should
stay muted due to the set of muted streams by ringer and
zen mode.

Also invert muting and updating mask of muted streams
so the state always precedes the update of the stream,
in order to identify incorrect mute state changes.

Bug: 278661956
Test: adb shell dumpsys audio | grep -A 30 "mute commands"
Change-Id: I6091b0e2a449aea4e21167678304811ca8a4ef53
2023-05-08 12:35:35 -07:00
Austin Borger
6c005aac52 Merge "Camera / UidObserver: Add the ability to subscribe to specific UIDs" into udc-dev am: 3fac471cfc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22829760

Change-Id: Ie8239810264a2d13c549d9ac507e863b0458f1de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:31:40 +00:00
Arpan Kaphle
3fdc0c48a0 Merge changes If8cf0831,Ib3203643,I8e7455dd into udc-dev
* changes:
  Sets up Final Phase Emit for Calling App Track
  Adds to Aggregate Candidate Metric query and count
  Candidate Aggregate Metrics Setup + sessId Focus
2023-05-08 19:26:52 +00:00
Justin Weir
f2842479f7 Merge "Add method for adding expansion listener without firing event" into udc-dev am: 38d07cba1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23035507

Change-Id: Ifb1e3514bbab1ff39eaa60b7911a590cbe58a877
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:24:06 +00:00
Kweku Adams
e3407ec222 Limit namespace length.
Limit namespace length to 1000 characters to avoid memory or other
potential issues.

Bug: 281553712
Test: atest CtsJobSchedulerTestCases
Change-Id: I8c99ce6c5e9a23a38f91a00bdf22e80d08389f32
2023-05-08 19:23:28 +00:00
Treehugger Robot
d39c02416d Merge "Fix some views not being tracked" into udc-dev am: f0e955ecd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22841498

Change-Id: I6926c471603329bf429dd36810468b78077b11f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:19:35 +00:00
Bryce Lee
6b863af6cb Revert "Add elevation to dream home controls button."
This reverts commit a384e2ab66.

Reason for revert: Need to address feedback from UX. 

Change-Id: Id43e52994e4e88ed69dca94e10857231e0e93718
2023-05-08 19:16:42 +00:00
Caitlin Shkuratov
ca5e0d25ad Merge changes Ib9dde023,I917506fc,I8576cc36 into udc-dev am: ab3637736a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22997371

Change-Id: I59f5e63bb36de625b5e43d4e2a3749b9c9a28bf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:16:10 +00:00
Kweku Adams
30cd1ec8ab Add metrics around scheduling failures.
Add metrics to track how often apps fail to schedule jobs.

Bug: 138239687
Bug: 279935506
Test: atest CtsJobSchedulerTestCases:JobSchedulingTest
Change-Id: I05fec96feb4ab8b78a0e896b84a31512b4f84fe5
2023-05-08 19:15:50 +00:00
Caitlin Shkuratov
4aba79418b Merge "[Mobile] Remove mobile_roaming_large view." into udc-dev am: 4a7852efd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23061697

Change-Id: I0698056ce1061c61ffb7058e77ce5549fde63cdd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:12:00 +00:00
Rasheed Lewis
4380b2c23f Merge "Move TileLifecycleManager calls to background thread" into udc-dev 2023-05-08 19:09:26 +00:00
Evan Laird
651a424ace [Sb refactor] Ensure config is fetched on flow start
In the case where the `CARRIER_CONFIG_CHANGED` broadcast is sent out
before the default data sub RAT config is read, it will read the
system-defined default carrier config instead of the appropriate one for
the current default data sub.

This change is simple: make sure to always fetch the system current
carrier config when the flow starts.

Bug: 280390475
Test: MobileConnectionsRepositoryTest
Change-Id: I868a840ee8465b0313bc85e5c35c0d40ca9d509a
2023-05-08 15:06:13 -04:00
Nicholas Ambur
7ecd2ca530 Merge "fix flaky behavior in FakeLatencyTracker" into udc-dev am: 819b087abc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22637208

Change-Id: I705bb8c5d83084347a0cdab81baa926e9e60abcc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 19:04:32 +00:00
Arpan Kaphle
b98c2ee541 Merge "Adding Final Phase Exception String to Logs" into udc-dev 2023-05-08 19:02:17 +00:00
Behnam Heydarshahi
83d0751298 Merge "Move volume dialog away from the hinge" into udc-dev 2023-05-08 18:53:32 +00:00
Jorge Gil
1bd14bc4e3 Do not create window decorations for split roots
Split roots (either the single-top root or stage roots) were usually
excluded from having window decorations by the exclusion logic for
non-leafs that exists in FreeformTaskTransitionObserver. However,
once split is dismissed and the child tasks are reparented out of the
stages, the two stage roots become leafs and if they were included as
part of a transition, a window decoration was being created for each of
them. This change excludes split roots from having a window decoration.

Bug: 280499263
Test: enter split, dismiss split by dragging the divider, observe
there's no crash

Change-Id: I4d563176a75512232fc853232b3666d511e4c922
2023-05-08 18:51:00 +00:00
Jing Ji
0284653ef8 Log the process hosting component types in ProcessMemorySnapshot
Bug: 279861837
Test: cmd stats pull-source 10064
Change-Id: Ie2f1275f1cc6348845fcb5c4805ab7517020f920
2023-05-08 18:50:27 +00:00
Bryce Lee
22490466ca Merge "Add elevation to dream home controls button." into udc-dev 2023-05-08 18:47:02 +00:00
Ioana Alexandru
a95dca8df2 Fix unsafe calls to Bundle.getParcelable.
The recommended approach is to pass the class as a parameter.

Bug: 281549104
Test: atest NotificationManagerServiceTest
Change-Id: Ib363110fd2bdcf4d9974fde5f78df926940785bf
2023-05-08 18:39:35 +00:00
Treehugger Robot
c4acf226ca Merge "Hook up binderDied callback to cancel session when service dies" into udc-dev am: c48c4fc288
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23066012

Change-Id: Ib62628f95f506e5788f41ae6ae14d769bd017442
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 18:29:38 +00:00
Aaron Liu
f3192865a3 Merge "Maintain parity with central surfaces impl." into udc-dev 2023-05-08 18:28:51 +00:00
David Saff
e1e138fe04 Merge "Prevent leaked receivers from MediaOutputDialogTest" into udc-dev 2023-05-08 18:26:14 +00:00
Caitlin Shkuratov
b11171eef7 [Status bar] Delay showing the status bar during dream transition.
Bug: 273314977
Test: manual: trigger lockscreen to dream transition -> verify that the
status bar icons in the top left don't flicker visible for a few frames
(see video attached to bug)
Test: atest CollapsedStatusBarFragmentTest
CollapsedStatusBarViewModelTest

Change-Id: I3474a5c7f6f485e8d26ffc92eac31a9b08901d51
2023-05-08 18:22:41 +00:00
Beverly
f9294b1387 Update bouncer delay (behind flag) from 250ms -> 500ms
Bug: 267322286
Fixes: 281530212
Test: manual
Change-Id: Ifbf0cd39d56e01e47315ebbad9ddaee0e12f4231
2023-05-08 18:21:54 +00:00
Michał Narajowski
84ddae46ef bt: Use group id to select color for icon
This reduces icon color flickering when disconnecting one of the devices
from a device group. Normally we use device address to pick a color but
in case we have a group id we should use it instead, so that the color
does not change when one of the devices disconnects.

Bug: 269067986
Test: manual
Tag: #feature

Change-Id: If72187d050e8ea531b8f2c39e22f3faf1ec14f7b
Merged-In: If72187d050e8ea531b8f2c39e22f3faf1ec14f7b
2023-05-08 18:17:15 +00:00
Makoto Onuki
b01d42ea8c Extract WTF to a separate method for easier search
Bug: 276963716
Test: build
Change-Id: Ifc6b2509c0f1e6c5f115f4bf050c8626763519a9
2023-05-08 11:16:13 -07:00
Daniel Norman
3b6b80fe3b Move input focus for a11y actions with WM instead of ActivityTaskManager
Moving input focus is required to show IME after calling
ANI#performAction(ACTION_CLICK) on an embedded text view's node.

ActivityTaskManager#setFocusedActivity does not transfer
window input focus to embedded views.

Bug: 278846790
Test: new test in AccessibilityEmbeddedHierarchyTest
Test: use TalkBack to click on embedded (same & cross-process) edit
      texts, observe IME opens and `dumpsys input` shows the embedded
      "window" as the input FocusedWindow.
Test: same as above, but in split screen mode with two apps each with
      their own edit texts.
Change-Id: I7bd7783cd3426b547ddd2d0e71ad5b38281198c3
2023-05-08 11:11:36 -07:00
Bryce Lee
2f4e8e92f8 Handle overlay edge spacing within individual complications layouts.
This change accounts for spacing from the layout edge in each
complication, rather than using the ViewGroup's padding setting. This
change resolves clipping during transitions due to an interaction
between the ViewGroup padding and alpha/translation animations.

This spacing calculated in margin calculation, now spread across each
logical complication container. The directional group applies margins
between each complication, while the position group applies margins
from the layout's edge.

Test: atest ComplicationLayoutEngineTest
Fixes: 280595239
Change-Id: Ibe4ba52b970337671fec0c0878e2686b5bac8fa2
2023-05-08 11:11:29 -07:00