Tim Murray
75389eb0f4
Merge "ActivityManagerService: add restricted cpuset" into pi-dev am: a5843ebb59
...
am: 42cac7be22
Change-Id: I44a3ea55552ef41cbc6b3b367881f6e7d76268c0
2018-04-18 17:12:09 -07:00
Tim Murray
42cac7be22
Merge "ActivityManagerService: add restricted cpuset" into pi-dev
...
am: a5843ebb59
Change-Id: I1ad95b4e5e4d89efeb0a2836950d7d05cd8cd8d5
2018-04-18 16:59:26 -07:00
Tim Murray
a5843ebb59
Merge "ActivityManagerService: add restricted cpuset" into pi-dev
2018-04-18 23:43:53 +00:00
Chenjie Yu
b62e20c7f9
Merge "add dump report reason to reports" into pi-dev am: a194a6bee3
...
am: e0f7fc0a47
Change-Id: I4b97af127a219ded41891d90d44dd5940b7dd0af
2018-04-18 14:35:25 -07:00
Chenjie Yu
e0f7fc0a47
Merge "add dump report reason to reports" into pi-dev
...
am: a194a6bee3
Change-Id: I07a2d92ae166e86afa5bd6600d1217180818b9c3
2018-04-18 13:45:45 -07:00
Chenjie Yu
e36018b272
add dump report reason to reports
...
+ also change uidmapping version numbers to int64_t
Bug: 78132855
Change-Id: Iac7ea93e4bf651bd65bd03383e7ab4971af4fc29
Fix: 78132855
Test: gts test
2018-04-18 20:19:21 +00:00
Tim Murray
fef10a47a8
ActivityManagerService: add restricted cpuset
...
Test: CTS
bug 78197570
Change-Id: I9dd8daba6426b42b7e7e9388dbdac7bd8110b6ca
2018-04-18 09:51:33 -07:00
Dan Gittik
e654ca92f4
Merge "Fixed power manager CTS test." into pi-dev am: 15d35c1274
...
am: 17ad53b40b
Change-Id: Ib805670acfae2c9b17afb07e6484906fae71f5ce
2018-04-17 04:02:45 -07:00
Dan Gittik
17ad53b40b
Merge "Fixed power manager CTS test." into pi-dev
...
am: 15d35c1274
Change-Id: I375d0d77520a707cc76064a93def15faa5f8ddb1
2018-04-17 03:50:58 -07:00
TreeHugger Robot
15d35c1274
Merge "Fixed power manager CTS test." into pi-dev
2018-04-17 10:39:30 +00:00
Jeff Sharkey
00f8ad0a11
Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev am: 936c0868f8
...
am: 7b913d70b9
Change-Id: Ifd131fb60996e416f44f7acc68257e4663ef4ba7
2018-04-16 18:43:09 -07:00
Jeff Sharkey
7b913d70b9
Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev
...
am: 936c0868f8
Change-Id: I3c84c646b3a79f09dc1210e18f48d1f87d38abd4
2018-04-16 17:44:58 -07:00
Jeff Sharkey
936c0868f8
Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev
2018-04-17 00:04:53 +00:00
David Chen
3718e716e6
Merge "Adds a code when statsd sends intent to getData." into pi-dev am: 17d2de09cb
...
am: 5cc0e05e03
Change-Id: I54b0067c7aa127e5fedbb60d98bb7035bef62ae5
2018-04-16 16:45:59 -07:00
David Chen
5cc0e05e03
Merge "Adds a code when statsd sends intent to getData." into pi-dev
...
am: 17d2de09cb
Change-Id: I4f429329603d7dfe512de6802d4f083d230fc4d1
2018-04-16 16:21:23 -07:00
Jeff Sharkey
6b64925737
Protect usage data with OP_GET_USAGE_STATS.
...
APIs that return package usage data (such as the new StatsManager)
must ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.
Add noteOp() method that can be called from native code.
Also add missing security checks on command interface.
Bug: 77662908, 78121728
Test: builds, boots
Change-Id: Ie0d51e4baaacd9d7d36ba0c587ec91a870b9df17
2018-04-16 12:44:32 -06:00
Dan Gittik
26b030d829
Fixed power manager CTS test.
...
Added an annotation necessary to allow the power manager CTS test to
access the non-public method nap.
Test: adb install -r \
out/host/linux-x86/cts/android-cts/testcases/CtsOsTestCases.apk
adb shell am instrument -e class android.os.cts.PowerManagerTest \
-w android.os.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ida939f074654bef351e2b8fd563c8463431ce9c6
Fixes: 77907164
2018-04-16 18:50:10 +01:00
Wale Ogunwale
605007578e
Finalizing P SDK am: 3da5f3b2dd
...
am: fc89e7f17a
Change-Id: I85aaa6fb6de6cc76a2ac004c7e575737537401fc
2018-04-14 16:04:49 -07:00
David Chen
d37bc23f50
Adds a code when statsd sends intent to getData.
...
If the data receiver is experiencing delays, there may be a queue of
multiple intents to collect the same data. This timestamp makes it
easy in the receiver to de-dupe these requests to call getData.
Also, we update how StatsCompanionService gets the snapshot by
requesting data for all known apps. I notice that Keep seems to have
a uid active even when it appears uninstalled.
Bug: 77981668
Test: Flashed marlin-eng and manually verified.
Change-Id: I509e19383ec4a5da8746dd0c76ac71a948c6877d
2018-04-13 17:01:13 -07:00
Wale Ogunwale
fc89e7f17a
Finalizing P SDK
...
am: 3da5f3b2dd
Change-Id: Id5002a3fc4d35352a4ace67e794c1a52e21c496c
2018-04-13 14:18:27 -07:00
Michael Wright
4cf175b4ed
Merge "Revert "Fixed power manager CTS test."" into pi-dev am: ca1dcfb23e
...
am: ad93f44a3e
Change-Id: I84dc34980d768ee8807c4d9b045a1971dfdbff03
2018-04-13 11:11:05 -07:00
Michael Wright
ad93f44a3e
Merge "Revert "Fixed power manager CTS test."" into pi-dev
...
am: ca1dcfb23e
Change-Id: Ie748557c6940961635cdd929238f1bd2070e8804
2018-04-13 10:59:47 -07:00
Dan Gittik
b5abef7867
Merge "Fixed power manager CTS test." into pi-dev am: 62444d4950
...
am: 33ca88a1fc
Change-Id: I3ed21dbc86c56ab1a9182607bb7bba7bbc73229e
2018-04-13 10:36:35 -07:00
Michael Wright
4d6b454b45
Revert "Fixed power manager CTS test."
...
This reverts commit 48fed61da3 .
Reason for revert: m checkbuild failing
Bug: 77907164
Change-Id: I7f75dafc049581a7a5393c3cf0108c488eecaf48
2018-04-13 17:32:11 +00:00
Dan Gittik
33ca88a1fc
Merge "Fixed power manager CTS test." into pi-dev
...
am: 62444d4950
Change-Id: I96d0acccf64a86a241178241dc6fc9b069f29ac8
2018-04-13 10:21:15 -07:00
Dan Gittik
48fed61da3
Fixed power manager CTS test.
...
Added an annotation necessary to allow the power manager CTS test to
access the non-public method nap.
Test: adb install -r \
out/host/linux-x86/cts/android-cts/testcases/CtsOsTestCases.apk
adb shell am instrument -e class android.os.cts.PowerManagerTest \
-w android.os.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: I91e591be608f5040bc035a203d7e94c83d50bf15
Fixes: 77907164
2018-04-13 15:43:20 +01:00
Wale Ogunwale
3da5f3b2dd
Finalizing P SDK
...
Bug: 77588754
Test: builds
Change-Id: Ic06cad790a3dc53d012a7c43dfac911fc6dc61e7
2018-04-12 15:26:31 -07:00
Makoto Onuki
a31a1c67f4
Merge "Add stats logging to ServiceManager and NPMS" into pi-dev am: a26e755900
...
am: fa3a2acfbc
Change-Id: I30bea4b59318ac1871293739c6c5f2d9b7551fb1
2018-04-11 19:01:30 -07:00
Makoto Onuki
fa3a2acfbc
Merge "Add stats logging to ServiceManager and NPMS" into pi-dev
...
am: a26e755900
Change-Id: Ib0bd9ecc183b1b2c9a6785554e6f717744820da3
2018-04-11 18:39:53 -07:00
TreeHugger Robot
a26e755900
Merge "Add stats logging to ServiceManager and NPMS" into pi-dev
2018-04-12 01:13:07 +00:00
Michael Wright
afc4b2d969
Merge "Add API to compute charge time remaining." into pi-dev am: ba6f173cb1
...
am: ec69f61cc4
Change-Id: Ic383fb123232f0a69221bda7fa489922dd6a5218
2018-04-11 18:10:38 -07:00
Michael Wright
ec69f61cc4
Merge "Add API to compute charge time remaining." into pi-dev
...
am: ba6f173cb1
Change-Id: Ic2c23a0b22282a2bbea31ec004c58e2d686d2868
2018-04-11 17:56:45 -07:00
TreeHugger Robot
ba6f173cb1
Merge "Add API to compute charge time remaining." into pi-dev
2018-04-12 00:27:53 +00:00
Makoto Onuki
49392d335a
Add stats logging to ServiceManager and NPMS
...
ServiceManager:
- Do an event log every N getService() calls with total time spent
in getService().
where N = 100 for core UIDs and 200 for other apps.
- Do an event log if getService() takes longer than N ms.
where N = 10 for core UIDs and 50 for other apps.
... with some extra throttling.
NPMS:
- Do the basic "stats logger" log for updateNetworkEnabledNL() and
isUidNetworkingBlocked()
This CL also enhances StatsLogegr so it now can show the slowest call
and the max # of calls per-second.
Bug: 77853238
Test: Manual test:
- Insert a SIM card
- Set data limit
- toggle airplane mode
- toggle wifi
- toggle mobile data
Then
- "dumpsys netpolicy" and "dumpsys activity processes" and check the stats
- also check "adb logcat -b all | grep ' service_manager'"
Change-Id: I5789541063f95d0eac501189816c8604a4571ba0
2018-04-11 16:37:57 -07:00
Kweku Adams
052421faf3
Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev am: 5d9498a62c
...
am: 0c41a17c1e
Change-Id: Ifa33707f1829c3d9f430693fdd45349fe9906417
2018-04-11 16:12:43 -07:00
Kweku Adams
0c41a17c1e
Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev
...
am: 5d9498a62c
Change-Id: Id2a3bb41586790366a945946bbb3326a4c7de142
2018-04-11 15:55:01 -07:00
Michael Wright
928167e044
Add API to compute charge time remaining.
...
This is so unbundled applications (e.g. dreams) can present a charge
time indicator that is in sync with the rest of the system.
Bug: 77919650
Test: manual
Change-Id: I7d62dea4fd49eb173b4f052a0fc36f4e7ce5b6bb
2018-04-11 23:47:31 +01:00
Chet Haase
a27a43ae51
Merge "Add targetSdk check around new LinearLayout weighted measure behavior" into pi-dev
...
am: f24335ec85
Change-Id: I6a3d25fc7b4c03be19847fa988f6119d1eb5e1bc
2018-04-11 15:38:23 -07:00
TreeHugger Robot
5d9498a62c
Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev
2018-04-11 22:28:17 +00:00
Chet Haase
f24335ec85
Merge "Add targetSdk check around new LinearLayout weighted measure behavior" into pi-dev
2018-04-11 22:17:44 +00:00
Yangster-mac
4006c96aa4
Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev am: 9054656c20
...
am: 0b90c524cb
Change-Id: Iaf27e817a7b9fd024f643e6874da76e4bd5e194d
2018-04-11 13:01:02 -07:00
Yangster-mac
0b90c524cb
Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev
...
am: 9054656c20
Change-Id: I3c67a3842b3444d1dbc068917500db908a383b9c
2018-04-11 12:24:31 -07:00
Bookatz
a156a23a46
Merge "StatsManager throws exceptions" into pi-dev am: 6b317915e8
...
am: b1d3483102
Change-Id: Ib8b72e4a6a21300ba843325a69847856bd9346aa
2018-04-11 11:56:31 -07:00
TreeHugger Robot
9054656c20
Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev
2018-04-11 18:29:40 +00:00
Bookatz
b1d3483102
Merge "StatsManager throws exceptions" into pi-dev
...
am: 6b317915e8
Change-Id: I3de523046404285f3bcc7bfff598393d7c16820d
2018-04-11 11:19:33 -07:00
David Pursell
6f42d1bac2
Merge "MessageQueue: explicitly remove FD event listeners." into pi-dev
2018-04-11 18:05:52 +00:00
Mathew Inwood
070eeaf375
Merge "Configurable sampling rate for hidden API access log events." into pi-dev am: fb55bd8706
...
am: d39b02157b
Change-Id: I135d9a3bb38c238185763dd14ef103ea860fbb1a
2018-04-11 10:43:38 -07:00
Mathew Inwood
d39b02157b
Merge "Configurable sampling rate for hidden API access log events." into pi-dev
...
am: fb55bd8706
Change-Id: I734dffcd6c993bf718d6835a734be26de5d76780
2018-04-11 10:19:04 -07:00
TreeHugger Robot
6b317915e8
Merge "StatsManager throws exceptions" into pi-dev
2018-04-11 17:02:06 +00:00
Chet Haase
cb8488822c
Add targetSdk check around new LinearLayout weighted measure behavior
...
Bug: 73827180
Test: Existing CTS tests in LinearLayoutTest
Change-Id: I88dfde3743d0f954cd275be6a0032fe30ef55c03
(cherry picked from commit 28230e5efa )
2018-04-11 16:22:47 +00:00