Commit Graph

3695 Commits

Author SHA1 Message Date
Maggie White
9ab9d46a86 Merge "statsd: Increase number of available charge cycle buckets" 2018-11-29 05:18:35 +00:00
Chenjie Yu
d7e3a228be Revert "Revert "support work chain in pulled atoms""
This reverts commit 9c7b131996.

Reason for revert: Fixed build failures due to merge

Change-Id: I7d7bfed3a3234b966f3fe3fd6e0cbc63d2bedf83
Test: unit test
2018-11-28 15:53:09 -08:00
Fabian Kozynski
e3b92ab6ba Merge "Revert "support work chain in pulled atoms"" 2018-11-28 20:32:50 +00:00
Fabian Kozynski
9c7b131996 Revert "support work chain in pulled atoms"
This reverts commit ce8e4dce60.

Reason for revert: breaking multiple targets in master

Change-Id: I3ee74b314e06cb2c4d3d6da82ca116a91aad67d4
2018-11-28 20:13:22 +00:00
Chenjie Yu
fbc5842d16 Merge "support work chain in pulled atoms" 2018-11-28 19:10:30 +00:00
TreeHugger Robot
82b6b06fab Merge "Add generic atom definition for device policy events." 2018-11-28 15:13:57 +00:00
Mårten Kongstad
b87b507248 Switch to idmap2
Switch from idmap to idmap2.

This CL is the safety pin for idmap2. If idmap2 causes issues during
dogfooding it is easy go back to idmap by reverting this CL.

Once idmap2 has proven itself during a suitable period of time, the
FEATURE_FLAG_IDMAP2 flag and the obsolete idmap code will be removed.

Also add an .rc file to tell init to launch idmap2d.

Bug: 78815803
Test: atest OverlayDeviceTests OverlayHostTests
Change-Id: I5ca1388ac2f8a9379fed0c257247d351a5c7a3c4
2018-11-27 13:37:34 -08:00
Bookatz
366a4430a3 Statsd atom: pull Build information
Pulls Build information, such as Build.ID.

Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.atom.HostAtomTests#testBuildInformation
Bug: 114443697
Change-Id: If1d573dbdc49543d4268f4d62e02b3ea360e75d5
2018-11-27 11:36:07 -08:00
TreeHugger Robot
32ac121d68 Merge "Increase the guardrail limit for memory usage per config" 2018-11-27 18:37:44 +00:00
arangelov
4e9940608d Add generic atom definition for device policy events.
Bug: 119492678
Test: None
Change-Id: Ic6bee84b0c2ec0028c5078da74a7b32db1881638
2018-11-27 17:25:49 +00:00
Misha Wagner
3673e7ff91 Merge "Fix issue in CpuTimePerUid where microseconds are used as milliseconds" am: 4314aef811 am: f7905eb419
am: 85980756b4

Change-Id: If1338ca0d87160a79eea251e8c2c87b5b55df980
2018-11-27 06:59:11 -08:00
Misha Wagner
85980756b4 Merge "Fix issue in CpuTimePerUid where microseconds are used as milliseconds" am: 4314aef811
am: f7905eb419

Change-Id: I78470d6cc8e6e42adc50407f04b0294b9b1e159a
2018-11-27 06:42:53 -08:00
Misha Wagner
4314aef811 Merge "Fix issue in CpuTimePerUid where microseconds are used as milliseconds" 2018-11-27 14:12:59 +00:00
Yao Chen
bd88bde97c Increase the guardrail limit for memory usage per config
+ Current guardrail for memory usage is too conservative, resulting lots of voluntary data drops
in statsd without trying to send broadcast.

+ Actual data upload size is smaller than the in memory data size. So keep the threshold to send
broadcast but lift the memory usage guardrail to give a chance to send broadcast.

+ Also, make byteSize() estimation less frequent.

Bug: 119773948
Test: statsd_test passes
Change-Id: Ia4c660eb47e6d442c0952628e910b494174279d0
2018-11-26 15:48:20 -08:00
Andreas Gampe
d3196be41a Idmap2: Disable tidy errors
Temporarily only emit warnings.

Exempt-From-Owner-Approval: Build fix
Bug: 120024673
Test: N/A
Change-Id: Ia85fca04cc4fe7c4fd7a5d551abb8e00bbec820b
2018-11-26 09:47:04 -08:00
Chandan Nath
0961c3e61f Merge "add option --user to Bmgr.java" 2018-11-23 10:51:24 +00:00
Andreas Gampe
32ad3efd41 Frameworks: Fix tidy build
Some tidy warnings are now errors.

Exempt-From-Owner-Approval: Build fix
Test: WITH_TIDY=1 m
Change-Id: Id0f951e0650bbf5d10afedefe39c8326408fc1a7
2018-11-21 22:24:42 +00:00
Chandan Nath
57bf7bad03 add option --user to Bmgr.java
Bug: 118480337

Test: 1) atest RunFrameworksServicesRoboTests
    2) atest BmgrTest
    3) atest CtsBackupTestCases
    4) atest CtsBackupHostTestCases
    5) atest GtsBackupTestCases
    6) atest GtsBackupHostTestCases
    UsageStatsRestoreHostSideTest fails. I verified locally that this test
    fails without this change too.
    7) flashed device and ran:adb shell bmgr --user 10 backupnow --all
    Logs and output are as expected since backupservice isnt active for user 10
    log: Bmgr    : Running backupnow for user:10
    output: Error: Could not access the Backup Manager.  Is the system running

    8) flashed device and ran:adb shell bmgr backupnow --all
    log: Bmgr    : Running backupnow for user:0
    output:
	Running incremental backup for all packages.
	Package @pm@ with result: Success
	....
	Backup finished with result: Success

Change-Id: Icfebe26f36276ea687d15c9f9c361c409313ae9d
2018-11-21 13:52:34 +00:00
Misha Wagner
6bc6c91584 Fix issue in CpuTimePerUid where microseconds are used as milliseconds
KernelUidCpuTimeReader reads microseconds, but they are written to a
millisecond field in atoms.proto. Introduced in ag/3693225.

See google3 change: cl/222044203

Test: build
Bug: 119853118
Change-Id: I170e996aa852e28a246a98226677907bb3560371
2018-11-21 11:13:01 +00:00
Eran Messeri
fdf99084ed Merge "Grant Device IDs access to Profile Owner" 2018-11-21 07:26:40 +00:00
Dan Willemsen
bac79e0333 Merge "Convert bootanimation to Android.bp" am: f796dc71e1
am: a4e2f3f105

Change-Id: Ia520a698d62095dec752d0f2948bd4275ebefb61
2018-11-20 21:23:02 -08:00
TreeHugger Robot
3b208fa221 Merge "Convert bootanimation to Android.bp" 2018-11-21 01:19:19 +00:00
Chenjie Yu
ce8e4dce60 support work chain in pulled atoms
+ also rewrite map and merge isolated uid to host uid.

output:
Pull from 10014: { 1541137009000000000 10430748770707
(10014)0x2010101->1[I] 0x2010182->lala1[S] 0x2010201->2[I]
0x2018282->lala2[S] 0x20000->10430750[L]  }

Bug: 119043339
Bug: 117975376
Test: unit test
Change-Id: Ib6e3ea0f76594438ee1b3e12e965d85fefb405d7
2018-11-20 16:15:31 -08:00
Tej Singh
17c1132650 Merge "Atom: Pulled battery level" 2018-11-20 23:28:01 +00:00
Maggie White
38c9d32b5d statsd: Increase number of available charge cycle buckets
Pixel fuel gauges will upload up to 10 charge cycle buckets.

Test: build succeeds
Bug: 114316519
Change-Id: I29825c310e93041b0794ebdf0a8ed9bbcda722bc
Signed-off-by: Maggie White <maggiewhite@google.com>
2018-11-20 11:47:35 -08:00
Misha Wagner
bcec7d0f9f Merge "Change all uses of uint to int in CpuTimePerThreadFreq" 2018-11-20 10:07:24 +00:00
TreeHugger Robot
2f5d4be26b Merge "deprecate ALL_CONDITION_CHANGE in gauge" 2018-11-20 09:16:56 +00:00
Dan Willemsen
c15cf1d02e Convert bootanimation to Android.bp
See build/soong/README.md for more information.

Test: cd frameworks/base/cmds/bootanimation; mma
Change-Id: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
Merged-In: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
(cherry picked from commit efc3e37c9b)
2018-11-19 23:45:08 -08:00
Dan Willemsen
efc3e37c9b Convert bootanimation to Android.bp
See build/soong/README.md for more information.

Test: cd frameworks/base/cmds/bootanimation; mma
Change-Id: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
2018-11-19 23:39:47 -08:00
Tej Singh
b1dbc8b4a5 Atom: Pulled battery level
Atom to pull abttery level directly from health hal

Test: manual on blueline
Test: will do cts
Bug: 119686325
Change-Id: If2e40633b2bb9a6da61fbe1f63484735727e9ac2
2018-11-19 18:21:39 -08:00
Chenjie Yu
e077fd2e9c deprecate ALL_CONDITION_CHANGE in gauge
The feature set for GaugeMetric is the following:

1. Pull/Push once per bucket ----> RANDON_ONE_SAMPLE
  Have 1 gauge per bucket, if condition is true

2. Pull when condition becomes true ----> CONDITION_CHANGE_TO_TRUE
  Have 1 gauge per condition change to true, up to n

3. Pushed events multiple copies ----> FIRST_N_SAMPLE
  Have 1 gauge per event, up to n

4. Pull on trigger ----> FIRST_N_SAMPLE
  Have 1 gauge per trigger, up to n

For P, feature 1,2,3 work and same config can be used for P&Q.
(FIRST_N_SAMPLES is new but the code works, as would otherwise be
intended)
Feature 4 is new in Q.

Bug: 119783642
Bug: 118639742
Test: unit test
Change-Id: I671f7a5d3fdf9c2db4e8b6a137e3e45211874dcc
2018-11-19 16:39:47 -08:00
Mark Salyzyn
adc63f02b3 Merge changes I664fb325,I5e289469 am: 701001688f am: 833a491fab
am: beea2153ab

Change-Id: Ifd30d79d06e4e80103ff2f09b0ae960ceb8bc7f9
2018-11-19 13:46:31 -08:00
Mark Salyzyn
beea2153ab Merge changes I664fb325,I5e289469 am: 701001688f
am: 833a491fab

Change-Id: If9ccdbfe5ee734c9cbd95a0c7bef04e6336d6f48
2018-11-19 13:33:13 -08:00
Treehugger Robot
701001688f Merge changes I664fb325,I5e289469
* changes:
  switch to using android-base/file.h instead of android-base/test_utils.h
  Remove unused reference to android-base/test_utils.h
2018-11-19 20:25:30 +00:00
TreeHugger Robot
d1633c3bdb Merge "Incidentd: Fix switch break warnings" 2018-11-19 20:14:12 +00:00
TreeHugger Robot
76dd19544a Merge "Add ProcessMemoryHighWaterMark atom" 2018-11-19 19:04:38 +00:00
TreeHugger Robot
fd21b518a2 Merge "Report crash source(sys app, user app, sys serve) in AppCrashOccurred atom." 2018-11-19 16:31:44 +00:00
Rafal Slawik
3bea895a62 Add ProcessMemoryHighWaterMark atom
Collection of the RSS high-water mark is moved to a separate atom to
improve performance, increase flexibility and overcome security
constrainsts.
Performance: avoid reading /proc/pid/status in ProcessMemoryState;
flexibility: allow pulling RSS high-water mark on a different schedule;
security: add single point where we can trigger the high-water mark
reset.
The RSS high-water mark will be removed from ProcessMemoryState and
NativeProcessMemoryState atoms in a followup-up CL to ensure that the
collected data is continuous.

Bug: 119598534
Test: atest UidAtomTests#testProcessMemoryHighWaterMark
Change-Id: I52da7b5e695f771f1551e1f6a6a773bded4504d1
2018-11-19 15:44:06 +00:00
Misha Wagner
dfa548c047 Change all uses of uint to int in CpuTimePerThreadFreq
Test: upload WW config with uint change and inspect dump-report
Change-Id: Iee0505b3ddb09eb620631277a05ade88799697ab
2018-11-19 10:19:02 +00:00
Dan Willemsen
45855e5024 Merge "Convert screencap and libjni_pacprocessor to Android.bp" am: 954b9825c6 am: 60d7bb00db
am: cd15068a88

Change-Id: I37b296760e95e0e279ea033297ca82157692bc90
2018-11-17 12:38:54 -08:00
Dan Willemsen
cd15068a88 Merge "Convert screencap and libjni_pacprocessor to Android.bp" am: 954b9825c6
am: 60d7bb00db

Change-Id: Id0335623d2c031d4676c3f8ff8f09aa6f076c084
2018-11-17 12:27:52 -08:00
TreeHugger Robot
49e41d949e Merge "Atoms for binary push and flag flip." 2018-11-17 02:59:45 +00:00
Yangster-mac
b89807ec81 Atoms for binary push and flag flip.
Test: statsd test
Change-Id: Ic09f7c8707d74e44212688b3c288c3ea70c3b863
2018-11-16 16:15:13 -08:00
Dan Willemsen
a13b003b8b Convert screencap and libjni_pacprocessor to Android.bp
See build/soong/README.md for more information.

Test: m screencap libjni_pacprocessor
Change-Id: I976ec0fad591f30707b484722c972cd89b569163
2018-11-16 15:47:43 -08:00
Chenjie Yu
fc32848f29 fix GaugeMetric unit test
Test: unit test
Change-Id: I174e784eff854ff93f269536bbe9eb923b1aa50a
2018-11-16 13:38:10 -08:00
Adam Bookatz
46fa840747 Merge "Statsd atom: GpsSignalQuality" 2018-11-16 17:13:34 +00:00
TreeHugger Robot
d2364c3ba5 Merge "log service stats similar to batterystats" 2018-11-16 09:07:11 +00:00
Yang Lu
732d638bbb Report crash source(sys app, user app, sys serve) in AppCrashOccurred atom.
BUG: b/119134344
Test: statsd test
Change-Id: I80721c606f276ee7f3c66f09e816b4ffc06a4ef8
2018-11-15 13:28:01 -08:00
Adam Bookatz
0dee99a7c7 Merge "Statsd atom: Power Use" 2018-11-15 20:20:08 +00:00
Chenjie Yu
75b3c490c4 log service stats similar to batterystats
service launches
service start/stops

Bug: 113352978
Test: atest
CtsStatsdHostTestCases:android.cts.statsd.validation.BatteryStatsValidationTests#testServiceStartCount
atest
CtsStatsdHostTestCases:android.cts.statsd.validation.BatteryStatsValidationTests#testServiceLaunchCount
Change-Id: I5b213070f8917fb381e3a130b2f8272b4a05978e
2018-11-15 10:58:13 -08:00