Commit Graph

16075 Commits

Author SHA1 Message Date
Lucas Dupin
15565a139c Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621 am: f9215ba0ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: I68ae0f0233134718317dac205deac5a7a61d3d6d
2021-04-25 02:14:08 +00:00
Lucas Dupin
f9215ba0ef Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: I4a1b6666bbb1abd91641b256c3b5a2ddd119ca04
2021-04-25 02:00:36 +00:00
Lucas Dupin
477aab1fa3 Merge "A new shade pull down animation" into sc-dev 2021-04-25 01:03:18 +00:00
Lucas Dupin
370279459d Color extraction OWNERS
Bug: 184891403
Test: none
Change-Id: Ieba5767a8c6f465bf8eca28c277aba5b9a6b7f9b
2021-04-24 13:51:21 -07:00
Lucas Dupin
976de38e37 A new shade pull down animation
Test: manual
Test: atest ScrimViewTest
Test: atest ScrimControllerTest
Bug: 185683835
Fixes: 184891403
Change-Id: I1c51f3dc0d8afe97457aea8712c4322ebbda6ae4
2021-04-24 13:08:34 -07:00
Santos Cordon
33946ea33f Merge "Add listener for brightness-specific changes." into sc-dev 2021-04-24 15:38:20 +00:00
TreeHugger Robot
7edccec5c6 Merge "Avoid NetInitiatedActivity overlaid by non-system apps" into sc-dev 2021-04-24 03:41:24 +00:00
Santos Cordon
e5dae0ddc5 Add listener for brightness-specific changes.
Add FLAG to registerDisplayListener method to receive
brightness-specific changes.

getBrightnessInfo() method added to
android.view.Display to get brightness value, min, max
and highBrightnessMode status.

Bug: 168210311
Bug: 171023136
Test: atest com.android.server.display
Change-Id: I581e86e039cc7cf1bbca4cf7af03daa41dbddfe0
2021-04-23 22:18:55 +01:00
Yu-Han Yang
b7e17b9a74 Avoid NetInitiatedActivity overlaid by non-system apps
Bug: 181588735
Test: tests passing
Change-Id: I95868b786ed8a57f77f4f27fde96e88c6b9f04dc
2021-04-23 13:59:47 -07:00
Song Hu
0482828ca6 Merge "Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export." into sc-dev 2021-04-23 17:10:16 +00:00
Jorim Jaggi
469c53f256 Merge "Only start tracing in the next frame" into sc-dev 2021-04-23 16:23:12 +00:00
Jorim Jaggi
e941d4e58b Only start tracing in the next frame
In order to match tracing markers with the metrics, we should start
the tracing marker at the beginning of the next frame, as this is
also the point in time where we start counting janky frames.

Test: Take trace, inspect
Bug: 185902609
Change-Id: I2ec70b3fc2d3236bc24891ef698fdd7ac2917b01
2021-04-23 15:20:10 +02:00
Song Hu
e55e544fef Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export.
Test: test on local device
Bug: 185423664
Change-Id: I2710a727d4fc4fabaa1404d965feaa0c97d502fc
2021-04-23 05:36:10 -07:00
Tony Huang
faa060ae15 Merge "Make AppTransition animations sharable (3/n)" into sc-dev 2021-04-23 04:03:10 +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
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
Evan Severson
171fe09c3c Merge "Remove package manager feature for toggles" into sc-dev 2021-04-22 16:38:36 +00:00
Tony Huang
1c7fcdb9ca Make AppTransition animations sharable (3/n)
Handle animation include keyguard, voice interaction and relaunch
in default shell transition.

Bug: 178678389
Test: manual
Change-Id: I45e3f400bc3537bbbcd9d45f388312b8fe962579
2021-04-22 14:49:16 +08:00
Wilson Wu
75f46d33c8 Merge "Make IInputMethodPrivilegedOperations to async (3/N)" into sc-dev 2021-04-22 04:50:11 +00:00
Dmitri Plotnikov
05b84c584e Merge "Save power component names in the summary parcel for MeasuredEnergySnapshot" into sc-dev 2021-04-21 20:58:32 +00:00
Pinyao Ting
d9b11089e7 Merge "Implement Device Flag for shortcut integration with AppSearch" into sc-dev 2021-04-21 07:24:42 +00:00
Tianjie
6720f179f8 Check the return value of RoR preparation/clear
The corresponding functions already has a boolean return value in the
reboot escrow manager. So expose the return value to the recovery
system.

Test: build, check return value of request
Change-Id: I056956075868ab62ba6a43259242c4521c1c1bfe
2021-04-20 22:12:18 -07:00
Dmitri Plotnikov
442b6a80a4 Save power component names in the summary parcel for MeasuredEnergySnapshot
This is the second attempt at Ibb68bb2ee62678db5f3b30c4f2ef607006ccc81b, which
broke a test

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: I9f65488a682233c49d47d73fc9426b76aab07627
2021-04-20 18:24:54 -07:00
Evan Severson
6a8d3dc686 Remove package manager feature for toggles
Create a dedicated api in the sensor privacy service to check if the
toggle is supported.

Also address some other api feedback and also rename the older mute
feature to all-sensors so that there are no longer overloaded methods
with different functions.

Test: Checkbuild, CtsSensorPrivacyTestCases, Manual
Fixes: 181681375
Change-Id: I655544846310e864ec8479ce8f93aee2860824f7
2021-04-20 16:37:55 -07: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
Wilson Wu
c84b3e15df Make IInputMethodPrivilegedOperations to async (3/N)
-. Remove VoidResultCallback of reportFullscreenMode
   and let it be truly asynchronous.
-. Rename this method to reportFullscreenModeAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Test: Manually verified as follows.
   1. Build flame-userdebug and flash it.
   2. Make sure that the screen rotation is enabled.
   3. make -j SoftKeyboard
   4. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
   5. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
   6. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
   7. make -j EditTextVariations
   8. adb install -r $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/arm64/EditTextVariations.apk
   9. adb shell am start -n com.android.inputmethod.tools.edittextvariations/.EditTextVariations
  10. Make sure that the device is in the landscape mode,
      and the SoftKeyboard sample IME is not yet shown.
  11. adb shell dumpsys input_method | grep mFullscreenMode
      Then make sure the mFullscreenMode is "false"
  12. Tap the first edit field then make sure that SoftKeyboard
      sample IME becomes visible in the fullscreen mode.
  13. adb shell dumpsys input_method | grep mFullscreenMode
      Then make sure the mFullscreenMode is "true"
  14. Tap the down button on the navbar to hide the SoftKeyboard
      sample IME.
  15. adb shell dumpsys input_method | grep mFullscreenMode
      Then make sure the mFullscreenMode is "false"

Change-Id: I92e8b0d420be3dd16cc4f3ba29e0bde5f12ab2ce
2021-04-20 17:46:27 +08: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