Commit Graph

640958 Commits

Author SHA1 Message Date
Jay Aliomer
5121e27f89 Update ripple mask when invalidated
When a child drawable is updated, the invalidated mask
needs to reflect on the animation paint

Fixes: 187290156
Test: visual
Change-Id: I30065027f73f646c887933648d8e296ec651c299
2021-05-05 16:14:04 -04:00
Suprabh Shukla
f25a518355 Use BinderDeathDispatcher for alarm listeners
This ensures only one JNI strong reference for the death recipient when
the same binder is used for multiple linkToDeath calls.

Test: atest CtsAlarmManagerTestCases
atest FrameworksCoreTests:BinderDeathDispatcherTest
atest FrameworksMockingServicesTests:com.android.server.alarm

Fixes: 162961981
Bug: 182971683
Change-Id: Ieea2d8f4e495a4c4687378db9d0b8c6949a0406a
2021-05-05 20:04:07 +00:00
Fabian Kozynski
8ed244eaec Remove divider between QSFooter and media
Also, set gap between QSFooterView (or QSSecurityFooter) and media to
8dp.

Fixes: 187316973
Test: manual
Change-Id: Ie0ab67ac298951f749025d6699d302c27b0e6a80
2021-05-05 16:03:41 -04:00
Evan Laird
d6e2ea07a9 Merge "Use synchronize instead of Assert.isMainThread" into sc-dev 2021-05-05 19:56:34 +00:00
Silin Huang
e7d986d294 Merge "Support non-active tokens in QuickAccessWallet." into sc-dev 2021-05-05 19:56:12 +00:00
Yuri Lin
56daf16ed8 Merge "Add UiEvent logging for NOTIFICATION_REMOTE_INPUT_(OPEN|CLOSE|SEND|FAILURE)." into sc-dev 2021-05-05 19:44:57 +00:00
Chavi Weingarten
9a0bcd29df Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev 2021-05-05 19:43:52 +00:00
Fabian Kozynski
64308e9ef0 Fix styles in header.
Also, remove `android:textColor` from the theme and add it to respective
TextAppearance.

Fixes: 187069480
Test: manual
Change-Id: Ib6554753bf896c1611c0d302ff2b8a081151be7d
2021-05-05 15:33:49 -04:00
Hall Liu
6d3455e488 Make LocationAccessQuery's builder safer to use
Add new methods on LocationAccessQuery.Builder to make it harder to
screw up when using. Changes include:
* Mandatory specification of min sdk levels for enforcing both fine and
coarse permission
* Mandatory "are-you-sure" check when both fine and coarse are above the
base level (i.e. when there are api levels that are left unprotected)

Also adapt TelephonyRegistry's permission checks to follow these new
requirements on the builder.

Fixes: 157170257
Test: CTS, unit tests, manual
Merged-In: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d
Change-Id: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d
(cherry picked from commit d7c2351676)
2021-05-05 19:33:40 +00:00
TreeHugger Robot
6a895fce61 Merge "Prevent conversations with bots from being in the people section." into sc-dev 2021-05-05 19:32:59 +00:00
Wessam Hassanein
f1d719b0a2 Enable PerfettoJavaHeapStackProf in the zygote.
This allows us to collect Java Heap Profiler data directly without
needing to set the flag similar to PerfettoHprof.

Test: Passing Tests
Local Testing

Bug: 160214819

Change-Id: Id4888107c7b12f076de8237fd42bab49319566b5
2021-05-05 11:55:34 -07:00
Yuri Lin
9bb258dfbb Refactor Archive-related bit of dumpImpl into Archive.
This allows for actually locking the buffer iteration with mBufferLock to avoid accidental concurrent access.

Test: atest NotificationManagerServiceTest; manually inspected dumpsys
Bug: 186860793
Change-Id: I6a97a74833f57ec45c118fcfc63f628703ec2557
2021-05-05 14:45:11 -04:00
TreeHugger Robot
969a1a8643 Merge "Add javadoc for trampoline restrictions" into sc-dev 2021-05-05 18:41:38 +00:00
Kweku Adams
b76da7cb82 Make sure RESTRICTED quota is properly counted.
Make sure that quota is counted properly for RESTRICTED jobs when the
device is charging but not idle.

Also add some GuardedBy annotations and update some method names. It's
not exhaustive, but a start.

Bug: 141645789
Bug: 187189316
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: I75fae5e3ae71435367db7dd9fa2c14f5d1029a67
2021-05-05 11:39:40 -07:00
Fabian Kozynski
2df8d424c3 Merge "Fix border color of security footer" into sc-dev 2021-05-05 18:34:17 +00:00
Nate Myren
8306072389 Ensure that animation does not play after brief lapses in app usage
If an app stops using mic/camera for less than three seconds, and then
starts again, only show the dot.

Fixes: 187051104
Test: Went into camera, and switch modes several times
Change-Id: I496046e5d18417e62f1c898340ac6ad06364514a
2021-05-05 11:34:03 -07:00
Nate Myren
b9275890d5 Merge "Update chip view when PrivacyItems update" into sc-dev 2021-05-05 18:29:32 +00:00
Winson
f4b8c9719b Dismiss PackageInstallerActivity when SimpleErrorDialog cancelled
Otherwise the translucent Activity sticks around until another back
press.

Bug: 187221431

Test: manual, adb shell am start \
    -a android.intent.action.INSTALL_PACKAGE \
    -d "file:///the-apk-that-wasnt.apk" \
    -n com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity

Change-Id: I80ecf62247c62d76a832676ed52c68f9aefcb54e
2021-05-05 11:28:52 -07:00
Nate Myren
ba40fe89a4 TEMP: trust recognition service providers
temporarily trust select recognition service packages

Bug: 184963112
Test: manual
Change-Id: I374ae2809dbd51b7d6af0cbbe170529743bb0785
2021-05-05 11:22:32 -07:00
John Reck
bd78fd02de Merge "Don't animate invisible views" into sc-dev 2021-05-05 18:19:40 +00:00
Caitlin Cassidy
1f3a3e588b [Ongoing Call Chip] UI tweaks: Don't have the chip width change each
second, and hide the time if it's too large for the space available.

Demo: b/185897063#comment2

Test: atest (including new OngoingCallChronometerTest) and manual
Bug: 183229367
Fixes: 185897184, 185897063
Change-Id: I7fb129734cd1dc29f45e41e6e1775d44f1680d10
2021-05-05 18:09:24 +00:00
Jeff DeCew
db3398f623 Prevent conversations with bots from being in the people section.
Fixes: 179786734
Test: manual w/ notify2
Test: atest NotificationRecordTest
Change-Id: I9d20daa7bccd8a05cdbeef5baf260b2333ed162f
2021-05-05 14:03:12 -04:00
yinxu
679c4f7f67 Immediately hide the icons when QS starts to expand
Bug: 186428835
Test: Manual tests
Change-Id: Ibfa079e8319248e39a95a57ec214171480cd7a20
2021-05-05 10:12:33 -07:00
Lajos Molnar
0c361a917d Merge "media: pass full EncoderProfiles from XML" into sc-dev 2021-05-05 17:11:23 +00:00
yawanng
eb2b1d53c7 Add empty boot image profile and preload classes for framework
The boot image profile and preloaded class files will be split
for two parts. One for art and one for framework.

These intial empty files are necessary for server side to
compare the difference.

Bug: 186455808
Test: m
Change-Id: I51a1ab6fa203a8e85e2cebeff3f64c9bfc59b58a
2021-05-05 17:09:55 +00:00
Kurtis Schlepp
11749564b1 update L photo size name with JPN_ prefix
Updates the Japanese Photo L media size name with JPN_ prefix

Test: L is present in API with updated name
Signed-off-by: Kurtis Schlepp <mopriadevteam@gmail.com>
Change-Id: Ib4e52b23571b166f6c000676fb81b4ac7c1f9a7a
2021-05-05 10:06:03 -07:00
Josh Tsuji
ae087276e6 Merge "Force the volume seekbar to LTR, since it's rotated and will be upside-down in RTL if we don't." into sc-dev 2021-05-05 17:05:33 +00:00
Josh Tsuji
7048815bd0 Merge "Ensure that revealAmount = 0 doesn't leave an oval on the right side of the screen." into sc-dev 2021-05-05 17:05:05 +00:00
TreeHugger Robot
c4c14c9f9f Merge "Do not hold AppOpsService lock while calling DeviceConfig" into sc-dev 2021-05-05 17:02:55 +00:00
Daniel Sandler
fc143aa79f Merge "Revert "Fix longstanding 0B in heap tile"" into sc-dev 2021-05-05 16:49:39 +00:00
Tom Natan
43bf4624ec Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5 am: 65654644bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Id1b221629fee21648ee2a4683ab9a34b2efef1d6
2021-05-05 16:41:16 +00:00
Alex Johnston
f78caf8ec3 Merge "Allow installation of cert with .der extension" into sc-dev 2021-05-05 16:29:04 +00:00
Tom Natan
65654644bc Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Ic1b9bb5b3f6cfba5192838020fc1b9770715f80a
2021-05-05 16:13:03 +00:00
Fabian Kozynski
2c745e90aa Fix border color of security footer
Test: manual
Fixes: 186033456
Change-Id: Ibc09c4c3ac53f35c2759c01b396583131d536605
2021-05-05 12:07:57 -04:00
Fiona Campbell
fa50665620 Merge "Allow proximity sensor to be specified per display" into sc-dev 2021-05-05 15:57:30 +00:00
Patrik Torstensson
6cf087a368 Use internal lock for ResourcesManager
- Create a new package private method for
  applyNewResourceDirs that takes the lock internally in
  the resources manager class
- Move all locking to use the internal lock object

Bug: 186411938
Test: on device and local build
Change-Id: Idb49c76ceca51ed656fd47b82fad0afca1b2740b
2021-05-05 08:52:46 -07:00
Beth Thibodeau
f6f08e9206 Merge "Allow test to run on lockscreen" into sc-dev 2021-05-05 15:50:29 +00:00
George Mount
9d7658ac57 Merge "Allow fling during stretch in ListView" into sc-dev 2021-05-05 15:50:08 +00:00
Riddle Hsu
2595465821 Load icon of splash screen only once
It is unnecessary to load icon without scale and load again
with scale. Just load the scaled one directly.

The construction time of SplashScreenView:
Dialer  : 36ms -> 24ms
Messages: 21ms -> 13ms
Contacts: 27ms -> 16ms

Bug: 187104264
Test: OpenAppMicrobenchmark
Change-Id: I0b71d3038f85a0839af862e5822e10fccbe1395d
2021-05-05 23:50:06 +08:00
Ryan Mitchell
b8c21ea5d5 Merge "Do not throw new incremental not found exceptions" into sc-dev 2021-05-05 15:46:48 +00:00
Kweku Adams
f587556611 Merge "Fix QuotaController dump." into sc-dev 2021-05-05 15:44:55 +00:00
Tom Natan
9e9e1c4af5 Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Ia31e173176fe8e3ce57f33279f3b51cea52daf42
2021-05-05 15:43:53 +00:00
Bernardo Rufino
0875925d06 Add javadoc for trampoline restrictions
Added to notification APIs and browser exemption in ROLE_BROWSER in
topic CL.

Bug: 167676448
Test: Builds
Change-Id: Ibb4bee91fc2b8fcd8bbe194812cc8c3fa22c41ec
2021-05-05 16:41:42 +01:00
Yuri Lin
db04053cb8 Add UiEvent logging for NOTIFICATION_REMOTE_INPUT_(OPEN|CLOSE|SEND|FAILURE).
This adds the logging to RemoteInputView.java, where ACTION_REMOTE_INPUT_* were logged for Tron, in the same places as the existing Tron logging that this will eventually replace.

Test: atest RemoteInputViewTest; statsd_testdrive verified that events were logged with new IDs
Bug: 159697717
Change-Id: Ice4c274bfb114f90006a02dd895d92bbb701ecae
2021-05-05 11:34:17 -04:00
Chris Tate
07d5fddf1d Merge "Don't defer FGS notification if it's already shown" into sc-dev 2021-05-05 15:33:00 +00:00
Beverly Tai
f6d57d667c Merge "Wait for screen on callback to send aodInterrupt" into sc-dev 2021-05-05 15:31:03 +00:00
Beverly Tai
8756eb353a Merge "Don't let UdfpsView intercept touches when pauseAuth=true" into sc-dev 2021-05-05 15:29:39 +00:00
Beverly
2348494de4 Set KeyguardIndicationText to clickable=false
So a11y services don't mistakenly announce
"Double tap to activate" on a target that won't do anything.

Fixes: 187078434
Test: manual
Change-Id: I5b93eadcd190d8077bdb87ee57f9b9c5e6f8d6b3
2021-05-05 11:26:10 -04:00
Dave Mankoff
15d02353bd Remove old debug code from fixed bug.
This problem was fixed in the associated bug long ago.

Bug: 168778439
Test: manual
Change-Id: Ic074dfab543bfc0817e289cf152ce14d20440c51
2021-05-05 11:19:41 -04:00
Tom Natan
b9680bac79 Merge "Add an API method for clearing compat overrides on release builds" 2021-05-05 14:58:41 +00:00