Commit Graph

19205 Commits

Author SHA1 Message Date
TreeHugger Robot
79c36f4c94 Merge "Move IRemoteInputConnectionInvoker to android.inputmethodservice" 2022-06-14 04:08:00 +00:00
Yohei Yukawa
2fddead57d Move IRemoteInputConnectionInvoker to android.inputmethodservice
IRemoteInputConnectionInvoker is used only from RemoteInputConnection,
which is already placed under android.inputmethodservice as a
package-private class.  Let's also move IRemoteInputConnectionInvoker
to android.inputmethodservice as a package-private class to minimize
its visibility.

This is a mechanical refactoring, which should have no user/developer
observable behavior change.

Bug: 234882948
Test: presubmit
Change-Id: Ie946993aeedc31a67e3074dc591245f75143a9f1
2022-06-13 18:28:40 -07:00
Dmitri Plotnikov
530e6e3685 Merge "Fix battery history parceling concurrency" 2022-06-14 00:18:10 +00:00
Matt Casey
7df9f7568c Merge "Finish mini-resolver after user action." into tm-dev am: 831370bffb am: 68bdb03d0c am: 01ca540e02 am: f4075745d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18838611

Change-Id: I9ebfc3eeaf7b12071b18c5c3c7098052eb31c096
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 17:15:07 +00:00
Matt Casey
f4075745d8 Merge "Finish mini-resolver after user action." into tm-dev am: 831370bffb am: 68bdb03d0c am: 01ca540e02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18838611

Change-Id: I2459cee0f1b9e37c9f4ae45fe681a5e3e50ebabd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 16:46:12 +00:00
Matt Casey
01ca540e02 Merge "Finish mini-resolver after user action." into tm-dev am: 831370bffb am: 68bdb03d0c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18838611

Change-Id: I2c7712973096e672492f797d0b30249a26ef595c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 16:29:20 +00:00
Matt Casey
831370bffb Merge "Finish mini-resolver after user action." into tm-dev 2022-06-13 15:46:13 +00:00
Yohei Yukawa
3e56ef4e06 Merge "Move *InlineSuggestions* to com.android.internal.inputmethod" 2022-06-13 15:10:26 +00:00
Yurii Zubrytskyi
6444ca0aca Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev am: 120aa88d0d am: 4226e4b4e4 am: aed3061fec am: bd1e5cd3c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18764290

Change-Id: I5d5e4e78b35071f90e6c8b5835d09f538d2adc31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-11 09:12:51 +00:00
Yurii Zubrytskyi
4c2b5c8470 Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev am: 120aa88d0d am: 801d350fff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18764290

Change-Id: Ia19898c436e9b168efebc363ec19e9d3f10084a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-11 08:38:11 +00:00
Yurii Zubrytskyi
bd1e5cd3c5 Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev am: 120aa88d0d am: 4226e4b4e4 am: aed3061fec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18764290

Change-Id: Id43f749910e7d327cd0370071fc77de63af9267c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-11 08:37:40 +00:00
Yurii Zubrytskyi
4226e4b4e4 Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev am: 120aa88d0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18764290

Change-Id: Ic040b07c1559829833a4998f5001b8f34267c9a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-11 08:19:12 +00:00
Yurii Zubrytskyi
120aa88d0d Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev
* changes:
  Catch parsing errors for pre-release platforms
  Revert "HACK: allow apps with pre-release SDK RESTRICT AUTOMERGE"
2022-06-11 05:42:37 +00:00
Yohei Yukawa
44cb802c03 Merge "Move IInputMethod to com.android.internal.inputmethod" 2022-06-11 02:14:08 +00:00
Yohei Yukawa
8332e4d111 Merge "Move IInputMethodSession to com.android.internal.inputmethod" 2022-06-11 01:43:43 +00:00
Dmitri Plotnikov
63a5ffd3c3 Fix battery history parceling concurrency
Bug: 235609126
Test: atest  --rerun-until-failure 20   FrameworksCoreTests:BatteryUsageStatsProviderTest
Test: atest  --rerun-until-failure 20   FrameworksCoreTests:BatteryStatsHistoryIteratorTest
Change-Id: If20e019baa6105f7e50e9bcb8f3d6e34e7247976
2022-06-10 17:11:57 -07:00
Yohei Yukawa
bd8375b35a Move *InlineSuggestions* to com.android.internal.inputmethod
This CL moves 4 files that match *InlineSuggestions* from

  com.android.internal.view

to

  com.android.internal.inputmethod

as they are basically used only by IME classes (and Autofill).

Hopefully this gives better code organization and maintainance.

This is a mechanical refactoring of internal details.  There should be
no user/developer observable behavior change in this CL.

Bug: 234882948
Test: presubmit
Change-Id: Iac696ae501953ab6a90d99112a62221454cd76e4
2022-06-10 11:35:05 -07:00
Yohei Yukawa
1508f37558 Move IInputMethod to com.android.internal.inputmethod
This CL Moves IInputMethod from

  com.android.internal.view

to

  com.android.internal.inputmethod

to be consistent with other IME-related internal files.

This is a mechanical refactoring of internal details.  There should be
no user/developer observable behavior change in this CL.

Bug: 234882948
Test: presubmit
Change-Id: I1a43c2ad1f932ecb9201b3958becb475fb2d718d
2022-06-10 11:34:30 -07:00
Matt Casey
5b015f84af Finish mini-resolver after user action.
Bug: 235440512
Test: Trigger mini resolver, press each button and press back and verify
      the resolver is gone.
Change-Id: Ib22f7f38b4c5f7143b5898dbc3c74e3c7a0450f3
2022-06-10 18:06:18 +00:00
Yohei Yukawa
fd1580e341 Move IInputMethodSession to com.android.internal.inputmethod
This CL Moves IInputMethodSession from com.android.internal.view to
com.android.internal.inputmethod to be consistent with other
IME-related files.

This CL also moves IInputSessionCallback to
com.android.internal.inputmethod with renaming it to
IInputMethodSessionCallback for consistency.

This is just a renaming CL of implementation details.  There should be
no user/developer observable behavior change in this CL.

Bug: 234882948
Test: presubmit
Change-Id: I87495cbd482dd55005ac8d948f57f32bb016c7d6
2022-06-10 10:51:07 -07:00
Eric Biggers
3c5af93bff Merge changes I778b343a,I2af1e6ec
* changes:
  Use isFileEncrypted() instead of isFileEncryptedNativeOrEmulated()
  Use isFileEncrypted() instead of isFileEncryptedNativeOnly()
2022-06-10 16:42:12 +00:00
Daniel Sandler
6559e223d8 Merge "Android 1<3." into tm-dev am: 0f8269e68e am: 24650a74b5 am: 4e8afe4a98 am: c458354096
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18819106

Change-Id: Ieca2556e145adb74eb48545a37141617621e2c61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 02:51:54 +00:00
Daniel Sandler
c458354096 Merge "Android 1<3." into tm-dev am: 0f8269e68e am: 24650a74b5 am: 4e8afe4a98
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18819106

Change-Id: Ic42648bf3e85888b7a8680c5b66c221f68a0e26e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 02:33:53 +00:00
Daniel Sandler
4e8afe4a98 Merge "Android 1<3." into tm-dev am: 0f8269e68e am: 24650a74b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18819106

Change-Id: I857bbfe8bb337fae261354cf77efe9f892273fbf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 02:17:41 +00:00
Daniel Sandler
a95ab05e3a Merge "Android 1<3." into tm-dev am: 0f8269e68e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18819106

Change-Id: Id245d8b53ae63dc7e47f1812528513e42b390312
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 01:43:24 +00:00
Daniel Sandler
0f8269e68e Merge "Android 1<3." into tm-dev 2022-06-10 01:19:44 +00:00
Eric Biggers
9a07664850 Use isFileEncrypted() instead of isFileEncryptedNativeOrEmulated()
Since emulated FBE is no longer supported,
isFileEncryptedNativeOrEmulated() is the same as the new method
isFileEncrypted().  Replace all occurrences of
isFileEncryptedNativeOrEmulated() in this repository with
isFileEncrypted().

Bug: 232458753
Change-Id: I778b343adc85e5e6a45023f588eac509e3d93dd2
2022-06-09 20:49:59 +00:00
Eric Biggers
295d555611 Use isFileEncrypted() instead of isFileEncryptedNativeOnly()
Since emulated FBE is no longer supported, isFileEncryptedNativeOnly()
is the same as the new method isFileEncrypted().  Replace all
occurrences of isFileEncryptedNativeOnly() in this repository with
isFileEncrypted().

Bug: 232458753
Change-Id: I2af1e6ecb2655bd8a1ab6caf9e63040845572f1e
2022-06-09 20:49:59 +00:00
Dan Sandler
2c57c9c164 Android 1<3.
Fixes: 216297617
Test: adb shell am start -n android/com.android.internal.app.PlatLogoActivity
      adjust clock to 13:00
      for a bonus, long press on the bubbles
Change-Id: I3d32d452c6dd7a7e69aad86a033aba09ae8625d5
2022-06-09 12:54:27 -04:00
[20~[20~00
53142beff3 Open two locale apis for usage in TvSettings.
TvSettings needs to implement new locale picker but cannot directly use
LocalePickerWithRegion as this UI widget does not fit TvSettings design,
thus we need to open certain apis for TvSettings usage.

Bug: 232443481

Test: make -j.
Change-Id: I7ea72c6bd7757d9e68a496acde1a53c524beb71b
2022-06-09 06:53:02 +00:00
Yohei Yukawa
cc4c229ec4 Remove unused UnbindReason.ACCESSIBILITY_SERVICE_DISABLED
UnbindReason.ACCESSIBILITY_SERVICE_DISABLED was introduced when we
implemented A11yIME [1], but it turns out that it has not been passed
to the IME client.

Let's remove it if it's not used.

 [1]: Ia651a811093a939d00c081be1961e24ed3ad0356
      fb17e5ae7a

Bug: 234882948
Test: presubmit
Change-Id: Ib6c011d4b5f6fb39f0bda84d51b73a21205ef0ca
2022-06-07 14:00:04 -07:00
TYM Tsai
d0ed601b50 Merge "Fix unbind crash in AbstractRemoteService." into tm-dev am: dc9db874ba am: cd43f8064c am: 1c2cdbab45
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18691109

Change-Id: I2cbec39a1322cd815f1f6c06b2d11efe465b4aed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 17:01:57 +00:00
TYM Tsai
5af97d922d Merge "Fix unbind crash in AbstractRemoteService." into tm-dev am: dc9db874ba am: c3d3577bff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18691109

Change-Id: Ifa3ed59124b1fd321f5a6134b82f4d1a0dd6bb16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 16:38:48 +00:00
TYM Tsai
19a4214e16 Merge "Fix unbind crash in AbstractRemoteService." into tm-dev am: dc9db874ba am: 1cc4423b93
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18691109

Change-Id: I1d5903095f5c539394c235e26f6f3dac4694ce58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 16:38:06 +00:00
TYM Tsai
cd43f8064c Merge "Fix unbind crash in AbstractRemoteService." into tm-dev am: dc9db874ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18691109

Change-Id: I727b2114ac409a1f33ed92277be4189e45270a77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 16:19:31 +00:00
TYM Tsai
dc9db874ba Merge "Fix unbind crash in AbstractRemoteService." into tm-dev 2022-06-07 16:00:13 +00:00
Thiébaud Weksteen
2deb85fbf2 Merge "Migrate BatteryStats to @EnforcePermission" 2022-06-07 05:53:45 +00:00
Yurii Zubrytskyi
bb146e1b71 Catch parsing errors for pre-release platforms
In cases when a parsed APK is built with a pre-release platform
(e.g. Tiramisu for 33) our generic parsing code may not fail, as
it is called for user packages as well, and a single bad package
may disable the whole device.

Bug: 233398506
Test: presubmits

Change-Id: I7f93176efceac94b0768d0e4d5be1c28ccce23e3
2022-06-06 15:00:44 -07:00
Yohei Yukawa
e893ec4f8d Rename IInputContext to IRemoteInputConnection
IInputContext is the IPC interface name used behind InputConnection,
which was named in the initial development of IME API for Android 1.5.

To make it more descriptive and consistent with other classes such as
RemoteInputConnection, let's rename it to IRemoteInputConnection.

This CL also renames

  IInputContextInvoker

to

  IRemoteInputConnectionInvoker

for consistency.

This is a rename of internal IPC interface.  There should be no
user/developer observable impact.

Bug: 234882948
Test: presubmit
Change-Id: Iae82d5a26f0746161c2bf91a421b97f0f238aafd
2022-06-06 12:48:14 -07:00
Yohei Yukawa
d02a6c0fd7 Remove unsed imports from IAccessibilityInputMethodSession.aidl
This is a follow up CL to my previous CL [1], which introduced a new
set of IPC definitions for A11yIME.

When implementing that CL, somehow I left some unused import lines in
IAccessibilityInputMethodSession.aidl.

This CL removes such unnecessary import lines.

This is a mechanical and no-op code clean-up.  There should be no
observable behavior change.

 [1]: I5ff2e804cbcf90828370a0612ff54111130bdff4
      c60176c1f3

Bug: 215636776
Bug: 234882948
Test: presubmit
Change-Id: Icdf75a31ab5c7697da00e77835f7b8f38835de9c
2022-06-06 08:37:37 -07:00
TreeHugger Robot
bf58690832 Merge "Move IInputMethodClient to com.android.internal.inputmethod" 2022-06-06 06:12:57 +00:00
Mark Renouf
5ae61e909c Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev am: 08a70e40fb am: f89b28c4c6 am: e5990a182e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18715227

Change-Id: I351ca879cb1c53a1b357b667e5f554d3eb646b20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-04 13:09:58 +00:00
Mark Renouf
2c108ffdf4 Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev am: 08a70e40fb am: 6c61b6a9e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18715227

Change-Id: I3add4d0f4a3fd65b4100f4eb1a197ea5358d3f06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-04 13:02:40 +00:00
Mark Renouf
84268a9de5 Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev am: 08a70e40fb am: a7ea855e18
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18715227

Change-Id: I23b4f3c0a3e657d96158e76d6b90ffe09144a4b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-04 12:54:07 +00:00
Mark Renouf
f89b28c4c6 Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev am: 08a70e40fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18715227

Change-Id: I62b7d51c4186e9e17da9539fadc6eeabc22a31e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-04 12:38:25 +00:00
Mark Renouf
08a70e40fb Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev 2022-06-04 12:13:21 +00:00
Yohei Yukawa
3221237629 Move IInputMethodClient to com.android.internal.inputmethod
Bug: 234882948
Test: presubmit
Change-Id: I7c11c9613732c3faa722938c2c4761868444cd42
2022-06-03 17:27:34 -07:00
Mark Renouf
9d5f710317 Fix crash in DisplayResolveInfo writeToParcel impl
This fixes an incorrect use of List.toArray() leading to a crash

When passed no arguments, toArray returns an Object[] and not T[],
hence the unchecked cast will throw ClassCastException when this is run.

This change cleans up the parcelable implementation by replacing
writeParcelableArray with writeTypedList, which is more efficient and
avoids the conversion to/from an array entirely.

Bug: 200347466
Test: Take screenshot, tap share, long press an app, short press power
Change-Id: I225664c8709502c7e45ac06c2858c0c5ac0b7506
2022-06-03 19:50:38 +00:00
Mike Schneider
14d9f13114 Merge "Add enum entries for HADE_DIALOG_OPEN and USER_DIALOG_OPEN interactions" into tm-qpr-dev am: 2b75a2405b am: 2f8402e66f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18581264

Change-Id: I1f35130908f1d7bb875ea78c86fedbd5abcd23f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 12:08:40 +00:00
Mike Schneider
2f8402e66f Merge "Add enum entries for HADE_DIALOG_OPEN and USER_DIALOG_OPEN interactions" into tm-qpr-dev am: 2b75a2405b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18581264

Change-Id: Icfb9fc05c90bbf18a61b8d8273d7230b9d1504f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 11:52:34 +00:00