Commit Graph

646796 Commits

Author SHA1 Message Date
Kweku Adams
c2f4752a71 Merge "Fix parameter order." into sc-dev 2021-07-20 11:37:09 +00:00
TreeHugger Robot
9a9741b90c Merge "Fixing the race condition in GenerateRkpKey" into sc-dev 2021-07-20 09:04:54 +00:00
Max Bires
9acdb43f89 Fixing the race condition in GenerateRkpKey
This file was written on the assumption that bindService was
synchronous, which it isn't. This change adds a CountDownLatch to force
the class to wait for the binding to finish. If the relevant key
generation service is not present on the system, then this
functionality will just silently be skipped over.

Bug: 190222116
Test: atest RemoteProvisionerUnitTests
Change-Id: Ie34997a08aa743642c66a20c4b756cd47bff4af1
Merged-In: Ie34997a08aa743642c66a20c4b756cd47bff4af1
2021-07-20 09:04:17 +00:00
Wei Sheng Shih
6b43ea0a73 Merge "Correct StartingWindowInfo for non-top activity." into sc-dev 2021-07-20 06:00:39 +00:00
Lyn Han
27a1fdb018 Merge "Use alpha instead of invisible for views below shelf to skip redraw" into sc-dev 2021-07-20 04:43:36 +00:00
TreeHugger Robot
fdcfed3935 Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-qpr-dev am: e3ac127d7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15287613

Change-Id: I08b39d5db5af30a633565deeb4d2abb0fd76d9fd
2021-07-20 03:55:06 +00:00
TreeHugger Robot
72c0350b44 Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into sc-dev 2021-07-20 03:43:10 +00:00
TreeHugger Robot
e3ac127d7a Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-qpr-dev 2021-07-20 03:42:38 +00:00
TreeHugger Robot
2e5af9fd16 Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-dev am: 30c6383d1d am: 3d3db03f9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15287612

Change-Id: Ib7443eae8533f8897bf0d222f11b0c5f897ff721
2021-07-20 02:49:01 +00:00
TreeHugger Robot
5cb13bbebf Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-dev am: 30c6383d1d am: 17d1be8efc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15287612

Change-Id: I67a349870a799a1cdf3df9577786a326901d65e5
2021-07-20 02:44:02 +00:00
Rambo Wang
4696dc9bf8 Merge "Clear binder identity in callback of IMS IPC interfaces" into sc-dev 2021-07-20 02:43:16 +00:00
TreeHugger Robot
17d1be8efc Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-dev am: 30c6383d1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15287612

Change-Id: I2fba182703b7e2362a0cd0934903c6a2af849751
2021-07-20 02:31:53 +00:00
TreeHugger Robot
3d3db03f9f Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-dev am: 30c6383d1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15287612

Change-Id: I5e1df42f306b83b1d753e104dea61faa198d6a20
2021-07-20 02:31:47 +00:00
Tracy Zhou
6a8ca02c6f Merge "Remove RecentsOnboarding" into sc-dev 2021-07-20 02:22:59 +00:00
TreeHugger Robot
30c6383d1d Merge "Revert "wifidisplay: restrict broadcast by the proper permission"" into rvc-dev 2021-07-20 02:13:10 +00:00
Winson Chung
72922c8a85 Merge "Add null check to work around async unregistration of receiver" into sc-dev 2021-07-20 00:05:56 +00:00
Kweku Adams
dbf042c666 Fix parameter order.
AlarmManager.setWindow's parameter order is type -> window start ->
window length. Actually put the values in the correct order.

Bug: 193866265
Test: atest DeviceIdleTest
Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest
Change-Id: I5c87dad3015859d68aacb6781166432b615327b9
2021-07-19 16:26:54 -07:00
Vishnu Nair
861ba140a1 Merge "SurfaceView: Update transform hint only if the view is visible" into sc-dev 2021-07-19 23:17:07 +00:00
Shuo Qian
ba314fbb85 Merge "Throw new IllegalStateException in CallRedirectionService when the call redirection is not initialized yet" into sc-dev 2021-07-19 22:53:32 +00:00
Lyn Han
ef12c7a2b2 Use alpha instead of invisible for views below shelf to skip redraw
Also skip this for heads up notifications

Fixes: 193912541
Test: treehugger
Change-Id: I3c81611696f7918a0f18d4c503b80a6b78ed2c43
2021-07-19 22:45:07 +00:00
TreeHugger Robot
5be998a660 Merge "Use binder-based iterator to retrieve FRROs" into sc-dev 2021-07-19 21:55:45 +00:00
Rambo Wang
588ec9f398 Clear binder identity in callback of IMS IPC interfaces
The binder identity does get cleared when goes from client process
into phone process. When it comes back from phone to client, the
binder identity should also be cleared.

Bug: 193923945
Test: atest android.telephony.cts.TelephonyManagerTest
Test: atest ImsServiceTest RcsFeatureControllerTest ImsMmTelManagerTest
Merged-In: I34225e32111879e155c9f7865f0045430d171467
Change-Id: I34225e32111879e155c9f7865f0045430d171467
(cherry picked from commit c18002c465)
2021-07-19 14:54:58 -07:00
Joshua Mccloskey
4438cf6799 Merge "Fixed double face auth on swipe" into sc-dev 2021-07-19 20:00:57 +00:00
TreeHugger Robot
c4815d0f2d Merge "4/n: Make CoexCoordinator multi-sensor-aware" into sc-dev 2021-07-19 19:25:44 +00:00
Pinyao Ting
c4adbc278e Merge "Refrain from returning mutable pending intent in getShortcutIntent" into sc-dev 2021-07-19 19:09:17 +00:00
Winson Chung
37ae9cfc89 Merge "Revert "Clean up previous DA organizer when registering"" into sc-dev 2021-07-19 18:42:00 +00:00
Winson Chung
0b40777cd1 Revert "Clean up previous DA organizer when registering"
This reverts commit da436d4a01.

Reason for revert: b/194083907, b/193993655

Bug: 194083907
Bug: 193993655
Change-Id: I75352215d995707b3bc23e04434c85a0fd9db6b3
2021-07-19 18:39:16 +00:00
Winson Chung
f9fdfa9751 Add null check to work around async unregistration of receiver
Fixes: 193890703
Test: atest SystemUITests
Change-Id: I47272513482c2ed31167574d2f2cab6094cfd590
Merged-In: I47272513482c2ed31167574d2f2cab6094cfd590
2021-07-19 18:28:03 +00:00
Winson Chung
db294649f8 Merge "Workaround for back arrow being stuck on screen" into sc-dev 2021-07-19 18:00:08 +00:00
Kensuke Miyagi
afd8e9bb44 Merge "Fix issue of TvInputManagerService not binding to TvInput services in Kids" into sc-dev 2021-07-19 17:32:55 +00:00
TreeHugger Robot
de41c86deb Merge "Null check color_space_ptr in draw functor v2" into sc-dev 2021-07-19 17:23:38 +00:00
Ryan Mitchell
b887f68ad1 Use binder-based iterator to retrieve FRROs
If for some reason there are a lot of fabricated overlays in the
resources cache, the binder limit of the list of fabricated overlay
infos could exceed the maximum binder transaction size. Rather than
return all of the frro infos in one transactions, register an iterator
with the native idmap2d service and use multiple binder transactions
to iterate through all of the frros.

Bug: 192948522
Test: Toggle device theme colors several times and observe frro cache
      Reboot device and observe old frros are deleted
Change-Id: I5e9cf3ae9d1d45eda683c24141a0cd4e4301e02f
2021-07-19 16:53:27 +00:00
TreeHugger Robot
db2dd6d551 Merge "Update boot image and system server profiles [M5C5P90S0PP]" into sc-dev 2021-07-19 16:48:39 +00:00
Vishnu Nair
bc9be8e428 SurfaceView: Update transform hint only if the view is visible
Transform hint should only be updated when creating the
surface or the view is visible. If the view is not visible, BBQ
will be null. This fixes a NPE in SurfaceView.

Test: go/wm-smoke
Fixes: 193618182
Change-Id: I98a463ae23a93d89ac803e2c2d80ecfd56ca97d2
2021-07-19 09:25:08 -07:00
TreeHugger Robot
14e7e8316f Merge "Add PCM float profile if extended precision PCM shows but not pcm float." into sc-dev 2021-07-19 16:12:47 +00:00
Bo Liu
fe71933655 Null check color_space_ptr in draw functor v2
Missed toXYZD50 usage last time. Still assume sRGB if null.

Bug: 187798471
Test: Manually tested setting color_space_ptr to null in
      GL/VKFunctorDrawable
Change-Id: Idee2660d368dd55e45f5d07d52839105ba951ff3
2021-07-19 10:16:05 -04:00
Andrei-Valentin Onea
a800c7eee4 Merge "Use ReentrantReadWriteLock in the compat framework" into sc-dev 2021-07-19 13:35:53 +00:00
wilsonshih
a554579385 Correct StartingWindowInfo for non-top activity.
When finishing a top activity and goes to resume the below activity, if
the resumed activity was gone and need to recreate, this should be treat
as warm launch and there should show an empty style splash screen on it.
Previous there do create a splash screen window but the parameters are
wrong because we are trying to create the StartingWIndowInfo from the
top activity.

Fixes: 193040222
Test: atest ActivityRecordTests
Test:
1. enable "Dont keep Activities"
2. Launch twitter, open link.
3. Click back key and there should show empty splash screen.

Change-Id: I33ac43ef6ca79c7422a818e468a7af32c7894eeb
2021-07-19 21:09:32 +08:00
Lais Andrade
1a208a730d Merge "Increase timeout on VibrationThread to wait for vibrator callbacks" into sc-dev 2021-07-19 12:38:21 +00:00
Jacqueline Bronger
9028f4992c Merge "Add accessibility messages to privacy chip on tv." into sc-dev 2021-07-19 08:34:41 +00:00
Tracy Zhou
8cb8652792 Remove RecentsOnboarding
RIP

Fixes: 180248278
Test: manual

Change-Id: Ifb73928ceab67c451776c1657bdc230670c9af81
2021-07-19 03:34:37 +00:00
TreeHugger Robot
e8ad8b7ff4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-19 02:50:01 +00:00
art-benchmark-service
66b4d95bc5 Update boot image and system server profiles [M5C5P90S0PP]
= Perf stats =
(lower is better)

Start, memory and code size are improving at a slight expense of boot
time. The increase in boot time is however small, and could well be
in the noise.

Cold startup (speed-profile): -1.21%
PSS: -3.40%
RSS: -2.58%
Privat Dirty: -4.68%
Boot time: 0.04%
Code size: 2.79%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.9
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.dialer"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.gms"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 6988
- number of (device types, builds): 256

File boot-image-profile.txt
  - hot methods: 3564 added, 2353 removed
  - methods: 3564 added, 2353 removed
  - classes: 498 added, 29 removed
  - totals now: 22707 hot methods, 22707 methods, 13987 classes
  - totals before: 21496 hot methods, 21496 methods, 13518 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 3418, 2238, 39, 11, 21138, 9609
    com.android, 145, 114, 89, 18, 1473, 3422
    android.view, 575, 372, 4, 0, 3202, 881
    android.hardware, 88, 41, 2, 0, 407, 795
    android.bluetooth, 26, 23, 0, 0, 173, 170
    android.animation, 95, 56, 0, 0, 401, 71
    android.app, 392, 225, 7, 0, 2896, 983
    android.content, 329, 243, 5, 1, 2146, 594
    android.graphics, 425, 246, 0, 0, 1974, 320
    android.icu, 115, 86, 0, 0, 1940, 1528
    android.media, 98, 62, 0, 0, 777, 567
    android.net, 78, 51, 2, 10, 711, 415
    android.widget, 344, 277, 0, 0, 1382, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 3 added, 19 removed
  - totals now: 0 hot methods, 0 methods, 11477 classes
  - totals before: 0 hot methods, 0 methods, 11493 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 3, 1, 0, 8432
    com.android, 0, 0, 0, 18, 0, 2466
    android.hardware, 0, 0, 1, 0, 0, 680
    android.app, 0, 0, 2, 0, 0, 867
    android.content, 0, 0, 0, 1, 0, 514

File boot-image-profile.txt
  - hot methods: 4788 added, 2939 removed
  - methods: 4788 added, 2939 removed
  - classes: 678 added, 29 removed
  - totals now: 32340 hot methods, 32340 methods, 16707 classes
  - totals before: 30491 hot methods, 30491 methods, 16058 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 3432, 2249, 39, 11, 21185, 9640
    com.android, 291, 154, 89, 18, 2429, 3762
    java, 825, 434, 0, 0, 6903, 1807
    android.view, 574, 372, 4, 0, 3201, 881
    android.hardware, 87, 41, 2, 0, 406, 795
    android.bluetooth, 37, 23, 0, 0, 173, 170
    android.animation, 95, 56, 0, 0, 401, 71
    android.app, 390, 225, 7, 0, 2894, 983
    android.content, 327, 243, 5, 1, 2144, 594
    android.graphics, 423, 246, 0, 0, 1972, 320
    android.icu, 115, 86, 0, 0, 1940, 1528
    android.media, 95, 62, 0, 0, 774, 567
    android.net, 78, 51, 2, 10, 711, 415
    android.widget, 344, 277, 0, 0, 1381, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 0 added, 20 removed
  - totals now: 0 hot methods, 0 methods, 13904 classes
  - totals before: 0 hot methods, 0 methods, 13924 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 0, 2, 0, 8453
    com.android, 0, 0, 0, 18, 0, 2805
    android.view, 0, 0, 0, 1, 0, 742
    android.content, 0, 0, 0, 1, 0, 514

File art-profile
  - hot methods: 4595 added, 2644 removed
  - methods: 5217 added, 3300 removed
  - classes: 359 added, 13 removed
  - totals now: 35471 hot methods, 51136 methods, 5764 classes
  - totals before: 33520 hot methods, 49219 methods, 5418 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 37, 12, 157, 0, 469, 437
    com.android, 4557, 2631, 142, 13, 34847, 5224
    android.hardware, 8, 8, 0, 0, 242, 127
    android.net, 29, 4, 157, 0, 202, 287

InternalReferenceRawProfileId: 4117
InternalReferenceCandidateProfileId: 4124

Bug: 169104277
Test: build & benchmark

Change-Id: I6dd60b5d0457e0fa35d57082677892ae65b9e920
2021-07-19 01:59:38 +00:00
TreeHugger Robot
5e0131613a Merge "Only intercept lockIcon touches after longpress" into sc-dev 2021-07-18 22:16:21 +00:00
TreeHugger Robot
c18be9fcf4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-18 21:47:41 +00:00
TreeHugger Robot
2f3b49421a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 1fed8e5b8f -s ours
am skip reason: subject contains skip directive

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

Change-Id: If8d88f9754c46a4e879444b9dc6f750b5c24e56a
2021-07-18 21:46:48 +00:00
TreeHugger Robot
1fed8e5b8f Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-07-18 21:34:09 +00:00
TreeHugger Robot
c482869205 Merge "SysUI co-ex updates" into sc-dev 2021-07-18 21:20:50 +00:00
Winson Chung
7cbbc225b1 Workaround for back arrow being stuck on screen
- Whenever we defer the cleanup of the back gesture, schedule a failsafe
  to clean up the window if it's not handled properly.  We'll enable
  this failsafe for sc-dev and disable it for further investigations
  post sc-dev
- Dump additional info for the nav bar window so we can narrow down
  the issue post sc-dev

Bug: 190778197
Test: Can't repro the initial issue, so artificially trigger it to verify failsafe
Test: adb shell dumpsys activity service SystemUIService
Change-Id: I0a8f25babe750e6e5ba4c933ab5271a82ef63646
2021-07-18 20:52:35 +00:00
Beverly
cde9224b7b Only intercept lockIcon touches after longpress
All other touches should be let through to NPV in case
the user starts to swipe up from the lock icon

We still want to continue intercepting touches after a long press
so that the NPV won't mistakenly handle the touch + expand the
shade after a longpress.

Test: manual
Fixes: 193614314
Change-Id: I060f6f78c373a726fe4dbe1be5b5413364882e1d
2021-07-18 20:01:01 +00:00