Commit Graph

19173 Commits

Author SHA1 Message Date
Treehugger Robot
900df4ad1a Merge "Updated OWNERS file for expresslog APIs" am: 352e892f47
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2285193

Change-Id: I741e921a741272151e20c183ef3e8328ff9b4108
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 02:08:03 +00:00
Treehugger Robot
352e892f47 Merge "Updated OWNERS file for expresslog APIs" 2022-11-17 01:33:49 +00:00
Azhara Assanova
e974be93ec Merge "Disallow dangerous zip entry names" am: fb6ff598b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2281427

Change-Id: I3dd4217728f41532c63409e7a5c47bf755d24cc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 10:54:53 +00:00
Azhara Assanova
fb6ff598b9 Merge "Disallow dangerous zip entry names" 2022-11-16 10:11:38 +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
Azhara Assanova
ef3688b947 Disallow dangerous zip entry names
Implement SafeZipPathValidatorCallback which throws ZipException if the
zip entry name contains ".." or starts with "/". The callback is then
set in RuntimeInit.

This feature will be enabled for apps with targetSDK >= U.

Bug: 252994429
Bug: 242716250
Test: atest FrameworksCoreTests:com.android.internal.os.SafeZipPathValidatorCallbackTest
Change-Id: Idef0f78a9da86d7606681a8fbc3f61b1be99adaf
2022-11-08 14:48:26 +00:00
Vova Sharaienko
0aee6e1b11 Updated OWNERS file for expresslog APIs
Bug: 247803110
Test: n/a
Change-Id: I64d2565b82070ac3b87f68726e5809eeaebd88f8
2022-11-07 18:31:25 +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
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
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
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
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
Josep del Río
13e8df2c0a Merge "Add global microphone mute key for keyboard" am: e85f271021
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263102

Change-Id: Idf4643df3f011352ae07b1920ba2ded863ab7165
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 20:51:05 +00:00
LiZhihong
95c1165bb8 Add global microphone mute key for keyboard
This change will enable the "mic mute" key on keyboards to globally mute
the microphone using the SensorManager, which has UI implemented in
multiple places (quick shortcuts, privacy center, settings...).

Test: manual
Bug: 237355207
Signed-off-by: LiZhihong <lizh52@lenovo.corp-partner.google.com>
Signed-off-by: DingYong <dingyong2@lenovo.corp-partner.google.com>
Change-Id: I492e501503b0ab9f56e1fa84fcc77a8c798bcb83
2022-10-20 14:59:19 +00:00
Nicolas Geoffray
e60487c7b6 Merge "Cleanup and consistency around system server profiling." am: 6cbc807a6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2251513

Change-Id: I24ab6f204063e46a7c08023fac0fd0583de3dc91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 07:18:49 +00:00
Nicolas Geoffray
6cbc807a6f Merge "Cleanup and consistency around system server profiling." 2022-10-19 06:39:04 +00:00
Ruslan Tkhakokhov
6b7e9ae939 Merge "Add B&R OWNERS to internal/backup" am: c17fd7ca9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2259601

Change-Id: If47e4091b2e855a9a1ae7814ee2e2d48f9f082c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 14:29:50 +00:00
Nicolas Geoffray
1c2e7ed14c Cleanup and consistency around system server profiling.
The profiling currently works by accident: only because we profile the
boot classpath which executes in JIT zygote do we not load system server
AOT artifacts.

So make the not loading AOT artifacts in system server explicit when the
system server is being profild.

Test: system server profiling
Change-Id: I8d787c8f8524d9d6074dc0f552a856640f11cef0
2022-10-18 12:38:33 +00:00
Ruslan Tkhakokhov
bcc956623e Add B&R OWNERS to internal/backup
Bug: 254231632
Change-Id: If8e0d5c2ef7bed5e6acd05a0301b2d7f373412c3
Test: n/a
2022-10-18 12:36:58 +00:00
Islam Elbanna
8ac01a2856 Merge "Allow profiling for standalone system server jars." am: bda789c641
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2257205

Change-Id: I28c7e16af0795ccd25850cc07beb7057af24cdd4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 09:46:50 +00:00
Islam Elbanna
1ed9d64bcd Allow profiling for standalone system server jars.
Currently we profile only main system server classpath, this is to allow
profiling for the standalone system server jars.

Bug: 241823638
Test: System server profiling: verified the profile snapshot of the boot image profile, and it showed the new jars profiling data.
Change-Id: I5b10373fb22ddfecdb95b6a4611f4af97bb5666d
2022-10-17 17:09:45 +00:00
Xin Li
92da83812c Merge "Merge tm-qpr-dev-plus-aosp-without-vendor@9129937" into stage-aosp-master 2022-10-11 17:39:41 +00:00
Philip Junker
01f38dc5bc Initialize ContentObserver in startObserving().
This removes a race condition where ContentObserver is initialized
while mHandler is null which causes the ContentObserver#onChange() callback to run on a different thread and can cause an NPE.

Bug: 246843362
Test: manual
Test: atest BrightnessSynchronizerTest
Merged-In: Ib8e192c3961390ece721fa473d5c09323c30bafe
Change-Id: Ia7443efb9e8020d46b251c7f7100adbf58072345
2022-10-10 09:00:24 +00:00
Xin Li
4b1dc6dbf6 Merge TP1A.221005.003
Merged-In: I6ffbb7510e6854f18bc427d1ae1e782918c799dc
Change-Id: I32d05cdabc6579f00bb4af0657b38539ec81a588
2022-10-03 13:38:22 -07:00
Daniel Norman
ce09a229dd Adds more OWNERS to a11y FW dirs. am: b6dc971384 am: 4292755d27 am: 2325eb5313 am: e9dd122ce4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2234907

Change-Id: I005464c49af46492ee791c3068ec1e21cdaea18f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 21:18:45 +00:00
Daniel Norman
2325eb5313 Adds more OWNERS to a11y FW dirs. am: b6dc971384 am: 4292755d27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2234907

Change-Id: I9a70dc471223f0cd68bfeaeecdb6c0b6ac033efa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 19:43:37 +00:00
Daniel Norman
b6dc971384 Adds more OWNERS to a11y FW dirs.
Bug: n/a
Test: n/a
Change-Id: I1331e89caf4942d2118e644ed3f9710daa66be95
2022-09-28 09:15:49 -07:00
TreeHugger Robot
6fc7651cdc Merge "Catch unexpected detached view while creating FrameTracker" into tm-qpr-dev am: 05914b98a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20033151

Change-Id: I70f58c963ee1e25a276e88a290d3f6bda3f94c8b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-27 13:44:21 +00:00
TreeHugger Robot
05914b98a4 Merge "Catch unexpected detached view while creating FrameTracker" into tm-qpr-dev 2022-09-27 13:14:43 +00:00
TreeHugger Robot
cc6597d2d1 Merge "Add Logging of the UI Latency for hotword invocation" into tm-qpr-dev am: 7ca15df236
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20021705

Change-Id: Ia09d62f94fb98ef9c0fedaa9cd5b4df58902ddeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 04:18:40 +00:00
TreeHugger Robot
7ca15df236 Merge "Add Logging of the UI Latency for hotword invocation" into tm-qpr-dev 2022-09-24 03:51:17 +00:00
Jing Ji
316c6e8df8 Merge "Check the null pointer in ProcStats" into tm-qpr-dev am: 52ef129d27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20040059

Change-Id: Ic69c4987f96c0085834105010d621901a24dd9f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 03:21:34 +00:00
Jing Ji
52ef129d27 Merge "Check the null pointer in ProcStats" into tm-qpr-dev 2022-09-24 03:10:28 +00:00
Nicholas Ambur
0cf35e854e Add Logging of the UI Latency for hotword invocation
Log the UI latency with UIActionLatencyReported atom. We plan to
calulate the latency from when the SoundTrigger HAL emits an event to
when the VoiceInteraction system UI view is shown.

Test: device_config put latency_tracker enabled true; verify traces
and latency is logged in WW.
Bug: 247879896

Change-Id: I3edb91691e81f8f23660c0823a6388338fe926ad
2022-09-23 18:13:14 -07:00
Josh Tsuji
e99749d20b Merge "Add jank instrumentation for occlude/unocclude/launcher unlock." into tm-qpr-dev am: 11ffb9c8b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19601329

Change-Id: Iaf8e39aaf62ef5272b43a06b1b76cafe8d8448a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 00:56:55 +00:00
Eun-Jeong Shin
9f8c630473 Merge "Add hyperlink to "Learn more" in device log access dialog" into tm-qpr-dev am: ce1f5634ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20029318

Change-Id: Ied834646b40513958d19633556813d521dfa65b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 00:55:22 +00:00
Josh Tsuji
11ffb9c8b4 Merge "Add jank instrumentation for occlude/unocclude/launcher unlock." into tm-qpr-dev 2022-09-24 00:23:28 +00:00
Jing Ji
5ecd71861f Check the null pointer in ProcStats
Bug: 246663534
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Test: atest CtsStatsdHostTestCases
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: Ie39e232970238f44b447467173ae46d4775e6432
2022-09-23 16:47:50 -07:00
Josh Tsuji
64a3f7394a Add jank instrumentation for occlude/unocclude/launcher unlock.
Fixes: 241195239
Test: grab a trace
Change-Id: If9af9aa95ddff26c9baf5101fb5aa45389e532eb
2022-09-23 15:33:52 -04:00
Josh Tsuji
06a8a923de Merge "Enable presubmit for com.android.internal.jank" into tm-qpr-dev-plus-aosp 2022-09-23 19:27:37 +00:00
Eun-Jeong Shin
db1ed6fa67 Add hyperlink to "Learn more" in device log access dialog
Add a hyperlink to explain device log access in "Learn more"

Bug: 231437131
Test: GtsVerifier
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: Id7978ee800367f696a8b9ea0d80d0b7e0c2d41eb
2022-09-23 17:30:44 +00:00
Ahan Wu
830249f303 Catch unexpected detached view while creating FrameTracker
Bug: 245083316
Test: atest FrameTrackerTest InteractionJankMonitorTest
Test: LatencyTrackerTest
Change-Id: I55941c78b7200bd70a4b30a29defc3c8306eead8
Merged-In: I55941c78b7200bd70a4b30a29defc3c8306eead8
2022-09-23 16:48:24 +00:00
Nick Chameyev
d84bec201c Merge "[Partial Screensharing] Add initial recents selector UI" into tm-qpr-dev am: 66e9106619
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19867406

Change-Id: I4f6b2799fa1009f3c3b888ac926c8c7455cfbc28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 14:11:03 +00:00
Nick Chameyev
66e9106619 Merge "[Partial Screensharing] Add initial recents selector UI" into tm-qpr-dev 2022-09-23 13:20:23 +00:00
Nick Chameyev
333c007f08 [Partial Screensharing] Add initial recents selector UI
Adds a recycler view that can show list of thumbnails
and app icons that could be loaded asynchronously.
It is hidden under a flag, so it won't be visible
on normal builds.

Current limitations which will be fixed in
the follow up CLs:
* It doesn't load real data
* Task thumbnail sizes are hardcoded and
  not cropped correctly
* No actions on thumbnail click

Screenshot demo: https://screenshot.googleplex.com/68vhXBNefCKHR2G.png

Test: atest com.android.systemui.mediaprojection.appselector.MediaProjectionAppSelectorControllerTest
Bug: 240924921
Change-Id: Ia3c685050656659ea9a79ffc90a91465c114e259
2022-09-23 11:19:54 +01:00
Joanne Chung
62d698f8e8 [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time"" am: 8be1773964
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19992748

Change-Id: I93dcd232eb6205c8c6361406b4ccd0863a0dea46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 09:38:07 +00:00
Joanne Chung
990b2f2682 Merge "[DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""" into tm-qpr-dev 2022-09-23 09:05:50 +00:00
Miranda Kephart
2584f20d58 Merge changes Iffb62170,I9b795928 into tm-qpr-dev am: 4658046b52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20007505

Change-Id: I1c6415729dd96888303831a4fa182d8baf1e057a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 19:32:09 +00:00