Commit Graph

15213 Commits

Author SHA1 Message Date
Jon Miranda
92dfd67351 Screenshot to share sheet shared element transition.
Switching the share action to a Supplier interface allows us to
maintain the current code style, while ensuring that the
APIs required to start the transition are called when the
share chip is pressed.

Bug: 174811491
Test: manual

Change-Id: I201b82eaea650fcef23909212385fd6d56831429
2020-12-16 23:40:29 +00:00
TreeHugger Robot
71a741594f Merge "Add InputConnection#performSpellCheck()." 2020-12-16 10:54:27 +00:00
Wilson Wu
0e75d9e4dd Merge "Make IInputMethodManager to oneway (5/N)" 2020-12-16 09:33:42 +00:00
Kohsuke Yatoh
e751e1036a Add InputConnection#performSpellCheck().
IME can use this method to redo spell checking after it has learned a
new user dictionary word.

Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I956cd46f25bb77b7e1a6a3e1478c0d7efa1a056a
2020-12-15 22:48:47 +00:00
TreeHugger Robot
0f04a2e670 Merge "Rename setTint to setColor" 2020-12-15 21:28:48 +00:00
Chris Tate
9bace5915a Merge "Make isAppBad() lock-free" 2020-12-15 20:31:55 +00:00
Alison Cichowlas
7cd8ae4855 Merge "Fix sharing shortcuts not showing for Work Profile." 2020-12-15 20:08:20 +00:00
Nicolas Geoffray
22e424f582 Merge "Make Class.getPackageName public." am: 3a76c4c9aa am: 7a0acb4d34 am: df634d7c4e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519502

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I74d1fea098a9beeb3db99e35317bd7c1ae23ee83
2020-12-15 19:00:39 +00:00
Nicolas Geoffray
df634d7c4e Merge "Make Class.getPackageName public." am: 3a76c4c9aa am: 7a0acb4d34
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519502

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia30633196eef2c2fdbebde3ad87c9e19c3c8b58e
2020-12-15 18:28:30 +00:00
Lucas Dupin
447eebd6d8 Rename setTint to setColor
We're not tinting, we're actually drawing an alpha blended color on top

Test: Manual
Bug: 159712515
Change-Id: I12788b19ecf0d4a8e65056914bc0dafd16f417c9
2020-12-15 09:48:12 -08:00
Nicolas Geoffray
3a76c4c9aa Merge "Make Class.getPackageName public." 2020-12-15 16:55:44 +00:00
Alison Cichowlas
1138fcdb5c Merge "Add SystemUI to OWNERS for Sharesheet." am: eff7324d9c am: ace8f705bc am: 1a55495ae9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1525899

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I98180f81772e451e63ca6ecb903574c0279a7afd
2020-12-15 15:59:19 +00:00
Alison Cichowlas
1a55495ae9 Merge "Add SystemUI to OWNERS for Sharesheet." am: eff7324d9c am: ace8f705bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1525899

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6fc43cc854488c505479de6461ed56e02916955b
2020-12-15 15:50:36 +00:00
Alison Cichowlas
17cb4137ad Fix sharing shortcuts not showing for Work Profile.
Bug: 175042485, 175240616
Test: per repro instructions in bug
Change-Id: Iecbc57369f46fcae72d6acdb997ea8daacc77979
2020-12-15 15:13:09 +00:00
Alison Cichowlas
eff7324d9c Merge "Add SystemUI to OWNERS for Sharesheet." 2020-12-15 15:08:10 +00:00
Marcin Oczeretko
542a022a41 Merge "Add sf_missed_frames field to UiInteractionFrameInfo atom" 2020-12-15 09:07:44 +00:00
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
Alison Cichowlas
e432f6c014 Add SystemUI to OWNERS for Sharesheet.
Change-Id: I2ecbab59516ae0cb53d47fa819c26336f76d9483
2020-12-14 21:46:41 +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
Marcin Oczeretko
85af0bab69 Add sf_missed_frames field to UiInteractionFrameInfo atom
For now the field is always set to 0 since we do not
get this data from sf yet

Test: UTs for affected classes
Bug: 171049584
Change-Id: I128afe514393e78636c01469075d415068326ef8
2020-12-14 16:41:55 +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
Christopher Tate
296b7e9bfa Make isAppBad() lock-free
We trade off increased cost of (rare) mutations of the set of "bad" apps
in order to make the core lookup "is this specific app bad?" lock-free.
Locking discipline turned out to be a dominant cost in a very hot code
path within the running system, even uncontended.

Bug: 175339368
Test: tbd
Change-Id: I8803a177d46b01b86897f1e8d0966eb2452849fd
2020-12-11 12:25:51 -08: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
Wilson Wu
d833f0dab4 Make IInputMethodManager to oneway (5/N)
Create Boolean result callback and apply it to :
-. showSoftInput
-. hideSoftInput
-. isInputMethodPickerShownForTest
-. isImeTraceEnabled

Bug: 163453493
Test: Manual test with keyboard
Test: atest CtsInputMethodTestCases
Change-Id: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
2020-12-11 17:56:26 +08: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