Commit Graph

19187 Commits

Author SHA1 Message Date
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
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
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
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
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
Mike Schneider
2b75a2405b Merge "Add enum entries for HADE_DIALOG_OPEN and USER_DIALOG_OPEN interactions" into tm-qpr-dev 2022-06-03 11:37:59 +00:00
Iris Yang
e85ccf2c79 Merge "Wire display context for text toasts" into tm-dev am: ca6ef9125d am: 7bb2e73638 am: 8f9b4c1001
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18660549

Change-Id: Ib237dd9f06940990adaf57fa4504502eee84beaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 04:26:42 +00:00
Iris Yang
8f9b4c1001 Merge "Wire display context for text toasts" into tm-dev am: ca6ef9125d am: 7bb2e73638
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18660549

Change-Id: I42afc6f189017626af58bd2cd58d197ec68f9a3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 03:40:28 +00:00
Iris Yang
ed08768357 Merge "Wire display context for text toasts" into tm-dev am: ca6ef9125d am: 4728c6f7d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18660549

Change-Id: I3ba865298f2f07d3d241c026cb41fde650777b4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 03:38:46 +00:00
Iris Yang
3dfec49ea8 Merge "Wire display context for text toasts" into tm-dev am: ca6ef9125d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18660549

Change-Id: I50ed33505cfa726cab10348ee352bfce702db08b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 03:16:29 +00:00
Iris Yang
ca6ef9125d Merge "Wire display context for text toasts" into tm-dev 2022-06-03 02:58:01 +00:00
Phil Weaver
b985aa5d71 Merge "Revert "Fix clicking the allow/deny button of the dialog was not working after quickly clicking multiple times."" 2022-06-03 00:37:15 +00:00
Phil Weaver
88bda4c6bd Revert "Fix clicking the allow/deny button of the dialog was not working after quickly clicking multiple times."
This reverts commit 6e79d12510.

Reason for revert: b/234737949 - the test this added is failing

Change-Id: Ia88853e738faea7fd7b4bfc6d2099cee0fb7d256
2022-06-03 00:33:46 +00:00
Mike Schneider
dca1ed7037 Add enum entries for HADE_DIALOG_OPEN and USER_DIALOG_OPEN interactions
Bug: 232908404
Test: build pass
Change-Id: I5b4aa1edb32604efa2ca12a121386af9793ffb30
2022-06-02 14:41:50 +02:00
TreeHugger Robot
3944cf3aaf Merge "Update fgs manager message and remove dot" into tm-dev am: bba9932a6b am: 6b086c70fc am: 56115274cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18705774

Change-Id: Ic907620c5d8f27afa15c538cb78dd1c7321c6629
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 05:34:45 +00:00
TreeHugger Robot
56115274cc Merge "Update fgs manager message and remove dot" into tm-dev am: bba9932a6b am: 6b086c70fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18705774

Change-Id: Iddb682378a3cbcf65406ec1fde153d6148accd38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 05:34:14 +00:00
TreeHugger Robot
f3a8c97ca4 Merge "Update fgs manager message and remove dot" into tm-dev am: bba9932a6b am: ded676842e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18705774

Change-Id: I536e895422d5be522dc189bf7187a82f2a4f7793
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 05:33:09 +00:00
TreeHugger Robot
bf40a305ae Merge "Update fgs manager message and remove dot" into tm-dev am: bba9932a6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18705774

Change-Id: I6dd4241fad27835c6f93b3b3598efa2318ad6c8c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 05:22:51 +00:00
TreeHugger Robot
bba9932a6b Merge "Update fgs manager message and remove dot" into tm-dev 2022-06-02 05:18:03 +00:00
PETER LIANG
f0e0da6fbd Merge "Fix clicking the allow/deny button of the dialog was not working after quickly clicking multiple times." 2022-06-02 01:57:10 +00:00
Evan Severson
280ea9072d Update fgs manager message and remove dot
Test: Build and start a foreground service
Fixes: 234476539
Change-Id: Ib85f68e5517498c3e6441d246cc9b3feb1c5de1d
2022-06-01 17:45:21 -07:00
Matt Casey
ce5b44f6fd Merge "Fix ResolverDrawerLayout child measurement" into tm-dev am: a834a9bd52 am: 913908c1ad am: c7b8ee2a96
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18625112

Change-Id: If847db9de8d4fa9fd2a676a23df327160e1c86ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 20:08:36 +00:00
Matt Casey
a0605e46dd Merge "Fix ResolverDrawerLayout child measurement" into tm-dev am: a834a9bd52 am: 2c6fe5dc6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18625112

Change-Id: Ie728f09787321f0c5f0a3c2a6d2b611b3d0f9143
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 20:08:15 +00:00