Commit Graph

20040 Commits

Author SHA1 Message Date
Eun-Jeong Shin
fc13cb1d68 Generate consent dialog when device log access is requested in SystemUI
This change is to implement device log access dialog from SystemUI rather than
 system server.

Bug: 238434889, 244173014
Test: GtsVerifier
Ignore-AOSP-First: migration of device log access dialog
Change-Id: I17058c008084f91099cd45a51ec8d8fbab1d78bb
2022-11-07 19:54:17 +00:00
Taran Singh
48cba7c99a Merge "API for realtime Scribe gesture preview" 2022-11-04 18:12:07 +00:00
Kean Mariotti
05a47d1673 Merge "Fix UI traces real-to-elapsed time offset" 2022-11-04 13:08:35 +00:00
TreeHugger Robot
12e64b35b6 Merge "Ignore onPostListReady call if the activity has been destroyed" into tm-qpr-dev am: b67434ebea am: cd1b1623fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20330377

Change-Id: I128c2070597a1f33ba5f1fe1dc6919b30042c8f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 01:00:59 +00:00
TreeHugger Robot
cd1b1623fa Merge "Ignore onPostListReady call if the activity has been destroyed" into tm-qpr-dev am: b67434ebea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20330377

Change-Id: Ib057fc1f7d5ffd8d8945a50453598f16ff2e7a98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 23:41:11 +00:00
TreeHugger Robot
b67434ebea Merge "Ignore onPostListReady call if the activity has been destroyed" into tm-qpr-dev 2022-11-03 23:20:05 +00:00
Vova Sharaienko
f7df9bd7a2 Merge "[TeX] Introduced Telemetry Express Logging APIs" am: 42bf7a986d am: 05c391241f am: 6e80081112
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2272886

Change-Id: Ib1933ab27fb42cb200059f7f0d655e2716741686
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 20:13:38 +00:00
Vova Sharaienko
6e80081112 Merge "[TeX] Introduced Telemetry Express Logging APIs" am: 42bf7a986d am: 05c391241f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2272886

Change-Id: Ie1afd3d68f0768f77d15d4017ebf88a8534347c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 19:12:13 +00:00
Vova Sharaienko
05c391241f Merge "[TeX] Introduced Telemetry Express Logging APIs" am: 42bf7a986d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2272886

Change-Id: I69b291aabb3ddead72c043b9c080b0c7e252206e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 18:41:34 +00:00
Behnam Heydarshahi
a0668f97ce Merge "Add flag to separate notification audio and ui" into tm-qpr-dev am: dd4b1a0d7d am: 97b43449c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20180063

Change-Id: Ic85bec6a394769f235f29ee364c044140ec32740
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 18:33:40 +00:00
Taran Singh
95baa907de API for realtime Scribe gesture preview
Introduce new API to support gesture preview as user is operating over
text.

Bug: 254726230
Bug: 254727073
Test: InputConnectionEndToEndTest

Change-Id: I6c2ac5a5aaeaeab78411d24870f573670304e898
2022-11-03 18:04:00 +00:00
Behnam Heydarshahi
97b43449c2 Merge "Add flag to separate notification audio and ui" into tm-qpr-dev am: dd4b1a0d7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20180063

Change-Id: I8d858b5deaaa340039edc1c3b87d20d34d915f47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 16:15:00 +00:00
Behnam Heydarshahi
dd4b1a0d7d Merge "Add flag to separate notification audio and ui" into tm-qpr-dev 2022-11-03 15:57:35 +00:00
Tiger Huang
dbca496579 Merge "Describe requested visibilities in public types (4/n: sysui)" 2022-11-03 08:06:57 +00:00
TreeHugger Robot
7273e4b03b Merge "Inform Assistant visible activity when the stage of activity lifecycle is invoked." into tm-qpr-dev am: d35150f907
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20308987

Change-Id: I87b31354db0a112cb2481e1d1654d2e5ca1a7c95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 04:59:14 +00:00
TreeHugger Robot
d35150f907 Merge "Inform Assistant visible activity when the stage of activity lifecycle is invoked." into tm-qpr-dev 2022-11-03 04:11:11 +00:00
TreeHugger Robot
373b3e5a21 Merge "Combining widget broadcasts" into tm-qpr-dev am: e6e061e5d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20055672

Change-Id: Idaecc02a707948eb9ac1f00d3a704bb1810e2907
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 02:32:52 +00:00
TreeHugger Robot
9d5c98c0ab Merge "Add InputMethodSubtypeHandle (again)" 2022-11-03 00:36:06 +00:00
TreeHugger Robot
ebb99da896 Merge "Remove an unused param from IMMS#showInputMethodPickerFromClient()" 2022-11-03 00:16:41 +00:00
TreeHugger Robot
cfbc9e029a Merge "Changing hsum property in OTA won't alter mode" 2022-11-02 21:01:25 +00:00
Vova Sharaienko
ff1ed5d78d [TeX] Introduced Telemetry Express Logging APIs
- provided Java Counter metric logging API

Bug: 247803110
Test: m
Change-Id: Ib154f8fda2c136a62f4a90fb2b14b816233d3b47
2022-11-02 20:22:03 +00:00
Yohei Yukawa
a488ba266c Remove an unused param from IMMS#showInputMethodPickerFromClient()
This is the 2nd attempt to submit this cleanup [1], after a revert [2] due to some build failure.

This is a follow up CL to our previous CL [3], which introduced

  InputMethodManagerService#showInputMethodPickerFromClient(
          @NonNull IInputMethodClient client,
          int auxiliarySubtypeMode, int displayId);

Somehow the "client" has never been used, which is fine because the
actual caller verification is done by requiring WRITE_SECURE_SETTINGS
permission.

Let's remove such an unused parameter for simplicity.

There must be no observable behavior change.

 [1]: I2f27160cbe7d83201c8f52dbb6dcb774a5b8ae43
      3efbbb5e49
 [2]: I343828ad83d50436211004753f1b9ba1b13b60ca
      2fb98cdab1
 [3]: Ic7d7c5a7ad8005a3fbd9d1c1b73e3c5a39a07001
      0b05f9e49d

Bug: 234882948
Bug: 256952514
Test: presubmit
Test: lunch aosp_bramble-userdebug && make -j
Change-Id: Ia536d8793f0022179dfafd1cbf21091537375992
2022-11-02 18:31:56 +00:00
Diya Bera
0921f75509 Merge "Refactor IUdfpsHbmListener to be refresh-rate specific" 2022-11-02 18:00:01 +00:00
Kean Mariotti
2b1b7d716d Fix UI traces real-to-elapsed time offset
Fix: b/256819989
Test: collect traces with Winscope 2.0 and check that real timestamps are correct
Change-Id: Id3435f6f4c71b97f7504abf8623948e46cb85b54
2022-11-02 08:44:22 +00:00
Ziqi Chen
6745a77c6c Merge "Add a new API CursorAnchorInfo#getTextAppearanceInfo()." 2022-11-02 08:18:02 +00:00
Hieu Dang
4826cefb6c Merge "Revert "Remove an unused param from IMMS#showInputMethodPickerFromClient()"" 2022-11-02 07:20:24 +00:00
Hieu Dang
2fb98cdab1 Revert "Remove an unused param from IMMS#showInputMethodPickerFromClient()"
This reverts commit 3efbbb5e49.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=aosp_bramble-userdebug&lkgb=9245415&lkbb=9246274&fkbb=9245423, bug https://buganizer.corp.google.com/issues/256952514

Change-Id: I343828ad83d50436211004753f1b9ba1b13b60ca
Bug: 256952514
2022-11-02 07:19:39 +00:00
czq
50f792e09d Add a new API CursorAnchorInfo#getTextAppearanceInfo().
Add a new group of information related to text appearance in
CursorAnchorInfo, which is extracted from TextView.

Bug: 231894524

Test: atest android.view.inputmethod.cts.CursorAnchorInfoTest#testBuilder
atest android.view.inputmethod.cts.CursorAnchorInfoTest#testEquality
atest android.view.inputmethod.cts.InputMethodServiceTest#testOnUpdateCursorAnchorInfo

Change-Id: I8b96f055506b0a426dcfc6334db867dda7073868
2022-11-02 11:40:08 +08:00
Yohei Yukawa
e7058e49a7 Merge "Remove an unused param from IMMS#showInputMethodPickerFromClient()" 2022-11-02 01:52:35 +00:00
Yohei Yukawa
3efbbb5e49 Remove an unused param from IMMS#showInputMethodPickerFromClient()
This is a follow up CL to our previous CL [1], which introduced

  InputMethodManagerService#showInputMethodPickerFromClient(
          @NonNull IInputMethodClient client,
          int auxiliarySubtypeMode, int displayId);

Somehow the "client" has never been used, which is fine because the
actual caller verification is done by requiring WRITE_SECURE_SETTINGS
permission.

Let's remove such an unused parameter for simplicity.

There must be no observable behavior change.

 [1]: Ic7d7c5a7ad8005a3fbd9d1c1b73e3c5a39a07001
      0b05f9e49d

Bug: 234882948
Test: presubmit
Change-Id: I2f27160cbe7d83201c8f52dbb6dcb774a5b8ae43
2022-11-01 13:12:09 -07:00
TreeHugger Robot
d6ffb3b531 Merge "Require TEST_INPUT_METHOD instead in IMM#addVirtualStylusIdForTestSession()" 2022-11-01 17:57:00 +00:00
Haoyu Zhang
bfdf3ddb5f Support TextBoundsInfo for TextView
Bug: 239843501
Test: atest TextViewTextBoundsInfoTest
Change-Id: Id3e46e8c8a9df294dc449064d7dfd68eafbd578d
2022-11-01 09:48:17 +00:00
Peter Li
eedc06b463 Inform Assistant visible activity when the stage of activity lifecycle is invoked.
By the original design, we register the activity event in the
ActivityManagerService. After getting the activity event, we will
query current visible activities and report them to Assistant.
Assistant will start to get direct actions of those visible
activities. But sometimes they can not get the direct actions
due to the stage of activity lifecycle before onStart().

We change the logic to make sure that the stage of visible
activity that we reported to the Assistant is after onStart().

Bug: 235296082
Test: atest VoiceInteractionSessionVisibleActivityTest
Test: atest android.app.activity.ActivityThreadClientTest
Test: atest android.view.DisplayTest
Test: atest android.window.ConfigurationHelperTest
Test: atest android.window.SizeConfigurationBucketsTest
Change-Id: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
(cherry picked from commit 29bb3a3428)
Merged-In: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
2022-11-01 09:19:51 +00:00
Haoyu Zhang
167691ce12 Merge "Introduce TextBoundsInfo" 2022-11-01 05:00:28 +00:00
Sihua Ma
1037ad0c30 Combining widget broadcasts
Combining broadcasts WIDGET_ENABLED and WIDGET_UPDATE into
WIDGET_ENABLE_AND_UPDATE to reduce response time at boot time

Test: Manually verified that some app widgets would function properly
Fix: 221890505
Change-Id: I6aff0f00464ec8628d2258d0d84dcd3c82258d57
(cherry picked from commit 1ae08fe75e)
Merged-In: I6aff0f00464ec8628d2258d0d84dcd3c82258d57
2022-10-31 20:47:38 +00:00
Andrey Epin
64714a02b2 Ignore onPostListReady call if the activity has been destroyed
ResolverActivity#onPostListReady is called asynchronously on the main
thread and it is possible for it to be executed after activity’s
onDestroy call.
A check for activity’s status is added to the method.

Test: atest FrameworksCoreTests:ChooserActivityTest
Fix: 254787909
Change-Id: I96d98a03d86881845868a67e33ea8ee7c9dc6631
2022-10-31 13:16:18 -07:00
Victor Hsieh
e8fe134280 Provide a method to verify a PKCS#7 signature am: 3363fd4da9 am: 8c8e63ea89
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274630

Change-Id: I46b786d9786f0a2c41e7e37096d3284ec76c1143
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 17:28:59 +00:00
Victor Hsieh
8c8e63ea89 Provide a method to verify a PKCS#7 signature am: 3363fd4da9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274630

Change-Id: If8c8a52c610f44222b20ee297f8ab04f8c195f84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 16:55:14 +00:00
Yohei Yukawa
e9490612d5 Introduce @hide ParcelableHandwritingGesture
This is a follow up CL to our previous CL [1], which introduced
HandwritingGesture and several subclasses.

One of the challenge is that we only wanted to make child classes
Parcelable, while keeping the abstract base class HandwritingGesture
non-Parcelable.  Although InputConnection has only one method

  InputConnection#performHandwritingGesture(
          HandwritingGesture, ResultReceiver),

in the IPC layer IRemoteInputConnection needed to define methods for
each subclass, e.g.

 * performHandwritingSelectGesture(in InputConnectionCommandHeader,
       in SelectGesture, ...)
 * performHandwritingInsertGesture(in InputConnectionCommandHeader,
       in InsertGesture, ...)
 * performHandwritingDeleteGesture(in InputConnectionCommandHeader,
       in DeleteGesture, ...)

because their abstract class HandwritingGesture is not Parcelable.

To avoid such method definitions (and lots of type-based dispatching /
merging logic), this CL introduces

  ParcelableHandwritingGesture

as a generic Parcelable container of HandwritingGesture subclasses.
You can freely use ParcelableHandwritingGesture in AIDL method
definitions as follows.

  performHandwritingGesture(in InputConnectionCommandHeader,
        in ParcelableHandwritingGesture, ...)

In the Java side, you can easily wrap objects as follows.

  var parcelableGesture = ParcelableHandwritingGesture.of(gesture);
  var unparceledGesture = parcelableGesture.get();

Note that this CL is still an internal cleanup. There must be no
developer observable behavior change.

 [1]: I53bcb62e03ac1c371feb60d1385c88c921754092
      3e3ff1a3d2

Bug: 234882948
Bug: 239783077
Test: presubmit
Test: atest FrameworksCoreTests:ParcelableHandwritingGestureTest
Change-Id: I158026087653f6772a78cc2394e678ae9741fb00
2022-10-31 08:08:54 -07:00
TreeHugger Robot
708134b584 Merge "Add API in AppWidgetServiceImpl" into tm-qpr-dev am: 9fa15007e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20056790

Change-Id: Ie31410fb55c69593a4432d8fc9db253c57dada4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 10:53:22 +00:00
Yohei Yukawa
cba800ef2f Require TEST_INPUT_METHOD instead in IMM#addVirtualStylusIdForTestSession()
This is a follow up CL to our previous CL [1], which introduced an @TestApi

  InputMethodManager#addVirtualStylusIdForTestSession(),

which internally requires INJECT_EVENTS permission.

Now that TEST_INPUT_METHOD is also available [2], let's require it
instead of INJECT_EVENTS for better consistency with other test APIs
defined in InputMethodManager.

This CL also add @RequiresPermission(TEST_INPUT_METHOD) to

  InputMethodManager#addVirtualStylusIdForTestSession()

to make it clear that it's guarded with the permission.

 [1]: I7399c0a56c04f024d65c16d459818cc2c5cdbc7f
      d96ef57bc4
 [2]: Ie79a3e9d41ce22605ae083594d639c37d08b7def
      b869c78380

Bug: 256239860
Test: atest CtsInputMethodTestCases:StylusHandwritingTest
Change-Id: Icdbb4ade2bd4b5066984e209efcf0ca93bfa08ca
2022-10-28 19:53:46 -07:00
Victor Hsieh
adb0627c62 Merge changes I70a8fc39,I80bbbd88
* changes:
  VerityUtilsTest: add a test case of external signature
  Provide a method to verify a PKCS#7 signature
2022-10-28 22:47:33 +00:00
Behnam Heydarshahi
b206e0b6a2 Add flag to separate notification audio and ui
AudioService and SeekBarVolumizer now read a flag instead of a config
boolean, when trying to determine if notification stream is separate
from ring.

Remove the now unused config & symbol for ring/notif stream alias

Bug: b/38477228

Test: atest AudioServiceTest#testRingNotifAlias

Change-Id: I1ee08c78984d3841711f88fcec360c936da00090
2022-10-28 21:26:41 +00:00
Yohei Yukawa
191ca0b4e0 Add InputMethodSubtypeHandle (again)
This CL introduces

  InputMethodSubtypeHandle

which is similar to what we used to have in the past [1].

In the previous attempt,

  com.android.server.input.PersistentDataStore

saved the data into the storage in the following format.

  <keyboard-layout
      descriptor="..."
      input-method-id="com.android.testime/.Ime1"
      input-method-subtype-id="1"
      ... />

While the new format is going to be something as follows, in general
InputMethodSubtypeHandle enables you to treat the actual String object
as an opaque byte data by providing both decode/encode methods with
data validation.

  <keyboard-layout
      descriptor="..."
      input-method-subtype-handle="com.android.testime/.Ime1:subtype:1"
      ... />

In addition to decode/encode methods, InputMethodSubtypeHandle
provides several useful functionality such as Parcel support and
methods like getComponentName().

See test cases for details.

 [1]: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216
      d5f7ed9fe9

Bug: 252816846
Test: atest FrameworksCoreTests:InputMethodSubtypeHandleTest
Change-Id: I5b052fba64f8036e7dd874c34b81f5fd4ffeaca3
2022-10-28 06:52:25 -07:00
Treehugger Robot
281db21f41 Merge "Fix imprecise name of a fs-verity helper function" am: 2af62aa321 am: 8c3b93803d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274628

Change-Id: Icc781004780d82a789c95374f3dabec06ee20303
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 22:04:36 +00:00
Treehugger Robot
8c3b93803d Merge "Fix imprecise name of a fs-verity helper function" am: 2af62aa321
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274628

Change-Id: Ia9ba79c5d6bc8f9e65780166b5456afaf01f3c88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 21:33:48 +00:00
Diya Bera
f7f819dda2 Refactor IUdfpsHbmListener to be refresh-rate specific
Bug: 246609325
Test: Manual
Change-Id: Ia94a3d7c5f86e59bc9227ee08dd98b7e9a6a88a5
2022-10-27 19:51:08 +00:00
Victor Hsieh
3363fd4da9 Provide a method to verify a PKCS#7 signature
There is existing PKCS#7 signature used in the kernel for verifying
fs-verity digest. The purpose of this change is to pave the way to
migrate the existing signature check to userspace (and longer term,
migrate away from PKCS#7).

To mitigate the complexity of PKCS#7, only the configuration we're
currently using is supported.

Bug: 253668864
Test: atest FrameworksCoreTests:com.android.internal.security.VerityUtilsTest
Test: Manually added some code to use the API with correct and incorrect
      signatures. Saw the API behave expectedly.
Change-Id: I80bbbd88881303c0b9a261b1fe59e9682e43bcad
Merged-In: I80bbbd88881303c0b9a261b1fe59e9682e43bcad
2022-10-27 10:37:11 -07:00
Victor Hsieh
c49d0bfa1a Fix imprecise name of a fs-verity helper function
Root hash is only part of the fs-verity digest covers. Rename to avoid
confusion.

Bug: N/A
Test: m
Change-Id: I12c2a4ac57fb8772483473f951e97474ebd894c9
Merged-In: I12c2a4ac57fb8772483473f951e97474ebd894c9
2022-10-27 10:37:05 -07:00
Sihua Ma
3efbb0d3b6 Add API in AppWidgetServiceImpl
A new function is created to notify the service of inheritance
information of the widget provider.

Test: N/A
Bug: 221890505
Change-Id: I5f43f8d6ecd66b54869bef58898b1d3809b43d9e
(cherry picked from commit 0b51675e56)
Merged-In: I5f43f8d6ecd66b54869bef58898b1d3809b43d9e
2022-10-26 22:02:47 +00:00