- Ensure that calling uid is shell.
- Clear calling identity such that we don't get permission
failures when calling getCurrentUser()
Test: self
Exempt-From-Owner-Approval: cherry-pick
Merged-In: Ifbaceb47edbbc4a6b002d49411ca4635ffc33a08
Change-Id: Ifbaceb47edbbc4a6b002d49411ca4635ffc33a08
Fixes: 111798412
Extract the logic to downgrade apps from the logic to
optimize apps. This will make easier to add more logic for downgrade
applications as required for b/112144519
Bug: 112144519
Test: This change is cover by the integration tests in
BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/BackgroundDexOptServiceIntegrationTests.java
Merged-In: Ia3ec6198bd8bac9871372ae87994ca0c596e36d7
Change-Id: Ia3ec6198bd8bac9871372ae87994ca0c596e36d7
ag/7905088 added the ability to pass in acceptUnvalidated without
passing in explicitlySelected. Add unit tests for that code.
While I'm at it, convert a couple of "== 1"s to toBool(), and
update the comments in NetworkAgent.
Bug: 130766237
Test: atest FrameworksNetTests
Change-Id: I6b550bd621e3596975f83464c7b4b8a14269120b
Add the output of unsupportedappusage-annotation-processor as a build artifact to make it available for the hiddenapi ayeaye analyzer.
Test: build artifact appears in treehuger, found by ayeaye.
Bug: 135601059
Change-Id: If3ef7bde96e008127694a8b0aa25bf19767faf1c
This agent can be attached to an arbitrary Android process with
arguments that cause it to either reset or dump the JaCoCo information
to a provided directory.
Test: manual, used examples in README to test whether it works on a
userdebug_coverage build on cuttlefish
Change-Id: If6cee20046f790676b8085e1ca84652c063295fa
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.
Usage terms updated with exiftool:
$ exiftool -UsageTerms='Apache License Version 2.0' \
frameworks/base/tests/HwAccelerationTest/res/drawable-nodpi/very_large_photo.jpg
1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
frameworks/base/tests/HwAccelerationTest/res/drawable-nodpi/very_large_photo.jpg
Usage Terms : Apache License Version 2.0
Rights : Romain Guy
Creator : Romain Guy
$ exiftool -UsageTerms='Apache License Version 2.0' \
frameworks/base/tests/UiBench/res/drawable-nodpi/frantic.jpg
Warning: [minor] Fixed incorrect list type for XMP-xmpRights:UsageTerms - frameworks/base/tests/UiBench/res/drawable-nodpi/frantic.jpg
1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
frameworks/base/tests/UiBench/res/drawable-nodpi/frantic.jpg
Usage Terms : Apache License Version 2.0
Rights : Romain Guy
Creator : Romain Guy
Test: doesn't really apply to images
Change-Id: I3b9503efab871600512840531b477d3226432d58
NetworkStatsFactory is owned by NetworkStatsService, and any
accesses to NSF data should go through NSS.
Test: atest FrameworksNetTests
Change-Id: Idbd0dbbaeb11313f63474e7ec0e01f974349fc89
This reverts commit b92b18b9b9.
Reason for revert: Breaks the build because it removes an unused method that was used by a change intervening in the mean time
Bug: 136143444
Change-Id: Id3a17e0b16ec03276609ca96fb7b582188ed1077
This change adds a base activity to inflate views, and then adds two
more views to inflate: one with 1000 TextViews and the other with 1000
FrameLayouts in a LinearLayout nested inside a ScrollView.
This change also adds launcher icons for each of the new cases for
ease in testing a launcher-based start.
Bug: 132721345
Test: Verified that the layout segments appear in traces as expected.
Change-Id: Id8c3e867a1ad5df5c3322ce5d69c9b4255042b69
There's no need to try to create the oat dir over and over again, especially since it involve an extra installd call. Creating it (if supported) on the fly during the dexopt call.
Change-Id: Id87165e5daaa4b0f1df8d6e985edb52fedc7db47
Test: refactoring CL. Existing unit tests still pass.
NetworkStatsService is the only consumer of the data coming from
NetworkStatsFactory, but the factory itself is instantiated and
owned by NetworkManagementService.
Move it into NetworkStatsService instead.
Test: atest FrameworksNetTests
Change-Id: I52df1e545c646927952579da22845a12d1d7563b
Member variable of mVideoActiveFormatDescription is not compared
on equals API. The variable should be compared on the equals API.
Test: build
Change-Id: Ib8fde63afb0504140f34ebd695f4524db9c74748
This reverts commit b2ab846cf4.
Reason for revert: Decision has been made to keep the unsupported AIDL API.
Change-Id: I31219606974019ac46da789ec31ca9cb3a86eb13
collection to SystemSuspend (ISuspendControl::getWakeLockStats())
Native wakelocks obatined via SystemSuspend when useSuspendCounter is
enabled, will not be reflected in the information available from
/d/wakeup_sources or proc/wakelocks. This information has been
made available via the ISuspendControl AIDL interface of SystemSuspend.
Kernelwakelock stats however are still being collected in the
/d/wakeup_sources.
Change-Id: I208d004aa0fabcf367016faae77ad51388cdf0ea
Bug: 135680393
Test: Observe SystemSuspend service wakelocks in dumpsys batterystats (for
instance, "PowerManager.SuspendLockout"):
`dumpsys batterystats --checkin | grep wl | grep PowerManager.SuspendLockout`