Commit Graph

16324 Commits

Author SHA1 Message Date
TreeHugger Robot
93917b479a Merge "Fix updateBluetoothStateLocked comments" into sc-dev am: 423adbf3b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14243452

Change-Id: I9346c67c82e3c49a44be843cc2b02588620c4591
2021-04-20 10:22:19 +00:00
TreeHugger Robot
423adbf3b5 Merge "Fix updateBluetoothStateLocked comments" into sc-dev 2021-04-20 09:58:28 +00:00
TreeHugger Robot
dd100ed2b2 Merge "Add TestApi to trigger the onDetect function of HotwordDetectionService" into sc-dev am: 3346694817
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161092

Change-Id: I41200d38286fde2633a9642004d451633f5f3a21
2021-04-20 09:32:06 +00:00
TreeHugger Robot
3346694817 Merge "Add TestApi to trigger the onDetect function of HotwordDetectionService" into sc-dev 2021-04-20 09:23:33 +00:00
Adam Bookatz
d9f98565b2 Fix updateBluetoothStateLocked comments
There was confusion as to whether updateBluetoothStateLocked
took an ActivityInfo representing a cumulative total or a delta.
It is confirmed that it is now a cumulative total. (It had been
a delta in the past, but no longer.)

Bug: 174818545
Test: N/A (just comments)
Change-Id: I62130f22250eb496164f94c0668d1ff65fed7710
2021-04-20 00:14:51 -07:00
TreeHugger Robot
a284b68430 Merge "Fix the service cann't rebinded after the service died" into sc-dev am: c85f9a62b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14170760

Change-Id: I6e45c8752a4955dfb6e71ea7587eca4082473091
2021-04-20 05:00:20 +00:00
TreeHugger Robot
c85f9a62b5 Merge "Fix the service cann't rebinded after the service died" into sc-dev 2021-04-20 04:54:44 +00:00
Hans Boehm
292276b6ff Merge "Don't fork USAPs with open argument buffer" am: 6c61c65f19 am: 7644e0c5b7 am: 12a29502e8 am: b991befbe0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1651247

Change-Id: I3ee71786f7bfa9972164082da454c72217579540
2021-04-20 00:41:35 +00:00
Steven Moreland
25d1bd3dfe Merge "reflect libbinder->libpermission: appops" into sc-dev am: 8728d85d15
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14237374

Change-Id: Ia757080c755a312353d3a3ce7ca4690fdd388750
2021-04-20 00:38:35 +00:00
Hans Boehm
b991befbe0 Merge "Don't fork USAPs with open argument buffer" am: 6c61c65f19 am: 7644e0c5b7 am: 12a29502e8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1651247

Change-Id: I35ddf8d53ab187e6b62633646cef4956266a9695
2021-04-20 00:35:49 +00:00
Steven Moreland
8728d85d15 Merge "reflect libbinder->libpermission: appops" into sc-dev 2021-04-20 00:24:08 +00:00
Steven Moreland
3c8c536978 reflect libbinder->libpermission: appops
Since libbinder is used in many places, lightening it up (vtables in
these classes contribute to private dirty memory).

Bug: 183654927
Test: boot
Change-Id: I73328013bfb701257eb88339f7da2cb92db6809e
2021-04-19 23:39:51 +00:00
Hans Boehm
12a29502e8 Merge "Don't fork USAPs with open argument buffer" am: 6c61c65f19 am: 7644e0c5b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1651247

Change-Id: I3d26e93f5a85943f6d3cf2371d1079213c36089d
2021-04-19 23:27:29 +00:00
Hans Boehm
6c61c65f19 Merge "Don't fork USAPs with open argument buffer" 2021-04-19 22:33:21 +00:00
Daniel Chapin
02f317c2b8 Merge "Revert "Add icon for "Extra dim" used in accessibility shortcut"" into sc-dev am: 1aa87efd66
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14233208

Change-Id: Ie21674f1b50e965f11ec48c4d78809cca1985ab0
2021-04-19 21:21:29 +00:00
Daniel Chapin
1aa87efd66 Merge "Revert "Add icon for "Extra dim" used in accessibility shortcut"" into sc-dev 2021-04-19 20:49:26 +00:00
Steven Moreland
a3e142fe3b Merge "reflect libbinder->libpermission: appops" am: 12d2d7fd9c am: 66f91640b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674207

Change-Id: I1ba2b9d6d8d9ce5fbdbc4b28c82ccdb76cd38875
2021-04-19 19:15:01 +00:00
Dmitri Plotnikov
46c8ad08ba Merge "Use BatteryStats instead of BatteryStatsImpl in BatteryUsageStatsProvider" into sc-dev am: d215e29f75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14192792

Change-Id: Icefda779ab2d29f24b3146bcc3a56b9ef51875f0
2021-04-19 18:50:57 +00:00
Hans Boehm
fab68e1481 Don't fork USAPs with open argument buffer
Delay execution of any zygote command that may end up forking USAPs
until we've released our own ZygoteCommandBuffer. Otherwise we fork
the child with an open ZygoteCommandBuffer, preventing it from
opening its own.

Bug: 182084594
Test: Build and boot AOSP, with USAPs enabled and disabled.
Change-Id: I2366367d2155a120092fbdcae13cbb3d7f4e1d16
2021-04-19 11:42:15 -07:00
Daniel Chapin
56a7a55e65 Revert "Add icon for "Extra dim" used in accessibility shortcut"
This reverts commit e9f44933ac.

Reason for revert: Bug: 185737105

Change-Id: I7978fb859451a47182bf7a2147a50254731bfc2d
2021-04-19 18:39:17 +00:00
Dmitri Plotnikov
d215e29f75 Merge "Use BatteryStats instead of BatteryStatsImpl in BatteryUsageStatsProvider" into sc-dev 2021-04-19 18:09:31 +00:00
Steven Moreland
12d2d7fd9c Merge "reflect libbinder->libpermission: appops" 2021-04-19 17:20:21 +00:00
Siim Sammul
18ca8911eb Merge "Add buckets params to the binder latency atom" into sc-dev am: eebade3ca5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14201550

Change-Id: Ib40c880acc73b8258ad1358df66e8d8f9b3a94b9
2021-04-19 10:32:12 +00:00
Siim Sammul
eebade3ca5 Merge "Add buckets params to the binder latency atom" into sc-dev 2021-04-19 10:26:40 +00:00
Siim Sammul
cceed4f3dc Add buckets params to the binder latency atom
Original change: gerrit/14019215

Test: n/a - no functionality change
Bug: 180584913
Change-Id: I20d8f5632f76774cad64af30a6aa1f1ab172152f
2021-04-19 10:25:36 +00:00
lpeter
afef0beebf Add TestApi to trigger the onDetect function of HotwordDetectionService
Bug: 184685043
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I531c1229de908c64e29f1976bd2fd1e70e545853
2021-04-19 14:22:38 +08:00
Jason Hsu
b607aed332 Merge "Add icon for "Extra dim" used in accessibility shortcut" into sc-dev am: 37e451745a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186628

Change-Id: Ia4ef524be84fc769330774312a1452e6c1ee7667
2021-04-17 17:06:13 +00:00
Jason Hsu
37e451745a Merge "Add icon for "Extra dim" used in accessibility shortcut" into sc-dev 2021-04-17 16:49:47 +00:00
Matt Casey
89747fc214 Merge changes Ie275f5c3,I1cab53a6 into sc-dev am: 21c4c71b2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14213766

Change-Id: I5a618fcd3a1df2cb2207b4c0b4e0f17c7beb5401
2021-04-17 02:46:47 +00:00
Matt Casey
21c4c71b2a Merge changes Ie275f5c3,I1cab53a6 into sc-dev
* changes:
  Move RecyclerView scroll capture to the center
  Move scroll capture back to ScreenshotController.
2021-04-17 02:23:28 +00:00
Dmitri Plotnikov
a5163de7af Use BatteryStats instead of BatteryStatsImpl in BatteryUsageStatsProvider
This is being done in preparation for a switch of BatteryStats.dumpLocked
from BatteryStatsHelper to BatteryUsageStats

Bug: 162380414
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests

Change-Id: Ia8bf02116517c77f008b85c2012f68353b39c044
2021-04-16 17:47:04 -07:00
Siddika Parlak Polatkan
5f8000053e Merge "Add sensor detection latency to LatencyTracker" into sc-dev am: d560996d0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14179253

Change-Id: I9f20d43518062b8dd57b8157af2106ccd2eb4efa
2021-04-17 00:39:23 +00:00
Siddika Parlak Polatkan
d560996d0f Merge "Add sensor detection latency to LatencyTracker" into sc-dev 2021-04-17 00:19:38 +00:00
Matt Casey
74f9861490 Move RecyclerView scroll capture to the center
Avoid most floating content by centering the requested content within
the view instead of just scrolling so that it's visible.

Bug: 174571735
Test: atest RecyclerViewCaptureHelperTest, plus manual testing across
      major apps.
Change-Id: Ie275f5c37998a9d88e5ccde7af043443cbc4d94c
2021-04-16 15:01:45 -04:00
TreeHugger Robot
e968dc5590 Merge "Rename IInputMethodManager#reportPerceptible" into sc-dev am: c9eaa3d80f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14182409

Change-Id: If52415d8c9cad6502a58eb9e1633d247458118f8
2021-04-16 05:35:58 +00:00
TreeHugger Robot
c9eaa3d80f Merge "Rename IInputMethodManager#reportPerceptible" into sc-dev 2021-04-16 05:14:30 +00:00
Wilson Wu
2ccf9c8dbd Merge "Make IInputMethodPrivilegedOperations to async (2/N)" into sc-dev am: 40055cde56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14198727

Change-Id: I66779685937c62903b799811e2df61692c9e2f89
2021-04-16 03:15:30 +00:00
Treehugger Robot
bf415409e8 Merge "[Telephoy] Add phone Id to support DSDS" am: 40fa3f58b2 am: 36fb168817
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676437

Change-Id: Ia0c72bde710182dbd9e5e99c3ad5f309147a0353
2021-04-16 03:03:44 +00:00
Wilson Wu
40055cde56 Merge "Make IInputMethodPrivilegedOperations to async (2/N)" into sc-dev 2021-04-16 02:58:16 +00:00
TreeHugger Robot
85c56ede4c Merge "[Telephoy] Add phone Id to support DSDS" into sc-dev am: 6728857aaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186084

Change-Id: Icae3b11ee9419bd3f7ac1213bf54b4b8f287e42f
2021-04-15 20:52:19 +00:00
TreeHugger Robot
6728857aaf Merge "[Telephoy] Add phone Id to support DSDS" into sc-dev 2021-04-15 19:55:10 +00:00
Mark Renouf
a7925f9c6d Merge changes I3a11ac86,I84e0b1fd into sc-dev am: d389165bd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14200262

Change-Id: If7b233755abfac3cc7c80fb1556b30b48ef0075e
2021-04-15 19:46:02 +00:00
Mark Renouf
41f4544e59 Scroll Capture: Add configurable post-scroll capture delay
Default 60ms after next animation pulse, configurable with:

adb shell settings put global screenshot.scroll_capture_delay ##

Bug: 173700533
Test: manual - long screenshot Play Store/Google Photos
      observe that images are fully visible when captured
Change-Id: I84e0b1fd6b94d3ff7177fa00166da40b30f311cf
2021-04-15 13:31:39 -04:00
Jeff Sharkey
2ede256357 Merge changes from topic "apr10" into sc-dev am: cd5c179783
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14076378

Change-Id: I7101e1ea70944372984b6113aec2fb5524735fe5
2021-04-15 14:05:16 +00:00
Zoey Chen
30ad4bf90a [Telephoy] Add phone Id to support DSDS
Bug: 185451283
Test: atest TelephonyRegistryTest
Change-Id: Ia09d0979bda94470f0c41cff9349c74d06ecc003
Merged-In: I6bf2285e37366ca517a3ea16194a203371e44964
2021-04-15 11:11:11 +00:00
Wilson Wu
738468ba17 Make IInputMethodPrivilegedOperations to async (2/N)
-. Remove VoidResultCallback of reportStartInput
   and let it be truly asynchronous.
-. Rename this method to reportStartInputAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Change-Id: Ic8e7f888f78f7c536a9228db02a8b355555d7220
2021-04-15 19:02:53 +08:00
jasonwshsu
e9f44933ac Add icon for "Extra dim" used in accessibility shortcut
* foreground icon: 18 * 18
* background icon: 32 * 32 with color Google Gray 700

Fix: 184081577
Bug: 170973645
Test: manual test
Change-Id: Iedb919fef39f293988da757d3b654f904fc81ba0
2021-04-15 10:09:12 +00:00
Zoey Chen
1835f13c4e [Telephoy] Add phone Id to support DSDS
Bug: 185451283
Test: atest TelephonyRegistryTest
Change-Id: I6bf2285e37366ca517a3ea16194a203371e44964
2021-04-15 17:45:27 +08:00
Siddika Parlak Polatkan
9745794e85 Add sensor detection latency to LatencyTracker
Test: m and load on Redfin

Bug: 179267912
Change-Id: I8d3c52f7e232f4ffc11f4381147bb859bf465d54
2021-04-15 08:02:03 +00:00
Jeff Sharkey
4acdb1beff Update Bluetooth API annotations.
Recent work has introduced a new "Nearby devices" runtime permission
which protects all existing Bluetooth APIs; we've done this by
defining a <split-permission> to convert the old BLUETOOTH and
BLUETOOTH_ADMIN permissions into one of three new permissions:

* BLUETOOTH_ADVERTISE: Required to be able to advertise to nearby
                       Bluetooth devices.
* BLUETOOTH_CONNECT:   Allows applications to connect to paired
                       bluetooth devices.
* BLUETOOTH_SCAN:      Required to be able to discover and pair
                       nearby Bluetooth devices.

At its core, this change begins updating the Bluetooth APIs to have
correct @RequiresPermission indicating which permission is actually
enforced internally.  To ensure alignment across Binder, the newly
added "RequiresPermissionChecker" Error Prone checker was used to
discover any inconsistencies, ensuring correctness from server-side
enforcement up through to the public APIs.

In addition, since developers will continue building apps for both
modern and legacy platforms, this change introduces new auto-doc
annotations which will emit helpful consistent documentation
describing the behavior of older devices that are still using the
old permission model.

Bug: 183626724
Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true
Change-Id: I02aa127e8e07f239561f4f2a3bbdfc6fccb82f7f
2021-04-14 21:13:24 -06:00