Commit Graph

758417 Commits

Author SHA1 Message Date
Michael Groover
80af2faccf Merge "Allow revoked capabilities to be restored in sharedUserId lineage" into tm-dev 2022-04-21 17:00:08 +00:00
Caitlin Cassidy
cdb2c06748 [Media] Allow output switcher chip to handle larger font sizes without
cutting off the test.

Test: manual
Fixes: 219818409
Change-Id: I72eaf3f24bdcbaafc4d00804a9180cc84445c792
2022-04-21 16:44:39 +00:00
Martin Stjernholm
8e8ff54f2e Merge "Add an argument to cmd pm dump-profiles to send --dump-classes-and-methods to profman." into tm-dev 2022-04-21 16:39:43 +00:00
Caitlin Cassidy
0ae9b43822 [Media Recs] Hide the title / subtitle views if none of the albums have
titles / subtitles so that the album art is centered better.

This required setting ConstraintSet values programmatically, which
re-surfaces the quirk we noticed earlier where if we set any
ConstraintSet values programmatically, then all the values in the layout
XML are erased. So, this CL also moves all constraints out of the layout
XML and into the ConstraintSet XML instead.

Fixes: 229377153
Bug: 223603970
Test: manual (verify albums are more centered) (see screenshots in bug)
Test: MediaControlPanelTest
Change-Id: Ibb3c8d9d22b30a642fef38b170c42cebdaec28cc
2022-04-21 16:32:41 +00:00
Lucas Dupin
fce2ec5e4d Merge "Add Peter to OWNERS" am: 62eda37789 am: 66f6f7ce59 am: c37772660c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2070113

Change-Id: I0ca5bfb4e0c4d6875af11d3f163cb0454a0bb20a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 16:19:05 +00:00
Lucas Dupin
c37772660c Merge "Add Peter to OWNERS" am: 62eda37789 am: 66f6f7ce59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2070113

Change-Id: I057797385e6d657850a2e5931db4f207c1a77f59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 16:05:10 +00:00
Lucas Dupin
66f6f7ce59 Merge "Add Peter to OWNERS" am: 62eda37789
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2070113

Change-Id: I61d1247156b443bac7fd4e9f2989f0a85146abeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 15:49:24 +00:00
Nate Myren
2ca8b4def9 Merge "Do not show the notification prompt on noDisplay activities" into tm-dev 2022-04-21 15:33:47 +00:00
Lucas Dupin
62eda37789 Merge "Add Peter to OWNERS" 2022-04-21 15:30:26 +00:00
Beth Thibodeau
6cfc6da01b Merge "Revert "Revert "Enable media session flag by default""" into tm-dev 2022-04-21 15:17:01 +00:00
Joshua Trask
944c5af2d6 DeviceConfig for Chooser update-delay duration.
For more information, see go/sharesheet-list-view-update-delay.

Bug: 224816815
Test: `atest ChooserActivityTest`. The duration can be manually
configured by `adb shell device_config put systemui
sharesheet_list_view_update_delay n` to set a delay of n milliseconds.
With a timeout of 250 (as it was before this change), all the tests
still pass. With a timeout of 0, all tests pass but one (as described in
the doc linked above) -- a potential fix for that test will follow in a
subsequent CL.

Change-Id: Ia5edfe391b135659d2fd8126069c5cd6ce15653b
Merged-In: Ia5edfe391b135659d2fd8126069c5cd6ce15653b
2022-04-21 14:46:03 +00:00
Jernej Virag
e02f9e390d Merge "Prevent LocalImageResolver from upscaling images" into tm-dev 2022-04-21 14:19:41 +00:00
TreeHugger Robot
5428fee94e Merge "Disable flaky flicker tests" into tm-dev 2022-04-21 14:14:22 +00:00
Beverly
df808486df Always update lockscreen UDFPS icon's progress
The progress determines the fade amount (since
it represents the transition to the AOD UDFPS icon),
so we want to make sure it's appropriately set so
isn't in a stale state.

Test: manual
Fixes: 229705284
Change-Id: I8ceb93a93c3614a3080787f43d6dcd7b86b1221a
2022-04-21 14:12:53 +00:00
Miguel Aranda
302bd6b08e Merge "Additional libcore benchmarks." am: e81851f57b am: e981334c62 am: 17c5bf6107
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2067207

Change-Id: Ieaa90ba5e3a2cead2ab32affad913df54ef47c26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 14:11:35 +00:00
Simranjit Kohli
727ee17577 Merge "[Autofill Crash]: Fix NPE in AutofillManager." into tm-dev 2022-04-21 14:04:00 +00:00
Caitlin Cassidy
dc593a705d Merge "[Media Rec] Use the same long press menu for media player and media recommendations." into tm-dev 2022-04-21 14:03:32 +00:00
Caitlin Cassidy
aeea0d3d1a Merge "[Media Recs] Update colors to be themed based on the app icon and always dark mode." into tm-dev 2022-04-21 14:01:57 +00:00
Caitlin Cassidy
320a27d5bf [Media Rec] Use the same long press menu for media player and media
recommendations.

This defines a common GutsViewHolder that holds all the relevant views
for the long press menu. Both MediaViewHolder and
RecommendationViewHolder have a GutsViewHolder to perform common guts
behavior.

Fixes: 228961120
Bug: 223603970
Test: manual (see screenshots in bug)
Test: MediaControlPanelTest
Change-Id: I957e015697e3a4f0c55a2cba336cad4849a3dfff
2022-04-21 14:00:30 +00:00
Caitlin Cassidy
ab3d4e4143 [Media Recs] Update colors to be themed based on the app icon and always
dark mode.

Fixes: 229757852
Test: manual (see bug for screenshot)
Change-Id: I893101fd4526536c8e81efb06c3605679524e0f2
2022-04-21 13:59:45 +00:00
TreeHugger Robot
77e8e3599a Merge "Disable failing app launch assertion on shell transitions" into tm-dev 2022-04-21 13:54:52 +00:00
Nataniel Borges
03465b1e10 Merge "Disable failing PIP expand assertion" into tm-dev 2022-04-21 13:54:05 +00:00
Miguel Aranda
17c5bf6107 Merge "Additional libcore benchmarks." am: e81851f57b am: e981334c62
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2067207

Change-Id: I9c3d26d9583ea64f56f4326bdeba3baeecfbac0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 13:49:59 +00:00
Songchun Fan
ce4dccad78 Add the compile reason for the forceDexOpt method
Cherry-picks aosp/2071188

BUG: 220991268
Test: builds
Change-Id: Ic0084c3233e0b05c38420e7679e1a61e4d0d15be
2022-04-21 13:48:20 +00:00
Miguel Aranda
e981334c62 Merge "Additional libcore benchmarks." am: e81851f57b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2067207

Change-Id: I0a6631b033d46f407a93e3427ecfb7eadfd8246e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 13:32:56 +00:00
Nick Gagliardi
71e2f74d9a Merge "Updated an incorrect link." into tm-dev 2022-04-21 13:08:24 +00:00
Miguel Aranda
e81851f57b Merge "Additional libcore benchmarks." 2022-04-21 13:08:19 +00:00
Songchun Fan
6e2b511be4 Merge "[PackageUsage] fix NPE" into tm-dev 2022-04-21 12:59:45 +00:00
TreeHugger Robot
e629b8ac9a Merge "Fix bug in DPM#setDrawable" into tm-dev 2022-04-21 12:36:11 +00:00
Charles Chen
db7b4503f3 Merge "Fix testRegisterComponentCallbacksOnWindowContext flaky" into tm-dev 2022-04-21 12:33:04 +00:00
Alex Johnston
af6b08b09a Make screen capture per-device DO and COPE
Test cases:
- DO
  - Verify disabled for entire device
  - Verify still disabled after restart
  - Verify no longer disabled when DO is removed
- COPE
  - parent
     - Verify disabled for entire device
     - Verify still disabled after restart
     - Verify no longer disabled when COPE PO is removed
  - not-parent
     - Verify disabled for user
     - Verify disabled after restart
     - Verify disabled when PO is removed

Bug: 217558483
Test: DevicePolicyManagerTest
      OrgOwnedProfileOwnerTest#testScreenCaptureDisabled
      ScreenCaptureDisabledTest
Change-Id: I977eb18619da46e1cfc5d0a8d351ea80d3ea7205
2022-04-21 13:29:42 +01:00
Samiul Islam
674eca9edf Merge "Don't create external storage dirs for apps with PROPERTY_NO_APP_DATA_STORAGE" into tm-dev 2022-04-21 11:59:45 +00:00
Jernej Virag
8d056ab409 Don't trigger full relayout if DateTimeView doesn't change
Right now, when an update is triggered, DateTimeView will trigger a full
relayout of its parents because it always calls setText, even if it
doesn't change the contents (later down the line, TextView will call
requestLayout() for wrap_content, even if size didn't change).

Checking if the content actually changed avoids that extra layout pass
which avoids needless relayouts in e.g. SystemUI Notifications.

Bug:220712538

Test: atest DateTimeView (new test failed before fix / passes after fix)

Change-Id: Ib391d6715136b64b98f0bda3b3d4a3f991809c89
2022-04-21 11:56:42 +00:00
Tony Huang
64202a268d Merge "Add jank instrument support for split screen enter and exit transition" into tm-dev 2022-04-21 11:31:22 +00:00
Ricky Niu
37ffba8d74 usb: Add the boot completed check before broadcasting intent
Broadcasting intent is not allowed before boot completed.
Check if boot completed to broadcast accessory time out
intent to avoid exception.

Bug:229387375
Test: Reboot with head unit connected

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I34bc7625bbcb9525ad25cb1538ed4138fcae8ead
2022-04-21 10:34:32 +00:00
TreeHugger Robot
54a8dee16d Merge "Auto finish composing text when A11yIME commits text" into tm-dev 2022-04-21 09:58:58 +00:00
Louis Chang
7391919a15 Merge "Re-adding the task to recents once task affinity updated" into tm-dev 2022-04-21 09:47:02 +00:00
Nataniel Borges
fd9e7d529f Disable failing PIP expand assertion
The PIP layer shrinks for 1 frame while expanding (flaky)

Bug: 197726610
Test: atest WMShellFlickerTests
Change-Id: Ibc27fe345722223f6dd29277f5d70abff8ab5a89
2022-04-21 11:41:57 +02:00
Nataniel Borges
97a456125c Disable flaky flicker tests
Reduce resource usage in presubmit by mitigating flakiness

Bug: 229738092
Bug: 203538234
Test: atest FlickerTests
Change-Id: Ifaa50e0cbf63a8cfdd571555570cbf10fa787ce2
2022-04-21 11:30:47 +02:00
Nataniel Borges
5070363c87 Disable failing app launch assertion on shell transitions
Bug: 229738092
Test: atest FlickerTests:OpenImeWindowToOverViewTest
Change-Id: I03c28017a8bcd58af197f0d144f3a141a978f698
2022-04-21 11:12:19 +02:00
Miguel
4ca7bb87d7 Additional libcore benchmarks.
Test: atest {testName}
Bug: 210606618
Change-Id: I6ccb8870f5b1a2ec71570119b7b29b8ea38a14ab
2022-04-21 09:07:17 +00:00
Ahan Wu
675cc35c05 Collect the max number of successive missed frames metric.
Bug: 229226106
Test: check the trace in the bug
Test: atest InteractionJankMonitor FrameTrackerTest
Change-Id: If3e496b0178eca0555d14ce99bc462365805c4e1
2022-04-21 08:57:26 +00:00
Ayush Sharma
1fe5f9e0a9 Merge "Update Android Enterprise-related VPN strings" into tm-dev 2022-04-21 08:53:15 +00:00
TYM Tsai
2ab23eed06 Merge "Auto append password hint for TextView" into tm-dev 2022-04-21 08:13:10 +00:00
kholoud mohamed
aef103de2f Fix bug in DPM#setDrawable
Fixes: 229265302
Test: atest android.devicepolicy.cts.DevicePolicyResourcesTests
Change-Id: Ida6e72565733c717243a2ffc83b6b5975a9b5a3b
2022-04-21 09:10:37 +01:00
Jernej Virag
dd397eac49 Prevent LocalImageResolver from upscaling images
LocalImageResolver should not upscale the image if it's already smaller than the maximum width.

Bug: 228719813
Test: atest LocalImageResolverTest
      New test failed before change / passed after change
Change-Id: I4fc09d1955fe94159cf0e2e8125044712f3c3134
2022-04-21 08:05:51 +00:00
Sudheer Shanka
fdebeaa897 Merge "Update BlobStorePerfTests to use releaseAllLeases()." into tm-dev 2022-04-21 07:44:08 +00:00
TreeHugger Robot
c9026ad656 Merge "Remove unused ChooserUtil.java" into tm-dev 2022-04-21 07:22:32 +00:00
Ivan Chiang
8b55dd05ce Block subdirs of Android for SAF and normalize the path
- When the Apps launch SAF, they can set initial uri to launch the
  specific directory. Block the access for data/obb/sandbox
  directories of Android
- Normalize path (E.g. the path includes . or ..) to avoid
  unexpected behavior

Bug: 200034476
Bug: 220066255
Test: atest ExternalStorageProviderTest
Test: atest DocumentsTest
Change-Id: I226a9c25710fcf78d14d775eb3270bfd3b491dd3
2022-04-21 07:00:34 +00:00
Jason Chang
317a127c64 Merge "Phase out config_roundedCornerMultipleRadius related config from SystemUI" into tm-dev 2022-04-21 06:17:49 +00:00