Commit Graph

640958 Commits

Author SHA1 Message Date
Suprabh Shukla
8a41b3f729 Optimizing AppStandby.getIdleUidsForUser
This is called by NPMS on boot for all users, and it makes a lot of
calls to getAppMinBucket. Optimizing the newly added call into alarm
manager internal, and some bookkeeping at the front.

Alarm manager now maintains a list of all apps that have requested the
permission. This saves any calls into permission manager in
hasScheduleExactAlarm.

Test: atest FrameworksMockingServicesTests:com.android.server.alarm
atest FrameworksServicesTests:AppStandbyControllerTests

atrace for boot time analysis.

Bug: 185081934
Change-Id: I4f0b80715acb37a777d28f8c41f666b20f26bd8d
2021-04-22 17:00:48 -07:00
Varun Shah
81f00f0198 Merge "Update OWNERS for Content* framework." 2021-04-22 23:59:17 +00:00
Winson Chung
6196ac06b5 Update launch cookie when moving a task to front
- We're using the launch cookies to track app launches, and in the
  case that a task is brought forward the starting activity is not
  used (currently the launch cookie is only set there).  In this
  case we should update the top activity of the task with the new
  launch cookie.

Bug: 129067201
Test: atest ActivityStarterTests
Change-Id: I563e8aa107d6423672b7dfc2313fa0f3dc33a517
2021-04-22 16:46:15 -07:00
Hui Yu
9757955874 Merge "Temp allowlist bluetooth broadcast to start FGS for 10 seconds." into sc-dev 2021-04-22 23:41:30 +00:00
Tianjie Xu
cfab9a00a9 Merge changes I296c1011,I05695607 am: 58deb1cfc1 am: c9674eec21 am: 676422f239
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682127

Change-Id: If10475c3af8fc72442dbc8c2933b1f6561c87174
2021-04-22 23:40:17 +00:00
Christine Franks
53ecc10226 Check virtual displays for ime dispatch
Bug: 184615313
Test: atest -a inputflinger_tests and atest -a libinput_tests
Change-Id: Ide4d7a0530e00eee3e2b7456d1d93df753b70afd
2021-04-22 16:39:54 -07:00
Bill Yi
fff12f831d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0d615771a15993e85b742777d9f11fadab5baf78
2021-04-22 23:28:30 +00:00
Bob Badour
0fd3637f6e Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" into sc-dev 2021-04-22 23:23:16 +00:00
Hui Yu
b53c83e0aa Merge "Move postFgsNotificationLocked() to outer block." into sc-dev 2021-04-22 23:19:37 +00:00
Jack Nudelman
fa17e7789c Call TelephonyProvider apis for backup/restore per-sim settings.
Bug: 172244913
Test: make, atest TelephonyProviderTest

Change-Id: I1652172f003e2fd5ab08dfdbf63dadc64e034406
Merged-In: I1652172f003e2fd5ab08dfdbf63dadc64e034406
2021-04-22 23:16:39 +00:00
Tianjie Xu
676422f239 Merge changes I296c1011,I05695607 am: 58deb1cfc1 am: c9674eec21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682127

Change-Id: I8328f17b833c9b5673e5fab258be39e59e159c5f
2021-04-22 23:12:14 +00:00
Bill Yi
d6db38186a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0096b05c867af1ddec3bc84335cb78df21ecf7e6
2021-04-22 23:10:35 +00:00
Winson Chiu
a1a4ca0524 Merge "Add cert digest separator to pm app link output" into sc-dev 2021-04-22 23:03:17 +00:00
Ilya Matyukhin
426461e8ae Merge changes from topic "IFace-anapic-review" into sc-dev
* changes:
  Add HAL-to-framework constant conversion
  Update framework with IFace getSensorConfig
2021-04-22 22:58:59 +00:00
Kweku Adams
2e2e94cc2c Merge changes I61392c55,I97e40d35 into sc-dev
* changes:
  Expand internal stop reasons.
  Rename "legacy" stop reasons.
2021-04-22 22:54:12 +00:00
Tianjie Xu
c9674eec21 Merge changes I296c1011,I05695607 am: 58deb1cfc1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682127

Change-Id: I7f7c45e39cb918a94d0c469dedfab4d06491ec38
2021-04-22 22:51:01 +00:00
Pinyao Ting
d80460c376 Remove updateShortcutVisibility
ShortcutManager#updateShortcutVisiblity was a new api intended for S,
due to the recent rollback of shortcut-appsearch integration, this api
can no longer be backed up AppSearch#VisibilityStore. To minimize the
risk of S release we should removed it from public api as opposed to
creating an alternative implementation.

Bug: 185828535, 185177108
Test: manual
Change-Id: Ic9d18237a25b11975f5859836877b9f77e25cc61
2021-04-22 15:43:34 -07:00
Lucas Dupin
9c07bde873 Fix issue where theme would be accepted in SUW
An event passing null would cause the internal state of
ThemeOverlayController to be reset, accepting future theming events.

Test: atest ThemeOverlayControllerTest
Bug: 182560740
Change-Id: Ie619ff5ae73b97e6a26cc90227bcad1c6277b30b
2021-04-22 22:35:56 +00:00
Ben Lin
f0572fd733 Merge "PiP: Don't invoke double-tap gesture (maximize) if menu is showing." into sc-dev 2021-04-22 22:27:25 +00:00
Tianjie Xu
58deb1cfc1 Merge changes I296c1011,I05695607
* changes:
  Add RecoverySystemServiceTest to presubmit
  Check the return value of RoR preparation/clear
2021-04-22 22:24:46 +00:00
Winson Chung
a80a2548ca Merge "Add some logging to track when SysUI binds to the overview service" into sc-dev 2021-04-22 22:09:11 +00:00
Adam He
e5c140a59d Add api to propagating translation capability updates.
This change adda the apia in the TranslationService that allows to
update the TranslationCapability to the registered clients. This
change doesn't contain the register part in the TranslationManager,
the change will be done on the next change.

Bug: 176208267
Test: atest CtsTranslationTestCases
Test: manual verification
CTS-Coverage-Bug: 182990474

Change-Id: Iec7b3dc30f99985415162394d0e64d8e825ea5d9
2021-04-22 14:54:21 -07:00
James Lin
dfdde4c5f7 Merge "Remove unnecessary UCE APIs because some of UCE APIs change." am: 86cb5eeb1c am: 46d67749d5 am: 6e1bf17f30
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684035

Change-Id: I98c2b446d76b8ba97f0efcd61e40cc9ee7322665
2021-04-22 21:46:33 +00:00
Treehugger Robot
20c5dbae83 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 07587bd2f7 -s ours am: 655c3483dd -s ours am: 3ca99603e3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I13818b9efcfab88fe676948814a26c85f3dcb5f5
2021-04-22 21:46:17 +00:00
Treehugger Robot
47d1352999 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: f975580f62 -s ours am: 446ade3135 -s ours am: 7a9d7c3b12 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0b0b65cbc60175188a0762f8c371575d5bb619d1
2021-04-22 21:45:43 +00:00
Treehugger Robot
5cfa84197d [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 6670c24067 -s ours am: 619e3f9aac -s ours am: 552d78d352 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7d0e7d50ae2caf15e50d2ea38cf6816faa69856a
2021-04-22 21:45:25 +00:00
Treehugger Robot
90d7f4a7f2 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: db44950d25 -s ours am: ca61a9bcca -s ours am: 05957b7ac0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If983558e39d572f6aa197ede0d67826d41d29bc8
2021-04-22 21:44:55 +00:00
Beverly Tai
86b5b1ec88 Merge "Support slide to udfps auth on keyguard" into sc-dev 2021-04-22 21:27:49 +00:00
James Lin
6e1bf17f30 Merge "Remove unnecessary UCE APIs because some of UCE APIs change." am: 86cb5eeb1c am: 46d67749d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684035

Change-Id: I368a1289fa670a885eeec0aa67760d7c6f52e083
2021-04-22 21:23:54 +00:00
Treehugger Robot
3ca99603e3 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 07587bd2f7 -s ours am: 655c3483dd -s ours
am skip reason: subject contains skip directive

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

Change-Id: I63aad3dfab7083c8a084e244ce2ce2a17546b4fe
2021-04-22 21:23:36 +00:00
Treehugger Robot
7a9d7c3b12 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: f975580f62 -s ours am: 446ade3135 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I61a9bbc24b3e8cee87610ea6f74604c0347f0aa6
2021-04-22 21:23:24 +00:00
Treehugger Robot
552d78d352 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 6670c24067 -s ours am: 619e3f9aac -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibb87884da80c200c489323a6acfe461aa798e389
2021-04-22 21:23:10 +00:00
Treehugger Robot
05957b7ac0 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: db44950d25 -s ours am: ca61a9bcca -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id5b83e9b7fc27ec4ffdd9466918d67e08a21dedf
2021-04-22 21:22:52 +00:00
Vishnu Nair
8685ce1dee Fix SurfaceView callback timings
In R we consolidated SetWindowStopped to use ViewRootImpl
surface changed callbacks. This affected the timings of when
the app would get SurfaceView SurfaceHolder callbacks. The
callbacks would be invoked in ViewRootImpl traversal before
the measure pass. If the app tried to add to the view hierarchy
in the callback, the view would not measure and layout the
new view properly.

To fix this, move the ViewRootImp SurfaceChangedCallback
after the measure pass.

Test: app in bug can add a view from SurfaceHolder.Callback#surfaceCreated
Fixes: 181529599
Change-Id: I06923113f7fc8e90242060c34f1d309d53b5a87b
2021-04-22 14:18:37 -07:00
James Lin
46d67749d5 Merge "Remove unnecessary UCE APIs because some of UCE APIs change." am: 86cb5eeb1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684035

Change-Id: I905a28e7a168a5854ff279078727da27305d8b01
2021-04-22 21:17:29 +00:00
Treehugger Robot
655c3483dd [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 07587bd2f7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I681625098abbf7f198054efea311c3dadad3e797
2021-04-22 21:12:20 +00:00
Lyn Han
c258af78ae On shade open, show all notifications instead of one section at a time
Bug: 172289889
Test: open shade with many combinations of sections
      with and without shelf

Change-Id: I2c237d8062f937e2510195ff5e8c7ced9546f688
2021-04-22 16:07:34 -05:00
Treehugger Robot
446ade3135 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: f975580f62 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie22a71a022db330e33583c49e8267d3a7aaa45c8
2021-04-22 21:04:23 +00:00
Treehugger Robot
619e3f9aac [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 6670c24067 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I730c727c606b6876b367bdb8ca347a0e5472f0d9
2021-04-22 20:56:36 +00:00
John Reck
549ee05ac5 Fix a potential thread safety issue in VectorDrawable
Bug: 158839504
Test: speculative
Change-Id: Id9f229f08fe5897dda25441fbaa15c98f8130de9
2021-04-22 16:55:09 -04:00
Treehugger Robot
ca61a9bcca [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: db44950d25 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie6ee552173ddba4ea52f4d32ca2c9348c9661b44
2021-04-22 20:51:03 +00:00
Oli Lan
52f8d4c9c3 Pass attribution source to BT APIs.
This adds attribution source to BT method calls. This is now
required to allow the app ops for the new BT permissions
(BLUETOOTH_CONNECT, BLUETOOTH_ADVERTISE, and BLUETOOTH_SCAN)
to be noted.

Bug: 183626112
Test: atest BluetoothInstrumentationTests
Change-Id: I81598553b762e491d6364064a2e1ef41dec89bf9
2021-04-22 14:47:39 -06:00
Treehugger Robot
57e3cf1042 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 679c657122 -s ours am: f6374c6bec -s ours am: da19a9eeec -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8f96b3a94c1e51fea546e224dc3125ee5af6acab
2021-04-22 20:45:14 +00:00
Treehugger Robot
7f2483c42a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 7dbd97e972 -s ours am: 975541d9f0 -s ours am: 843c4eecc3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Idb8787667784ab3a11c0e8add5dfdadbc38afbe5
2021-04-22 20:44:57 +00:00
Treehugger Robot
28f94dd1ee [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 4bdc1121da -s ours am: d6a61eed90 -s ours am: 40b26445f4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I08b33a2b80167e9988f1926a3cc1e0ef43f06e65
2021-04-22 20:44:41 +00:00
Treehugger Robot
058fd42f0a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 59464d6fa9 -s ours am: d0d8f77e5c -s ours am: b8322e46bd -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id890e3cad3b362e2906a59cab4292809249bcec8
2021-04-22 20:44:25 +00:00
Treehugger Robot
c4b02736dc [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 2b348a40ae -s ours am: e908f88308 -s ours am: e18a6f61b1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iebe9720fb7f6adebf865ffd2118b49fbf512c304
2021-04-22 20:44:08 +00:00
Jeff Sharkey
054fd43e2c Merge "Refinement of AttributionSource handling." into sc-dev 2021-04-22 20:43:14 +00:00
Treehugger Robot
da19a9eeec [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 679c657122 -s ours am: f6374c6bec -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia2266cdb0891bde13a8b2cc9751f157bfd0d7232
2021-04-22 20:42:25 +00:00
Treehugger Robot
f6374c6bec [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 679c657122 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I2ce940a7276b2ed8469a54786891005d601607e2
2021-04-22 20:29:45 +00:00