Commit Graph

703857 Commits

Author SHA1 Message Date
Dmitri Plotnikov
bf55fd64ff Merge "Fix KernelCpuUidUserSysTimeReaderTest#testThrottler by injecting a mock clock" 2021-07-23 01:35:00 +00:00
TreeHugger Robot
2b2435925a Merge "[pm] small refactor to hide PackageManagerService.getPackageSetting" 2021-07-23 01:22:36 +00:00
TreeHugger Robot
a00147cf29 Merge "Remove IMM#getInputContext(), which is unused" 2021-07-23 00:59:01 +00:00
Jing Ji
5b87617fc8 Merge "Fix potential FD leak with PhantomProcessRecord bookkeeping" into sc-dev am: 5d411d76ea am: 6ff4ca91d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15362793

Change-Id: Id058cab5aea7fa667aa898370056592e03d0e817
2021-07-23 00:40:06 +00:00
Jing Ji
699abd73e8 Merge "Don't reset the reported proc state while cleaning up the process" into sc-dev am: cbf8dc63ba am: 44db4aaf5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15357844

Change-Id: Ie5d7547840b2fbc9b55ec9698f8bbe047ade33ca
2021-07-23 00:39:29 +00:00
Jackal Guo
252102d5e0 Merge "Apply package visibility to getUidForSharedUser" 2021-07-23 00:31:44 +00:00
Jing Ji
6ff4ca91d9 Merge "Fix potential FD leak with PhantomProcessRecord bookkeeping" into sc-dev am: 5d411d76ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15362793

Change-Id: I94db317df6a7bf06e8470eb874d5a3d503ae1a1c
2021-07-23 00:22:22 +00:00
Jing Ji
44db4aaf5b Merge "Don't reset the reported proc state while cleaning up the process" into sc-dev am: cbf8dc63ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15357844

Change-Id: I3fbbcbad62e2711e2d8a0086607a970988146b3a
2021-07-23 00:21:19 +00:00
Jing Ji
5d411d76ea Merge "Fix potential FD leak with PhantomProcessRecord bookkeeping" into sc-dev 2021-07-23 00:11:12 +00:00
Jing Ji
cbf8dc63ba Merge "Don't reset the reported proc state while cleaning up the process" into sc-dev 2021-07-23 00:01:25 +00:00
TreeHugger Robot
d18c61ae8e [automerger skipped] Merge "Skip operation on content overlay if task's vanished" into sc-dev am: 5cac66cb4e am: 46ec4b0601 -s ours
am skip reason: Merged-In I81c0622966df32e02db7cb5aa3cd42d7c4af735e with SHA-1 0a0718c677 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15353756

Change-Id: I06345fe780058306534bbc8f00d1718d80009aca
2021-07-22 23:51:01 +00:00
TreeHugger Robot
46ec4b0601 Merge "Skip operation on content overlay if task's vanished" into sc-dev am: 5cac66cb4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15353756

Change-Id: Ibb65f7dbd658399a311534d6d1325c2b0c2cbaf5
2021-07-22 23:33:48 +00:00
TreeHugger Robot
f4e3a730d5 Merge "Fix TextureView docs to use more modern sample code" 2021-07-22 23:31:04 +00:00
TreeHugger Robot
5cac66cb4e Merge "Skip operation on content overlay if task's vanished" into sc-dev 2021-07-22 23:20:20 +00:00
TreeHugger Robot
82efe9de04 Merge "Lock icon is a set distance from the bottom of display" into sc-dev am: 9470519d04 am: ebd158779f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15350079

Change-Id: I47bcf7297981c55f4a90dbbdd6c82de197196691
2021-07-22 22:49:24 +00:00
Winson Chung
ca4ebfd4ed Merge "Skip animating out bubble screenshot if surface is not ready" into sc-dev am: d4dd12ee06 am: 2730ad4539
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15352585

Change-Id: I80889b5cb456f9749764b19da7089726456fd54b
2021-07-22 22:48:37 +00:00
TreeHugger Robot
e9b94f4c86 Merge "Remove unused methods and classes from Completable class" 2021-07-22 22:40:25 +00:00
TreeHugger Robot
ebd158779f Merge "Lock icon is a set distance from the bottom of display" into sc-dev am: 9470519d04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15350079

Change-Id: I7f760ebf5a59a63ea6ae3de7e043cb4d105cb624
2021-07-22 22:31:07 +00:00
Winson Chung
2730ad4539 Merge "Skip animating out bubble screenshot if surface is not ready" into sc-dev am: d4dd12ee06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15352585

Change-Id: I4f8c199c613f74b813e6426e5ebcbbc8d40e4d08
2021-07-22 22:30:16 +00:00
TreeHugger Robot
9470519d04 Merge "Lock icon is a set distance from the bottom of display" into sc-dev 2021-07-22 22:14:43 +00:00
Kyunglyul Hyun
f3e970f102 Merge "Ignore null listeners in MediaSessionService" 2021-07-22 22:10:52 +00:00
Winson Chung
d4dd12ee06 Merge "Skip animating out bubble screenshot if surface is not ready" into sc-dev 2021-07-22 22:10:46 +00:00
Dmitri Plotnikov
d378715dee Fix KernelCpuUidUserSysTimeReaderTest#testThrottler by injecting a mock clock
Bug: 180015146
Bug: 180473895
Test: atest FrameworksCoreTests:KernelCpuUidUserSysTimeReaderTest#testThrottler
Change-Id: I441646b4d5817b62c34bea9cccf0a5a13901736b
2021-07-22 14:57:37 -07:00
Ram Parameswaran
d3cdb4906a Merge "Update dialog styling to comply with design guidelines" into sc-v2-dev am: a22be8fb7e am: a1871cd45c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286553

Change-Id: I624e122e27e614a2e8023a6369ead23bc9c85d89
2021-07-22 21:52:19 +00:00
TreeHugger Robot
381920f0de Merge "Skip operation on content overlay if task's vanished" into sc-v2-dev am: 8dbc900327 am: b401cf519f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15361375

Change-Id: I6729fb6cb3e29c0ce9d6f9f9d2f984c2b08e620d
2021-07-22 21:52:07 +00:00
Yohei Yukawa
ec0a7594f3 Remove IMM#getInputContext(), which is unused
InputMethodManager#getInputContext() is no longer marked as
@UnsupportedAppUsage [1] hence we should be able to remove it as far
as we can see.

Let's see how it goes.

 [1]: Id83ce2bd5896e953c824f7eaf28b235859123ab0
      51c9350477

Bug: 192412909
Bug: 194323038
Test: presubmit
Change-Id: I6069fbb3b40e51bb24bfece48a4bb56705ded6ba
2021-07-22 14:52:04 -07:00
Ben Lin
a8b2f4195b Merge "PiP: Implement auto-rotate w/ button nav for Shell Transitions." into sc-v2-dev am: 9e8c821a32 am: 2f23941508
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15314232

Change-Id: I895ab12893889f9d5532706e5452c087e2439a09
2021-07-22 21:51:27 +00:00
TreeHugger Robot
18517e9551 Merge changes from topic "native_hint" into sc-dev am: ea52c87596 am: 9533a3db22
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326475

Change-Id: If8502e41cbc2cf88b6ed9634741e57f066ab3652
2021-07-22 21:51:12 +00:00
Bo Liu
15634bdc3c Switch HWUI to use native performance hint API am: 6a3fc60f43 am: 4333a83789
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326474

Change-Id: Id65a52342eff943a9b644881936f51555a64d77d
2021-07-22 21:50:55 +00:00
Bo Liu
87a20c766c Implement native PerformanceHint API am: 4426772eab am: 2912fdaf2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326473

Change-Id: Ib5efe3f043647018fb6db6911e81b366af8f0bc8
2021-07-22 21:50:32 +00:00
Ram Parameswaran
a1871cd45c Merge "Update dialog styling to comply with design guidelines" into sc-v2-dev am: a22be8fb7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286553

Change-Id: I1103a5d18745b3a27a6fc48f18eff428b0620ed4
2021-07-22 21:40:10 +00:00
Ram Parameswaran
a22be8fb7e Merge "Update dialog styling to comply with design guidelines" into sc-v2-dev 2021-07-22 21:39:41 +00:00
TreeHugger Robot
b401cf519f Merge "Skip operation on content overlay if task's vanished" into sc-v2-dev am: 8dbc900327
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15361375

Change-Id: I95c5c79067599e11a13695d6e7419102613cef7a
2021-07-22 21:39:33 +00:00
Hongwei Wang
1817bc47bd Skip operation on content overlay if task's vanished
The stack trace in b/194344478 and b/194280568 is actually from the
preceding ActivityThreadTest test, which does not fail but does crash
certain test cases after that.

Since we may set a start delay on the content overlay fading out
animation, there is chance that onTaskVanished happens before it is
actually started. It's also possible that onTaskVanished happens during
the content overlay fadeout. This CL should have addressed both cases.

Bug: 194344478
Bug: 194280568
Test: atest --iteration 5 \
      ActivityThreadTest#testHandlePictureInPictureRequested_overriddenToEnter \
      ScreenshotTests#testScreenshotSecureLayers \
      TaskStackChangedListenerTest#testTaskChangeCallBacks
Change-Id: I81c0622966df32e02db7cb5aa3cd42d7c4af735e
Merged-In: I81c0622966df32e02db7cb5aa3cd42d7c4af735e
2021-07-22 21:38:57 +00:00
TreeHugger Robot
9533a3db22 Merge changes from topic "native_hint" into sc-dev am: ea52c87596
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326475

Change-Id: I9e341b02a701d6a20ce8b60cacfc647beae219b2
2021-07-22 21:34:10 +00:00
Ben Lin
2f23941508 Merge "PiP: Implement auto-rotate w/ button nav for Shell Transitions." into sc-v2-dev am: 9e8c821a32
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15314232

Change-Id: Ie6c0fb65ac66c770b681f96968c74efc3698ec0d
2021-07-22 21:34:02 +00:00
Bo Liu
4333a83789 Switch HWUI to use native performance hint API am: 6a3fc60f43
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326474

Change-Id: Ic70d65021a7e1a71965d78499a76c14833bcb704
2021-07-22 21:33:56 +00:00
Bo Liu
2912fdaf2e Implement native PerformanceHint API am: 4426772eab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326473

Change-Id: Icf5dcab595e1fa2afadf1c9d9b4b683a0d155fb7
2021-07-22 21:33:47 +00:00
TreeHugger Robot
8dbc900327 Merge "Skip operation on content overlay if task's vanished" into sc-v2-dev 2021-07-22 21:28:20 +00:00
Ben Lin
9e8c821a32 Merge "PiP: Implement auto-rotate w/ button nav for Shell Transitions." into sc-v2-dev 2021-07-22 21:25:07 +00:00
TreeHugger Robot
ea52c87596 Merge changes from topic "native_hint" into sc-dev
* changes:
  Implement java PerformanceHintManager on top of native
  Switch HWUI to use native performance hint API
  Implement native PerformanceHint API
2021-07-22 21:15:04 +00:00
Yohei Yukawa
626c33cfea Remove unused methods and classes from Completable class
This is hopefully the last follow up CL to my previous CL [1], which
aimed to logically revert IInputMethodManager from emulated sync IPCs
to truly sync IPCs.

It turns out that my previous clean-up CL [2] forgot to take care of
the following class

  com.android.internal.inputmethod.Completable,

where several unused methods and classes still existed.

Since those methods and classes are not used right now, there should
be no user/developer visible behavior change in this CL.

 [1]: If16ac0de536d9089eb04f6e07b1ee47378124658
      662b48b72d
 [2]: I8666ac1399058b980e51e2459122b2f5f36c77b5
      b1fb07a83b

Bug: 192412909
Test: presubmit
Change-Id: Id5d5a4abeff8291b40baf95d425f4035d3cddffe
2021-07-22 14:00:54 -07:00
TreeHugger Robot
b754c58a51 Merge "Fix HDR for app-override brightness." into sc-dev am: 9ed99bd9d1 am: 5dd76df8cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302104

Change-Id: I86d798e4a88a43a5d89a2b3384379a4750c080b2
2021-07-22 20:51:35 +00:00
TreeHugger Robot
a2d9c17502 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1 am: eddf948d71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: I34ff608a91ff6da54ed46bd9c0f26001d7d5bc8d
2021-07-22 20:51:21 +00:00
TreeHugger Robot
5dd76df8cf Merge "Fix HDR for app-override brightness." into sc-dev am: 9ed99bd9d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302104

Change-Id: Ib7a2c0997371d51a34f62e581b6f3743a07cb287
2021-07-22 20:32:34 +00:00
TreeHugger Robot
eddf948d71 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: Id8269fd9a67aba5f5f47ea0738212db022546d75
2021-07-22 20:31:46 +00:00
TreeHugger Robot
9ed99bd9d1 Merge "Fix HDR for app-override brightness." into sc-dev 2021-07-22 20:29:38 +00:00
Chet Haase
8e1a9dd590 Fix TextureView docs to use more modern sample code
The existing TextureView class docs use a sample that relies on
Camera APIs, which have been deprecated for some time. The
new sample uses MediaPlayer (and calls out to other possible
components that could be used with TextureView). The docs have also
been updated to reflect recommendations on using CameraX for camera
functionality and SurfaceView vs. TextureView for performance reasons.

Test: N/A, docs only
Fixes: 191847306
Change-Id: I2038c09309ed63c79b583779124d48016ca225a2
2021-07-22 20:27:56 +00:00
TreeHugger Robot
407b327fc7 Merge "A unified data class to represent all the InputConnection call" 2021-07-22 20:26:16 +00:00
TreeHugger Robot
584d27f200 Merge "Add a setting to enable the triple press gesture to toggle accessibility in wear." 2021-07-22 20:10:50 +00:00