Commit Graph

2048 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
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
677d6cd780 Merge "Fix errorprone warnings that should be errors" 2022-11-15 18:50:58 +00:00
Treehugger Robot
777db8680a Merge "Update owner" am: 631aa259c8 am: ecd8730dd5 am: da92836da8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2301597

Change-Id: Ie1995e7247d46764c0fa5eb4d284ec936e05c426
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 07:13:37 +00:00
Treehugger Robot
ecd8730dd5 Merge "Update owner" am: 631aa259c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2301597

Change-Id: I25847d47f47477692290e318599d27021da1140d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 06:38:22 +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
Tsung-Mao Fang
5492441390 Update owner
Test: N/A
Change-Id: Iebf1a951db2bc5d6b23bbf4be0c8303f7a745663
2022-11-14 13:19:38 +08:00
Treehugger Robot
0342cfce2b Merge "Amend typo and code clean up for V2 signature and PackageManagerShellCommand" am: 72b0ad5427 am: 1454bed017 am: 979fb01dff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2280796

Change-Id: Ibbe0303ca7d0bd2fab979329fa771243d061ee09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 14:45:35 +00:00
Treehugger Robot
1454bed017 Merge "Amend typo and code clean up for V2 signature and PackageManagerShellCommand" am: 72b0ad5427
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2280796

Change-Id: I4fd5857986c7f55a4ab829d38145d6f2fe918cf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 13:39:05 +00:00
Shen Lin
53e9982584 Amend typo and code clean up for V2 signature and PackageManagerShellCommand
Test: mtest
Change-Id: I43c62a9388637b5da21098f82f99d5199514e3ff
2022-11-03 22:44:11 +08:00
TreeHugger Robot
2f1db9ecea Merge "Improve module and apex printout" 2022-11-03 09:29:54 +00:00
Billy Lau
bd40fbdc1e Improve module and apex printout
BinaryTransparencyService:
Make use of APEX digest as a binary measurement, which measures
only the changes to the content of the package, excluding the signing
block.

Additionally, this information is surfaced to the output of existing
`get apex_info` and `get module_info` commands.

The format of the output is also modified from previous iteration
to make the overall style and presentation more consistent for the
user.

PackageUtils:
Currently cryptographic digests that are hex encoded and encoded to
string are encoded in uppercase - this is not consistent with how
measurements for other binaries are stored and processed.

Thus, this change defaults the encoding for SHA-256 digest for
large files to be hex encoded and string encoded to lowercase.

Bug: 245941527

Test: manual.

Change-Id: I5b332214b516a71bded8dcc50883430608cde357
2022-11-01 20:17:27 -05:00
danielwbhuang
e4fadcbaec Create feature flags to control new shortcut, modifier keys and trackpad settings.
Bug: 256087727
Test: local test
Change-Id: I08277c4934295520fc650f6ebe7dfd860e05f2ec
2022-10-28 15:32:13 +08:00
Alexandre Elias
f41667c176 Merge "Add DENSITY_520 support" 2022-10-26 19:24:46 +00:00
Hai Zhang
f0960b3893 Move binary XML into modules-utils.
Bug: 243194720
Test: presubmit
Change-Id: I5252cf235cedc85aadebbecc078e753b7b54dcdd
2022-10-21 04:28:37 -07:00
Hai Zhang
e55b8eeb28 Move TypedXml{Parser,Serializer} to modules utils package.
A subsequent change will actually move the files to the other git
project.

Bug: 243194720
Test: presubmit
Change-Id: If126bb68f74852528c4da8df79831b49b5129983
2022-10-21 04:28:13 -07:00
Hai Zhang
b90e6818c3 Extract four byte sequence modified UTF-8 into separate classes.
The four byte sequence modified UTF-8 is now handled by classes
prefixed with ART, whereas the base classes implements the standard
modified UTF-8 and should be used by new clients in modules.

Bug: 243194720
Test: atest -rerun-until-failure 10 FastDataTest BinaryXmlTest \
      FrameworksCoreTests:XmlTest FastDataPerfTest
Change-Id: I08cea54c2a27249e00b7e155af0cf11949486375
2022-10-21 04:28:10 -07:00
Alexandre Elias
67a01f1e0e Add DENSITY_520 support
Bug: 249893404
Test: ThemeHostTest, ConfigurationTest
Change-Id: I6e213642caaab5e2ad38a867a15ab511dc22f159
2022-10-19 23:44:22 +00:00
Lauren Winston
b1370f52fe Revert "Add feature flag for Simple Cursor a11y feature."
This reverts commit 3c7272f18e.

Reason for revert: Software Cursor not launching in Android U

Test: manual
Change-Id: I92032755d1eab0b352108b2f2f9814e8d6c9f4a3
2022-10-12 00:15:15 +00:00
Suprabh Shukla
c6dcd3e42e Refactoring and tweaking TimeSparseArray
Tweaking the returned result from the boundary condition in
closestIndexOnOrAfter to be conceptually similar to
closestIndexOnOrBefore. This should also make it simpler to use by
callers.

Also exposing the class more broadly by moving it to android.util

Test: atest FrameworksCoreTests:TimeSparseArrayTest

Bug: 195684213
Change-Id: I44a06db8792d590be0eea4de39bc81387f2baac8
2022-10-05 14:37:42 -07:00
Binyi Wu
07800e5ce4 Merge "Clean up the Clear calling development feature flag" into tm-qpr-dev am: 9f4d777d23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19938087

Change-Id: I2201bb0898578b3735f11666ba092f4fd6ae52cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 22:24:21 +00:00
Binyi Wu
8a7c8c618d Clean up the Clear calling development feature flag
Test: manual
Bug: 245885918

Change-Id: Ia0721c885fa26da7702acfe65e0c7b3011ee6595
Merged-In: Ia0721c885fa26da7702acfe65e0c7b3011ee6595
2022-09-20 02:00:09 +00:00
Binyi Wu
274e516080 Merge "Clean up the Clear calling development feature flag" 2022-09-20 01:58:41 +00:00
Edgar Wang
be9f4bbabc Merge "Add clicked event for metric log writer" 2022-09-19 20:38:52 +00:00
Edgar Wang
c1c9d6f4f1 Add clicked event for metric log writer
- Add adb metric log flag
- Add clicked method in LogWriter

Bug: 243820251
Test: robotest & manual
Change-Id: I58f5a18a04e1ea65131579ecd89f062fb2f190de
2022-09-19 15:03:08 +08:00
Binyi Wu
3c820cb8df Clean up the Clear calling development feature flag
Test: manual
Bug: 245885918

Change-Id: Ia0721c885fa26da7702acfe65e0c7b3011ee6595
2022-09-19 06:07:30 +00:00
Kweku Adams
928bb445ef Return the previous value when adding a new one.
It would be nice to be able to get the previous value when
adding a new one without having to do a separate get() call.

Bug: 243987091
Test: atest CtsUtilTestCases:SparseArrayMapTest
Change-Id: I763c08443b9376f5142abd1aa817f1c61990f4be
2022-09-14 16:37:45 +00:00
Cole Faust
9acf46f66f [conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567 am: 9b3a5fc03b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I5e59b8549df348c181cd3b72311798a5d7602a67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 21:03:54 +00:00
Cole Faust
9b3a5fc03b Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I7052a1f7391ed6701fe0e1036c27368609032e35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:44:00 +00:00
Chaohui Wang
b009d37e92 Merge "Create a feature flag for SPA" 2022-08-30 07:56:14 +00:00
Jenhou (Alan) Huang
5f942ce8d8 Merge "[VolumePanel] Move the Settings' volume panel into a SystemUIDialog" into tm-qpr-dev am: 16219f2ea4 am: 154a6a50b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19482609

Change-Id: Ifbcfdd270d34df3216e0ef6bd5e8f6415e8cb433
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 06:12:29 +00:00
Jenhou (Alan) Huang
154a6a50b7 Merge "[VolumePanel] Move the Settings' volume panel into a SystemUIDialog" into tm-qpr-dev am: 16219f2ea4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19482609

Change-Id: I51953caf99f845431d7ceeb7fd102aef308b2837
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 05:43:38 +00:00
Alan Huang
e03186af0e [VolumePanel] Move the Settings' volume panel into a SystemUIDialog
Move most of the logic of the Settings' volume panel to a SystemUIDialog
to make the dialogs consistent with other system dialog.

Bug: 202262476
Test: manual build and launch the new dialog.
Change-Id: Ic27dcca77072dee2b78827e1eb58c28022b47265
2022-08-29 18:59:51 +00:00
Chaohui Wang
3089fd9931 Create a feature flag for SPA
Bug: 235727273
Test: TAP
Change-Id: I1e13b94e213d535dc113b28b97deba9bdd1b436f
2022-08-30 00:07:51 +08:00
Tom Hsu
618192c7b8 Merge "[Panlingual] Removed the feature flag of per app language." into tm-qpr-dev am: f2826d867b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19726345

Change-Id: I314ed0eac14c991ad32c2d48a19fe1cb4464192d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-29 04:09:03 +00:00
Tom Hsu
f2826d867b Merge "[Panlingual] Removed the feature flag of per app language." into tm-qpr-dev 2022-08-29 03:46:51 +00:00
Kedar Chitnis
27b1ba203e Merge "Remove feature flag SETTINGS_GUEST_MODE_UX_CHANGES" into tm-qpr-dev am: 6d61300d40
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19638347

Change-Id: I4a7707a16cd4c50e585259bf68ee014998023a5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-27 04:48:27 +00:00
Tom Hsu
ae601be19b Merge "[Panlingual] Removed the feature flag of per app language." 2022-08-26 04:01:17 +00:00
Cole Faust
584140c83a Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
2022-08-25 10:57:12 -07:00
tom hsu
e2900a6db6 [Panlingual] Removed the feature flag of per app language.
- App language has already landed, so this flag can be removed.

Bug: b/209775925
Test: Maunal test passed.
Change-Id: Ie3a03ff5d86ab40b210dd26452133b81dbe595df
Merged-In: I6345bfb726234c1dd33dda02d87ca9868725c73c
2022-08-24 08:03:17 +00:00
tom hsu
084968368c [Panlingual] Removed the feature flag of per app language.
- App language has already landed, so this flag can be removed.

Bug: b/209775925
Test: Maunal test passed.
Change-Id: I6345bfb726234c1dd33dda02d87ca9868725c73c
2022-08-24 15:33:39 +08:00
Kedar Chitnis
ba69f26dae Remove feature flag SETTINGS_GUEST_MODE_UX_CHANGES
Bug b/214031645 has all IC reviews approved and the feature has been
merged and tested for more than 3 months. Hence removing the feature
flag.

Bug: 214031645
Test: SettingsTest, SystemUITests
Change-Id: I12b4d60ffc76c20e0964d8e222b13907009b0cd7
Merged-In: I12b4d60ffc76c20e0964d8e222b13907009b0cd7
2022-08-22 02:39:16 +00:00
Kedar Chitnis
9007919ac5 Remove feature flag SETTINGS_GUEST_MODE_UX_CHANGES
Bug b/214031645 has all IC reviews approved and the feature has been
merged and tested for more than 3 months. Hence removing the feature
flag.

Bug: 214031645
Test: SettingsTest, SystemUITests
Change-Id: I12b4d60ffc76c20e0964d8e222b13907009b0cd7
2022-08-22 02:36:01 +00:00
danielwbhuang
15ad873245 Add a flag to control the new keyboard settings UI.
Bug: 242675035
Test: local test
Change-Id: Ie1a0944d84b8bfae0487e5481bc7f0e01742de28
2022-08-16 20:56:34 +08:00
Lauren Winston
eda30886f7 Merge "Add feature flag for Simple Cursor a11y feature." 2022-07-25 17:05:25 +00:00
Yi-an Chen
c48f21a557 Merge "Add PbA branding to clipboard" into tm-qpr-dev am: 2b04393a1d am: 89e8a943d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19152769

Change-Id: I9c0a86d4eaab28baccceeef713cde9141d71d492
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:45:09 +00:00
Yi-an Chen
89e8a943d8 Merge "Add PbA branding to clipboard" into tm-qpr-dev am: 2b04393a1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19152769

Change-Id: I5e965626328b0d60f67ff43094f38e28304287c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:25:47 +00:00
Yi-an Chen
2b04393a1d Merge "Add PbA branding to clipboard" into tm-qpr-dev 2022-07-25 16:08:26 +00:00
Lauren Winston
3c7272f18e Add feature flag for Simple Cursor a11y feature.
Test: manual
Bug: 239976504

Change-Id: I6011f1817ff7d42a8f586acce40f009acdc53fc8
2022-07-23 03:28:08 +00:00
Neil Fuller
5ef61031b7 Add NtpTrustedTime.forceRefresh(Network)
Add NtpTrustedTime.forceRefresh(Network). If a component that uses
NtpTrustedTime is monitoring network connectivity, it should probably
provide the network to be used, otherwise there is a non-obvious
relationship between the network being monitored and the network
actually used.

Only one user of NtpTrustedTime is updated here as the other,
GnssLocationProvider / NtpTimeHelper, is going to be refactored in an
upcoming commit. Leaving it using the forceRefresh() method that doesn't
take a parameter is not a regression.

Bug: 222295093
Test: atest core/tests/coretests/src/android/util/NtpTrustedTimeTest
Test: Treehugger
Change-Id: I51db528d06359c33335c874aca524f5adee3f3a7
2022-07-22 10:34:42 +01:00