Commit Graph

640958 Commits

Author SHA1 Message Date
Grace Cheng
6fcb00896d Merge "Configures FingerprintService to use FingerprintStateCallback to notify clients of fingerprint sensor state changes" into sc-dev 2021-04-22 00:55:18 +00:00
Nikita Dubrovsky
69f6b650ae Merge "Javadoc URI permissions handling on Dataset.setContent" into sc-dev 2021-04-22 00:55:14 +00:00
Treehugger Robot
edea4fa173 Merge "Add Japanese Photo L size" am: d8464708f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527008

Change-Id: I9028862d97d7e9363894f5d5fb83aa54d9ca0139
2021-04-22 00:41:03 +00:00
Bill Lin
be632ac364 Merge "1/ Add onStartTransition() callback for SYSUI_STATE_ONE_HANDED_ACTIVE" into sc-dev 2021-04-22 00:40:23 +00:00
Dmitri Plotnikov
37e89c99dd Simplify navigation in BatteryStatsViewer
Bug: 185952656
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryConsumerPickerActivity
Change-Id: I5c8958411c2436a0d1e8fafb79759b9e40d81b18
2021-04-21 17:34:08 -07:00
Curtis Belmonte
2bd0b0b3ed Merge "Log new auth-related framework atoms for Android 12" into sc-dev 2021-04-22 00:30:44 +00:00
TreeHugger Robot
f5848ae045 Merge "Change test to use public stop reasons." into sc-dev 2021-04-22 00:29:32 +00:00
Brad Ebinger
06f96d3733 Use a typesafe pattern for SIP Delegate configurations
Moves SipDelegateImsConfiguration -> SipDelegate configuration
in order to not break existing impls and defines the new typesafe
alternative for sip configurations instead of bundles.

Bug: 181764849
Test: atest  CtsTelephonyTestCases
Change-Id: I5040f30575f7b774d6ec1e28183f6812b420087f
2021-04-22 00:26:13 +00:00
Kohsuke Yatoh
679a824773 Do not actually reboot the device in VTS test.
- Sometimes reboot takes longer time and makes following tests fail.
- If the device has a screen lock, tests get stuck there.

This is not a new issue, but a recently added test (#launchApp) tries
to start an Activity and it fails when the device is still booting or at
a screen lock.

Bug: 185483743
Bug: 185576411
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Change-Id: I86d4be1761e648114503b5f3560992a89c0b34d7
2021-04-22 00:23:28 +00:00
Chloris Kuo
c08e1a4eda Merge "NAS Setting Migration" into sc-dev 2021-04-22 00:23:25 +00:00
Joy Babafemi
f0a7847318 [automerger skipped] Merge "UWB: Add setUwbEnabled System API." am: 17b112aef8 am: ca5c906ab5 am: 680b3217ba -s ours
am skip reason: skip tag Change-Id I269d24c995d8064f8e62c80a1566fa0646e96580 with SHA-1 49511145e9 is already in history

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

Change-Id: I727d20cb8c2bb5bc1c54b72045e1b53cbdc4de81
2021-04-22 00:20:36 +00:00
Rambo Wang
00175150f1 Merge "Change Nci to CellInfo.UNAVAILABLE_LONG" am: 5619ee97bf am: eb52e08c30 am: 2067201fb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676432

Change-Id: If082dba227e179d7e83c7521a5a88f19e4ac1d38
2021-04-22 00:20:05 +00:00
Bill Lin
0b4a445568 2/ Migrate isInOneHanded() in OneHandedState
It's make sense to let controller manage function states,
and left organizer handle leash & transition stuffs.

Move isInOneHanded() in OneHandedState.java

Controller can get STATEs throught organizer callback:
 - onTransition()
 - onStartFinish()
 - onStopFinsih()

Test: atest WMShellUnitTests
Bug: 185558765
Change-Id: I741b191557ed8e8ca85184d75a7bd8a2573e9b7c
2021-04-22 08:16:04 +08:00
Sudheer Shanka
9d716ca573 Update a permission to be role based.
ACCESS_BLOBS_ACROSS_USERS is updated to be
role based so that apps holding assist role
can have this permission granted.

Bug: 175844032
Test: manual
Change-Id: Iece8cc8caff439538391585af7199892baac235e
2021-04-21 17:15:53 -07:00
TreeHugger Robot
c8bd865328 Merge "Add the REGISTRATION_TECH_NR Tech type" into sc-dev 2021-04-22 00:15:46 +00:00
Treehugger Robot
d8464708f6 Merge "Add Japanese Photo L size" 2021-04-22 00:15:34 +00:00
Bill Lin
8a8f117280 1/ Add OneHandedState to manage the transition flow
1) Define STATEs flags for OHM CUJ:
    STATE_NONE               (0)
    STATE_ENTERING           (1)
    STATE_ACTIVE             (2)
    STATE_EXITING            (3)

STATE_NONE->STATE_ENTERING->STATE_ACTIVE->STATE_EXITING

- Default = STATE_NONE
- When user trigger OHM        = STATE_ENTERING
- When user is in OHM          = STATE_ACTIVE
- When user exit OHM           = STATE_EXITING
- When user finish exiting OHM = STATE_NONE

2) Unbound one handed mode state from OHMDAOrganzier
- Move isInOneHandedMode() to OneHandedState

Test: atest OneHandedStateTest
Test: atest WMShellUnitTests
Test: manual test
Bug: 185558765
Change-Id: Ida2f23da6c4df9cbcf6903ffc9ad07fcfc73bbcb
2021-04-22 08:12:29 +08:00
Joy Babafemi
680b3217ba Merge "UWB: Add setUwbEnabled System API." am: 17b112aef8 am: ca5c906ab5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683089

Change-Id: I7936f0eb536424fa06a27d5c57bf8e3775863c74
2021-04-21 23:58:58 +00:00
Rambo Wang
2067201fb1 Merge "Change Nci to CellInfo.UNAVAILABLE_LONG" am: 5619ee97bf am: eb52e08c30
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676432

Change-Id: Ib7ad3a9b44399c673fae3f0b2df9ec3fcabed398
2021-04-21 23:57:45 +00:00
Kevin Han
ef3f84023b Merge "Unhibernate apps on boot that are not force-stopped" into sc-dev 2021-04-21 23:55:30 +00:00
Joy Babafemi
ca5c906ab5 Merge "UWB: Add setUwbEnabled System API." am: 17b112aef8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683089

Change-Id: Icb9adae4bd40e937dc0ff702da04f8ecbdd77f1d
2021-04-21 23:50:23 +00:00
Treehugger Robot
1bff978184 Merge "Fix grammatical error in LayoutAnimationController documentation." am: 84fdb3b19f am: 07a7231bc8 am: 1c166fa20d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680106

Change-Id: I7be25e32f785c30b21d8b286be38c8907524b9dd
2021-04-21 23:50:20 +00:00
Treehugger Robot
0f3f55bb1c [automerger skipped] Merge "DO NOT MERGE Add LOCAL_LICENSE_KINDS to frameworks/base" am: 0cfaf8aa1c am: a184c0e820 am: 789850e9b7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I72b6a3018c353419d0e62ccb59fa5b0b66455c81
2021-04-21 23:49:48 +00:00
Bob Badour
f41ba6b483 [automerger skipped] DO NOT MERGE Add LOCAL_LICENSE_KINDS to frameworks/base am: 268090cd09 am: 48a93af680 am: cac2f91285 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibf8d17bf5b4d6ce39bf39b4dbc334b2ad2800cf7
2021-04-21 23:49:32 +00:00
Hui Yu
8c23d658c7 Temp allowlist bluetooth broadcast to start FGS for 10 seconds.
Add an overloaded version of Context.sendBroadcastMultiplePermissions() that can
specify BroadcastOptions, it is called by com.android.bluetooth package.

Bug: 182816627
Test: atest AdapterServiceTest
Test: atest AvrcpControllerStateMachineTest
Test: atest BondStateMachineTest
Test: atest MapClientStateMachineTest
Test: atest RemoteDevicesTest

Change-Id: I8bb2d2ed98ece70ebbe9d3a1b549b966d690de4f
2021-04-21 16:48:04 -07:00
Varun Shah
3288a170f7 Use direct-callback alarms in AppTimeLimitController.
Update SessionUsageGroups to use direct-callback alarms.

Bug: 181983817
Test: atest AppTimeLimitControllerTests
Change-Id: I73a755cb9a893952cef33c0d7cc1b2c0bf2a1318
2021-04-21 16:36:04 -07:00
Joanne Chung
c1578acdba Add string that can be used for translation a11y.
Bug: 178146511
Test: build
Test: manual test on other change before

Change-Id: I469ad61dadc32bb822ebcb009af8a8f8c53c90a1
2021-04-22 07:35:46 +08:00
Joy Babafemi
17b112aef8 Merge "UWB: Add setUwbEnabled System API." 2021-04-21 23:35:04 +00:00
Rambo Wang
eb52e08c30 Merge "Change Nci to CellInfo.UNAVAILABLE_LONG" am: 5619ee97bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676432

Change-Id: Ia7b8354928340e8ba89674eadf4d804195e43e29
2021-04-21 23:30:56 +00:00
TreeHugger Robot
b0d7c12dd2 Merge "Add null pointer check to getStopped" into sc-dev 2021-04-21 23:27:12 +00:00
Alexander Dorokhine
5681f7c05f Merge "Update framework from jetpack." into sc-dev 2021-04-21 23:17:21 +00:00
Seth Moore
226b32669c Grant keystore permission to register pull stats
Test: statsd_testdrive 10103
Bug: 172013262
Change-Id: I4d3ad2172b522b79454f5232b6d89c16178593d5
2021-04-21 23:13:43 +00:00
Kweku Adams
f19c7029e2 Ensure SyncManager doesn't schedule an EJ with a delay.
Expedited jobs are not allowed to be scheduled with explicit delays set
and callers will crash if they try to do so. SyncManager sets delays in
a variety of cases. Now, we demote an EJ to a regular job if a delay is
set for any reason.

Bug: 178852366
Test: atest ContentResolverTest (all)
Test: atest CtsSyncManagerTest
Test: atest SyncOperationTest
Test: atest SyncManagerTest
Test: atest SyncRequestTest
Change-Id: Ibf9e7b1ce640bdc3b1f3796bbedf24ca79856c26
2021-04-21 16:09:09 -07:00
Treehugger Robot
1c166fa20d Merge "Fix grammatical error in LayoutAnimationController documentation." am: 84fdb3b19f am: 07a7231bc8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680106

Change-Id: I456c07ee5beeceb6d9581ed2dc0313f4ba9fadd1
2021-04-21 23:07:23 +00:00
Treehugger Robot
789850e9b7 Merge "DO NOT MERGE Add LOCAL_LICENSE_KINDS to frameworks/base" am: 0cfaf8aa1c am: a184c0e820
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682054

Change-Id: I32736053135d6bd19e9cceb6cf512105020a8a85
2021-04-21 23:07:01 +00:00
Bob Badour
cac2f91285 DO NOT MERGE Add LOCAL_LICENSE_KINDS to frameworks/base am: 268090cd09 am: 48a93af680
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682054

Change-Id: I9ee0a197b381a370bdbfafd71f4ceb200acbf8d2
2021-04-21 23:06:57 +00:00
Kweku Adams
d835c4f5a0 Use JobScheduler's storage-not-low constraint.
Switch to using JobScheduler's storage-not-low constraint instead of
doing it inside of SyncManager. SyncManager used to handle the
constraint before JobScheduler existed and the code wasn't updated to
use the new constraint.

Bug: 185949373
Test: atest ContentResolverTest (all)
Test: atest CtsSyncManagerTest
Test: atest SyncOperationTest
Test: atest SyncManagerTest
Test: atest SyncRequestTest
Change-Id: I06b26388e50641e1233ce727693eab18b74066b2
2021-04-21 16:05:39 -07:00
JW Wang
347843b298 Rewrite how we abandon sessions
The original code is flawed in that `pm install-abandon` only abandons
the 1st session returned by `pm get-stagedsessions ...`.

1. move AbandonSessionsRule to be shared by multiple host tests
2. use AbandonSessionsRule to do the job

Bug: 160754072
Bug: 185973415
Test: StagedInstallInternalTest
Change-Id: Ib7b32fbd7b1133ac6a8e6782234a4fe2c5a782bd
Merged-In: Ib7b32fbd7b1133ac6a8e6782234a4fe2c5a782bd
(cherry picked from commit 3ac333f2d2)
2021-04-22 00:04:22 +01:00
Sergey Nikolaienkov
f4c17d8f4c Remove WmShell's min_sdk and lint-baseline.xml
Removing min_sdk_version for WmShell since it's not meant to be backward
compatible.
Removing lint-baseline.xml which only contains "NewApi" errors, that
won't be generated now, since min_sdk_version has been removed.

Bug: 182759603
Test: make WmShell
Change-Id: I38e4814581d6c6a8aeb8d66b1b554a5bac331f68
2021-04-21 23:00:26 +00:00
Rambo Wang
5619ee97bf Merge "Change Nci to CellInfo.UNAVAILABLE_LONG" 2021-04-21 22:53:57 +00:00
Kohsuke Yatoh
dcb3fd9182 Merge "Wait more time for activity start." into sc-dev 2021-04-21 22:51:58 +00:00
Jing Ji
8ef3eaa159 Merge "Do not set the group and cpuset for the OomAdjuster thread" into sc-dev 2021-04-21 22:47:26 +00:00
Treehugger Robot
07a7231bc8 Merge "Fix grammatical error in LayoutAnimationController documentation." am: 84fdb3b19f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680106

Change-Id: Id41e67df45954011ec4bc0c98a800a56359902d6
2021-04-21 22:45:49 +00:00
TreeHugger Robot
6c0a479e62 Merge "Synthesize app PendingIntents rather than wrap them" into sc-dev 2021-04-21 22:41:22 +00:00
Jeff Sharkey
c1b024d280 Merge "Pass AttributionSource to AdapterService methods." into sc-dev 2021-04-21 22:40:20 +00:00
Treehugger Robot
84fdb3b19f Merge "Fix grammatical error in LayoutAnimationController documentation." 2021-04-21 22:37:17 +00:00
Treehugger Robot
a184c0e820 Merge "DO NOT MERGE Add LOCAL_LICENSE_KINDS to frameworks/base" am: 0cfaf8aa1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682054

Change-Id: I178126b538cea0c747d76569f939e16dd8f835f8
2021-04-21 22:35:41 +00:00
Bob Badour
48a93af680 DO NOT MERGE Add LOCAL_LICENSE_KINDS to frameworks/base am: 268090cd09
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682054

Change-Id: If40ef54914e5565aa2b535906ddc2cf6763b53e5
2021-04-21 22:32:54 +00:00
Curtis Belmonte
d8bcccb21f Fix BiometricPrompt for face + non-UDFPS fingerprint
Currently, the dual-sensor config for BiometricPrompt requires a face
sensor and under-display fingerprint sensor. This commit loosens the
restriction to also accept non-UDFPS fingerprint sensors. The fallback
logic in this case is the same as for face + UDFPS.

Test: Manually verified that BiometricPrompt no longer crashes

Fixes: 185301549
Change-Id: I8d90e8e10ae64adb29f7d3c7ce51004aa7a6f1b8
2021-04-21 15:31:36 -07:00
Joy Babafemi
8f671e175f UWB: Add setUwbEnabled System API.
Test: Test updated for AdapterStateListener.java
Bug: 183254940

Merged-In: I269d24c995d8064f8e62c80a1566fa0646e96580
Change-Id: I269d24c995d8064f8e62c80a1566fa0646e96580
2021-04-21 22:26:05 +00:00