Commit Graph

15716 Commits

Author SHA1 Message Date
Song Hu
5630022884 Merge "Implement dark launch logic for sharesheet aiai model. Route the sharesheet user interaction from PeopleService to Remote Prediction Service, while PeopleService is making inference for sharesheet. It is guarded by the flag "adb shell device_config put systemui dark_launch_remote_prediction_service_enabled true"" 2021-02-24 14:14:34 +00:00
Wu Ahan
620a10983d Merge "Send broadcast to notify the events of a CUJ session" into sc-dev am: f6ed5fc57c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13417775

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1e8fa12ffd72f180aff25304beb2bf27964b217
2021-02-24 03:03:59 +00:00
Wu Ahan
f6ed5fc57c Merge "Send broadcast to notify the events of a CUJ session" into sc-dev 2021-02-24 02:48:48 +00:00
Song Hu
51daca2ea3 Implement dark launch logic for sharesheet aiai model. Route the sharesheet user interaction from PeopleService to Remote Prediction Service, while PeopleService is making inference for sharesheet.
It is guarded by the flag "adb shell device_config put systemui dark_launch_remote_prediction_service_enabled true"

Test: test on local device
Bug: 180933488
Change-Id: I7db52c69224e69ad3125362185e2ffd1a474bb78
2021-02-23 17:49:51 -08:00
Lucas Dupin
8a092cc39a Merge "Revert "[framework] Integrate new quantizers"" into sc-dev am: e36c4de103
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13679700

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I14b1f05562c2c46aba8f541179c6004634b5c890
2021-02-24 01:23:45 +00:00
Lucas Dupin
e36c4de103 Merge "Revert "[framework] Integrate new quantizers"" into sc-dev 2021-02-24 01:00:49 +00:00
James O'Leary
96169052c4 Revert "[framework] Integrate new quantizers"
Revert "[sysuig] Integrate Monet color extraction to theme algorithm"

Revert submission 13554372-kahuna

Reason for revert: Colors on some wallpapers shifted, and Lucas found a couple big reasons why, would rather revert a revert tomorrow than fix forward today
Reverted Changes:
I2c3df9f71:[sysuig] Integrate Monet color extraction to theme...
I0fc60a134:[framework] Integrate new quantizers

Change-Id: I7eb8e4fde243bf62e8c750f88028db0a427560b5
2021-02-24 00:33:02 +00:00
TreeHugger Robot
c95de73565 Merge "Revert "Do not propogate test api access flags to Zygote."" into sc-dev am: 9132e2def2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13669305

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I236660d9a1808dce5b02d4261fc4651501868ab4
2021-02-23 21:51:59 +00:00
TreeHugger Robot
9132e2def2 Merge "Revert "Do not propogate test api access flags to Zygote."" into sc-dev 2021-02-23 21:12:41 +00:00
James O'Leary
a8bc221e63 Merge "[framework] Integrate new quantizers" into sc-dev am: c7d315947d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13553700

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia4db79eb69b8a2fb619d04b7b7b9ef2320655ad0
2021-02-23 20:25:01 +00:00
James O'Leary
c7d315947d Merge "[framework] Integrate new quantizers" into sc-dev 2021-02-23 20:20:39 +00:00
satayev
cb9fb0aaaf Revert "Do not propogate test api access flags to Zygote."
This reverts commit bff33b8c31.

Reason for revert: cts tests on -user builds is broken

Bug: 147113465
Change-Id: I2edf200561f839e49e067403714ea6fa65bdc978
2021-02-23 18:28:32 +00:00
Taran Singh
5b83255e69 Merge "Avoid IME restart for configChanges" into sc-dev am: 6ba3501f98
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13417792

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9a7461a97bb7b337ee92589f906b33a390a31fa6
2021-02-23 15:38:05 +00:00
Taran Singh
6ba3501f98 Merge "Avoid IME restart for configChanges" into sc-dev 2021-02-23 15:04:42 +00:00
Tony Huang
ba7dab1b76 Merge "Make AppTransition animations sharable (2/n)" into sc-dev am: f9a0ccc0e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13425250

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6d9b0286583e5b8c061826faf23c63c4224fb5ca
2021-02-23 10:18:45 +00:00
Tony Huang
f9a0ccc0e7 Merge "Make AppTransition animations sharable (2/n)" into sc-dev 2021-02-23 09:26:05 +00:00
TreeHugger Robot
82d7412314 Merge "Further reduce LM memory cost" into sc-dev am: d2191dbad6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13545880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8dd157ecadf13724d68ddd197c155014e74d7f37
2021-02-22 22:16:08 +00:00
TreeHugger Robot
d2191dbad6 Merge "Further reduce LM memory cost" into sc-dev 2021-02-22 21:29:42 +00:00
Rafal Slawik
b3c8890111 Merge "Manage time_in_state tracking from one place" into sc-dev am: e4244b9d73
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13580619

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2c54dcf44bd581d9cda10fa28c5c97f721e42b4c
2021-02-22 20:55:43 +00:00
Rafal Slawik
e4244b9d73 Merge "Manage time_in_state tracking from one place" into sc-dev 2021-02-22 19:44:45 +00:00
Ahan Wu
320858c56f Send broadcast to notify the events of a CUJ session
Send broadcast to notify the CUJ events to who is interested in.

Bug: 171912046
Test: atest FrameworksCoreTests:InteractionJankMonitorTest
Test: atest FrameworksCoreTests:FrameTrackerTest
Change-Id: I91ab025385c635d15d7be6f7f12597e8900e2e5d
2021-02-22 19:24:56 +00:00
Soonil Nagarkar
514b570725 Merge "Added attribution tag to note listener" into sc-dev am: 7aa01124c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563045

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8f5abdec24ce6c2d2ebcf317e2a520c0b95e183a
2021-02-22 17:35:13 +00:00
Soonil Nagarkar
7aa01124c4 Merge "Added attribution tag to note listener" into sc-dev 2021-02-22 17:25:24 +00:00
Rafal Slawik
e7f1410a90 Manage time_in_state tracking from one place
Move functionality related to CPU time_in_state tracking to the
KernelCpuBpfTracking class:
- when to attach the eBPF program to start tracking
- provide available CPU frequencies
- provide CPU cluster (policy) information
- unify the interface of KernelCpuTotalBpfMapReader with other readers

This removes the dependency on the power profile when reading the
information about available frequencies and clusters. It also reduces
the code duplication for transforming that information in
StatsPullAtomService.

Bug: 179485697
Test: existing tests pass
Test: atest CpuStatsTests
Test: cmd stats pull-source 10010
Test: cmd stats pull-source 10095
Test: cmd stats pull-source 10096
Test: cmd stats pull-source 10098
Test: atest FrameworksCoreTests
Change-Id: I17041014343da167b8bdf027ad83887e78ba5c2d
2021-02-22 10:37:58 +00:00
Tony Huang
03c4d1e95c Make AppTransition animations sharable (2/n)
Handle basic animation in shell transition.

Bug: 175053726
Test: enable shell transition and check basic task open/close and
      activity open/close
Change-Id: I7046f8314261aaf554bac7bfced21e405faf79ac
2021-02-22 13:43:52 +08:00
James O'Leary
00f4c53592 [framework] Integrate new quantizers
- WuQuantizer, CelebiQuantizer, and WSMeansQuantizer for implementing
Celebi's weighted squared means algorithm for color extraction
- CentroidProvider interface added; allows easy switching of what
colorspace/dimensions is used for clustering during color extraction

Test: Run, switch between a bunch of wallpapers,
switch dark/light theme, repeat ad nauseum. Unit
tests in separate Android Studio project hosting
the library pass, will add those to Android in separate CL.
Fixes: 180641035

Change-Id: I0fc60a134f411845dab9d6c7d8553907849d0f8a
2021-02-21 23:46:08 -05:00
TreeHugger Robot
c1fd0badfc Merge "Measured energy for Ambient Display in BatteryUsageStats" into sc-dev am: 863e3fee2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13556589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia6c80f20a5ac02b2cc9c892bedfa78b5c479fb94
2021-02-21 20:12:50 +00:00
TreeHugger Robot
863e3fee2b Merge "Measured energy for Ambient Display in BatteryUsageStats" into sc-dev 2021-02-21 19:08:28 +00:00
Dmitri Plotnikov
5363df4157 Merge "Copy custom measured power to BatteryUsageStats" into sc-dev am: 919528f401
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13564227

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7c3c00c53721aaf0604cf718dbcb16961fe525c6
2021-02-21 18:35:11 +00:00
Dmitri Plotnikov
66a11604f5 Copy custom measured power to BatteryUsageStats
Bug: 158137862
Test: atest FrameworksCoreTests:com.android.internal.os.CustomMeasuredPowerCalculatorTest
Change-Id: I53a974baf773f35eb212f234755c553be45336ce
2021-02-20 13:38:48 -08:00
TreeHugger Robot
356c359096 Merge "Add discharge power estimates to BatteryUsageStats" into sc-dev am: 9fb89c22ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13538912

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I157de70b2b18f5c909712d575ebf8a64f59c2e7b
2021-02-20 21:13:34 +00:00
TreeHugger Robot
9fb89c22ca Merge "Add discharge power estimates to BatteryUsageStats" into sc-dev 2021-02-20 20:34:33 +00:00
Evan Rosky
da8c4c40b0 Merge "Don't rotate inputflinger's display" into sc-dev am: aa1d38db25
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13488460

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd72b7734f59bf0b25800392245ebe04ddd95f08
2021-02-20 02:09:31 +00:00
Evan Rosky
aa1d38db25 Merge "Don't rotate inputflinger's display" into sc-dev 2021-02-20 01:46:25 +00:00
Chloris Kuo
e7fdc59600 Merge "NAS Feedback API Change" into sc-dev am: f8cc3c16d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563511

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1820ffeb35b0865d54b6434ddb3c83384067b176
2021-02-19 23:18:34 +00:00
Chloris Kuo
f8cc3c16d8 Merge "NAS Feedback API Change" into sc-dev 2021-02-19 22:41:40 +00:00
Soonil Nagarkar
ab220fee70 Added attribution tag to note listener
Add attribution tag information for listeners on noteOps().

Bug: 180111317
Test: none
Change-Id: I39ae9af893b8c81b1d832c4c3dc876f16ffc301f
2021-02-19 13:17:59 -08:00
Jeff Sharkey
fbbe693527 Merge "Add OWNERS for palette library" am: 2a1600625c am: 43ae72c0f2 am: e7280d82d6 am: 792ba79a87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie6bb193d30ed1f35d25a37fdfdf7fcb46f4287af
2021-02-19 19:34:26 +00:00
Jeff Sharkey
792ba79a87 Merge "Add OWNERS for palette library" am: 2a1600625c am: 43ae72c0f2 am: e7280d82d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d5e8a2e59a7a4619a284ac15e004e73e9f291af
2021-02-19 19:20:23 +00:00
Jeff Sharkey
e7280d82d6 Merge "Add OWNERS for palette library" am: 2a1600625c am: 43ae72c0f2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c3112d0c50c4f26b73db77ac4a6e02553466d61
2021-02-19 19:15:46 +00:00
James O'Leary
2964b50d79 Add OWNERS for palette library
- dupin@ landed the folder & code in it originally
- good idea to move review off the plates of generic frameworks/base
OWNERS

Change-Id: I03a1e8ec00d5b658ee026a44038703e5b31ca52e
2021-02-19 18:04:06 +00:00
Dmitri Plotnikov
fc0ba64301 Add discharge power estimates to BatteryUsageStats
Bug: 158137862
Test: atest DischargedPowerCalculatorTest
Change-Id: I68e8ad491d92dca08bb7c49fadf663dd48ee2b90
2021-02-18 16:47:42 -08:00
Dmitri Plotnikov
8c2e375c1f Measured energy for Ambient Display in BatteryUsageStats
Bug: 178140704
Test: atest FrameworksCoreTests:com.android.internal.os.AmbientDisplayPowerCalculatorTest

Change-Id: I1a573c3e380777637b7c0466aa78a4cab4c05887
2021-02-18 14:25:50 -08:00
Taran Singh
d6f8a1ada1 Avoid IME restart for configChanges
Handle onConfigurationChanged() in order to prevent restarting
InputMethodService everytime. We introduce a new API attribute
"configChanges" in InputMethod(attrs.xml) which when declared
by IME, will be responsible for handling mentioned
configuration changes.

Bug: 167948419
Test: atest InputMethodServiceTest
    Manually:
      1. Patch Ie91e7a8e06b80864ef9409031e8543858552d70d to use dual
         display area.
      2. Open applications with editors on both display areas.
      3. Attach a debug point for IMS#onConfigurationChanged().
      4. Make sure IMS#resetStateForNewConfiguration() is not called
         when IME moves between these two identical DisplayAreas

Change-Id: Iff88b768c6b06cf5cf1fe9e97ee97f8f78e6f0bd
2021-02-18 18:22:27 +00:00
Greg Kaiser
e8b3bbe11c Merge "Revert "Throw IllegalArgumentException when calling"" 2021-02-18 14:44:25 +00:00
Josh Gao
a14cb037d5 Merge "Add proto tombstones to Dropbox." am: 3361ca6c56 am: 093e8d266a am: a1b7331722 am: c78b8d8dac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I97c11ec415ea6e8d1cb1b7f2be0ce4bfcaa951ca
2021-02-18 11:20:20 +00:00
Josh Gao
c78b8d8dac Merge "Add proto tombstones to Dropbox." am: 3361ca6c56 am: 093e8d266a am: a1b7331722
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I490ba33c58b47c29f0c828bd0f1bcbe7f1eb24c0
2021-02-18 10:49:24 +00:00
Josh Gao
a1b7331722 Merge "Add proto tombstones to Dropbox." am: 3361ca6c56 am: 093e8d266a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I828d8f22f643513cce2841470e272cc22231b138
2021-02-18 10:24:39 +00:00
Josh Gao
3361ca6c56 Merge "Add proto tombstones to Dropbox." 2021-02-18 08:41:55 +00:00
Evan Rosky
1db6aa54ae Don't rotate inputflinger's display
This "undoes" the rotation in incoming displayviewports
so that inputflinger always works in the orientation the display
grew-up in

It also modifies existing gesture-monitors to deal with unrotated
coordinates

This is behind a flag:
   adb shell setprop persist.debug.per_window_input_rotation 1

Bug: 179274888
Test: phone should work like normal
      atest MotionEventTest (coretests)
Change-Id: Iaa7ff7d62e9f756af2c9c622ec508c5e538ec8bd
2021-02-17 17:52:40 -08:00