Commit Graph

12968 Commits

Author SHA1 Message Date
Angel Aguayo
f285efe790 Merge "Exposed SkCanvas::drawMesh" 2022-12-03 11:35:08 +00:00
Angel Aguayo
90c46ee50b Exposed SkCanvas::drawMesh
Added drawMesh method to the Canvas API, utilizing SkCanvas::drawMesh.

Bug: b/253321460
Test: HwAccelerationTest MeshActivity
Change-Id: I43802af61bbd6f76444b4e4b7cec2b95bae34f66
2022-12-03 02:11:46 +00:00
Shawn Lin
03b4f8508c Merge "Add DisplayShapeTest to WM test" 2022-12-02 11:23:30 +00:00
Shawn Lin
cde14c8fc9 Add DisplayShapeTest to WM test
Bug: 255712445
Test: make
Change-Id: I5ba6173f9bdefccfe5c27096ea4947c2cfc157dd
2022-12-02 17:29:21 +08:00
TreeHugger Robot
7b7f8aba2f Merge "usb: Implement the AIDL in framework" 2022-12-01 04:30:30 +00:00
Nataniel Borges
58cbaa06fc Merge "Onboard IME and rotation CUJs into ironwood" 2022-11-30 19:48:52 +00:00
Nataniel Borges
cdcbff2135 Onboard IME and rotation CUJs into ironwood
Fixes: 251206907
Test: atest FlickerTest
Change-Id: I2647db2ec32cc64d0665554e144a080a9d6aa2d0
2022-11-30 10:55:59 +00:00
Ricky Niu
74272e2422 usb: Implement the AIDL in framework
Implement the AIDL and HIDL coexist in framework

Bug: 218791946
Test: USB function switch success and AIDL service is running.
      atest VtsHalUsbGadgetV2_0HostTest
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I6d9bc861a4aceb753bf6f816daccd039e423994d
2022-11-30 11:12:06 +08:00
Aishwarya Mallampati
6f6db36bfa Merge "Replace callers of SmsApplication with user-aware methods." 2022-11-28 18:50:40 +00:00
Chen Bai
6381551e13 Merge "DCL: disable DynamicCodeLoggerIntegrationTests for watch" 2022-11-25 04:16:32 +00:00
Chen Bai
4d4eb9ac88 fs-verity: fix broken test testInstallEverything
- Force GC on all processes listed by lsof to help this test walk around
  the FD leaks.

BUG: 253463456
Change-Id: Ida8cdfd8469452e028ad736497f5862a0df2a9a0
(cherry picked from commit 67884da910daeca4cb6da7568e7978fcaf4a55b3)
2022-11-23 21:48:49 +00:00
Chen Bai
1dda1196d9 DCL: disable DynamicCodeLoggerIntegrationTests for watch
- DynamicCodeLoggingService doesn't run on watch, therefore disable its
  related tests.

BUG: 253517106
Change-Id: I07cc3d7e7f58b01c0a8bd1a30fbf1e66a78ce7a2
(cherry picked from commit 9a18b568e3bf69f855cb231b488767967f904ea8)
(cherry picked from commit 1339078c8e590c29762560c65caf502e648f0a6f)
2022-11-23 20:05:58 +00:00
Riddle Hsu
f726d7a90e Merge "Reduce overhead of writing logcat from protolog method" 2022-11-22 14:51:07 +00:00
Riddle Hsu
28bc7eed7a Reduce overhead of writing logcat from protolog method
String.format contains more loop, creates more temporary object
with more conditions than TextUtils.formatSimple.

And the basic syntax provided by formatSimple is enough for use
so far, it would be better to reduce the general cost while
enabling logcat output of protolog.

Bug: 259683790
Test: atest ProtoLogImplTest ProtoLogIntegrationTest LogParserTest
Change-Id: Icbf55c9e75c2343a961a57f83823a90e1f057075
2022-11-22 14:41:37 +00:00
Ziqi Chen
7306a40be7 Merge "Extend InputMethodStressTest to add more IME show/hide e2e test cases." 2022-11-22 07:36:57 +00:00
czq
19e01a7c8b Extend InputMethodStressTest to add more IME show/hide e2e test cases.
Add more IME show/hide test cases to cover different flag settings(window flags, soft input mode flags), show/hide methods (from auto-show/IMM/WIC/Click), call times and user actions.

Merge the two TestActivitys in AutoShowTest and ImeOpenCloseStressTest into one in ImeStressTestUtil.

Modify test type in TEST_MAPPING to "presubmit-large" to avoid timeout.

See go/imf-test-cases for clearer test descriptions and results.

Bug: 242838873
Bug: 240359838

Test: atest com.android.inputmethod.stresstest.AutoShowTest
atest com.android.inputmethod.stresstest.ImeOpenCloseStressTest

Change-Id: Ibff3a85fa5b66c692a2fe8cd69fb1ca521b1b8d8
2022-11-22 13:27:29 +08:00
Victor Hsieh
3f6ed66a6c Merge changes I695409f2,Ie87efba3,I737f0582
* changes:
  Delete dead code
  Enable fs-verity asynchronously on package install
  Move fs-verity signature check from kernel to install
2022-11-22 00:48:49 +00:00
Benedict Wong
70fc4ac50d Merge changes Iaeb1871b,I1687df02 am: 42ea9e9dab am: 88b613994b am: b3aec3f2f1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2298225

Change-Id: Ic851b798587f2c67887011b7268acc499e8d0db8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21 21:41:19 +00:00
Benedict Wong
b3aec3f2f1 Merge changes Iaeb1871b,I1687df02 am: 42ea9e9dab am: 88b613994b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2298225

Change-Id: I3f48aef6f9db6ef517c1a77e24ae4a44660d7f78
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21 21:06:33 +00:00
Benedict Wong
88b613994b Merge changes Iaeb1871b,I1687df02 am: 42ea9e9dab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2298225

Change-Id: I5b83930dfacfe1df201b2c61e508c4dbad1612ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21 20:42:27 +00:00
Benedict Wong
42ea9e9dab Merge changes Iaeb1871b,I1687df02
* changes:
  Add restrictions on underlying networks with CarrierConfig
  Support configuring the VCN restriction policy
2022-11-21 20:11:15 +00:00
Victor Hsieh
6319ea1528 Delete dead code
The only user was deleted in ag/20445927.

Bug: N/A
Test: TH
Change-Id: I695409f2e925ba003b946809976ef534b5b36194
2022-11-21 11:48:50 -08:00
Victor Hsieh
4bdb6e5ef0 Move fs-verity signature check from kernel to install
This unblocks the deprecation of fs-verity kernel keyring.

With an APK is installed with .fsv_sig, the signature was installed to
the filesystem to be verified with a kernel keyring. Due to the current
threat model of root or system server, checking the signature in kernel
is not superior since the attacker can simply strip fs-verity protection
from the file. The userspace check should be done anyway if the keyring
contains multiple keys.

Without regressing any security guarantee, this change moves the
signature check to (only) install time. FileIntegrityService already
holds the certificates and facilitates the signature check.

In order to keep the test passing, FileIntegrityService now supports
(debug only) cmd for adding and removing a debug cert.

Bug: 258708453
Test: ApkVerityTest
Test: CtsAppSecurityHostTestCases:android.appsecurity.cts.ApkVerityInstallTest
Test: ChecksumsTest

Change-Id: I737f058229928f1b242612631a13c62709b06d33
2022-11-21 11:48:31 -08:00
Yan Yan
29024bfb22 Add restrictions on underlying networks with CarrierConfig
This commit updates the VCN code to use CarrierConfig to
store the restriction policy configuration, and notify
policy listners when the CarrierConfig gets updated.

Bug: 239104955
Test: atest FrameworksVcnTests(new tests)
Test: atest CtsVcnTestCases
Test: manually verified by overriding carrier configs
Change-Id: Iaeb1871b7d9f5c3d1b4e5ec24cfbf79eea58256f
2022-11-18 23:08:28 +00:00
Yan Yan
1e91f8dbad Support configuring the VCN restriction policy
This commit implements the logic to support configuring
VCN restriction policy on the underlying network. This commit
also adds a stub for later CLs to add the configuration interface.

Bug: 239104955
Test: atest FrameworksVcnTests(new tests)
Test: atest CtsVcnTestCases
Change-Id: I1687df029b5bbd8f20e0e4839ba8bd1717051dcf
2022-11-18 19:21:58 +00:00
Aishwarya Mallampati
0e16f328f5 Replace callers of SmsApplication with user-aware
methods.

Bug: 250617029
Test: Sending and receiving SMS/MMS,
      atest com.android.internal.telephony.tests.SmsApplicationTest
Change-Id: Idb6671d35bed6a35804b5553f75d461b54273612
2022-11-16 22:56:18 +00:00
Biswarup Pal
e20269aea2 Merge "Add missing information in ANR message from BroadcastQueueModernImpl" 2022-11-16 18:31:23 +00:00
Biswarup Pal
43fcac1ad5 Add missing information in ANR message from BroadcastQueueModernImpl
This keeps the broadcast ANR message consistent with the old broadcast
queue, and fixes trace analysis pipelines that consume messages in
this format. This unstructured format is brittle but should keeps things
working, pending a longer term fix to with structured (proto) format.
This CL also adds tests for TimeoutRecord to validate ANR timeout
records.

Test: m
Bug: 254452238
Change-Id: Ifd0fb8d4a1d0add3e762b8327defb3f25d5aa0c2
2022-11-16 13:38:52 +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
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
Sam Dubey
10904780f2 Merge "Disable inernal app before running tests" 2022-11-14 16:42:27 +00:00
Sam Dubey
261cc40187 Disable inernal app before running tests
Debuggable reamdump data collection dialog is triggering up while
running tests. These are causing flakes. While a better fix would be
figuring out why these are triaggered, the wm tests should be
independent of internal apps which an end user of Android won't see.

Test: Forrest
Bug: 258578781
Bug: 239384214
Change-Id: Ia4c0c670fe3e35f84640787cb8fce70e74edb264
2022-11-14 13:34:59 +00:00
TreeHugger Robot
a98c517280 Merge "TouchLatency: add a menu option to select frame rate" 2022-11-12 11:13:01 +00:00
Ady Abraham
97ef90f07f TouchLatency: add a menu option to select frame rate
Add a new menu option that will set the preferredDisplayRefreshRate.

Bug: 257071160
Test: run TouchLatency app
Change-Id: I3cf0bcb36613d2fd38fce3e478b0f5efd9c1279c
2022-11-12 05:31:58 +00:00
Michael Groover
b27f82bcc1 Merge "Override registerReceiver methods in test Context to accept flags" am: 57ff4b4589 am: ebd19a22d8 am: 3023e08134
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295653

Change-Id: Ib7daaf9b43c7756ea101ed15d8bfded2a22f660a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 16:46:47 +00:00
Michael Groover
3023e08134 Merge "Override registerReceiver methods in test Context to accept flags" am: 57ff4b4589 am: ebd19a22d8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295653

Change-Id: Ieb23a1f4f61478e26789822cff404197e599d2f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 16:43:10 +00:00
Michael Groover
ebd19a22d8 Merge "Override registerReceiver methods in test Context to accept flags" am: 57ff4b4589
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295653

Change-Id: I655a5a5fc3de312c9ea2c35a4dfc3465bb0687fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:58:11 +00:00
Michael Groover
57ff4b4589 Merge "Override registerReceiver methods in test Context to accept flags" 2022-11-11 15:32:07 +00:00
Michael Groover
f73b5584e2 Override registerReceiver methods in test Context to accept flags
The BroadcastInterceptingContext allows a broadcast Intent to be
intercepted in the local process and sent directly to the receiver's
onReceive method. This commit updates this class to also override
the registerReceiver methods that accept the flags parameter to
ensure broadcasts can be sent to receivers registering with flags
during tests.

Bug: 234659204
Test: atest com.android.networkstack.tethering.EntitlementManagerTest
Change-Id: I9366ed1a3eb5f370b93e72981abac535f675a2bb
2022-11-10 12:16:25 -06:00
Kweku Adams
d20d4fa0c3 Add logic to persist jobs in separate files.
Make it possible to persist jobs in a separate file for each calling
UID. This makes it easier to persist changes to jobs of individual apps
instead of having to write the entire set of jobs every time something
changes.

Read times decrease by 2-5% when there are many jobs for each app but
increase by 33-35% when there are only a few jobs per app.
Write times increase by 5% (for many jobs) to 64% (for few jobs) for a
full write but decrease by 1% (for few jobs) to 38% (for many jobs) when
there are partial writes.

JobScheduler is read-once, write-many system, and apart from migration
from between monolithic and split file architectures, should mostly be
in the partial write scenario.

The code is disabled for now and will be turned on separately.

Performance Test Results:

(With monolithic file):

com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_fewJobs_badRTC
	testPersistedJobReading_fewJobs_badRTC_mean (ns): 4632075
	testPersistedJobReading_fewJobs_badRTC_median (ns): 4568177
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_manyJobs
	testPersistedJobWriting_manyJobs_mean (ns): 38133928
	testPersistedJobWriting_manyJobs_median (ns): 37794691
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_manyJobs_goodRTC
	testPersistedJobReading_manyJobs_goodRTC_mean (ns): 46015412
	testPersistedJobReading_manyJobs_goodRTC_median (ns): 45553494
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_fewJobs
	testPersistedJobWriting_fewJobs_mean (ns): 4903462
	testPersistedJobWriting_fewJobs_median (ns): 4914740
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_fewJobs_goodRTC
	testPersistedJobReading_fewJobs_goodRTC_mean (ns): 4432127
	testPersistedJobReading_fewJobs_goodRTC_median (ns): 4395469
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_delta_manyJobs
	testPersistedJobWriting_delta_manyJobs_mean (ns): 42629601
	testPersistedJobWriting_delta_manyJobs_median (ns): 42282061
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_delta_fewJobs
	testPersistedJobWriting_delta_fewJobs_mean (ns): 5070691
	testPersistedJobWriting_delta_fewJobs_median (ns): 4914688
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_manyJobs_badRTC
	testPersistedJobReading_manyJobs_badRTC_mean (ns): 45184576
	testPersistedJobReading_manyJobs_badRTC_median (ns): 44922660

(With split files):

com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_fewJobs_badRTC
	testPersistedJobReading_fewJobs_badRTC_mean (ns): 6350549
	testPersistedJobReading_fewJobs_badRTC_median (ns): 6232605
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_manyJobs
	testPersistedJobWriting_manyJobs_mean (ns): 39963524
	testPersistedJobWriting_manyJobs_median (ns): 39628389
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_manyJobs_goodRTC
	testPersistedJobReading_manyJobs_goodRTC_mean (ns): 43956702
	testPersistedJobReading_manyJobs_goodRTC_median (ns): 43569874
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_fewJobs
	testPersistedJobWriting_fewJobs_mean (ns): 8250152
	testPersistedJobWriting_fewJobs_median (ns): 8090939
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_fewJobs_goodRTC
	testPersistedJobReading_fewJobs_goodRTC_mean (ns): 6006753
	testPersistedJobReading_fewJobs_goodRTC_median (ns): 5869193
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_delta_manyJobs
	testPersistedJobWriting_delta_manyJobs_mean (ns): 26459508
	testPersistedJobWriting_delta_manyJobs_median (ns): 26147607
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobWriting_delta_fewJobs
	testPersistedJobWriting_delta_fewJobs_mean (ns): 4958038
	testPersistedJobWriting_delta_fewJobs_median (ns): 4881588
com.android.frameworks.perftests.job.JobStorePerfTests#testPersistedJobReading_manyJobs_badRTC
	testPersistedJobReading_manyJobs_badRTC_mean (ns): 44476839
	testPersistedJobReading_manyJobs_badRTC_median (ns): 43993285

Bug: 255352252
Test: atest JobSchedulerPerfTests:JobStorePerfTests
Test: atest FrameworksServicesTests:JobStoreTest
Change-Id: Ib7bfa2c974f7663dea79d707c9e1b2bd53ef89b3
2022-11-10 16:37:55 +00:00
TreeHugger Robot
e70d885de7 Merge "Check signature of updated font during boot" 2022-11-06 23:59:40 +00:00
Seigo Nonaka
57b67d9462 Check signature of updated font during boot
config_fontManagerServiceCert is a new config symbol that has
a list of der certificates to be used for font file verification.

After this change, the signature is stored next to the font file
and it is verified with the stored signature on boot time. If the
signature file is missing, e.g. due to device update, the updated
font file is discarded.

Bug: 242892591
Test: atest GtsFontHostTestCases
Test: atest UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Test: atest FontManagerTest
Test: Manually verified the font files can be updated
Change-Id: Ia4a6720b863163be523b845b883915185cee656c
2022-11-03 17:21:04 +09:00
Gavin Corkery
fd1eeb6ec5 Ignore MultiUserRollbackTest#testBadUpdateRollback
This test is flaky so we should ignore it for now

Test: presubmit
Bug: 257005776
Change-Id: I8dfa0e59427a5abc78e96c72032d840355f00924
2022-11-02 18:15:04 +00:00
Hassan Ali
6964337e48 Merge "Set min_sdk_version to 29 in SampleRollbackApp." am: fbfc1da075 am: dd5bb0c5cc am: 6cbe45c1a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263732

Change-Id: I64f1c1fbacf19c1e56ac0c2fcfe6a40719ecdc4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 13:13:07 +00:00
Hassan Ali
6cbe45c1a2 Merge "Set min_sdk_version to 29 in SampleRollbackApp." am: fbfc1da075 am: dd5bb0c5cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263732

Change-Id: Ic9a971cd14c88a2ca7f6838a29424b1ff8cb2c98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 12:12:19 +00:00
Hassan Ali
dd5bb0c5cc Merge "Set min_sdk_version to 29 in SampleRollbackApp." am: fbfc1da075
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263732

Change-Id: I14b2a14c5b8f281fb5e1e291a042f2b1578d1ff0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 11:29:39 +00:00
Chilun Huang
55187ea6cc Merge "Add CUJ for dragging shortcut to split" 2022-11-02 02:47:37 +00:00
TreeHugger Robot
d1217af121 Merge "Disable nav bar assertion on open app from lock cold." 2022-11-01 18:41:38 +00:00