Commit Graph

7975 Commits

Author SHA1 Message Date
Treehugger Robot
7bf6618a7c Merge "HDMICEC: Change hashcode for HdmiPortInfo" am: d8cd3c7d2d am: 8f4bb0a2a5 am: d489358491
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483970

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b51ab9aca8ae4708dc1b276eb23f549f3e13fcc
2020-12-11 10:52:27 +00:00
Dmitri Plotnikov
f9a4ec89dc Initial integration of BatteryUsageStats into PowerStatsViewer
Bug: 170134969
Test: mp :PowerStatsViewer && adb shell am start -n com.android.frameworks.core.powerstatsviewer/.PowerStatsViewerActivity
Change-Id: Ie409ee5de329a8e6a64f2bbf44efa49e9be3e336
2020-12-10 17:07:48 -08:00
Dmitri Plotnikov
850f34160b Add OWNERS for battery stats directories
Test: N/A
Change-Id: Ie25835acc58e9246b2a52e92ee34fcc321b0eed1
2020-12-10 12:58:35 -08:00
Jorim Jaggi
74860c6032 OWNERS for SysUI Jank (2/2)
Change-Id: Ibbff0f34497eee521abb5fc1c93c4a2bd320907b
2020-12-10 18:10:48 +00:00
Treehugger Robot
d8cd3c7d2d Merge "HDMICEC: Change hashcode for HdmiPortInfo" 2020-12-10 15:59:53 +00:00
Riddle Hsu
c7a457ff24 Merge "Send IActivityClientController to client when launching activity" 2020-12-10 15:15:41 +00:00
TreeHugger Robot
0ba049d769 Merge "Create parcelable VibratorInfo to expose HAL profile" 2020-12-10 15:13:38 +00:00
TreeHugger Robot
2c70cd586b Merge changes I944dc1cd,I97c962d5
* changes:
  Track CEC version of CEC devices
  Add HdmiDeviceInfo#mHdmiCecVersion
2020-12-10 12:23:49 +00:00
Dmitri Plotnikov
62d862082b Merge "Use eBPF-based time-in-state monitoring for groups of threads" 2020-12-10 03:31:06 +00:00
Dmitri Plotnikov
a7b599b824 Use eBPF-based time-in-state monitoring for groups of threads
Bug: 169279846

Test: atest FrameworksCoreTests:com.android.internal.os.KernelSingleProcessCpuThreadReaderTest
Test: atest FrameworksCoreTests:com.android.internal.os.SystemServerCpuThreadReaderTest
Change-Id: Ic06fe30bc1b602470c18bf89d3380ae2bca7ed3c
2020-12-09 16:44:23 -08:00
Marvin Ramin
6f69264f75 Add HdmiDeviceInfo#mHdmiCecVersion
Store CEC version for each device. Defaults to HDMI CEC 1.4b.

Bug: 174732339
Test: make; atest HdmiDeviceInfoTest

Change-Id: I97c962d58b16ddfab9010a1738670a107e12481f
2020-12-09 09:44:05 +01:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
9af6ac78b0 Merge changes from topic "dec5" am: c2793cf12b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifdc390f5ae046c515a30158f3f55b831be147547
2020-12-08 16:05:11 +00:00
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script that
identifies relevant "include" directives.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-08 08:36:28 -07:00
Riddle Hsu
8d2b58b210 Send IActivityClientController to client when launching activity
This reduces 2 binder transactions when launching activity:
- Get IActivityTaskManager from ServiceManager
- Get IActivityClientController from IActivityTaskManager

Bug: 174800802
Bug: 174041144
Test: "am start -n ${activity_name} -W -S -P /data/local/tmp/test.trace"
      There should not have ActivityTaskManager#getService and
      IActivityTaskManager#getActivityClientController from any
      methods of ActivityClient.

Change-Id: I5ebf8d0764205f338ef53bbb8dfd8b5d0b7f9811
2020-12-08 15:53:59 +08:00
Xin Li
8836e88707 DO NOT MERGE - Merge RQ1A.201205.011
Bug: 172690556
Merged-In: I26bed08456197721d07f2fab563be0c54e43efd2
Change-Id: Ic1ac100efa50687ccfcbb87ee91a57703105afad
2020-12-07 00:39:42 -08:00
Alexander Dorokhine
2b8c1ecae4 Merge "Update AppSearch code from Jetpack." 2020-12-07 06:24:53 +00:00
Dan Shi
90637223dd Merge "Move CtsTelecomTestCases to group presubmit-large" am: 471929b98f am: 9586d4d46c am: e555468ed8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1516543

Change-Id: I4c7168c4e2cd436c83ca26244b4de984f4d54e61
2020-12-05 22:15:08 +00:00
Dan Shi
e555468ed8 Merge "Move CtsTelecomTestCases to group presubmit-large" am: 471929b98f am: 9586d4d46c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1516543

Change-Id: I9acb97948b599479ee2055508a7aa94c3ffb53a5
2020-12-05 02:19:53 +00:00
Dan Shi
9586d4d46c Merge "Move CtsTelecomTestCases to group presubmit-large" am: 471929b98f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1516543

Change-Id: I6e6da25a263d0f7ab0245ce0ed71203ec6f743bf
2020-12-05 00:18:38 +00:00
Dan Shi
471929b98f Merge "Move CtsTelecomTestCases to group presubmit-large" 2020-12-04 23:27:17 +00:00
Jeff Sharkey
db4ae71beb Merge changes from topic "nov30"
* changes:
  Hand-migration to TypedXml interface.
  Mechanically apply TypedXml refaster template.
  Mechanical refactoring to new typed XML classes.
  Additional hand-migration to TypedXml interface.
  "Resolve" both human-readable and binary XML.
2020-12-04 21:32:44 +00:00
Treehugger Robot
5511a5181c Merge changes I1f880aa6,Ie8ba8208,Ic45aa87c,I04c1263a am: e98351f355 am: 460fe6a19e am: 69bac97865
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504104

Change-Id: If4ffe3ef0f9bcbbec98fad5a81b77badb3093775
2020-12-04 19:21:43 +00:00
Dan Shi
4d46518b6f Move CtsTelecomTestCases to group presubmit-large
Also move OverlayRemountedTest, RollbackTest

The test config takes longer than 15mins to run. Move it to a dedicated
group for running slow presubmit Test Mapping test.

Bug: 174654670
Bug: 174495337
Test: none
Change-Id: Ie134c5d171bd99cca908f316d03050001c22ac32
2020-12-04 18:14:10 +00:00
Treehugger Robot
69bac97865 Merge changes I1f880aa6,Ie8ba8208,Ic45aa87c,I04c1263a am: e98351f355 am: 460fe6a19e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504104

Change-Id: If541c5fcba1ac444d359741c5f5b12090c57003b
2020-12-04 18:00:46 +00:00
Brian Stack
c57e2123d4 Expose UwbManager through Context.getSystemService am: 3163bf0d35 am: 2557747c4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504101

Change-Id: I5213f04b2bf1f0db39a872ab7dd7f0d45fd60103
2020-12-04 18:00:40 +00:00
Treehugger Robot
460fe6a19e Merge changes I1f880aa6,Ie8ba8208,Ic45aa87c,I04c1263a am: e98351f355
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504104

Change-Id: Ib7e4e7b928b6fd72d3277f35a4123d26d206fe4d
2020-12-04 17:42:33 +00:00
Brian Stack
2557747c4d Expose UwbManager through Context.getSystemService am: 3163bf0d35
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504101

Change-Id: I14aa423224f37447024ddb4cc67cabe06d60a30a
2020-12-04 17:39:49 +00:00
Treehugger Robot
e98351f355 Merge changes I1f880aa6,Ie8ba8208,Ic45aa87c,I04c1263a
* changes:
  Add tests for UWB AdapterStateListener
  Implement UWB AdapterStateListener
  Implement UwbManager functions
  Expose UwbManager through Context.getSystemService
2020-12-04 16:56:26 +00:00
Lais Andrade
61ddb9473f Create parcelable VibratorInfo to expose HAL profile
This parcelable will replace the separated methods hasAmplitudeControl,
areEffectsSupported and arePrimitiveSupported from VibratorService.

VibratorManagerService will return this single parcelable, per vibator
id, to represent the HAL profile of that individual vibrator and be used
by Vibrator.java to explose some of that to the public API.

Bug: 167946816
Test: atest VibratorInfoTest
      atest VibratorManagerServiceTest
Change-Id: I09c191dd15a3cf38122ec6dc87b2d73f46c8cde6
2020-12-04 16:26:02 +00:00
Alexander Dorokhine
1e6072d831 Update AppSearch code from Jetpack.
* 31db05: Move visibility settings into SetSchemaRequest.
* af6646: Support retrieving the current database's schema.
* 468ec2: Minor comment fix.
* b67963: Refactor AppSearchImpl to use List instead of Set.
* 1ae2bc: Delete an assertion that bundle.equals(bundle).

Bug: 169883602
Bug: 172260083
Bug: 162450968
Bug: 174825775
Test: Presubmit
Change-Id: I485bc9d1d9980467f6bdde1f36b077c0a3e7f5b4
2020-12-04 02:57:22 -08:00
Jacky Kao
9e73bfc2f3 Allow A11yService to customize accessibility focus
1. Define and implement new APIs to set and get the stroke width
and color of the A11y focus rectangle.
2. New an AccessibilityFocusApperanceData variable with the default
value in the A11yUserState class, and it would be used in the A11y
framework.
3. When A11y services sets the stroke width and color of the focus
rectangle, A11yUserState will apply the same value through
A11yServiceConnection and notify this change to A11yManager.
4. When A11y services customized the data is disabled, reseting the
data in the A11yUserState and notifying this change to A11yManager.
5. When the ViewRootImpl gets the A11yFocusDrawable, it changes the
strokewidth and the color of this drawable based on the value from
A11yManager.

Bug: 141144573
Test: a11y CTS & unit tests

Change-Id: I1493f17f7cc25744e1435c9070218c6f7efa8bcf
2020-12-04 09:55:11 +08:00
Brian Stack
26728aefc2 Add tests for UWB AdapterStateListener
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I1f880aa6df30405960d4fa7442c23bc87eed5aaa
2020-12-03 17:45:55 -08:00
TreeHugger Robot
29bca68828 Merge "Move activity client operations to a separate interface" 2020-12-03 02:25:01 +00:00
Brian Stack
3163bf0d35 Expose UwbManager through Context.getSystemService
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I04c1263a191fcfeee5824be5d6d1944354819d02
Merged-In: I04c1263a191fcfeee5824be5d6d1944354819d02
2020-12-02 13:58:28 -08:00
TreeHugger Robot
1d2102b503 Merge "Expose UwbManager through Context.getSystemService" 2020-12-02 21:58:01 +00:00
Riddle Hsu
6d0979e211 Move activity client operations to a separate interface
This CL focuses on the methods used by Activity and ActivityThread.

Also remove getUriPermissionOwnerForActivity, notifyActivityDrawn
notifyLaunchTaskBehindComplete notifyEnterAnimationComplete
because they are only used between ATMS and WMS.

Bug: 174041144
Bug: 174040691
Test: CtsWindowManagerDeviceTestCases

Change-Id: I5a30ec30cf6acd9ae4c908e524141fd17a4e54ff
2020-12-02 23:14:09 +08:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00
Kohsuke Yatoh
ef091d3ff7 Merge "Prepare switching font loading to system server." 2020-12-02 07:14:27 +00:00
Brian Stack
7d47f2c4d8 Expose UwbManager through Context.getSystemService
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I04c1263a191fcfeee5824be5d6d1944354819d02
2020-12-01 20:10:01 -08:00
Treehugger Robot
30ab518467 Merge "HDMICEC: Override hashCode in HdmiDeviceInfo" am: 1d59ab8486 am: 76f22955a6 am: 8bee663c01
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460262

Change-Id: Ic457b69bdd32bc932aa1266c556ffe7ccdb5c21e
2020-12-02 01:44:41 +00:00
Treehugger Robot
8bee663c01 Merge "HDMICEC: Override hashCode in HdmiDeviceInfo" am: 1d59ab8486 am: 76f22955a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460262

Change-Id: I45b89565e6375c9231de0e36698fd025ab317d13
2020-12-02 01:35:34 +00:00
Kohsuke Yatoh
b11b963ed1 Prepare switching font loading to system server.
Currently, fonts are loaded in Zygote.
This CL adds a preparation to switch it to system server and
bindApplication(), so that system server will be able to update font map
at runtime.

(1) Zygote will be initialized without fonts.
(2) System server will maintain a serialized font map in ashmem.
(3) Apps will load font map from the ashmem in bindApplication().

The change is guarded by Typeface.ENABLE_LAZY_TYPEFACE_INITIALIZATION,
and the new behavior is disabled by default.
I tested with ENABLE_LAZY_TYPEFACE_INITIALIZATION = true.

Bug: 172891184
Test: atest FrameworksCoreTests:TypefaceTest
Test: atest CtsGraphicsTestCases
Test: atest CtsTextTestCases
Test: atest CtsWidgetTestCases
Change-Id: I40832962a4b27f6160c4dc6268689c52f6a4dd33
2020-12-01 16:05:33 -08:00
Flavio Fiszman
c36d7b0fb4 Merge "Substitute ShortcutInfo for PeopleSpaceTile." 2020-12-01 20:10:06 +00:00
Flavio Fiszman
e3d7a74db9 Substitute ShortcutInfo for PeopleSpaceTile.
Change-Id: I35570d8ef47822598450e958c1bcbd0d298a1371
Test: Build and run.
2020-12-01 17:14:06 +00:00
Jeff Sharkey
236c03b5c3 Mechanical refactoring to new typed XML classes.
Related changes are introducing new TypedXmlSerializer and
TypedXmlPullParser interfaces which offer efficient access to
primitive attributes.

Bug: 171832118
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ibd93f353ff3cb1f0b7073ebbeae17fe5194b046b
2020-11-30 20:45:25 -07:00
Jeff Sharkey
42bd76058f "Resolve" both human-readable and binary XML.
Recent refactorings have pivoted many XML users across the system
to call resolveSerializer() and resolvePullParser(), which gives us
an easy path to pivot between human-readable XML and our binary XML
wire format.

This change introduces a feature flag (still disabled by default)
for emitting binary XML by default when serializing.  It also adds
logic to automatically select the relevant parser by sniffing the
magic file header.

This is the key to our upgrade strategy: we'll gladly parse
human-readable XML from old devices, or binary XML from new devices.

Bug: 171832118
Test: atest FrameworksCoreTests:android.util.XmlTest
Test: atest FrameworksCoreTests:android.util.BinaryXmlTest
Change-Id: I14fdab9a6667819db38116a8ce126f5f2a5a04df
2020-11-30 20:45:25 -07:00
Nikita Dubrovsky
83de85f7b6 Merge "Move/rename OnReceiveContentListener.Payload to android.view.ContentInfo" 2020-11-30 22:33:03 +00:00
Yinglei Wang
0a993aac9a Merge "setAccessibilityFocused for NumberPicker" 2020-11-30 22:17:43 +00:00
Nikita Dubrovsky
10f027f69f Move/rename OnReceiveContentListener.Payload to android.view.ContentInfo
Bug: 174125311
Test: atest CtsViewTestCases:ViewOnReceiveContentTest
Test: atest CtsWidgetTestCases:TextViewOnReceiveContentTest
Test: atest FrameworksCoreTests:TextViewOnReceiveContentTest
Change-Id: If3988dfe9dbed6bcd5e1f1566cb3ecdb111aef3f
2020-11-27 15:50:31 -08:00