Commit Graph

16293 Commits

Author SHA1 Message Date
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
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
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
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
cb4178b772 Merge "Fix NullPointerException in BatteryUsageStats" into sc-dev am: 8017f4ed5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14179252

Change-Id: I86d79adb20c4747763bcf6fc8158cd42088d5651
2021-04-14 19:15:18 +00:00
Julia Reynolds
9accf5eb9b Merge "Update the notif expand button so it can be shared" into sc-dev am: 706bd974d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14188012

Change-Id: I00c732e7120f0dda1c21a61a197cb916e67949b1
2021-04-14 19:15:02 +00: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
9f96d34f54 Merge "Remove POWER_COMPONENT_USAGE and TIME_COMPONENT_USAGE" into sc-dev am: 864454912a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14078197

Change-Id: I2554208cde4f42d1e8c8732296e9d584d42679c4
2021-04-14 18:04:56 +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
e3a4a27c7e Merge "Make removeImeSurfaceFromWindow to one-way" into sc-dev am: 3b99155905
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14174202

Change-Id: Id0cfa659bf4b1f05f65a301ea0c9d23370e3f5ed
2021-04-14 17:17:45 +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
Kholoud Mohamed
5257c36d29 Merge "Fix bug in LockSettingsService" into sc-dev am: 3dca1466a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14127225

Change-Id: I81754e02ff97d35a1d48acf5fcb9f40bb2a8e116
2021-04-14 14:22:56 +00:00
Kholoud Mohamed
3dca1466a0 Merge "Fix bug in LockSettingsService" into sc-dev 2021-04-14 13:54:38 +00:00
Jeff DeCew
3b0078c57e Merge "Clean up MessagingLayout notifications" into sc-dev am: 42cef834c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14106007

Change-Id: Idb03dffc18dfe460e3425a68b8037593745508e6
2021-04-14 13:32:49 +00:00
Jeff DeCew
42cef834c7 Merge "Clean up MessagingLayout notifications" into sc-dev 2021-04-14 12:47:24 +00:00
Tianjie Xu
50016559a3 Merge "Improve the error handling for armRebootEscrow" am: 246c14d6da am: cd4836d197 am: f3bde71026 am: 9bf277f905
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1649651

Change-Id: I77608efd2e11b359da3687048285c8e7bfbb9169
2021-04-14 08:16:43 +00:00
Tianjie Xu
9bf277f905 Merge "Improve the error handling for armRebootEscrow" am: 246c14d6da am: cd4836d197 am: f3bde71026
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1649651

Change-Id: Ie1a2e4e87e1dcda0b53044c0cb577b938455fdee
2021-04-14 07:17:25 +00:00
Wilson Wu
f18e567b2a Rename IInputMethodManager#reportPerceptible
Rename this method to reportPerceptibleAsync
for readability, because it was already a truly
one-way method when it create.

Bug: 185281885
Test: atest CtsInputMethodTestCases
Change-Id: I9c72b980678f0310c79b293ea06f465e9ca1d760
2021-04-14 14:50:30 +08:00
Tianjie Xu
f3bde71026 Merge "Improve the error handling for armRebootEscrow" am: 246c14d6da am: cd4836d197
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1649651

Change-Id: I6aabf1250d67f6a79711e89fb05c68bf84849656
2021-04-14 06:32:31 +00:00
Tianjie Xu
246c14d6da Merge "Improve the error handling for armRebootEscrow" 2021-04-14 05:23:07 +00:00
Dmitri Plotnikov
153f2acfee Fix NullPointerException in BatteryUsageStats
Bug: 185287730
Test: Build and launch Settings on a crosshatch
Change-Id: Iccdd8a0f3839b98dbb5c09599f35ac15985daa4c
2021-04-13 22:14:05 -07:00
Wilson Wu
7ec569a5cd Make removeImeSurfaceFromWindow to one-way
We introduced IVoidResultCallback mechanism to
removeImeSurfaceFromWindow in CL[1] to simulate
two-way behavior before it become truly one-way.

InputMethodManagerService#removeImeSurfaceFromWindow()
simply post the task into its message queue hence we
should able to safely convert this method into one-way.

-. Remove IVoidResultCallback for this method
-. Rename it to removeImeSurfaceFromWindowAsync

[1]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067

Bug: 179668859
Bug: 185277968
Test: Manual test with b/179668859 steps, and works fine
Test: atest CtsInputMethodTestCases
Change-Id: Id28698e263a23ec4a6e4f89438eba5d19bbbabbb
2021-04-14 13:04:32 +08:00
Dmitri Plotnikov
9e19e96ad0 Remove POWER_COMPONENT_USAGE and TIME_COMPONENT_USAGE
... and use specific power components, such as POWER_COMPONENT_SCREEN

Bug: 184397335
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryStatsViewerActivity
Change-Id: I551b2d37d2da77e21e622961f5290b55fb24da61
2021-04-13 21:59:26 -07:00
Bill Yi
4167bf213c Merge RQ2A.210405.006 to aosp-master - DO NOT MERGE
Merged-In: I735b41ed53ce7d374b5d36c4aee79f73d0334234
Merged-In: I9999bfe514fffa9f300643e74942db5ae556670a
Change-Id: If4b670a158e561d8feb03e12aef2d295c5109d43
2021-04-13 19:36:45 -07:00
Suprabh Shukla
1698c0705e Merge "Suspend dialog improvememts" into sc-dev am: 9da117df72
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14150368

Change-Id: Icda2d764a05d9ec22cf7622a731cd94040e559c0
2021-04-14 00:08:56 +00:00
Suprabh Shukla
9da117df72 Merge "Suspend dialog improvememts" into sc-dev 2021-04-13 23:57:38 +00:00
Dmitri Plotnikov
27ec6b50da Merge "Add BatteryConsumer.getCustomPowerComponentName() and getCustomPowerComponentCount()" into sc-dev am: 07bc3d6d95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14145993

Change-Id: Ida3b1050ac168abaed05e7ff2859ec50ecb76fd8
2021-04-13 23:49:21 +00:00
Dmitri Plotnikov
07bc3d6d95 Merge "Add BatteryConsumer.getCustomPowerComponentName() and getCustomPowerComponentCount()" into sc-dev 2021-04-13 23:44:29 +00:00
TreeHugger Robot
b890d019fa Merge "ConfirmUserCreationActivity hide non-sys overlays" into sc-dev am: 311c3aea77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14129558

Change-Id: I7a9eec2686b3a6da5fcaa89d684ada6f443dd682
2021-04-13 23:04:02 +00:00
TreeHugger Robot
311c3aea77 Merge "ConfirmUserCreationActivity hide non-sys overlays" into sc-dev 2021-04-13 22:56:38 +00:00