Rename and group device methods together that belong to the same host
side method.
Bug: 142697546
Test: atest StagedRollbackTest
Change-Id: Iec49c141ef2b6c99c3a395c5287af562ee975942
am: ad2bc6a178 -s ours
am skip reason: change_id I028c774fdea167924b064855267254c15f22fddb with SHA1 5ff1173ab1 is in history
Change-Id: I95df5fe79b4a144f55ed86734e4ed06eb8ea4ec8
ContentResolver#openTypedAssetFileDescripor was not passing extras from
the file descriptor when creating the AssetFileDescriptor. This ensures
the extras are passed along as well.
Fixes: 135510219
Test: atest ContentResolverTest
Test: atest ContentResolverWrapTest
Test: atest ContentProviderClientTest
Change-Id: I2a7ed6d1bf0bcd31feb632be5c84baeae15e7024
The JetPlayer implementation in libmedia was only used by the
JetPlayer JNI code in libandroid_runtime. This change moves
both implementation and JNI to libmedia_jni. This reduces
libandroid_runtime's dependency on libmedia, and results in
a net size reduction of the libraries involved.
Test: atest JetPlayerTest
Change-Id: I028c774fdea167924b064855267254c15f22fddb
Merged-In: I028c774fdea167924b064855267254c15f22fddb
This reverts commit 4bf9a32c6b.
This also partially reverts I2fe255caff13643e0b8493e12a149eaa32e06c13,
so that boot time won't be affected.
Reason for revert: Boot time regression b/142274993
Fixes: 142274993
Change-Id: I8b9e95421c5026645480a5564c797910180ec336
Currently only used by app-ops, but can be used by other modules too.
AppOps will collect app-ops based on feature. Only the most basic
parts of app-ops are supporting features yet. The rest will be added
later.
Test: atest CtsAppOpsTestCases
atest RunSettingsLibRoboTests
atest com.android.server.wm.ActivityStarterTests
m -j doc-comment-check-docs
Bug: 136595429
Change-Id: Ia664f4ff1c1c2ceea721d76dc491ec50c237e9ce
Currently, when the user presses the power button to lock their phone,
there's a delay before the device starts listening for fingerprint to
unclock the phone again. This commit resets the keyguard going away
state earlier when the phone is going to sleep in order to remove this
delay. It also adds a new unit test to exercise this behavior.
Test: atest KeyguardViewMediatorTest
Test: Lock screen, quickly tap fingerprint, verify there is no delay
Fixes: 141445468
Change-Id: Ib2f7d956122eec39e5164e865001a08fa70f47cc
Rename key(), sbn(), and ranking() as getKey(), getSbn(), and
getRanking(). This improves kotlin interop and is a lil more standard.
Test: atest SystemUITests
Change-Id: I8cb87a8b64940dc1f245f18ee010d60b08431789
All metric types (except EventMetric) guardrail bucket size using the function TimeUnitToBucketSizeInMillisGuardrailed, which returns a bucket size of 5 minutes for any buckets with a size > 1 second and < 5 minutes iff uid is not shell or root.
Test: bit statsd_test:*
Change-Id: I6350a07978217c795565cd096134e3df56ecf163
This change allows RROs to reference their own internal resources as
expected.
Overlays are loaded as shared libraries so they can have their own
resource id space that does not conflict with the resource id space of
the target or other overlays.
References to overlay resources that override target resources now
appear as references to the target resources.
Overlay values that are inlined into the xml file specified using
android:overlayResources are now able to be used at runtime.
See go/rro-references for more information.
Bug: 135943783
Test: idmap2_tests
Test: libandroidfw_tests
Change-Id: Ie349c56d7fd3f7d94b7d595ed6d01dc6b59b6178
This change modifies the idmap file format to allow for target resources
to map to arbitrary type/value combinations and to allow overlay
resources to be mapped back to target resource ids so references to
overlay resources can appear as references to target resources at
runtime.
The mappings of target resources to overlay resources and vice-versa are
both encoded as sparse arrays. Instead of looking up a resource by
indexing into an array that maps to the overlay resource id, the runtime
will binary search over the sparse array to find the type and value that
overlays the target resource.
Bug: 135943783
Test: idmap2_tests
Change-Id: I5d5344cdb7fe35f4f2e8d6781016299dea5d1e20
The JetPlayer implementation in libmedia was only used by the
JetPlayer JNI code in libandroid_runtime. This change moves
both implementation and JNI to libmedia_jni. This reduces
libandroid_runtime's dependency on libmedia, and results in
a net size reduction of the libraries involved.
Test: atest JetPlayerTest
Change-Id: I028c774fdea167924b064855267254c15f22fddb
This change kept AppWindowTokenTests as it's originally based on top of
WindowTestBase, and merging that into ActivityRecordTests needs to
change the base class to ActivityTestBase, which requires additional
work and may change test behaviors. Therefore delay that to
follow-up CL.
Bug: 80414790
Test: Existing tests pass.
Change-Id: I6d73975ee77be9817c41b297f067de2d92a68499
* Reduce the number of processes to be computed.
* Reduce the overhead of getting process attributes
Overall by average the time spent on the OomAdjust update goes
down from 911us to 441us (51.6% faster) in Day-Of-Use test.
Bug: 135941673
Test: forrest test health/reliability/greenday
Test: Loop test
Test: atest MockingOomAdjusterTests
Test: atest FrameworksServicesTests:ActivityManagerServiceTest
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: I43cc4af4a268b24620c3231a87f7c9d2a14e4fbc