Commit Graph

16051 Commits

Author SHA1 Message Date
Pinyao Ting
d9b11089e7 Merge "Implement Device Flag for shortcut integration with AppSearch" into sc-dev 2021-04-21 07:24:42 +00:00
TreeHugger Robot
18ecd98109 Merge "[pm] remove incremental startable/unstartable code" into sc-dev 2021-04-20 22:03:22 +00:00
Dmitri Plotnikov
82a0d368cc Merge "Revert "Save power component names in the summary parcel for MeasuredEnergySnapshot"" into sc-dev 2021-04-20 19:03:12 +00:00
Dmitri Plotnikov
ff06a0ffb7 Revert "Save power component names in the summary parcel for MeasuredEnergySnapshot"
This reverts commit efa581e44e.

Reason for revert: Broke a test

Change-Id: Ib5ab56032ba4c4203cbc6f3eaf1e5d80c89a9717
2021-04-20 19:01:52 +00:00
Dmitri Plotnikov
1eb043a982 Merge "Save power component names in the summary parcel for MeasuredEnergySnapshot" into sc-dev 2021-04-20 18:50:54 +00:00
TreeHugger Robot
423adbf3b5 Merge "Fix updateBluetoothStateLocked comments" into sc-dev 2021-04-20 09:58:28 +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
c85f9a62b5 Merge "Fix the service cann't rebinded after the service died" into sc-dev 2021-04-20 04:54:44 +00:00
Pinyao Ting
8b875d2446 Implement Device Flag for shortcut integration with AppSearch
Bug: 185828535
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
Test: atest CtsShortcutManagerTestCases

Change-Id: I6ef8b03cdbc875c965ead30a61d33de838e65b1f
2021-04-19 21:10:33 -07:00
Dmitri Plotnikov
efa581e44e Save power component names in the summary parcel for MeasuredEnergySnapshot
Bug: 185534915
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryStatsViewerActivity
  and check that custom component is displayed as "GPU", not "CUSTOM_10000"
Test: atest FrameworksServicesTests:com.android.server.am.MeasuredEnergySnapshotTest
Change-Id: Ibb68bb2ee62678db5f3b30c4f2ef607006ccc81b
2021-04-19 19:25:36 -07: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
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
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
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
37e451745a Merge "Add icon for "Extra dim" used in accessibility shortcut" into sc-dev 2021-04-17 16:49: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
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
c9eaa3d80f Merge "Rename IInputMethodManager#reportPerceptible" into sc-dev 2021-04-16 05:14: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
Songchun Fan
5ada1508c2 [pm] remove incremental startable/unstartable code
Also remove streaming health status reporting which could cause
startable state change because it is also not needed any more.

BUG: 171920377
Test: builds
Change-Id: I7284e7a63df79da7dbf3d16ff64302b3d1ce1348
2021-04-16 02:29:24 +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
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
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
Dmitri Plotnikov
8017f4ed5e Merge "Fix NullPointerException in BatteryUsageStats" into sc-dev 2021-04-14 19:10:36 +00:00
Julia Reynolds
706bd974d1 Merge "Update the notif expand button so it can be shared" into sc-dev 2021-04-14 19:06:34 +00:00
Dmitri Plotnikov
864454912a Merge "Remove POWER_COMPONENT_USAGE and TIME_COMPONENT_USAGE" into sc-dev 2021-04-14 17:50:25 +00:00
Siim Sammul
8a04f3a9ba Merge "Push the latency histograms to statsd" into sc-dev 2021-04-14 17:20:19 +00:00
Yohei Yukawa
3b99155905 Merge "Make removeImeSurfaceFromWindow to one-way" into sc-dev 2021-04-14 17:12:18 +00:00
Julia Reynolds
10f23c1e9b Update the notif expand button so it can be shared
.. with notification history

Test: manual
Bug: 184695652
Change-Id: Iaa61d2442539ee42ec776530b84bf98c76e038a9
2021-04-14 16:54:08 +00:00
TYM Tsai
39b366fc44 Fix the service cann't rebinded after the service died
The Content Capture remote service needs to rebind afeter died. But the
service entered an error state, causing the reconnection to be ignored.
When service died, the state should be changed to waiting the new
connection.

Bug: 184786235
Test: atest CtsContentCaptureServiceTestCases
Change-Id: I2842b2aab0dcf82938b5c7a9f6afcf044f7f598e
2021-04-15 00:32:28 +08:00
Kholoud Mohamed
3dca1466a0 Merge "Fix bug in LockSettingsService" into sc-dev 2021-04-14 13:54:38 +00:00