Commit Graph

16604 Commits

Author SHA1 Message Date
George Mount
930d7b4eb7 Remove edge effect type from the API. am: b1aee44bea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14390423

Change-Id: If4f4c564adbcd2cc6d455f8224ad930cb6f07d4d
2021-05-04 04:46:58 +00:00
Dmitri Plotnikov
8caa905595 Merge "Use battery capacity estimates provided by Health HAL" into sc-dev am: 1d211e046e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14372226

Change-Id: Ic7aa7af6e61ce33a42833db108c415b582afa1fa
2021-05-04 04:22:03 +00:00
Dmitri Plotnikov
f7faf95827 Merge "Remove SystemBatteryConsumer" into sc-dev am: acc4e1454e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14393698

Change-Id: I30985e6f846ac83335d353250e2e2b267f4118d9
2021-05-04 02:49:11 +00:00
Dmitri Plotnikov
daa86f4f6a Use battery capacity estimates provided by Health HAL
Bug: 186807039
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryChargeCalculatorTest
Change-Id: I4eb1606843ca1f2f2c0589e0abe6408f6be149c5
2021-05-03 18:50:32 -07:00
Dmitri Plotnikov
acc4e1454e Merge "Remove SystemBatteryConsumer" into sc-dev 2021-05-04 01:47:34 +00:00
Dmitri Plotnikov
79e65de313 Remove SystemBatteryConsumer
which has been superceded by AggegateBatteryConsumer

Bug: 186006876
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Test: Use BatteryStatsViewer to verify that it's still functional
Change-Id: I2e4fe36ff310b6d68923fcecdfd22ce865b1f32d
2021-05-03 16:03:39 -07:00
Sudheer Shanka
ff81c2f982 Merge "Include uid in batterystats logs." into sc-dev am: b1b9e93270
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14409011

Change-Id: I50e10f58ab8a554310b15557adc542e554a44cf3
2021-05-03 22:53:17 +00:00
George Mount
b1aee44bea Remove edge effect type from the API.
Fixes: 186758538

Relnote: "Removes edge effect type from the API -- EdgeEffect now
supports only stretch edge effect for all applications."

Test: existing tests, modified to work with stretch
Change-Id: Iec7a9d4a0316ff3ba7297c4565bb881a1adcf949
2021-05-03 22:45:10 +00:00
Sudheer Shanka
b1b9e93270 Merge "Include uid in batterystats logs." into sc-dev 2021-05-03 22:40:02 +00:00
Nikita Dubrovsky
5dd1d1490a Merge "Release drag-and-drop URI permissions on gc if not tied to an activity" into sc-dev am: f3c059b9f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14344094

Change-Id: If433da500c2b48ccb3825c096920ccc0ce93fb42
2021-05-03 22:15:07 +00:00
Nikita Dubrovsky
f3c059b9f0 Merge "Release drag-and-drop URI permissions on gc if not tied to an activity" into sc-dev 2021-05-03 21:53:10 +00:00
Dmitri Plotnikov
86cafdd5f6 Merge "Aggregate power data in AggregateBatteryConsumers" into sc-dev am: 012689e349
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14318489

Change-Id: Ic34d153f827023fc179f81576cde67781ba944fb
2021-05-03 20:47:41 +00:00
Dmitri Plotnikov
012689e349 Merge "Aggregate power data in AggregateBatteryConsumers" into sc-dev 2021-05-03 20:40:25 +00:00
Lucas Dupin
553da0ab8d Merge "Color appearance model library" into sc-dev am: 964a1715eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14269706

Change-Id: Ic846de8694bc7384a9c4f2c4eb95bf04537d6abc
2021-05-03 17:41:47 +00:00
Lucas Dupin
964a1715eb Merge "Color appearance model library" into sc-dev 2021-05-03 17:23:47 +00:00
Nikita Dubrovsky
f333d26f0d Release drag-and-drop URI permissions on gc if not tied to an activity
The implementation for drag-and-drop provides two ways of taking URI
permissions: a public API that ties permissions to an activity and
an internal API that grants "transient" permissions. The latter is
used in a single code path: dropping content into an editable
TextView (implemented in android.widget.Editor).

The transient code path was previously (Android R and below)
implemented using a try/finally block in Editor.onDrop. The change
I7ae38069fb741925211b42c7ff28784eb9722ce3 had updated that logic to
tie permissions to the app process lifecycle instead, to account for
the new OnReceiveContentListener which apps can use to implement
custom drop handling (and use a background thread to do the processing
of the content). The problem with having permissions tied to the app
process lifecycle is that the app process could potentially be
long-running.

This change updates the logic to tie transient permissions to the
DragAndDropPermissions object lifecycle (release whenever there are no
more reference to the object and it is garbage collected). This
follows the same approach as used for IME permission grants
(InputContentInfo.java and InputContentUriTokenHandler.java).

Bug: 181178998
Test: atest CtsWindowManagerDeviceTestCases:CrossAppDragAndDropTests
Test: Manually verified using development/samples/ReceiveContentDemo
Change-Id: I950d4572ee19af64da1ace1572fe12e17d09c609
2021-05-03 16:36:56 +00:00
Sudheer Shanka
b01bfadaa1 Include uid in batterystats logs.
Bug: 182272121
Test: n/a
Change-Id: Ic5cbc02b4d72c7dd5b916e9eb1954438cc81492f
2021-05-02 21:33:05 -07:00
TreeHugger Robot
93647df771 Merge "Make IInputMethodManager#reportActivityViewAsync() truly async" into sc-dev am: 096c8547d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14391522

Change-Id: Iff394739d5d27e0cc1ceb15e42c37589b07f092f
2021-05-01 08:05:35 +00:00
TreeHugger Robot
096c8547d3 Merge "Make IInputMethodManager#reportActivityViewAsync() truly async" into sc-dev 2021-05-01 07:51:21 +00:00
Winson Chiu
9863b99f7b Merge changes Ie90dc390,Ia9513817 into sc-dev am: 627cac02ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14116366

Change-Id: Icc54b54a406babf1c4c3fac6ec53375ce4681093
2021-04-30 21:43:09 +00:00
Winson Chiu
627cac02ad Merge changes Ie90dc390,Ia9513817 into sc-dev
* changes:
  Strip invalid domains in DVS#addPackage
  Move withPackageSettingsSnapshot methods into PackageManagerInternal
2021-04-30 21:24:05 +00:00
Florian Mayer
0f7d78bfe7 Merge changes from topic "playprofileable" into sc-dev am: 748c3a8040
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14328127

Change-Id: I26cbadace6a71fe9195eb0271224514ae5f73332
2021-04-30 20:50:12 +00:00
Florian Mayer
748c3a8040 Merge changes from topic "playprofileable" into sc-dev
* changes:
  Add packageInstaller to packages.list.
  Add profileable opt-out to packages.list.
2021-04-30 20:42:16 +00:00
Dmitri Plotnikov
d354520023 Aggregate power data in AggregateBatteryConsumers
as opposed to SystemBatteryConsumers, which will be removed
in a follow-up CL

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

Change-Id: Ie4166217be211d92293c2a107762801a7d3c206f
2021-04-30 13:09:32 -07:00
Yohei Yukawa
4baf2915d8 Make IInputMethodManager#reportActivityViewAsync() truly async
It turns out that IInputMethodManager#reportActivityView() [1], which
was added a few years ago to support CursorAnchorInfo API on edit
fields hosted on an ActivityView [1], is now also used by task
organizer [2].  This means that we would continue living with this
@hide API for a while even after ActivityView gets completely removed
at Bug 179161778.  Then, converting this IPC into truly asynchronous
would probably make sense.

There should be no behavior change unless the target IME client is
running on an embedded display environment.

 [1]: Id0411a80456182111bb5b681c6d1230b58e7ec2e
      b4f328a2f3
 [2]: Id422bb2547197c617f914ed7cf5085e02a1c3fb5
      a1f869d10e

Fix: 186874025
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Change-Id: I0463e8e9daaa8ab6d3eadb395843ca5e6bc1bb5e
2021-04-30 12:29:39 -07:00
Winson
a74c1f3c69 Move withPackageSettingsSnapshot methods into PackageManagerInternal
For consumers who don't care about blocking package data updates and
only need data at a specific snapshot in time, these methods would
avoid locking PMS during the iteration process.

Bug: 183643808

Test: atest com.android.server.pm.test.verify.domain

Change-Id: Ia951381798d75f77c4ad5fc010a469b69992f074
2021-04-30 10:46:32 -07:00
Winson Chiu
55bd899358 Merge "Implement domain verification backup and restore" into sc-dev am: 1b8610d9a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14058688

Change-Id: I787ebecf9a70b0debff5f634e411f06f79e4c0f1
2021-04-30 16:22:33 +00:00
Winson Chiu
1b8610d9a9 Merge "Implement domain verification backup and restore" into sc-dev 2021-04-30 16:17:30 +00:00
Florian Mayer
6ea939f3bf Add profileable opt-out to packages.list.
We now have two notions of profileable:
 * profileable from shell: the user can profile the app using ADB-based
   tools (e.g. Android Studio or shell) . This is off unless the app
   opts in.
 * profileable from platform services: trusted platform services can,
   in accordance to the app installer's Terms Of Service profile the
   app. This is the default unless the app opts out. This is enforced
   by the profilers with information provided by the framework.

A new flag <profileable android:enable="false"/> can be used to opt out
of profiling in general. If this is not given, the app is considered
profilable by the platform, but the data will *not* be exposed to the
user via shell or adb. If profiles of the app should be given to the
user (e.g. for using Android Studio), <profileable
android:shell="true"/> can can still be used.

We write whether the app opted out or not to packages.list, to be
consumed by the profilers.

CTS-Coverage-Bug: 186720347

Test: m
Test: on userdebug: /data/system/packages.list for preinstalled, Play
      Store installed app and sideloaded app.
Test: on user: atest CtsPerfettoTestCases.
Bug: 170284829

Change-Id: I8d4bbedc043976fd11a95a511bd95a05c7ced7b9
2021-04-30 11:52:31 +00:00
PETER LIANG
13d8af4654 Merge "Fix the GAR issue of all the icons on A11y FM have no meaningful A11y label." into sc-dev am: 42c7ce491e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14029497

Change-Id: I47f9a2c343d65bcac73ee448c77d3296d896d677
2021-04-30 03:55:53 +00:00
PETER LIANG
42c7ce491e Merge "Fix the GAR issue of all the icons on A11y FM have no meaningful A11y label." into sc-dev 2021-04-30 03:51:13 +00:00
Taran Singh
07e8aab542 Merge "Add log for showSoftInput called from Insets API" into sc-dev am: 2fef6def9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326771

Change-Id: I21a0eae90c592a9ad4364b74ea76858532ce7904
2021-04-29 23:01:30 +00:00
Taran Singh
2fef6def9a Merge "Add log for showSoftInput called from Insets API" into sc-dev 2021-04-29 22:41:26 +00:00
Jing Ji
74716a5698 Merge "Add state BOUND_FGS_OR_TOP and FGS into ProcessState Enum in ProcStats" into sc-dev am: be5425c6fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14329729

Change-Id: I3aa13d7c59ff0bd86447b33b63d3ccfb38202346
2021-04-29 21:42:31 +00:00
Jing Ji
be5425c6fd Merge "Add state BOUND_FGS_OR_TOP and FGS into ProcessState Enum in ProcStats" into sc-dev 2021-04-29 21:23:11 +00:00
Jing Ji
2de0167f43 Merge "Support aggregation over association sources per process" into sc-dev am: 72eee56f06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14318108

Change-Id: I62bec4da1820e1e7c6e988bc0c172ded3d296cd0
2021-04-29 21:01:02 +00:00
Jing Ji
72eee56f06 Merge "Support aggregation over association sources per process" into sc-dev 2021-04-29 20:46:50 +00:00
Jing Ji
9d28fa063d Add state BOUND_FGS_OR_TOP and FGS into ProcessState Enum in ProcStats
Previously these two states in AMS are being mapped into the ImpFg
in the ProcStats, we were unable to distinguish them in the aggregated
proc stats. Now with these two new states in ProcStats, the process
states we're using in AMS could be mapped into them, and eventually
get mapped into the state definition in the aggregated proc stats.

Bug: 186438656
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Test: atest CtsStatsdHostTestCases
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: I94eaa18d9c99f90200603fd0aafe198b62e963f7
2021-04-29 10:05:19 -07:00
James O'Leary
7c985766df Merge "Don't use pow for distance calculation" into sc-dev am: 3d121b7119
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14328435

Change-Id: I0e1ac4a60e5fa388f36c41fd77447c4b24dc9f61
2021-04-29 16:31:27 +00:00
James O'Leary
3d121b7119 Merge "Don't use pow for distance calculation" into sc-dev 2021-04-29 15:55:49 +00:00
James O'Leary
fada9e8571 Don't use pow for distance calculation
Bug: 186664313
Test: `mp droid`, verify wallpaper extraction continues to succeed
Change-Id: I8136522379abfe5cbce83beae904559e68725aca
2021-04-29 11:48:39 -04:00
James O'Leary
a23d054838 Color appearance model library
Create colors using CAM16 hue and chroma, L*a*b* L*,
and map them to RGB without distortion.

Test: atest FrameworksCoreTests:com.android.internal.graphics.cam
.CamTest, all passed. No link, atest/my build are broken and cannot
upload results.
Bug: 186640057
Change-Id: I64b605dd452d64e57be0047d2e4672917c01c2a8
2021-04-29 11:40:47 -04:00
Baligh Uddin
4938aed9ec Merge "Remove annotations that have been relocated" 2021-04-29 14:01:59 +00:00
Peter_Liang
6f90704f49 Fix the GAR issue of all the icons on A11y FM have no meaningful A11y label.
Patch action:
Add the state or content description into the corresponding feature target.

Bug: 178289063
Test: atest AccessibilityTargetAdapterTest AccessibilityTargetAdapterTest
Change-Id: I2f421da027bc95021ab24cadf8b3afdc30fa6d4a
2021-04-29 21:58:35 +08:00
Wilson Wu
d4f85e0d55 Merge "Make IInputMethodPrivilegedOperations to async (6/N)" into sc-dev am: f5cded5a11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326777

Change-Id: Ic62149144851084e9bd79307d12b0c9716b7eef3
2021-04-29 13:49:30 +00:00
Wilson Wu
37051aef38 Make IInputMethodPrivilegedOperations to async (6/N)
-. Remove VoidResultCallback of applyImeVisibility.
   and let it be truly asynchronous.
-. Rename this method to applyImeVisibilityAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Change-Id: Ica564c526223d32641a2485c0c0f3490fe4bfd39
2021-04-29 16:05:05 +08:00
Treehugger Robot
9ce6414a52 Merge "Internal graphics package owners" am: 1084a81a68 am: 8f7c666464 am: 3bbfa132e8 am: 1b68aeee56
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690227

Change-Id: I5cc9389ee4e73d6510a339067383c2a53c43b595
2021-04-29 04:07:54 +00:00
Treehugger Robot
1b68aeee56 Merge "Internal graphics package owners" am: 1084a81a68 am: 8f7c666464 am: 3bbfa132e8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690227

Change-Id: If739aeeea360f864710746e133bedc335808da9d
2021-04-29 03:38:14 +00:00
Treehugger Robot
3bbfa132e8 Merge "Internal graphics package owners" am: 1084a81a68 am: 8f7c666464
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690227

Change-Id: Ic7ba3d5ea2be74c0860eb61d80aac078e17b48de
2021-04-29 03:35:43 +00:00
Yohei Yukawa
2876311a9f Merge "Make IInputMethodPrivilegedOperations to async (5/N)" into sc-dev am: c09a657113
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326776

Change-Id: I61c31f03ffa13101dc82ff2b08601ab3bedb7c80
2021-04-29 02:45:36 +00:00