Commit Graph

891995 Commits

Author SHA1 Message Date
Treehugger Robot
308baeb632 Merge "[hwui] Update dispatchFrameCallbacks to be called with timeUntilDeadline/4 instead of timeUntilDeadline * 0.25f" into udc-dev 2023-05-10 16:55:20 +00:00
Nan Wu
38e6707c3e Merge "Remove BAL feature flag" into udc-dev 2023-05-10 16:53:59 +00:00
Kholoud Mohamed
3da2cf7dc3 Fix lock task logging for permission based admins
Fixes: 278061827
Test: btest a.d.c.LockTaskTest#startLockTask_recordsMetric*
Change-Id: If591dd6cf5bf1bc3a2f2f4232a2edc54665a3018
2023-05-10 16:50:45 +00:00
Fabian Kozynski
248d90cbb5 Merge "Avoid onDestroy content in test" into udc-dev 2023-05-10 16:50:20 +00:00
Jeff DeCew
a6730b0a4a Merge "Revert "Remove NOTIFICATION_INLINE_REPLY_ANIMATION flag"" into udc-dev 2023-05-10 16:41:26 +00:00
Helen Qin
1b1fe0731b Merge "Fix potential IllegalArgumentException from the auto-select flow." into udc-dev 2023-05-10 16:39:05 +00:00
Pavel Grafov
a855429993 Allow rolling back Turn Off Work 2.0
To facilitate it, previous effective value is stored in
DevicePolicyData, with "true" default value to avoid
storing it. When the system boots, if the current flag
value is different from the stored one, suspension is
updated.
An upgrade step sets the stored state to "false" once,
so that devices upgrading from pre-U get their work
apps suspended if in quiet mode.

Bug: 265683382
Test: Manual, via device_config
Test: atest PolicyVersionUpgraderTest
Change-Id: I711ace4cc2f8da6ce4f85aa0f0cde740dba2ba02
2023-05-10 17:32:50 +01:00
Vishnu Nair
8b607589d3 [wm] Explicitly release surfacecontrol in mirrorDisplay
Don't rely on GC to release the surfacecontrol. If we stress
the API like in the case of tests, we may end up not freeing
resources in time and crash the system.

Test: test magnifier
Bug: 279622227

Change-Id: Id70c9387bce0d0e92d40cccdeaab232b9c61d7e8
2023-05-10 16:30:35 +00:00
Diya Bera
955ea0db05 [DO NOT MERGE] Change fingerprint reenrollment to acquired message
Bug: 258901849
Test: Manual: adb shell settings put secure face_unlock_re_enroll 1, then unlock through keyguard, the notification should occur in 5 seconds of unlocking
Test: atest BiometricNotificationServiceTest
Test: atest BiometricNotificationDialogFactoryTest
Change-Id: Iff606eb464132493b582e8e34a72c1f23472d088
2023-05-10 09:22:48 -07:00
Behnam Heydarshahi
fc88279ef8 Merge "Additional tracing for volume dialog" into udc-dev 2023-05-10 16:17:15 +00:00
Niamh Walsh
b4eb0b77fd Merge "Add delayed restore logging to WallpaperBackupAgent" into udc-dev 2023-05-10 16:09:02 +00:00
Peter Kalauskas
4aa731c734 New TraceUtilsTest
New test for asserting that TraceUtils does not throw an
IllegalArgumentException when passed a long section name. Also,
demonstrate how the public API android.os.Trace.beginSection will throw
an exception if the section name is more than 127 characters long

Also, move TraceUtils to a directory that matches its declared package
name.

Test: atest TraceUtilsTest
Bug: 280850299
Bug: 279715262
Bug: 267482189
Bug: 279784509
Change-Id: I827eb710742d4fabedd4fbb37af64e9ecee118d0
2023-05-10 09:07:45 -07:00
Jerry Chang
e298f9af6f Merge "Prevent force showing system bars for TaskView" into tm-qpr-dev 2023-05-10 16:05:08 +00:00
Ruslan Tkhakokhov
84477b7c17 Merge "[DO NOT MERGE] Temporarily remove BackupRestoreEventLogger test from presubmit" into udc-dev 2023-05-10 16:03:16 +00:00
Rubin Xu
d75930cb1f DevicePolicyManager: Skip clearing APN before boot completed
It's not possible to connect to APN's content provider before
boot completed, so skip the cleanup step in this case.

Bug: 277903236
Test: manual
Change-Id: I7d2304a13e1a4e3ac81ad675ced600c9c3801576
2023-05-10 16:50:25 +01:00
Pavel Grafov
94c2115109 Show correct dialog for paused profile widgets
In Android U when the profile is paused, all its packages are suspended.
In this case getSuspendingPackage will return PLATFORM_PACKAGE_NAME, so
by that alone it is impossible to tell whether it is admin or not.

This CL changes the code so that quiet mode check takes precedence over
suspension check, so that the right dialog is shown for paused profile
apps.

This likely changes the behaviour in rare cases when the package is
suspended by admin as well, but this doesn't seem important.

Bug: 277715473
Test: manual with TestDPC and Calendar
Change-Id: I5e2edc28c324c0e7d95963c0b55a4b99e0af1833
2023-05-10 16:47:02 +01:00
Kweku Adams
4e443ad09c Remove demotion flags when a JobWorkItem is enqueued.
Remove the demotion flags from a user-initiated job if the app
successfully enqueues a new JobWorkItem. If an app successfully enqueues
a JobWorkItem to a UI job, then the app is in a state to successfully
schedule a UI job. Presumably, the user has asked for this additional
bit of work, so it makes sense to remove the demotion flags. For now,
we only do this for UI jobs since they have strict scheduling
requirements. It's harder to assume other jobs were scheduled due to
user interaction/request.

This mimics the behavior when a UI job is rescheduled (without adding a
JobWorkItem). Internal flags aren't copied over when a job is
rescheduled.

Bug: 281838527
Test: atest FrameworksMockingServicesTests:JobStatusTest
Change-Id: I591afc7c0ac23fa0bda646fd12053be58ff5d4ee
2023-05-10 15:36:55 +00:00
Treehugger Robot
ff7dbac567 Merge "Cancellable gesture should always have cancellation token" into udc-dev am: 90c01a2a47
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23007315

Change-Id: I068a28bfb14cf71f38c66cdd5fe467a364dc4f1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:25:03 +00:00
Marzia Favaro
93b0096562 Merge "Wallpaper animation for keyguard unlocking." into udc-dev am: 6f0ed61268
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22336604

Change-Id: Ic15bb49ed61c6f517b45451d7daabdea30756a25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:24:31 +00:00
Treehugger Robot
90c01a2a47 Merge "Cancellable gesture should always have cancellation token" into udc-dev 2023-05-10 15:22:43 +00:00
Anton Hansson
94c9945a79 Move ApiDocs.bp and StubLibraries.bp to api dir
Make a symlink from api/docs -> docs, since many places are
hardcoding the path fw/base/docs.

Bug: 271563074
Test: presubmit
(cherry picked from https://android-review.googlesource.com/q/commit:19fcec6c634c28c1a842d7164d94a46b3ef59942)
Merged-In: I354f3cb62535f34d8819d158e53aa46ff26dc18a
Change-Id: I354f3cb62535f34d8819d158e53aa46ff26dc18a
2023-05-10 15:13:56 +00:00
Marzia Favaro
6f0ed61268 Merge "Wallpaper animation for keyguard unlocking." into udc-dev 2023-05-10 15:09:12 +00:00
Christine Franks
b22697f14c Add PhoneAccounts on boot completed
The accounts aren't ready earlier

Bug: 265466098
Test: atest FrameworksServicesTests:com.android.server.companion.datatransfer.contextsync
Change-Id: I9049c9af05b3f7d585c79b6a8a09b5e6c24f028f
2023-05-10 15:07:24 +00:00
Michał Brzeziński
3e1f8b554c Merge "Adding newlyConnectedKeyboard flow to KeyboardRepository" into udc-dev am: 889b6b4c6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22885538

Change-Id: Ib0daa5e21c74eaca3157fde69f8328a04f36c240
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:05:34 +00:00
Riddle Hsu
04b2f159a1 Merge "Temporarily disable consecutive visibility assertion of close pip" into udc-dev am: cafd5cd8cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23129196

Change-Id: I4747f16b35bee68325fcc4054153aa3d81cada37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:04:08 +00:00
Michał Brzeziński
889b6b4c6e Merge "Adding newlyConnectedKeyboard flow to KeyboardRepository" into udc-dev 2023-05-10 15:04:03 +00:00
Ioana Alexandru
e89187a650 [automerger skipped] Merge "DO NOT MERGE Revert "Verify URI permissions for notification shortcutIcon."" into rvc-dev am: d402a8dd75 -s ours am: 7e10a4e650 -s ours am: c2d4e9d887 -s ours am: 52cac04fae -s ours am: 7c01c09176 -s ours am: 54ed87882c -s ours am: 5ba562eee5 -s ours am: ba12216262 -s ours am: 2e42353329 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124496

Change-Id: I6fad1bded4c7bab776b342bbc5ad641e6d213fcd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:03:56 +00:00
Abhijit Adsule
d0edfe8c6e [automerger skipped] DO NOT MERGE am: a31fad611d -s ours am: e17cff534e -s ours am: 1e97b93ba9 -s ours am: 4389f50f86 -s ours am: a48caa922b -s ours am: df0ca773b4 -s ours am: b67a78e0a0 -s ours am: d2046a7b3d -s ours am: d34307688e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124496

Change-Id: I6dda28b9c6aaea28af15d1ec7dee77b367771897
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:03:53 +00:00
Abhijit Adsule
94daa37e6b [automerger skipped] DO NOT MERGE am: e10cae158a -s ours am: 0010edd0a5 -s ours am: d6b38d88b9 -s ours am: 4e0c1a9f71 -s ours am: 683c98591a -s ours am: abdc1e75e8 -s ours am: 5015e68e9f -s ours am: 78f33dade3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23130316

Change-Id: I0b885708d74b91fbff9315336eadb8dc0d95839b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:03:41 +00:00
Josh Hou
9ab9c1776f Merge "[Panlingual] Add the doc link and remove TODO description" into udc-dev am: ff87f9e88a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23127418

Change-Id: I9b28dbe89dff55faf11b71b69617b1ebc309b67c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 15:03:18 +00:00
Kweku Adams
4239484c48 Remove INTERNET permission requirement.
Bug: 280564348
Test: atest CtsJobSchedulerTestCases
Change-Id: I4fa917be0594c11ead64cfd98ab9e56045c159e9
2023-05-10 14:59:29 +00:00
Riddle Hsu
cafd5cd8cb Merge "Temporarily disable consecutive visibility assertion of close pip" into udc-dev 2023-05-10 14:59:05 +00:00
Yan Han
7298a68a88 Check for feature flag for numeric volume UI
Bug: 240663266
Test: atest
Change-Id: Ifb84df22a247190bc9c967f57a1402e3a3515d98
2023-05-10 16:53:45 +02:00
Yan Han
556aa155a0 Implement soundbar volume UI for TV panels.
This is done by adopting adjust-only absolute volume behavior when the
connected amplifier is able to send <Report Audio Status>. Adjust-only
absolute volume behavior supports volume tracking and automatically
displays volume UI when the volume level is updated in AudioService.

In HdmiControlService, adoption of this behavior is implemented as a
special case in the logic for adopting absolute volume behavior:
- Absolute volume behavior is currently adopted when a TV panel or
  playback device is able to track AND set the percentage volume level
  of the System Audio device.
- Adjust-only absolute volume behavior will be adopted when a TV panel
  can track, but not set, the volume level of the System Audio device.

The only behavioral difference in HdmiControlService when using
adjust-only AVB, compared to regular AVB, is that it does not send <Set
Audio Volume Level> to the System Audio device.

Bug: 240663266
Test: atest TvToAudioSystemAvbTest PlaybackDeviceToTvAvbTest PlaybackDeviceToAudioSystemAvbTest
Change-Id: I05465cd0eab2f3c3464bf41c1194cdc3be7af4bf
2023-05-10 16:53:44 +02:00
Yan Han
71afeaa6f3 Add wrapper for AudioManager, allowing it to be faked in tests
Makes HdmiControlService's test constructor take a wrapper for
AudioManager, allowing it to be to be faked in unit tests in a similar
way to AudioDeviceVolumeManager.

Adds the FakeAudioFramework class, which exposes a fake for both
AudioManager and AudioDeviceVolumeManager. FakeAudioFramework stores
the shared internal state for both managers, simulating AudioService.

Renames the existing wrapper and wrapper interface for
AudioDeviceVolumeManager to make it more consistent with
PowerManagerInternal. For example, instead of ThingWrapper and
FakeThingWrapper implementing ThingWrapperInterface, we have
DefaultThingWrapper and FakeThingWrapper implementing ThingWrapper.

Bug: 217923086
Test: atest com.android.server.hdmi

Change-Id: Ia9d5f7aa382223d523771b8d0382d40d622aa292
2023-05-10 16:53:43 +02:00
Christine Franks
3f4ecd4abc Allow context sync to make emergency calls
Also, switch from the deprecated permission to the updated permission
for the ConnectionService.

Bug: 281832191
Test: n/a
Change-Id: I64e8bf2adba7218f940cbe0f0fb0fe48d4163efe
2023-05-10 14:50:54 +00:00
Ioana Alexandru
2e42353329 [automerger skipped] Merge "DO NOT MERGE Revert "Verify URI permissions for notification shortcutIcon."" into rvc-dev am: d402a8dd75 -s ours am: 7e10a4e650 -s ours am: c2d4e9d887 -s ours am: 52cac04fae -s ours am: 7c01c09176 -s ours am: 54ed87882c -s ours am: 5ba562eee5 -s ours am: ba12216262 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124496

Change-Id: Ifee16544e64b90f73614ed9aff284648c4843a77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 14:42:44 +00:00
Abhijit Adsule
d34307688e [automerger skipped] DO NOT MERGE am: a31fad611d -s ours am: e17cff534e -s ours am: 1e97b93ba9 -s ours am: 4389f50f86 -s ours am: a48caa922b -s ours am: df0ca773b4 -s ours am: b67a78e0a0 -s ours am: d2046a7b3d -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124496

Change-Id: I55f1bba0be99c3d7b0d9023d41edb6f4eab11d23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 14:42:27 +00:00
Abhijit Adsule
78f33dade3 [automerger skipped] DO NOT MERGE am: e10cae158a -s ours am: 0010edd0a5 -s ours am: d6b38d88b9 -s ours am: 4e0c1a9f71 -s ours am: 683c98591a -s ours am: abdc1e75e8 -s ours am: 5015e68e9f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23130316

Change-Id: Ia6b6ab664bba48ab7a3d90676f25eccf3c4dad3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 14:40:07 +00:00
Bill Yi
5c7a4aaf1d [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: cfd693b1c6
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23128806

Change-Id: I4399a3598f37ffa9fedfbe5a9db7efb6f76ff744
2023-05-10 14:32:34 +00:00
Bill Yi
ed390ea510 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 5262200983
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23128817

Change-Id: I080f2a7d3d668ff3c41a0f6e3ed5b3675c66f820
2023-05-10 14:32:30 +00:00
Bill Yi
d7ac6f5c1a [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 079a05d0f4
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23128585

Change-Id: I8dc5e8eb3e2aa58b5b5d81de749dbc630c5d2890
2023-05-10 14:32:17 +00:00
Bill Yi
2cdd564a65 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 3c4575f42a
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23129427

Change-Id: I9442bfe3c1dd4a5f5fecf0d736e4fc8d5715a9e5
2023-05-10 14:32:17 +00:00
Bill Yi
97d3de4b03 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: e9ccf2bd93
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23128581

Change-Id: I99d1d1a13af34b9eee3ee5a2df585211f5cce4dd
2023-05-10 14:32:12 +00:00
Bill Yi
8d7b944c6e [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: bd2f377db7
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23127597

Change-Id: I267e54b86813f1a60f147c22f46f232436cdbc24
2023-05-10 14:32:03 +00:00
Bill Yi
f581b674cc [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 20aae38cb4
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23127138

Change-Id: I11c5b1e262d741927c78adfba06c7cfce44d4d18
2023-05-10 14:31:57 +00:00
Bill Yi
22c8c48f9b [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: e54da84f8f
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124511

Change-Id: Id00bfefec5aefc4930add3971cb8957397fd3b45
2023-05-10 14:31:34 +00:00
Bill Yi
af2dddec94 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: df5e2840df
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23127598

Change-Id: Ie7b0f4631f0c7bbf00491c9ef6e48c0d1172531e
2023-05-10 14:31:27 +00:00
Bill Yi
f932d9d9f1 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: e92a665038
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124510

Change-Id: I62aa5d999dd37662907a09885ffb2ba10d77c37f
2023-05-10 14:31:22 +00:00
Bill Yi
b743776c5b [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 24ea9d8c63
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23124509

Change-Id: I61b2c829456ec8c1318787e7d38edd9f8cf62365
2023-05-10 14:30:59 +00:00