Commit Graph

17008 Commits

Author SHA1 Message Date
Yohei Yukawa
cdd13118af Introduce IInputContextInvoker for better readability
This is a purely mechanical refactoring with no no behavior change.

With this CL, InputConnectionWrapper no longer deals with boilerplate
code around IInputContext such as RemoteException handling.

Bug: 192412909
Test: atest CtsInputMethodTestCases
Change-Id: I0ea27e915a07699a4c124750266d84346fbd7bf6
2021-06-30 09:54:14 -07:00
Yohei Yukawa
934fe8b2a5 Log IME tracing even when RemoteException is thrown from IC
This is a small preparation to consolidate RemoteException handling
out from InputConnectionWrapper.

With this CL, InputConnectionWrapper no longer early-exits when a
RemoteException is thrown but just falls through to IME tracing logic.
By making this small change, the next CL [1] can split out
RemoteException handling from InputConnectionWrapper as a pure
refactoring.

Anyway neither users nor developers can observe this change unless
they are carefully checking IME tracing result when the IME target app
is being killed.

 [1]: I0ea27e915a07699a4c124750266d84346fbd7bf6

Bug: 192412909
Test: atest CtsInputMethodTestCases:InputConnectionBlockingMethodTest
Change-Id: I5c778a1097e7f05eeff27e7a72966f613076a801
2021-06-30 00:23:09 -07:00
Wilson Wu
28429a218b Merge "Remove multi-client IME" 2021-06-30 01:34:37 +00:00
TreeHugger Robot
7ffb3ce39c Merge "Add global app op restrictions" into sc-dev am: 0ac141c3ba am: f538cb084e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080961

Change-Id: Id2db395759e66be890540ca86450b2c5bf67b2ec
2021-06-29 20:37:32 +00:00
TreeHugger Robot
0ac141c3ba Merge "Add global app op restrictions" into sc-dev 2021-06-29 19:53:50 +00:00
Orion Hodson
8e8cb4cb1f Merge changes from topic "system-server-images" into sc-dev
* changes:
  Fix JNI error
  Revert^2 "Zygote: Load system server code early"
2021-06-29 16:05:36 +00:00
TreeHugger Robot
df2e1f7d1a Merge "Disable the BatteryUsageStatsStore feature" into sc-dev am: 9c8441c8af am: c2fbecc3f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128691

Change-Id: I8db0b5192719cbc1e07705c0e8db2a77db0afc94
2021-06-29 00:39:20 +00:00
TreeHugger Robot
9c8441c8af Merge "Disable the BatteryUsageStatsStore feature" into sc-dev 2021-06-29 00:25:22 +00:00
Evan Severson
1d096f209d Add global app op restrictions
Instead of managing across all users we can restrict globally and fast
fail if the restriction is set

Test: atest CtsSensorPrivacyTestCases
Bug: 191016260
Change-Id: Ida1a2d1734b7e3d40818485062bec0f96270bc4b
2021-06-28 22:22:59 +00:00
TreeHugger Robot
0fb68444a3 Merge "Improve exception logging for system backup/restore" into sc-dev am: 8f589c02c6 am: 89a02edc25
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15123973

Change-Id: I9db6ffe46c53932b5c6af253553b8a47e2767fa2
2021-06-28 19:40:26 +00:00
Dmitri Plotnikov
483702e0df Disable the BatteryUsageStatsStore feature
Bug: 191120091
Test: run PowerOnOffTest#testPowerOnOff
Change-Id: I536bbf04ac3233575487bbffd120cbdfa305c41f
2021-06-28 09:22:15 -07:00
Orion Hodson
91c4f415e3 Revert^2 "Zygote: Load system server code early"
This reverts commit 6be3b0e117.

(cherry picked from commit d0d23f5a2b)

Bug: 180949581
Test: atest odsign_e2e_tests
Merged-In: I7a7dd5b475af4502dc9671d2dce02ee3673ddf81
Change-Id: I8a4ddc870816b47593184b06c4b36a41eda923f2
2021-06-28 13:33:12 +01:00
Bryan
385424f431 Improve exception logging for system backup/restore
Make sure to log stack traces of unexpected exceptions
to allow us to better diagnose issues such as b/190023280

Change-Id: I29a32329f52b8346570148ed5abc34f3149aa0f9

Test: make
Bug: 190023280
Change-Id: Idd4e4968fe4c642b463149f98a7669a8733b37d7
2021-06-28 10:45:42 +00:00
Orion Hodson
17d678e3d2 Merge "Revert^2 "Zygote: Load system server code early"" am: 8be0de5892 am: 387a79c188 am: 3d5d8f4f01 am: 2517eadc2f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1744478

Change-Id: Ib631ffab2bbbdf9a22bf06f5c253b2bb9ed0de8a
2021-06-25 16:37:08 +00:00
Orion Hodson
2517eadc2f Merge "Revert^2 "Zygote: Load system server code early"" am: 8be0de5892 am: 387a79c188 am: 3d5d8f4f01
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1744478

Change-Id: I53f7c25392a08ca644123153d920bcdc902e3799
2021-06-25 16:21:22 +00:00
Siim Sammul
80735a8afd Merge "Collect binder latency data even when device is charging / device state is unknown." into sc-dev am: 764da8b1ab am: 26e17305ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080830

Change-Id: I6f803f121536f6820d46f848e80a192c098c4391
2021-06-25 16:19:58 +00:00
Mark Renouf
f003ba7d1e Merge "Adds long screenshot support for ListView" into sc-dev am: 82f0979e7b am: eb3678a3c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15083160

Change-Id: I81b2e94af8d34d877d69ec4cce516c1369f7a84e
2021-06-25 15:12:39 +00:00
Mark Renouf
82f0979e7b Merge "Adds long screenshot support for ListView" into sc-dev 2021-06-25 14:56:49 +00:00
Siim Sammul
eee372ca0d Merge "Fix process source propagation for binder calls stats settings so that it is correctly reported in the pushed atom BinderLatencyReported." into sc-dev am: fc7b373389 am: c7a7ae1241
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15054863

Change-Id: Ie8b2cc257a57abab980c32eba5604835ea2f3ac5
2021-06-25 11:26:12 +00:00
Siim Sammul
fc7b373389 Merge "Fix process source propagation for binder calls stats settings so that it is correctly reported in the pushed atom BinderLatencyReported." into sc-dev 2021-06-25 11:07:53 +00:00
Orion Hodson
3d5d8f4f01 Merge "Revert^2 "Zygote: Load system server code early"" am: 8be0de5892 am: 387a79c188
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1744478

Change-Id: Ia6efbecfc4a2d5eea62b254049572de8a5c52e8e
2021-06-25 09:32:02 +00:00
Siim Sammul
7860a1b8ef Merge "Collect binder latency data even when device is charging / device state is unknown." into sc-dev am: 764da8b1ab am: ff4636cb19
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080830

Change-Id: I5b4535e6cfb044b823353e1120187a5ade71fffa
2021-06-25 09:29:23 +00:00
Siim Sammul
26e17305ff Merge "Collect binder latency data even when device is charging / device state is unknown." into sc-dev am: 764da8b1ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080830

Change-Id: I32ba75f264624570c4eff5b74db72e11a6f71fbf
2021-06-25 09:16:41 +00:00
Orion Hodson
8be0de5892 Merge "Revert^2 "Zygote: Load system server code early"" 2021-06-25 09:09:01 +00:00
Siim Sammul
764da8b1ab Merge "Collect binder latency data even when device is charging / device state is unknown." into sc-dev 2021-06-25 09:03:12 +00:00
Siim Sammul
f64b4c5dc9 Fix process source propagation for binder calls stats settings so that
it is correctly reported in the pushed atom BinderLatencyReported.

Bug: 180584913
Test: unit test
Change-Id: Ifbdd96c73276546fb2a05213f71e1de088e1fe1e
2021-06-25 09:02:26 +00:00
Alison Cichowlas
8db356a657 Merge "Direct share load cutback - minimal/low-risk version." into sc-dev am: cf49f78265 am: 0c544025e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15056134

Change-Id: I00d4f2312b9630edfe003938b2ea95b7858c6eb9
2021-06-24 20:43:38 +00:00
Alison Cichowlas
89b34c4969 Merge "Direct share load cutback - minimal/low-risk version." into sc-dev am: cf49f78265 am: 07d6b3487c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15056134

Change-Id: Ibae67cf0b0c418224cff0840c0210cb850be521c
2021-06-24 20:43:27 +00:00
Alison Cichowlas
07d6b3487c Merge "Direct share load cutback - minimal/low-risk version." into sc-dev am: cf49f78265
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15056134

Change-Id: I057a6c2e898a5a9c6637fd2e13b5d195ae2b0a3c
2021-06-24 20:25:12 +00:00
Alison Cichowlas
c16e0ac3ed Merge "Direct share load cutback - minimal/low-risk version." into sc-dev am: cf49f78265
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15056134

Change-Id: Ic2f48cfd7a940ad20530160df4f1dbae8b9d1957
2021-06-24 20:24:34 +00:00
Alison Cichowlas
cf49f78265 Merge "Direct share load cutback - minimal/low-risk version." into sc-dev 2021-06-24 20:19:45 +00:00
Orion Hodson
d0d23f5a2b Revert^2 "Zygote: Load system server code early"
This reverts commit 6be3b0e117.

Bug: 180949581
Test: atest odsign_e2e_tests
Change-Id: I7a7dd5b475af4502dc9671d2dce02ee3673ddf81
2021-06-24 20:09:56 +00:00
Mark Renouf
021fd5479f Adds long screenshot support for ListView
Adds ListViewCaptureHelper to handle captures from ListView.
This is required due to the implementation of
ListView#requestChildRectangleOnScreen which limits scrolling
to currently-bound views only.

Bug: 189479375
Test: Manual, long screenshot WhatsApp conversation view.
Change-Id: I37d01391b4d773db6e91fc104b0351d70bff01d3
2021-06-24 12:45:26 -04:00
vichang
e31e9d3ee5 Merge "Revert "Refactor StructCapUser{Header,Data} and StructLinger for API review"" am: 789d83065b am: 820ca1a14c am: 406a312719 am: f29eb38d9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1744717

Change-Id: If943145ee58e515e38f6d7ed85bd10ea3680faad
2021-06-24 15:51:48 +00:00
vichang
f29eb38d9e Merge "Revert "Refactor StructCapUser{Header,Data} and StructLinger for API review"" am: 789d83065b am: 820ca1a14c am: 406a312719
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1744717

Change-Id: I8303b356d9d5f2014317e2b4f76f531f68bd0abb
2021-06-24 15:38:28 +00:00
vichang
406a312719 Merge "Revert "Refactor StructCapUser{Header,Data} and StructLinger for API review"" am: 789d83065b am: 820ca1a14c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1744717

Change-Id: I6d71a3320fa5d4b772a5f5e9fe7223dda92d73ba
2021-06-24 15:32:55 +00:00
TreeHugger Robot
8305c5584b Merge "Allow app zygote preload to retain files across fork" into sc-dev am: 2eca07915f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080412

Change-Id: I224e4fe581f96381fe8a1b67ac2f0b4d3cb7fdc1
2021-06-24 13:19:42 +00:00
TreeHugger Robot
2eca07915f Merge "Allow app zygote preload to retain files across fork" into sc-dev 2021-06-24 13:18:02 +00:00
Joe Bolinger
9ef3aee3b7 Merge "Fix crash when BiometricPrompt requests swipe pattern and talk back is enabled." into sc-dev am: aa910853fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15053960

Change-Id: I0ae17514424b7b0775ca794a212919086555bdca
2021-06-24 02:32:53 +00:00
Nate Myren
59067b7f08 Merge "Create Attribution Chains in HistoricalOps" into sc-dev am: 3e51f7cabd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14963609

Change-Id: I60aa91c4ef0971aed21329fed880821bf5ae2da4
2021-06-24 02:32:39 +00:00
Dmitri Plotnikov
6a20a99d17 Merge "Deprecate BatteryStatsHelper and BatterySipper" into sc-dev am: fb1dc9e3db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15081293

Change-Id: Idd5114a27bf3c84238ef9c9c6b56ce67b65efc24
2021-06-24 02:31:13 +00:00
Joe Bolinger
5e1e873309 Merge "Fix crash when BiometricPrompt requests swipe pattern and talk back is enabled." into sc-dev am: aa910853fb am: f45efd5cf7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15053960

Change-Id: I4f1a04a62da71d6eab3696aa62b70fea9e11ee36
2021-06-23 22:14:46 +00:00
Nate Myren
5bf50d9b2c Merge "Create Attribution Chains in HistoricalOps" into sc-dev am: 3e51f7cabd am: f811370bf1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14963609

Change-Id: I4b90537c0c9252e28686d6e8315754c2d63a5b02
2021-06-23 22:14:25 +00:00
Dmitri Plotnikov
cd035a157b Merge "Deprecate BatteryStatsHelper and BatterySipper" into sc-dev am: fb1dc9e3db am: 35da44cdac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15081293

Change-Id: I3917869b2f8a62807ce59c36af461d79372bc6cf
2021-06-23 22:13:35 +00:00
Joe Bolinger
8738ba1a5e Merge "Fix crash when BiometricPrompt requests swipe pattern and talk back is enabled." into sc-dev am: aa910853fb am: a6fb4fc48f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15053960

Change-Id: I3006a5cdb5f5b77c59644c0f118bc8d59b7a6695
2021-06-23 21:54:52 +00:00
Nate Myren
0b7aa98e36 Merge "Create Attribution Chains in HistoricalOps" into sc-dev am: 3e51f7cabd am: 0cf659377d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14963609

Change-Id: Ifce9b0987dbc06b601d59f4c0b514aae75440efe
2021-06-23 21:54:33 +00:00
Joe Bolinger
f45efd5cf7 Merge "Fix crash when BiometricPrompt requests swipe pattern and talk back is enabled." into sc-dev am: aa910853fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15053960

Change-Id: Ib2b00c45b45cba9b4311fb20a925f48955c80eb8
2021-06-23 21:38:02 +00:00
Nate Myren
f811370bf1 Merge "Create Attribution Chains in HistoricalOps" into sc-dev am: 3e51f7cabd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14963609

Change-Id: I9e6f201a7fe728ad4f1b914ac206467fac7f6769
2021-06-23 21:37:39 +00:00
Joe Bolinger
aa910853fb Merge "Fix crash when BiometricPrompt requests swipe pattern and talk back is enabled." into sc-dev 2021-06-23 21:25:03 +00:00
Nate Myren
3e51f7cabd Merge "Create Attribution Chains in HistoricalOps" into sc-dev 2021-06-23 21:23:19 +00:00