Commit Graph

5377 Commits

Author SHA1 Message Date
Robert Shih
b14bb41bb4 Merge "atoms.proto: locally aggregate legacy drm API metrics" 2020-02-12 00:58:38 +00:00
TreeHugger Robot
a0466a29f9 Merge "SFStats: track lateAcquired and badDesiredPresent frames from the field" 2020-02-11 07:12:56 +00:00
Robert Shih
ec8e60c320 atoms.proto: locally aggregate legacy drm API metrics
Bug: 134789967
Test: statsd_testdrive
Change-Id: I5d5c3805925a1f9d611da99e433cd3a2e28744d8
2020-02-10 20:31:01 -08:00
Yiwei Zhang
59cdc901ff SFStats: track lateAcquired and badDesiredPresent frames from the field
Bug: 135478131
Test: statsd_testdrive 10063
Change-Id: I414ddb1eb0c58367025ff62743c091e0b6a42ec0
2020-02-10 11:24:21 -08:00
TreeHugger Robot
6d52afe53a Merge "Add session id to grant button clicked proto" 2020-02-10 16:46:51 +00:00
TreeHugger Robot
f72d1c4b13 Merge "App freezer stat logs" 2020-02-10 15:43:42 +00:00
Marco Ballesio
497aff4020 App freezer stat logs
Bug: 143308662
Test: westworld tests on local device (go/westworld-local-development)
Change-Id: I0f3f966b6057a3465a1e686f93caf28cd7247b2c
2020-02-10 02:09:40 +00:00
Muhammad Qureshi
cefc882d9c FrameworkStatsLog --> StatsdStatsLog
Create a new StatsLog module for statsd apex

Bug: 149128236
Test: m
Change-Id: I48bc2b47c0fbcffd6a8ac646323cafb107358ec9
2020-02-09 17:14:17 -08:00
Howard Ro
763cb8f95c Merge "Add support for multi train logging" 2020-02-08 04:54:37 +00:00
Jonathan Nguyen
703c42f695 Add support for multi train logging
Test: atest GtsStatsdHostTestCases
Change-Id: I4ca7089347d6dfab8a33c07acd5ef9c252413ec9
2020-02-07 16:03:05 -08:00
Ruchir Rastogi
56da4c3862 Use StatsDimensionsValueParcel within statsd apex
Because statsd now uses StatsDimensionsValueParcel instead of
StatsDimensionsValue.h/c, statsd no longer has to depend on libservices.

Test: m -j
Test: atest StatsdHostTestCases#testBroadcastSubscriber
Bug: 148604617
Change-Id: I6d65383ccec99f4672d6575232981c0f6cc40fcf
2020-02-07 15:55:11 -08:00
Ruchir Rastogi
86379b14a7 Use cpp aidl_interface within statsd
This CL is part of a larger effort to shift statsd to libbinder_ndk.
This CL specifically accomplishes the following:
    - constructs an aidl_interface soong module that can be used by statsd
      and libstatspull
    - defines the parameters of StatsDimensionsValueParcel
      (conversions to and from StatsDimensionsValueParcel are not yet defined,
      so this CL will break sendSubscriberBroadcast. A later CL will fix this
      issue...)

Test: m -j
Bug: 148682447
Change-Id: I7afa3e21d4c9fc1970e6c393204e1bdb110760fb
2020-02-07 15:40:24 -08:00
Howard Ro
47807e2f01 Statically link libutils
this is still needed for stastd

Bug: 145565901
Test: compiles
Change-Id: I6356fbc8e4c92d3b6dc9742bf661a4fdd58dac47
2020-02-06 23:17:33 -08:00
TreeHugger Robot
ca445c49b2 Merge "Fix resourcesMap to work with shared libraries" 2020-02-07 02:29:59 +00:00
Ryan Mitchell
5035d66aee Fix resourcesMap to work with shared libraries
android:resourcesMap is not working at all with shared libraries.
This change fixes that so overlays built as shared libraries can
use the attribute.

Bug: None
Test: idmap2_tests
Change-Id: I767481f88c58892a3818a919616056291b09b57e
2020-02-06 16:25:35 -08:00
Evan Severson
5dfc0917c3 Add session id to grant button clicked proto
This is needed to track the link to settings to actions done in the
settings screen.

Test: statsd_testdrive
Fixes: 149053996
Change-Id: I1c2260ad795b3d1c34bba753cd3d44a75766b7e6
2020-02-06 16:25:21 -08:00
Jeffrey Huang
54e0f0a3ec Merge "Migrate StatsHal" 2020-02-06 23:36:22 +00:00
Anton Hansson
5a48e4b640 Add atom for sdk extension tests
This atom will be logged from a test app in /product/app. It is
temporary, and will be removed after successful R test missions.

Bug: 148945438
Test: out/host/linux-x86/bin/statsd_testdrive \
          -p com.google.android.apps.internal.sdkext.testapp 354
Change-Id: Ic25d601bfdb6f84cb9963581213ee6d3300424ab
2020-02-06 19:30:41 +00:00
Jeffrey Huang
0e0313c399 Migrate StatsHal
Test: bit VtsHalStatsV1_0TargetTest:*
Bug: 148794952
Change-Id: I19ff6edf78bd84a95d8c0ae3a1adda99d4232aa5
2020-02-06 10:03:29 -08:00
TreeHugger Robot
0a3a6c179c Merge "Link libstatssocket as a shared library" 2020-02-06 09:40:14 +00:00
TreeHugger Robot
f8df902cbf Merge "GpuStats: migrate to new statsd native puller api" 2020-02-06 07:57:29 +00:00
Howard Ro
e5575c210e Link libstatssocket as a shared library
Library clean up as a part of statsd becoming a module

Bug: 145565901
Test: compiles
Change-Id: I52ef9bfe9bf52a2582e155317b3817da3600b87d
2020-02-05 22:49:39 -08:00
TreeHugger Robot
d1c1a97b1b Merge "Turn on new socket protocol" 2020-02-06 05:38:36 +00:00
Yiwei Zhang
b761c68119 GpuStats: migrate to new statsd native puller api
Bug: 148421389
Test: build, flash and boot
Change-Id: I3731bb1fb16931e0dc9e57d3e38355899364d2c4
2020-02-05 21:04:37 -08:00
TreeHugger Robot
43bb1463c8 Merge "Proto message for "dumpsys sensorservice --proto"" 2020-02-06 04:19:25 +00:00
TreeHugger Robot
29c244be30 Merge "libstatsmetadata to static, liblog to shared" 2020-02-06 04:10:50 +00:00
Joe Onorato
758bc85bf7 Merge changes from topic "b_144187174"
* changes:
  Remove this TEST_MAPPING file until I can figure out what this error means
  Make libincident into a stable C API.
2020-02-06 03:09:52 +00:00
Howard Ro
e5edf8cc33 libstatsmetadata to static, liblog to shared
Library clean up as a part of statsd becoming a module

Bug: 145565901
Test: compiles
Change-Id: I48e919307f3a9933a9e5ce00da3804f582a44557
2020-02-05 18:26:00 -08:00
Muhammad Qureshi
deebbd9382 Turn on new socket protocol
Bug: 148909969
Bug: 143979391
Test: m
Test: fastboot flashall
Test: atest android.cts.statsd.atom.UidAtomTests#testLmkKillOccurred
Test: atest LibStatsPullTests
Test: atest GtsStatsdHostTestCases
Change-Id: I40bf643ac9e10e5b8caeb1d1b1a161d768e3bb99
2020-02-05 17:17:46 -08:00
Joe Onorato
d1d1aeb46a Remove this TEST_MAPPING file until I can figure out what this error means
Missing test_suite setting for test: GtsIncidentConfirmationTestCases, test group: presubmit, TEST_MAPPING file path: [frameworks/base/libs/incident]
Missing test_suite setting for test: GtsIncidentManagerTestCases, test group: presubmit, TEST_MAPPING file path: [frameworks/base/libs/incident]

Test: treehugger
Change-Id: I8c3f5a2ff1e22be764ae4cc42223a29f10a3480e
2020-02-05 15:58:59 -08:00
TreeHugger Robot
d27eec1829 Merge "Update StatsLogProcessor to handle BinaryPushStateChanged" 2020-02-05 19:15:29 +00:00
Howard Ro
1f0c52287b Merge "Update libstatssocket/pull API council feedback" 2020-02-05 18:28:12 +00:00
Mike Ma
a47ad7266c Proto message for "dumpsys sensorservice --proto"
Add SensorServiceProto for protobuf dumpsys of sensorservice. Primarily
used by incident service to capture an incident report proto.
Also add a gensrc rule to generate cpp headers of frameworks proto to
be used by native services like sensorservice. Added "static" qualifier
to a few generated fields in the header to avoid linker conflict.

Command to invoke (any of the following after lunch and env setup):
$ adb shell dumpsys sensorservice --proto
$ adb shell incident 3053
$ incident_report 3053

Bug: 146086105
Test: Execute the above commands and compare the output against dumpsys
      sensorservice

Change-Id: I282ff37bd3e845464d0693d69fc0d82943cc9855
2020-02-05 10:10:47 -08:00
Christine Tsai
82249e8fba Merge "Deprecate WifiRunningStateChanged atom" 2020-02-05 18:03:29 +00:00
Joe Onorato
255ffff56d Make libincident into a stable C API.
Test: atest GtsIncidentConfirmationTestCases GtsIncidentManagerTestCases libincident_test
Bug: 144187174
Change-Id: I65b5a13cfb6a57aa56f738e25a76c5ecb8e7a1a8
2020-02-05 08:29:23 -08:00
Howard Ro
6269383520 Turn back to the old socket schema
Bug: 148909969
Test: GTS tests pass after this change (they fail otherwise)
Change-Id: Iee8d6506c4fb2fbf3acef474f9ee13df1b764c41
2020-02-04 21:53:40 -08:00
Jonathan Nguyen
a0e6de15df Update StatsLogProcessor to handle BinaryPushStateChanged
Also changed StatsLog to call write() instead of the hard coded function
in StatsService.

Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Change-Id: I26171fa4cfc877e1e179b74ec8076d964aff8548
2020-02-04 20:09:26 -08:00
tsaichristine
cecebdca90 Deprecate WifiRunningStateChanged atom
The callers for this atom were removed in R. This atom no longer
logs any events in statsd.

Test: bit statsd_test:*
Change-Id: I6da7055653f9c28c2ca440a13e71981c765bff0e
2020-02-04 17:12:04 -08:00
Stanislav Zholnin
cd5699e8fa Merge "Extend AppPermissionFragmentActionReported atom." 2020-02-04 18:41:16 +00:00
Eugene Susla
177caa7a2b Merge "Auto-revoke permissions for unused apps" 2020-02-04 18:31:09 +00:00
Christine Tsai
4cad14edb4 Merge "Fix skipped bucket end times" 2020-02-04 18:25:28 +00:00
Keun-young Park
12ef2655f2 Merge "statsd atom: Fix errara and missing item for boottime metrics" 2020-02-04 17:58:34 +00:00
Howard Ro
2688fe61c4 Merge "Turn on new socket schema" 2020-02-04 05:09:57 +00:00
TreeHugger Robot
84a4e2a88a Merge "Use FrameworkStatsLog instead of StatsLog" 2020-02-04 04:47:08 +00:00
Tej Singh
2d814e8ba8 Merge "Fix failing statsd unit tests" 2020-02-04 02:49:53 +00:00
Tej Singh
b26d044a75 Update libstatssocket/pull API council feedback
ALso, removes KeyValuePairs support from libstatssocket

Test: make
Test: atest libstatssocket_test
Test: atest statsd_test
Test: atest LibStatsPullTests
Test: statsd_testdrive 10068
Change-Id: I3a5d0e66f00cea5897e0db33cb769bf6ea67f320
2020-02-03 18:01:31 -08:00
Tej Singh
730ed2992c Fix failing statsd unit tests
Unit tests are failing due to migrating subsystem sleep state outside of
statsd. This registers a fake subsystem sleep state puller to mock the
pulls so they dont all fail.

Test: bit statsd_test:*
Change-Id: I9636c2bd6e853fb6f93c824868553c269f795910
2020-02-03 17:31:16 -08:00
Muhammad Qureshi
550b84c582 Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by
*StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with
FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: Ifa968468ccdb18d75bac18039c280a56de2336f1
2020-02-03 23:24:04 +00:00
Christine Tsai
f7e56a64e2 Merge "Allow default state, reset state, and nesting for binary states" 2020-02-03 22:46:06 +00:00
TreeHugger Robot
f47fbd81c4 Merge "Change operation id from integer to string representation" 2020-02-03 22:37:15 +00:00