Sudheer Shanka
b8ad594300
Use cpu freq times to calculate power consumed by an uid.
...
Initially we used to approximate times spent by an uid at a particular
freq using total time spent by the uid but since now the freq times
are directly available from the proc file, we can use these to
calculate power.
Bug: 62240247
Test: bit FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Test: cts-tradefed run singleCommand cts-dev -m CtsIncidentHostTestCases -t \
com.android.server.cts.BatteryStatsValidationTest
Test: Used some apps and verified that battery usage is attributed to
those apps in Battery settings.
Change-Id: Ia8e2eb07fd778b8a8c83a6acec711e7b97aefdc0
2017-08-11 00:04:50 -07:00
Narayan Kamath
c920506d01
Merge "ClassLoaderFactory: Correct broken refactoring from change 19da1cf72e8." into oc-mr1-dev am: 57ae4db225
...
am: 9ed2834cba
Change-Id: Idb3ce60318983a926c615cd0fdca3b700da3902c
2017-08-10 15:52:02 +00:00
Narayan Kamath
9ed2834cba
Merge "ClassLoaderFactory: Correct broken refactoring from change 19da1cf72e8." into oc-mr1-dev
...
am: 57ae4db225
Change-Id: I852a6b01c196240571aed51342fc5e2310c080d6
2017-08-10 15:41:36 +00:00
Narayan Kamath
57ae4db225
Merge "ClassLoaderFactory: Correct broken refactoring from change 19da1cf72e8." into oc-mr1-dev
2017-08-10 15:34:22 +00:00
Narayan Kamath
590b90f533
ClassLoaderFactory: Correct broken refactoring from change 19da1cf72e.
...
Bug: 64493351
Test: cts-tradefed run cts-dev -t android.appsecurity.cts.ClassloaderSplitsTest -m CtsAppSecurityHostTestCases
Change-Id: Ib4868c1e0320002f5122193621e9ab56fe34819f
2017-08-10 12:15:17 +01:00
Dianne Hackborn
47d8634cb7
Merge "Go: add features for low ram / normal ram devices." into oc-mr1-dev am: c75f43c1ab
...
am: a6a33976a3
Change-Id: I0086f082e8d7b74f64dc9e762048e4f0e9579812
2017-08-10 04:53:22 +00:00
Dianne Hackborn
a6a33976a3
Merge "Go: add features for low ram / normal ram devices." into oc-mr1-dev
...
am: c75f43c1ab
Change-Id: Icf9405de74c4d137b9c8cd0981846a08862ef231
2017-08-10 04:43:52 +00:00
TreeHugger Robot
c75f43c1ab
Merge "Go: add features for low ram / normal ram devices." into oc-mr1-dev
2017-08-10 04:35:09 +00:00
Makoto Onuki
2eee04d2c2
Merge "DropBoxManagerService: Don't store redundant information" into oc-mr1-dev am: 75590ffa84
...
am: bb4f580494
Change-Id: I204695ecd43fe86eb6837098556aa1e7c0db354f
2017-08-10 01:33:09 +00:00
Makoto Onuki
bb4f580494
Merge "DropBoxManagerService: Don't store redundant information" into oc-mr1-dev
...
am: 75590ffa84
Change-Id: Id0037c455e0e37f7896d06aeedda9b7cdca35f63
2017-08-10 00:26:35 +00:00
Dianne Hackborn
2a103f126f
Go: add features for low ram / normal ram devices.
...
Automatically populated from ActivityManager.isLowRamDevice().
Test: manual
Change-Id: I027b8ae0205c9793a91ffdd2635479610a62aff9
2017-08-09 17:14:00 -07:00
Makoto Onuki
ff94e0351a
DropBoxManagerService: Don't store redundant information
...
Filenames can be calculated from other fields, so there's no need to
store them.
This will reduce the average EntryFile size from 160b to 28b, so in theory
it could save 132 KB for 1000 entries.
- Also switched from HashMap to ArrayMap, which should help a bit too.
- Also fixed unit tests and added more.
Bug: 20890386
Test: bit FrameworksServicesTests:com.android.server.DropBoxTest
Test: Boot, check the dropbox directory, run dumpsys dropbox, reboot and repeat.
Change-Id: If567750f478318acd621864d1d4ef2ed41f214bd
2017-08-09 12:07:40 -07:00
Christofer Åkersten
e4ccad2be6
Merge "Inherit theme dark/light scheme for MediaRouter dialogs/button" into oc-mr1-dev am: 8466b0179e
...
am: 3d210b8776
Change-Id: I15bf74665d4415f42cb47b7d1943060c16c65622
2017-08-09 17:19:24 +00:00
Christofer Åkersten
3d210b8776
Merge "Inherit theme dark/light scheme for MediaRouter dialogs/button" into oc-mr1-dev
...
am: 8466b0179e
Change-Id: I20d05a76666eeb9e8a720f41f71da120feb6fb46
2017-08-09 17:05:28 +00:00
Christofer Åkersten
8466b0179e
Merge "Inherit theme dark/light scheme for MediaRouter dialogs/button" into oc-mr1-dev
2017-08-09 16:45:51 +00:00
Andrew Sapperstein
d6a19dce43
Merge "Make accessibilityInversionEnabled public" into oc-dr1-dev am: 3108a06656 am: 264fd594ca
...
am: 3c813a7e72
Change-Id: Id92ea087d269ad7af8655999f14dc44037cefa50
2017-08-09 13:43:00 +00:00
Andrew Sapperstein
3c813a7e72
Merge "Make accessibilityInversionEnabled public" into oc-dr1-dev am: 3108a06656
...
am: 264fd594ca
Change-Id: I8fd65434b9b5118f6060e7e12029fe3eaae370f2
2017-08-09 13:26:20 +00:00
Andrew Sapperstein
264fd594ca
Merge "Make accessibilityInversionEnabled public" into oc-dr1-dev
...
am: 3108a06656
Change-Id: Ic37ee35914b714144228b77b192edf835bf9627e
2017-08-09 13:06:21 +00:00
Jason Monk
2cd102b318
Merge "resolve merge conflicts of de0c539dd4 to oc-mr1-dev" into oc-mr1-dev am: 45144930b2
...
am: 9c6fb7d931
Change-Id: If03f343ac2f10f63db7cae1b848d9790b6b6d8cb
2017-08-09 12:40:40 +00:00
Jason Monk
9c6fb7d931
Merge "resolve merge conflicts of de0c539dd4 to oc-mr1-dev" into oc-mr1-dev
...
am: 45144930b2
Change-Id: Idb6ca3b703653a3f7d6e07b54789cb67a3ab910a
2017-08-09 12:29:41 +00:00
Jason Monk
45144930b2
Merge "resolve merge conflicts of de0c539dd4 to oc-mr1-dev" into oc-mr1-dev
2017-08-09 12:15:19 +00:00
Adrian Roos
e6dc7af279
Merge "FRP: Fix crash after lockout" into oc-mr1-dev am: c2ca590e8e
...
am: 826ec83acb
Change-Id: Iaaf84fab3bfa742c448b7e36b4dfe577b6643d4f
2017-08-09 10:16:53 +00:00
Adrian Roos
826ec83acb
Merge "FRP: Fix crash after lockout" into oc-mr1-dev
...
am: c2ca590e8e
Change-Id: I9191e85e58094d0326bf3b36c290e8b92e23dbd2
2017-08-09 10:05:49 +00:00
Adrian Roos
c2ca590e8e
Merge "FRP: Fix crash after lockout" into oc-mr1-dev
2017-08-09 09:54:22 +00:00
Christofer Åkersten
d51640ba50
Inherit theme dark/light scheme for MediaRouter dialogs/button
...
Bug: 64291950
Test: manual
Change-Id: I20694ce512a794a3c6574108b80dcfb4979b3b39
2017-08-09 15:48:16 +09:00
Sudheer Shanka
6b24b4c58f
Merge "Change logging format in KernelUidCpuFreqTimeReader." into oc-mr1-dev am: bd9884a331
...
am: 9107e37ca7
Change-Id: Iabf557628b76c788cce85a33ef4d7d84764e796a
2017-08-09 06:02:38 +00:00
Sudheer Shanka
9107e37ca7
Merge "Change logging format in KernelUidCpuFreqTimeReader." into oc-mr1-dev
...
am: bd9884a331
Change-Id: I0ce73c459ff188dd3ace6480fa02d2e6aaab85f2
2017-08-09 05:51:02 +00:00
Sudheer Shanka
bd9884a331
Merge "Change logging format in KernelUidCpuFreqTimeReader." into oc-mr1-dev
2017-08-09 05:38:18 +00:00
Sudheer Shanka
40c43f1b09
Change logging format in KernelUidCpuFreqTimeReader.
...
TimeUtils.formatForLogging takes currentTimeMillis as
argument, not elapsedRealTime.
Bug: 63041570
Test: visual inspection of logs
Change-Id: I4b880f64a8ead9a6a4a37fa4b9691edfc38a12db
2017-08-08 15:54:44 -07:00
Andrew Sapperstein
5a71a0f520
Make accessibilityInversionEnabled public
...
Need to use it in Settings.
Bug: 64256644
Test: existing
Change-Id: I9f9d2655e35ee2ad0dc9f9980cc9993f7b084025
2017-08-08 13:57:49 -07:00
Jason Monk
0b99402f87
resolve merge conflicts of de0c539dd4 to oc-mr1-dev
...
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I3f5eb2a0481fb09b98c0c522c82c233350c06375
2017-08-08 16:27:14 -04:00
Jason Monk
b4302182bc
Move shutdown UI to sysui (when possible)
...
Test: click restart or power off in global actions
Change-Id: I0dc30a9772bbfb3cd3c3568f157e854fef87bf87
Fixes: 63576195
Fixes: 64125291
2017-08-08 09:13:51 -04:00
Adrian Roos
4c3ec15c18
Merge "FRP: Enable credential-based factory reset protection by default" into oc-mr1-dev am: 956491b867
...
am: eb83d9c0cc
Change-Id: Ib8f23eb67e3af3626be3d075b512d3ad5e05ef3b
2017-08-08 12:07:55 +00:00
Adrian Roos
eb83d9c0cc
Merge "FRP: Enable credential-based factory reset protection by default" into oc-mr1-dev
...
am: 956491b867
Change-Id: Ib8dd7a7a1805f9a2b00525ae9bd6ebcbc572f2fa
2017-08-08 12:02:27 +00:00
TreeHugger Robot
956491b867
Merge "FRP: Enable credential-based factory reset protection by default" into oc-mr1-dev
2017-08-08 11:53:46 +00:00
Adrian Roos
b7d81d9a20
FRP: Fix crash after lockout
...
Change-Id: Ie8cd85c6afd61a03dfe730432702c11c29c11cce
Fixes: 37746493
Test: Trigger FRP, enter wrong credential 10 times, verify no crash.
2017-08-08 13:08:01 +02:00
Bookatz
bb41329717
Merge "Bump parcel version to reset batterystats" into oc-mr1-dev am: 26e02181a0
...
am: 8344812329
Change-Id: Id1d4aaaacb2c876b32c549e2322f57718d141c38
2017-08-08 06:17:04 +00:00
Bookatz
8344812329
Merge "Bump parcel version to reset batterystats" into oc-mr1-dev
...
am: 26e02181a0
Change-Id: I5bbd8149000295ffdbad32a8e1877669e7642005
2017-08-08 06:11:30 +00:00
TreeHugger Robot
26e02181a0
Merge "Bump parcel version to reset batterystats" into oc-mr1-dev
2017-08-08 06:03:18 +00:00
Sudheer Shanka
b60349a5e1
Merge "Track per-cluster times of each uid in microsec." into oc-mr1-dev
...
am: e913d8235c
Change-Id: I7915fe5d7df2b2ac49f2b97afba486782a1c8208
2017-08-07 23:43:22 +00:00
Adam Bookatz
ce58090c00
Merge "Package wakeup alarms are now on screen-off timebase" into oc-mr1-dev am: 0a1ae1bc56
...
am: e4fa69b956
Change-Id: I98043b43051f84cf99cf21d0b83ebf75b6076ab9
2017-08-07 23:42:05 +00:00
Adam Bookatz
e4fa69b956
Merge "Package wakeup alarms are now on screen-off timebase" into oc-mr1-dev
...
am: 0a1ae1bc56
Change-Id: Ie4b8379cd5bc6622ecc07868cdcf4eac0af1cf61
2017-08-07 23:33:44 +00:00
Sudheer Shanka
e913d8235c
Merge "Track per-cluster times of each uid in microsec." into oc-mr1-dev
2017-08-07 23:32:50 +00:00
Adam Bookatz
0a1ae1bc56
Merge "Package wakeup alarms are now on screen-off timebase" into oc-mr1-dev
2017-08-07 23:22:31 +00:00
Colin Cross
205ba7160b
Merge "Use class retention for VisibleForTesting annotations" am: 5724841581 am: 94d5456d0e am: a5538805d9
...
am: 2130e26bca
Change-Id: I3c4199fa186374bc8adc2d3068bba102c6da4df8
2017-08-07 20:15:17 +00:00
Colin Cross
2130e26bca
Merge "Use class retention for VisibleForTesting annotations" am: 5724841581 am: 94d5456d0e
...
am: a5538805d9
Change-Id: I83547deec96de1a26318c30d9ed01865d1be4254
2017-08-07 19:56:23 +00:00
Colin Cross
a5538805d9
Merge "Use class retention for VisibleForTesting annotations" am: 5724841581
...
am: 94d5456d0e
Change-Id: I3309ee0b936eb9d36a453beb084be31e046c1bf5
2017-08-07 19:44:57 +00:00
Colin Cross
94d5456d0e
Merge "Use class retention for VisibleForTesting annotations"
...
am: 5724841581
Change-Id: Iaa9262ad627b49d58b46760d7aecd3a985c3a79a
2017-08-07 19:32:21 +00:00
Colin Cross
5be3cbad27
Use class retention for VisibleForTesting annotations
...
The VisibleForTesting annotations are used by proguard to prevent
stripping code that is needed at runtime for tests. The annotations
were marked with source retention, which worked fine with Jack's
proguard implementation. When we switched back to javac + proguard,
the VisibleForTesting annotations are gone by the time proguard
sees the classes, so the annotated classes and methods can still
be stripped.
Move the VisibleForTesting annotation to class retention, which
matches guava's equivalent annotation.
Bug: 64365384
Test: m -j MtpDocumentsProvider &&
javap -cp out/target/common/obj/APPS/MtpDocumentsProvider_intermediates/classes-proguard.jar com.android.mtp.MtpRoot
Change-Id: I63a467c2f0a21383eb9e4c9563fd6de2d994a373
Merged-In: I63a467c2f0a21383eb9e4c9563fd6de2d994a373
(cherry picked from commit 8e846143dd )
2017-08-07 11:07:15 -07:00
Colin Cross
d212dde36a
Merge "Use class retention for VisibleForTesting annotations"
2017-08-07 17:55:23 +00:00