Commit Graph

15341 Commits

Author SHA1 Message Date
Chloris Kuo
8047aec1e4 Merge "New DeviceConfig flags for NAS" 2020-12-15 02:43:04 +00:00
TreeHugger Robot
dfbda02fed Merge "Add SystemBatteryConsumer" 2020-12-14 22:07:09 +00:00
Wale Ogunwale
f7ecdf6988 Merge "Add more OWNERS coverages(2/n)" am: a2c85ce0ba am: 700b3d812f am: dfbbd0e5d7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527819

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0b99215f99e165cbfc0ee925878d291746d94163
2020-12-14 17:49:34 +00:00
Wale Ogunwale
dfbbd0e5d7 Merge "Add more OWNERS coverages(2/n)" am: a2c85ce0ba am: 700b3d812f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527819

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d1525ba52d4365241785b4789f7363aac0d32c4
2020-12-14 17:30:00 +00:00
TreeHugger Robot
f010d5dea2 Merge "Add Assistant Triggered EventTime" 2020-12-14 17:00:13 +00:00
Charles Chen
2c86c2cf8a Add more OWNERS coverages(2/n)
Test: manual
Bug: 174932174
Change-Id: Id6a4c60734f24a3d8fdec27b11baead550296441
2020-12-14 15:00:22 +08:00
TreeHugger Robot
331168f15a Merge "Use LatencyTracker to log the time of recents animation" 2020-12-14 05:31:09 +00:00
Treehugger Robot
431139218a Merge "Add missing IMF OWNERS" am: 4e3959e571 am: 30497d0911 am: 03ced7e52e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1525813

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5896f244b5d601ceec3da6d25cc2a1b633ff4f55
2020-12-12 02:54:04 +00:00
Treehugger Robot
03ced7e52e Merge "Add missing IMF OWNERS" am: 4e3959e571 am: 30497d0911
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1525813

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3534455778648e6be10ffedbd2d692656d88d318
2020-12-12 02:14:04 +00:00
Dmitri Plotnikov
32a19285aa Add SystemBatteryConsumer
Bug: 158137862
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryStatsViewerActivity

Change-Id: I436096fb4c268f4f03542c7334a8f448bf74a738
2020-12-12 01:53:14 +00:00
Evan Severson
df179c3d04 Merge changes I32ab8848,If470bc9a
* changes:
  Notify if a sensor is used but privacy is enabled
  Add flags to onOpNoted/Started callbacks
2020-12-11 18:36:17 +00:00
Adrian Roos
bb4c35d0d2 Add missing IMF OWNERS
Test: n/a
Change-Id: Ib1ec672f872a3b1faf65c3583e300f473bac8f0c
2020-12-11 17:02:19 +01:00
Chloris Kuo
1f8634ec20 New DeviceConfig flags for NAS
Add ENABLE_NAS_RANKING, ENABLE_NAS_PRIORITIZER, ENABLE_NAS_FEEDBACK

Test: atest NotificationManagerServiceTest; manual test on device
Bug: 175363481
Change-Id: I63ee375c14435e50ecaf755da6b7068af9afe57f
2020-12-11 03:14:41 -08:00
Jeff Sharkey
3ae096f1be Merge "Additional per-file OWNERS for shared directories." am: 8b102a5988 am: 7a9f3e10de am: 845bfdd0ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523618

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id32f96bb4acc5bd3a41cfd0750abfbba274c42cb
2020-12-11 10:51:09 +00:00
TreeHugger Robot
81be384dee Merge "Make IInputMethodManager to oneway (4/N)" 2020-12-11 07:09:19 +00:00
TreeHugger Robot
f52311f658 Merge "Add dumpsys and shell cmd for sensor_privacy" 2020-12-11 04:35:56 +00:00
Wilson Wu
5a5648dcb5 Make IInputMethodManager to oneway (4/N)
After CL[1], the client might be waiting forever when
system server throw Exception. The expected behavior
after throwing an Exception from the system server
should let the caller crash.

To keep the previous behavior, support exception as a
valid result for ResultCallback.

CL[1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64

Bug: 174263942
Bug: 163453493
Test: Throw an exception in system server and observe the
      caller crash with ResultCallback flow.
Test: atest CtsInputMethodTestCases
Change-Id: If79e063641a01b325c63eb9f871f5b992d7c0b72
2020-12-11 11:49:50 +08:00
Sam Saccone
bf33f70982 Merge "Revert "Temporarily replace "android.com" accounts."" 2020-12-10 23:05:03 +00:00
Dmitri Plotnikov
57fbbae2be Merge "Convert CpuPowerCalculator from using BatterySipper to UidBatteryConsumer" 2020-12-10 19:50:20 +00:00
Jeff Sharkey
7db7b68b9d Merge "Add per-file OWNERS for BatteryStats" 2020-12-10 19:00:08 +00:00
Dmitri Plotnikov
3ff453a944 Add per-file OWNERS for BatteryStats
Manual merge of https://r.android.com/1520758

Test: N/A

Change-Id: Ie9eef7eed7f097113074c3c5f3f7a7084a55f97b
2020-12-10 10:58:56 -08:00
Jorim Jaggi
b3886bcaeb OWNERS for SysUI JankTracker
Change-Id: Id8a467273f2dbd2addb395bcbe7dd3126fa79c3c
2020-12-10 16:38:55 +00:00
Jeff Sharkey
845bfdd0ba Merge "Additional per-file OWNERS for shared directories." am: 8b102a5988 am: 7a9f3e10de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523618

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9df0f96893728df43b3ae402ac69ec3e02079f51
2020-12-10 16:32:34 +00:00
TreeHugger Robot
0277812fc3 Merge "Fix wrong target launches in Chooser." into rvc-qpr-dev am: 14692e3d21
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13157627

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8cda83f18f3f057b139f8218079065987bc1de82
2020-12-10 16:08:36 +00:00
Riddle Hsu
df235a4d67 Use LatencyTracker to log the time of recents animation
The ACTION_TOGGLE_RECENTS on launcher side may be not close enough
to the user feeling because it cannot know the actual window drawn
time on system. And it may be mixed with 3 button navigation mode
which doesn't start recents animation. So here creates a new latency
type to log the case of recents animation explicitly.

Bug: 169221287
Test: Use gesture navigation mode and swipe up from an app. The log
      will show "LatencyTracker: action=8 latency=xx".
Change-Id: I660f472113684590b4eba40c0534da9dcf7773ce
2020-12-10 23:51:09 +08:00
TreeHugger Robot
14692e3d21 Merge "Fix wrong target launches in Chooser." into rvc-qpr-dev 2020-12-10 15:50:08 +00:00
Jeff Sharkey
e2cc3f8bec Additional per-file OWNERS for shared directories.
Iteration based on areas of tree where detailed ownership was found
to be missing during routine code reviews.

Also add more detailed examples to OWNERS.md.

Bug: 174932174
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I46ccef33b34594181ae8dc62973d68020f827d6b
2020-12-10 08:37:23 -07:00
Riddle Hsu
959d41c6cb Merge "Move launched activity info getter to ActivityClientController" 2020-12-10 15:32:58 +00:00
Jeff Sharkey
9bfd484087 Merge "Mitigate performance TypedXml regression." 2020-12-10 14:12:06 +00:00
Narayan Kamath
f6cf5abf47 Merge "ResolverActivity: Rename alwaysCheck to always." 2020-12-10 11:29:31 +00:00
Adam Bookatz
c8eaa82d5c Merge "Cleanup some SystemService.onUser...() comments" 2020-12-10 10:03:34 +00:00
Zoey Chen
cc8c3ba4a9 Merge "[Telephony] Implement onDataEnabled callback" 2020-12-10 08:46:15 +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
e786140e74 Convert CpuPowerCalculator from using BatterySipper to UidBatteryConsumer
Bug: 158137862
Test: Start Settings app, navigate to Apps, pick an app, navigate to Battery

Change-Id: I1ce3d1a0ece5419384c366e908523312651877ee
2020-12-09 18:17:18 -08: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
Adam Bookatz
4f2d2e84a4 Cleanup some SystemService.onUser...() comments
These functions were recently renamed, so this cl
updates a few comments referencing the old names.

Also removes an unused method.

Test: compiles (just comments and removing unused method)
Change-Id: Iaaf8fd4927c4ccf38fffb304c67ef139e626fdcf
2020-12-09 23:53:23 +00:00
Philip P. Moltmann
6a227526f1 Add dumpsys and shell cmd for sensor_privacy
E.g.

> adb shell dumpsys sensor_privacy
SENSOR PRIVACY MANAGER STATE (dumpsys sensor_privacy)
{
  is_enabled=false
}

> adb shell cmd sensor_privacy enable microphone

> adb shell dumpsys sensor_privacy
SENSOR PRIVACY MANAGER STATE (dumpsys sensor_privacy)
{
  is_enabled=false
  individual_enabled_sensor={
    sensor=1
    is_enabled=true
  }
}

Bug: 162549680
Test: Above shell commands
Change-Id: I5700ff5b0aae4f64d3bf54b5c51d8ab2779e5abf
2020-12-09 14:42:41 -08:00
Philip P. Moltmann
fd6a8c83a3 Add flags to onOpNoted/Started callbacks
This way clients can distingish actual trusted from untrusted ops.

Test: TH
Bug: 162549680
Change-Id: If470bc9a4503da6533d123def2f8e2dbe0644ca7
2020-12-09 14:42:41 -08:00
Jeff Sharkey
78e84716e6 Mitigate performance TypedXml regression.
When an attribute value is missing, we can immediately return the
default value instead of paying the cost of throwing an exception.

To bring this benefit to both human-readable and binary XML, this
is implemented by adding a new getAttributeIndex() lookup method
which is then used by default methods.

readExtraAttributes() also appears to be parsing a string list as
a boolean value (which seems very broken), so we add hand-rolled
parsing logic to avoid paying the cost of an exception.  Someone
should follow up in the future to investigate if there's an actual
bug here.

Bug: 174544002
Test: manual
Change-Id: Id313d18000e345ca1acd3c66d2c0c0fc44769b71
2020-12-09 12:18:05 -07:00
Johanna Ye
ea22f49eb3 Add Assistant Triggered EventTime
Test: ADT3 on adt3-userdebug, with RVIS as the default AssistService and
VoiceInteractionService reporting the intent extra.

12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS android.intent.extra.TIME: 926771
12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS invocation_time_ms: 926773
12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS ASSIST_INPUT_DEVICE_ID: 7
12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS invocation_phone_state: 5
12-09 17:16:19.840  8809  8809 I #AssistSession: [TVTS] Showing Voiceplate: 926792
12-09 17:16:19.932  8809  8832 I AudioSourceManager: [TVTS][Legacy] micOpen
12-09 17:16:20.162  8809  8856 I AudioSourceManager: [TVTS][Legacy] Read non-zero bytes

Bug: 129355484

Change-Id: I653deac41e105e04f56e03aec0fa80d8d7eb5b54
2020-12-09 19:09:41 +01:00
Jeff Sharkey
7444e309f9 Revert "Temporarily replace "android.com" accounts."
This reverts commit 0ace970e19.

Bug: 174932174, 175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I152186408ecf6da1cb7354d14737de7cce55a34b
2020-12-09 11:06:28 -07:00
Dmitri Plotnikov
0ad8cb5966 Merge "Add per-file OWNERS for BatteryStats" am: cac4499628 am: d8a9268460
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520758

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I74d7cc2d030f7a6e78d8c7e9903a48e93301c5c3
2020-12-09 03:26:47 +00:00
Dmitri Plotnikov
d8a9268460 Merge "Add per-file OWNERS for BatteryStats" am: cac4499628
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520758

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d258d326af6662a7e8d1dcaa1bbbeffdc19da94
2020-12-09 03:06:09 +00:00
Dmitri Plotnikov
c5afcc503b Add per-file OWNERS for BatteryStats
Test: N/A

Change-Id: Ie9eef7eed7f097113074c3c5f3f7a7084a55f97b
2020-12-08 16:38:23 -08: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
0ace970e19 Temporarily replace "android.com" accounts.
We're temporarily blocked on internal Gerrit tooling to support
relaxed OWNERS validation, so this change temporarily replaces all
"android.com" accounts with "google.com" equivalents.

Bug: 174932174,175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I114f2a40cee1b65e21250da7372e11c18cd73e25
2020-12-08 17:54:13 +00:00
Jeff Sharkey
358f0d4fc8 Merge changes from topic "dec5" am: c2793cf12b am: 9af6ac78b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2776a545a24f007ccb4b9ee14705978571265ef3
2020-12-08 16:43:19 +00: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
c2793cf12b Merge changes from topic "dec5"
* changes:
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
2020-12-08 15:39:59 +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