Commit Graph

2062 Commits

Author SHA1 Message Date
Ilya Matyukhin
d71de2614a Merge changes from topic "new-udfps-touch" into tm-qpr-dev am: 0672ae40db am: 858442e50d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20550191

Change-Id: I15ceb55ba19a1b07605d80614ca4c538c557cff5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 02:06:40 +00:00
Vania Januar
abb224675e Merge "Add a stylus controller to Bluetooth Device Details." 2022-12-01 10:16:28 +00:00
Felipe Leme
372a08e0b8 Merge "Implemented IntArray.toString()" 2022-11-30 20:24:54 +00:00
Ilya Matyukhin
858442e50d Merge changes from topic "new-udfps-touch" into tm-qpr-dev am: 0672ae40db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20550191

Change-Id: Idad692926ac241f051d6580ddfe1b1318e8cad08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 17:16:07 +00:00
Daniel Huang
380451593b Merge "Create feature flags to control trackpad gesture UI." 2022-11-30 06:13:14 +00:00
Tyler Freeman
7f0fb8234f Merge "feat(non linear font scaling)!: add FontScaleConverter for non-linear font scaling." 2022-11-29 23:43:18 +00:00
Tyler Freeman
5f7036df71 feat(non linear font scaling)!: add FontScaleConverter for non-linear font scaling.
Non-linear font scaling is meant to improve readability at larger font
scales: larger fonts will scale up more slowly than smaller fonts, so we
don't get ridiculously huge fonts that don't fit on the screen.

The thinking here is that large fonts are already big enough to read,
but we still want to scale them slightly to preserve the visual
hierarchy when compared to smaller fonts.

The FontScaleConverter converts SP dimensions to DP, to be used in
TypedValue.applyDimension() which will affect most TextViews and font
sizes automatically.

For now, all the lookup tables are hardcoded. A follow-up CL will make
them configurable via XML. The hardcoded arrays also default to a linear
curve, as to not break any tests. The non-linear curve will come in a
follow-up CL, to make it easier to roll-back if requested.

Also included is some Javascript to generate the hardcoded arrays, which
can later be manually tweaked and optimized.

Test: unit, CTS, and manual:
1. Run `adb shell settings put system font_scale 2.0`
2. Check different apps to see if they are readable.

Bug: b/237558231

Change-Id: I17d67252bf31f55e57e1f3e8a0f638770e6d2cfd
2022-11-29 12:09:02 -08:00
Ilya Matyukhin
3318c87c48 Add rotatePointF to RotationUtils
Bug: 218374828
Test: atest RotationUtilsTest
Change-Id: I877e762b1f2b96ae8da3e6b08a78ba4d066c2880
2022-11-28 05:55:49 +00:00
danielwbhuang
009d76fba4 Create feature flags to control trackpad gesture UI.
Bug: 256087727
Test: local test
Change-Id: I0b3a82f45a95bf11b514552362f657eeee464f84
2022-11-24 17:26:13 +08:00
Felipe Leme
1f4ba2ddc0 Implemented IntArray.toString()
Also refactored IntArrayTest to use Truth.

Test: atest IntArrayTest

Bug: 257497221
Bug: 30839080

Change-Id: I1f31fe1ae7736554ab1b32b57773709452813bf3
2022-11-18 22:15:41 +00:00
Vania Januar
61ccc384a7 Add a stylus controller to Bluetooth Device Details.
In this CL stylus preferences will show for every type of input device.
Feature is currently flagged behing SETTINGS_SHOW_STYLUS_PREFERENCES.

Bug: b/251201006
Test: SettingsRoboTests StylusDevicesControllerTest
DD: go/stylus-connected-devices-doc
Change-Id: I73cec8e5cfd0b70be0492841f9d8e07f62a70863
2022-11-17 15:53:42 +00:00
Cole Faust
22deef8d08 Merge "[conflict] Merge "Fix errorprone warnings that should be errors" am: 677d6cd780 am: f9df26ae3c am: d3c499dabc" 2022-11-16 03:17:38 +00:00
TreeHugger Robot
3d9534ce0b Merge "Add biometrics2 feature flag" 2022-11-16 02:40:23 +00:00
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
Milton Wu
88d9a01d74 Add biometrics2 feature flag
adb shell setprop sys.fflag.override.settings_biometrics2_enrollment true

Bug: 236072782
Test: Manully enable it and enroll fingerprint
Change-Id: I091f0f2c8cce698e0e3676b3ad96447ad3e3b60d
2022-11-11 17:50:52 +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