Commit Graph

19927 Commits

Author SHA1 Message Date
Cole Faust
e4abcbec1d [conflict] Merge "Fix errorprone warnings that should be errors" am: 677d6cd780 am: f9df26ae3c am: d3c499dabc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I84d67fdfcc99f9f6fca218d4264ab8e0bc1f1653
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:47:41 +00:00
Cole Faust
d3c499dabc Merge "Fix errorprone warnings that should be errors" am: 677d6cd780 am: f9df26ae3c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I8090e254f06a3b5fc7e9b23fdae6c5bd3db230c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:37:15 +00:00
Cole Faust
f9df26ae3c Merge "Fix errorprone warnings that should be errors" am: 677d6cd780
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I0e9c5077610407a117ee34ff688b40b52e161a03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:11:55 +00:00
Cole Faust
7da659bb6c Fix errorprone warnings that should be errors
This commit is part of a large scale change to fix errorprone
errors that have been downgraded to warnings in the android
source tree, so that they can be promoted to errors again.
The full list of changes include the following, but not all
will be present in any one individual commit:

BadAnnotationImplementation
BadShiftAmount
BanJNDI
BoxedPrimitiveEquality
ComparableType
ComplexBooleanConstant
CollectionToArraySafeParameter
ConditionalExpressionNumericPromotion
DangerousLiteralNull
DoubleBraceInitialization
DurationFrom
DurationTemporalUnit
EmptyTopLevelDeclaration
EqualsNull
EqualsReference
FormatString
FromTemporalAccessor
GetClassOnAnnotation
GetClassOnClass
HashtableContains
IdentityBinaryExpression
IdentityHashMapBoxing
InstantTemporalUnit
InvalidTimeZoneID
InvalidZoneId
IsInstanceIncompatibleType
JUnitParameterMethodNotFound
LockOnBoxedPrimitive
MathRoundIntLong
MislabeledAndroidString
MisusedDayOfYear
MissingSuperCall
MisusedWeekYear
ModifyingCollectionWithItself
NoCanIgnoreReturnValueOnClasses
NonRuntimeAnnotation
NullableOnContainingClass
NullTernary
OverridesJavaxInjectableMethod
ParcelableCreator
PeriodFrom
PreconditionsInvalidPlaceholder
ProtoBuilderReturnValueIgnored
ProtoFieldNullComparison
RandomModInteger
RectIntersectReturnValueIgnored
ReturnValueIgnored
SelfAssignment
SelfComparison
SelfEquals
SizeGreaterThanOrEqualsZero
StringBuilderInitWithChar
TreeToString
TryFailThrowable
UnnecessaryCheckNotNull
UnusedCollectionModifiedInPlace
XorPower

See https://errorprone.info/bugpatterns for more
information on the checks.

Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: I8446f9076a45ebf7e7ffa06cb0d4ddb1001b6c00
2022-11-14 17:57:30 -08:00
Jorge Gil
bc425d503d Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev am: 1f17bf7eba am: f28339c869
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20378671

Change-Id: I3cdea614c657c696c551d31672b215cb80eeb789
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 22:24:21 +00:00
Eric Biggers
43148289e3 Merge "Allow migration to SP to be rolled back by filesystem checkpoint" 2022-11-14 22:16:49 +00:00
Jorge Gil
f28339c869 Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev am: 1f17bf7eba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20378671

Change-Id: I0d828b42ae8a3d6b62c15a0c3f3f78809e1a3663
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 21:37:55 +00:00
TreeHugger Robot
30f0cface7 Merge "Remove atraces from RemeasuringLinearLayout" into tm-qpr-dev am: 6cf3dab11b am: 3374b69597
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20462730

Change-Id: Ifc6281f14d57a6e53a25e1638060ec3a03c711ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 17:09:10 +00:00
TreeHugger Robot
3374b69597 Merge "Remove atraces from RemeasuringLinearLayout" into tm-qpr-dev am: 6cf3dab11b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20462730

Change-Id: Ia117940212cb84b78d7c124674c959331eb986a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 16:36:07 +00:00
Cosmin Băieș
fc03fbd025 Merge changes from topic "revert-20437706-revert-20313761-IME tracking - hide-HZXGDCCPOZ-XOCVITMXNR"
* changes:
  Revert^2 "Input latency & reliability tracking - hide flow"
  Revert^2 "Input latency & reliability tracking"
2022-11-14 14:36:36 +00:00
Nicolo' Mazzucato
03d923dada Remove atraces from RemeasuringLinearLayout
onMeasure was being called 246 times in 26 ms, and having all those traces was not helping much and causing a few millis of latency.

Bug: 258930580
Test: Recorded a perfetto trace and inspected it manually
Change-Id: I672b785a57fe6c6d78b6a89e68fa57735c225bc7
2022-11-14 12:46:55 +00:00
TreeHugger Robot
a28c45c2b2 Merge "Add logs to aid slow notification measuring investigation" into tm-qpr-dev am: db45ef8514 am: f826fd57a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20438505

Change-Id: Iacba99dc7d073605575fa35e72800039ad09d737
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-12 20:22:03 +00:00
TreeHugger Robot
f826fd57a9 Merge "Add logs to aid slow notification measuring investigation" into tm-qpr-dev am: db45ef8514
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20438505

Change-Id: I44e7999269a4f348474b96316ff71b62bc861d3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-12 19:33:51 +00:00
Cosmin Băieș
44ff0dd9eb Revert^2 "Input latency & reliability tracking - hide flow"
d638a60aae

Test: atest CtsSystemApiSignatureTestCases:android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Change-Id: I1ee7224b40fa3f4b744311eb4145fa13a87d835a
2022-11-11 12:22:55 +01:00
Jorge Gil
5a95db047e Add WCT#setDragResizing to optimize fluid resizing
Allows WM Shell to indicate the start/end of drag resizing, which
core can use as a signal to reuse a single (larger) surface size
for the entire drag resize operation to avoid continuous buffer
allocations after each size change.

Bug: 249808500
Test: drag resize a freeform window, verify WindowLayout requests
a fullscreen sized surface; atest TaskPositionerTest

Change-Id: I27e2b44270d7ea4f701fa8037f93b20dc691284b
2022-11-11 00:48:49 +00:00
Nicolo' Mazzucato
318f6d69b7 Add logs to aid slow notification measuring investigation
Bug: 245268301
Bug: 243647188
Test: Recorded a perfetto trace and inspected it manually
Change-Id: I33ca2e0c7e9f71c97acca90eb0a29293e58c0442
2022-11-10 18:45:36 +00:00
Cosmin Băieș
1619482379 Revert^2 "Input latency & reliability tracking"
1f4fd2d21e

Change-Id: I096456e9cd7449836b373ff392f2e9df58b3e661
2022-11-10 17:53:07 +01:00
Pascal Mütschard
581fdec050 Merge changes from topic "revert-20313761-IME tracking - hide-HZXGDCCPOZ"
* changes:
  Revert "Input latency & reliability tracking"
  Revert "Input latency & reliability tracking - hide flow"
2022-11-10 13:22:35 +00:00
Pascal Mütschard
1f4fd2d21e Revert "Input latency & reliability tracking"
Revert submission 20313761-IME tracking - hide

Bug: b/258637227
Reason for revert: Breaks CtsSystemApiSignatureTestCases android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Reverted Changes:
Icf9ab3fc0:Input latency & reliability tracking - hide flow
I1096564d5:Input latency & reliability tracking - hide flow
I14e009250:Input latency & reliability tracking - hide flow
Ic32e36b2d:Input latency & reliability tracking
I56f96dc6b:Input latency & reliability tracking
I73dec2e9e:Input latency & reliability tracking

Change-Id: Ia376a1624fb6abf937eb2a335aa75cb3ca9831d8
2022-11-10 13:11:27 +00:00
Pascal Mütschard
d638a60aae Revert "Input latency & reliability tracking - hide flow"
Revert submission 20313761-IME tracking - hide

Bug: b/258637227
Reason for revert: Breaks CtsSystemApiSignatureTestCases android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Reverted Changes:
Icf9ab3fc0:Input latency & reliability tracking - hide flow
I1096564d5:Input latency & reliability tracking - hide flow
I14e009250:Input latency & reliability tracking - hide flow
Ic32e36b2d:Input latency & reliability tracking
I56f96dc6b:Input latency & reliability tracking
I73dec2e9e:Input latency & reliability tracking

Change-Id: I0d0ce41e3a4f0d19ff482c2f5ab4884b5f758134
2022-11-10 13:11:27 +00:00
Cosmin Băieș
36d3884041 Merge changes from topics "IME tracking - hide", "IME tracking"
* changes:
  Input latency & reliability tracking - hide flow
  Input latency & reliability tracking
2022-11-10 10:19:00 +00:00
TreeHugger Robot
92ebd3897a Merge "Enable fs-verity to all APKs on install" 2022-11-09 18:58:22 +00:00
TreeHugger Robot
cae7f92a95 Merge "Add CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS" into tm-qpr-dev am: d825147525 am: d934789060
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20340228

Change-Id: Idf82a3cfcb72f4c832fa6cd7151475d479df56a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 13:40:17 +00:00
TreeHugger Robot
d934789060 Merge "Add CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS" into tm-qpr-dev am: d825147525
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20340228

Change-Id: I58275d682324b9e2031f5cbbd5ffd4e2d3ecaffb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 13:08:46 +00:00
TreeHugger Robot
d825147525 Merge "Add CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS" into tm-qpr-dev 2022-11-09 12:27:24 +00:00
Eric Biggers
ff116c879e Allow migration to SP to be rolled back by filesystem checkpoint
On upgrade from Android 13 or earlier, LockSettingsService is creating a
synthetic password (SP) for all users that didn't have one before, and
re-encrypting the user's CE key with the SP.  Currently this happens at
PHASE_BOOT_COMPLETED, since Weaver is not yet guaranteed to be available
at the previous phase, PHASE_THIRD_PARTY_APPS_CAN_START.

An issue with using PHASE_BOOT_COMPLETED is that during an upgrade,
PHASE_BOOT_COMPLETED happens after the userdata filesystem checkpoint
has already been committed.  Therefore, if a problem occurs with the
migration to SP, the changes won't be rolled back and the device will be
left in a broken state, recoverable only via a factory reset.

Important migrations like this should happen before the checkpoint is
committed.  Therefore, replace the use of PHASE_BOOT_COMPLETED with a
direct call into LockSettingsService in an appropriate place, similar to
the existing LockSettingsService.systemReady() call.

I also considered creating a PHASE_THIRD_PARTY_APPS_STARTED boot phase.
However, any new boot phase would become part of the services API
(services/api/current.txt), which is more than I'd like to do here.

Test: Made an intentionally broken build with
      LockSettingsService.onThirdPartyAppsStarted() changed to throw a
      RuntimeException at the end, crashing system_server.  Tested an
      OTA from tm-qpr2-release to that build, on a device that didn't
      have a lockscreen credential set on user 0 (so that user 0 was
      migrated to SP-based credentials just before the crash).  The OTA
      failed as expected and successfully rolled back to the original
      build, with user 0's data still accessible (this was not possible
      before this change).
Bug: 232452368
Change-Id: I77d30f9be57de7b7c4818680732331549ecb73c8
2022-11-09 05:48:18 +00:00
TreeHugger Robot
4e41f3e9bc Merge "Enable a shortcut selection test." into tm-qpr-dev am: 36e32b3884 am: 14391d46c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19921604

Change-Id: I0a9b806c7680a00537caee8e5c1212011e6f87a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 01:09:03 +00:00
TreeHugger Robot
14391d46c7 Merge "Enable a shortcut selection test." into tm-qpr-dev am: 36e32b3884
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19921604

Change-Id: Idd95ac8d83f68f0b656fe244cf22a2530f677cf3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 00:47:28 +00:00
TreeHugger Robot
36e32b3884 Merge "Enable a shortcut selection test." into tm-qpr-dev 2022-11-09 00:35:50 +00:00
Joanne Chung
cca384ebb2 Merge "Dump App exit reason if the remote service died." into tm-qpr-dev am: 055796e826
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20392455

Change-Id: I83fa75898fcd5894e4dcc8d659e5035b4afce60d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-08 11:15:12 +00:00
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
Victor Hsieh
314dd4c075 Enable fs-verity to all APKs on install
Previously, we only enable fs-verity to an APK if it comes with a
trusted signature (.fsv_sig). With this change, we'll enable fs-verity
in integrity-only mode if there's no signature.

The biggest benefit is O(1) measurement of the APK content, and can be
useful to some use cases.

Note that integrity-only does not imply security, since without a
signature, an attacker can also enable fs-verity on arbitrary files.

Bug: 249158715
Test: CtsAppSecurityHostTestCases:android.appsecurity.cts.ApkVerityInstallTest
Change-Id: I119e5189603af888dfa1ece2bee9e7635120854b
2022-11-07 10:07:50 -08:00
Nicolo' Mazzucato
b649e5d34c Add CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS
Bug: 231130484
Bug: 228969045
Test: recorded prefetto trace while going to recents
Change-Id: I5819894196839af962010b66178e45abad516f0f
2022-11-07 16:52:40 +00:00
Cosmin Băieș
553cb171de Input latency & reliability tracking - hide flow
Test: filter logcat for ImeTracker tag, open some apps with IME connection (e.g. Dialer, Messaging, etc.) and close the soft keyboard, check that tracking reflects observed behaviour
Change-Id: Icf9ab3fc0f7a7116456c13328d22f8b8428a0c79
2022-11-07 17:49:47 +01:00
Cosmin Băieș
6756327922 Input latency & reliability tracking
Test: filter logcat for ImeTracker tag, open some apps with IME connection (e.g. Dialer, Messaging, etc.), check that tracking reflects observed behaviour
Change-Id: I73dec2e9e2d5f919c7a006828ee0b12a998fc7d9
2022-11-07 17:49:41 +01:00
Joanne
908ee5ed9d Dump App exit reason if the remote service died.
We received many bugs the ContentCaptureService entered zombie
state but we don't know the reason why the process died. The issue
timing didn't be captured in bugreport.

Currently, the AbstractRemoteService will enter an odd state if the
service cannot be reconnected. This state does not allow the requests
be sent until the service be reconnected again on an unknown timing.
In some cases, it is expected the service will not be reconnected.
e.g. app stop from settings. We should fix the problem in the
AbstractRemoteService but before doing this, we try to add debugging
signal in bugreport to help us understand if the existing issues come
from this odd state for reasonable reasons.

The change was merged in master so skip automerge. The minor change
here will have a seperate change in master.

Bug: 248218072
Bug: 250859760
Test: disable app and dumpsys content_capture
Change-Id: Ia33462006a3925754001562b0d80540b9b0bc45d
Merged-in: Ia33462006a3925754001562b0d80540b9b0bc45d
(cherry picked from commit d060ed5697)
2022-11-07 12:40:48 +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