Commit Graph

386078 Commits

Author SHA1 Message Date
Jorim Jaggi
3752c462ef Fix BackgroundDexOptServiceIntegrationTests
- 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
2019-07-01 22:27:49 +00:00
Andreas Gampe
9cbb19d0a8 Merge changes Ia3ec6198,I211696c8
* changes:
  Decouple downgrade and optimization processes.
  Add new atoms to log Downgraded Apps and Low Storage
2019-07-01 16:22:25 +00:00
Felix Lopez Luis
4bf2be9528 Decouple downgrade and optimization processes.
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
2019-07-01 16:22:15 +00:00
Felix Lopez Luis
7ca1abd367 Add new atoms to log Downgraded Apps and Low Storage
Merged-In: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Exempt-From-Owner-Approval: Cherry-pick
Change-Id: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Bug-Id: b/120911106
Test: refactoring CL. Existing unit tests still pass.
2019-07-01 16:20:55 +00:00
Lorenzo Colitti
d1379a4a80 Merge "Unit tests for new explicitlySelected behaviour." 2019-06-29 08:25:20 +00:00
Treehugger Robot
edf7470e0b Merge "Add JVMTI agent to dump/reset JaCoCo coverage information" 2019-06-28 22:41:14 +00:00
Mathieu Chartier
566bfcf475 Merge "Remove support for image classes" 2019-06-28 15:56:58 +00:00
Lorenzo Colitti
b5ad613839 Unit tests for new explicitlySelected behaviour.
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
2019-06-28 23:57:22 +09:00
Treehugger Robot
51b6c76660 Merge "DO NOT MERGE Fix robotests for AOSP" 2019-06-28 13:00:07 +00:00
Anna Trostanetski
19cb14b3be Merge "Make unsupportedappusage_index.csv a build artifact." 2019-06-28 10:46:22 +00:00
Anna Trostanetski
97088e9909 Make unsupportedappusage_index.csv a build artifact.
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
2019-06-28 10:33:04 +01:00
Anton Hansson
c4fdd9ac1d Merge "Remove ro.url.legal* props from proto" 2019-06-28 09:11:09 +00:00
Chalard Jean
febb37f376 Merge "Simplify Exception expressions in CSTest" 2019-06-28 07:19:20 +00:00
Chalard Jean
e7b2475523 Simplify Exception expressions in CSTest
Test: CSTest
Change-Id: Ie9b9fc334b85836bf156bda71e54e8d30885b82a
2019-06-28 14:22:30 +09:00
Lorenzo Colitti
63f94f411b Merge "Remove all static members from NetworkStatsFactory." 2019-06-28 01:59:31 +00:00
Janis Danisevskis
ecf4d59309 Merge "Gatekeeper generated aidl cpp bindings" 2019-06-28 00:43:10 +00:00
Treehugger Robot
2944457958 Merge "Fixing checkstyle presubmit hook comments." 2019-06-28 00:09:41 +00:00
Treehugger Robot
2a5ccebc1e Merge "Clarify license terms for Romain Guy's artwork." 2019-06-27 23:47:44 +00:00
Mathieu Chartier
96fab6e32d Remove support for image classes
--image-classes is no longer supported by ART.

Test: make
Change-Id: I2d2a26594ab61a59237db730dd402ab9e53ecfab
2019-06-27 15:43:39 -07:00
Kavi Gupta
2d84ae7640 Add JVMTI agent to dump/reset JaCoCo coverage information
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
2019-06-27 15:12:48 -07:00
Nathan Harold
4d4e2474ea Merge "Revert "Use TM SubId in getDataState and getDataActivity"" 2019-06-27 22:11:18 +00:00
Treehugger Robot
874b481cdf Merge "Stable seek bar positioning" 2019-06-27 22:02:06 +00:00
Bob Badour
20f89c9907 Clarify license terms for Romain Guy's artwork.
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
2019-06-27 14:57:44 -07:00
Alex Buynytskyy
3ca39de617 Fixing checkstyle presubmit hook comments.
Test: refactoring CL. Existing unit tests still pass.

Change-Id: I28c9515d124dc7603db91a9082430ffb128111dd
2019-06-27 14:57:09 -07:00
Treehugger Robot
9db70d29a1 Merge "Removing an extra installd call." 2019-06-27 19:23:01 +00:00
Treehugger Robot
e07c0cffe2 Merge "LockAgent: Refactor transformation code" 2019-06-27 19:21:50 +00:00
Lorenzo Colitti
4aa8760a68 Remove all static members from NetworkStatsFactory.
NetworkStatsFactory is owned by NetworkStatsService, and any
accesses to NSF data should go through NSS.

Test: atest FrameworksNetTests
Change-Id: Idbd0dbbaeb11313f63474e7ec0e01f974349fc89
2019-06-27 17:39:05 +09:00
Chalard Jean
73b4106d7e Merge "Revert "Simplify Exception expressions in CSTest"" 2019-06-27 08:30:57 +00:00
Chalard Jean
f30d1e1685 Revert "Simplify Exception expressions in CSTest"
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
2019-06-27 08:30:05 +00:00
Neil Fuller
d854e6e0b4 Merge "Track change of type from short -> int" 2019-06-27 08:26:31 +00:00
Lorenzo Colitti
bd94f0afd2 Merge "Transfer ownership of NetworkStatsFactory to NetworkStatsService." 2019-06-27 07:53:30 +00:00
Lorenzo Colitti
f2bd2bbfd8 Merge "Synchronize the NetworkStatsFactory constructor." 2019-06-27 07:53:21 +00:00
Chalard Jean
b1d9ad9287 Merge "Simplify Exception expressions in CSTest" 2019-06-27 07:09:36 +00:00
Chalard Jean
978cca8972 Merge "Unify assertThrows" 2019-06-27 07:08:59 +00:00
Treehugger Robot
1b3687c0e9 Merge "Add textview and framelayout inflation cases, refactor." 2019-06-27 04:24:25 +00:00
Treehugger Robot
609ac6fe3a Merge "Fix equals API bug on TvTrackInfo" 2019-06-27 03:40:27 +00:00
Treehugger Robot
105851c17f Merge "Add extcon specific UEventObserver" 2019-06-27 02:09:06 +00:00
Carmen Jackson
8be08e5679 Add textview and framelayout inflation cases, refactor.
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
2019-06-26 18:59:09 -07:00
Alex Buynytskyy
54bc47ad38 Removing an extra installd call.
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.
2019-06-26 13:08:00 -07:00
Treehugger Robot
a1cae83560 Merge "Route KernelWakelockReader's userspace native wakelock stats collection to SystemSuspend (ISuspendControl::getWakeLockStats())" 2019-06-26 18:16:34 +00:00
Colin Cross
170b097332 Merge "Pass --legacy to aapt2 compile for SystemUI" 2019-06-26 17:05:33 +00:00
Lorenzo Colitti
8b577139ae Transfer ownership of NetworkStatsFactory to NetworkStatsService.
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
2019-06-26 19:29:51 +09:00
Bernie Innocenti
e89c9dc529 Merge "Add NS_R_INTERNAL_ERROR item into NsRcode" 2019-06-26 08:06:01 +00:00
Treehugger Robot
dec76b8a40 Merge "PhoneWindowManager/KeyEvent: Camera key as WakeKey" 2019-06-26 06:49:21 +00:00
lifr
90d23411f4 Add NS_R_INTERNAL_ERROR item into NsRcode
Bug: 133111380
Test: ./out/host/linux-x86/bin/statsd_testdrive 116
Change-Id: I25e9244c82126cc8f09abe4639c9a0af2164e5f1
2019-06-26 10:36:59 +08:00
Kyeongkab.Nam
37be9f904a Fix equals API bug on TvTrackInfo
Member variable of mVideoActiveFormatDescription is not compared
on equals API. The variable should be compared on the equals API.

Test: build
Change-Id: Ib8fde63afb0504140f34ebd695f4524db9c74748
2019-06-26 11:13:53 +09:00
Nathan Harold
44173ee7b0 Revert "Use TM SubId in getDataState and getDataActivity"
This reverts commit b2ab846cf4.

Reason for revert: Decision has been made to keep the unsupported AIDL API.

Change-Id: I31219606974019ac46da789ec31ca9cb3a86eb13
2019-06-26 00:41:00 +00:00
Kalesh Singh
759af3274d Route KernelWakelockReader's userspace native wakelock stats
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`
2019-06-25 16:31:38 -07:00
Xiangyu/Malcolm Chen
b6ae55b169 Merge "When data switches during voice call, make sure signal bar updates it." 2019-06-25 18:06:16 +00:00
Chen Xu
b6399511f8 Merge "move short code definitions to SmsManager Test API" 2019-06-25 17:18:46 +00:00