Commit Graph

4458 Commits

Author SHA1 Message Date
Hyunyoung Song
f1b935ea2e create ExclusionRectStateChanged/BackGesture atom
Bug: 135152789
Test: manual
Test: m statsd_testdrive -j31
Test: out/host/linux-x86/bin/statsd_testdrive [223|224]
Change-Id: Id4b36c89ed5bf3330795107fb6cd6750edcd0dbf
Merged-In: Id4b36c89ed5bf3330795107fb6cd6750edcd0dbf
2019-08-02 12:14:25 +00:00
Frank Li
762eb4a215 Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.
The sample rate of DNS stats(to statsd) is 1/sampling_rate_denom.

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iab542b32a8a18ae0bdbd8e005c430a876f056806
Merged-In: I9d37cac0bca53b3d7c6751ca69c1d304dfe17098
(cherry picked from commit 60d4f1a5bd)

Change-Id: If380a730942195db91a66944f103674c539ca7ad
2019-07-25 22:00:05 +00:00
Frank Li
be8ecaa59e Refine the proto dns_resolver.proto
1. refine the enum type Transport
   The name of 1st enum value is TRANSPORT_UNKNOWN
2. remove the wrong character "CR"

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iaf7abac6170d5818a263392731069d7bf021d981
Merged-In: I8f0e7449036062ecc3827e477ced325d84c1bf54
(cherry picked from commit aee26c026c)

Change-Id: Ie33a2ea58d6f39345d0f1d4141eea8b9c458dcfc
2019-07-25 21:57:26 +00:00
Tej Singh
1b5e46fdf5 Merge "StatsdStats: improve activation time logging" into qt-dev
am: 26b6ef7904

Change-Id: I6e92b0274e3a3266038fd91308818c56a83c29ca
2019-06-27 19:19:42 -07:00
TreeHugger Robot
26b6ef7904 Merge "StatsdStats: improve activation time logging" into qt-dev 2019-06-28 02:03:40 +00:00
Tej Singh
16ca28fc8e StatsdStats: improve activation time logging
Add logging to record whenever the 10 second guardrail for sending
active configs changed broadcast is met, so that we know when the
broadcast would not have been sent.
Add activation time for configs that are active when the device boots.
This will help determine whether or not statsd thinks configs are active
and will help debug issues like b/133809948

Bug: 133809948
Test: bit statsd_test:*
Test: manually rebooted to make sure activation time was logged
Change-Id: Ifa72202bc52485e4953e49d78dffea685cc3d1e7
2019-06-25 13:52:58 -07:00
Rafal Slawik
99c185a729 Merge "Add atom for per-process system ion heap size" into qt-dev
am: 956197e8e0

Change-Id: I236d656d3bcfef05590f8c1262f1fbd5905ddb6b
2019-06-24 15:28:29 -07:00
Ioannis Ilkos
83270da58c Merge "Add anon RSS + swap metric" into qt-dev
am: 9af8d15783

Change-Id: Icdc2f66054c9f1450a731f051707b3824c487865
2019-06-24 08:11:08 -07:00
Rafal Slawik
6d44d6dafa Add atom for per-process system ion heap size
The pulling code will be added in the next commit.

Bug: 130526489
Test: statsd_testdrive
Change-Id: I0fea4b6a7a8dbbdc574fb342c1e07aa0165bf797
(cherry picked from commit 77987ed47f)
2019-06-24 09:54:42 +00:00
Ioannis Ilkos
9af8d15783 Merge "Add anon RSS + swap metric" into qt-dev 2019-06-24 08:46:40 +00:00
Stanislav Zholnin
afc5d42765 Add logging atom for PermissionApps fragment views
am: 32a89c15a7

Change-Id: I72f9f8459637de005b62d8901d1e87f0bcba635e
2019-06-21 08:50:36 -07:00
Stanislav Zholnin
57f15e881c Add atom for logging of AppPermissionsFragment views.
am: dc3e2b35fb

Change-Id: I3aebcc6a68c7d49e207c7e257ef04a47aad1f3ec
2019-06-21 08:46:00 -07:00
Stanislav Zholnin
12f7a5ff0f Add atom for logging views in AppPermissionFragment
am: c9dda9ecdf

Change-Id: I3dbac7f6eaf54cd9b560ea0a6c21d920eef338fb
2019-06-21 08:44:14 -07:00
Stanislav Zholnin
abfa32bbb3 Add logging atoms to record user actions in AppPermissionFragment (handheld devices only)
am: 3e0f9bcce0

Change-Id: I9aba7f2f32ff6a9b6f52532e0d2b45331a4790ca
2019-06-21 08:42:15 -07:00
Stanislav Zholnin
32a89c15a7 Add logging atom for PermissionApps fragment views
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 218
Bug: 133401502
Bug: 134581123
Change-Id: I8f41d72c8f96a004911ef68491de8a214da4db24
Add logging to PermissionAppsFragment
2019-06-21 16:39:52 +01:00
Stanislav Zholnin
dc3e2b35fb Add atom for logging of AppPermissionsFragment views.
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 217
Bug: 133401502
Bug: 134581123
Change-Id: I60e500e99a13a4f2dea6d7141fc87f5b8422c3a7
2019-06-21 16:26:08 +01:00
Stanislav Zholnin
c9dda9ecdf Add atom for logging views in AppPermissionFragment
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 216
Bug: 133401502
Bug: 134581123
Change-Id: I099de3a5ecd7ecf68df618b9738a0428e5792c98
2019-06-21 15:20:44 +00:00
Ioannis Ilkos
466ad6c3e0 Add anon RSS + swap metric
We are planning to use this metric to detect leaks.

This CL also decouples the actual memory sampling from AM. This means:
- Less time locking the pid list (we used to lock and then read proc)
- Less serialization / deserialization for the parcel
- Simpler to evolve (e.g. removed the HWM-specific method in AM)

Change-Id: I87a7243156dd8c88cfa85038e7e6cf4963e271e1
Test: manual, MemoryStatUtilTest, UidAtomTests
Bug: b/135418017
2019-06-21 11:10:19 +01:00
Kevin Chyn
7fca2368af Log the amount of time between authentication and error
Fixes: 135705310

Test: Checked logs
Change-Id: I1d9b26befc30f233052504c7c74b17ea0a3d5671
2019-06-21 06:10:40 +00:00
Stanislav Zholnin
9f7663e4b6 Merge "Add logging atoms to record user actions in LocationAccessCheck (handheld devices only)" into qt-dev
am: 762aa842ae

Change-Id: I66b9c6cfa8f19ea0c47f2004ab2193c0fafcd4ec
2019-06-20 22:26:45 -07:00
Stanislav Zholnin
3e0f9bcce0 Add logging atoms to record user actions in AppPermissionFragment
(handheld devices only)

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 215
Bug:133401502
Bug:134581123

Change-Id: I2a0b15dfdd6398707a762c48602f970f14534b51
2019-06-21 05:23:33 +01:00
Stanislav Zholnin
375e2ab781 Add logging atoms to record user actions in LocationAccessCheck
(handheld devices only)

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 214
Bug:133401502
Bug:134581123
Change-Id: I9f35d2b06cf953441e0986ab23cb842cd155144d
2019-06-20 23:59:59 +00:00
Steven Moreland
738d6b8950 Merge changes from topic "combine-libhidlbase-libhwbinder" into qt-dev
am: 303a891220

Change-Id: Ibc1c5fb1ccc095250f979b7720c6446ef71ea27b
2019-06-20 13:09:43 -07:00
Steven Moreland
303a891220 Merge changes from topic "combine-libhidlbase-libhwbinder" into qt-dev
* changes:
  libhwbinder users use libhidlbase
  libmedia2_jni: remove libhwbinder_noltopgo ref
2019-06-20 19:09:01 +00:00
Steven Moreland
6c65bb208e libhwbinder users use libhidlbase
libhwbinder symbols are being moved into libhidlbase in order to
optimize linking/memory usage. libhwbinder will no longer be
required in the future (however removing references to it will come
separately).

Bug: 134961554
Test: boot
Change-Id: Iab3cc1b3abf8e648254a903c89a4ab9e8eee68c8
Merged-In: I128a007749356d4a8d75eba3e2c678c0f66c59fe
2019-06-18 17:20:06 -07:00
Stanislav Zholnin
c136634c33 Adding atom for logging GrantPermissionsActivity buttons presented and pressed.
am: bdf620b5bd

Change-Id: Ia2f95b336d7e2eafc0949a90526d31f7865c69fd
2019-06-18 05:16:34 -07:00
Stanislav Zholnin
bdf620b5bd Adding atom for logging GrantPermissionsActivity buttons presented and pressed.
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 213
Bug:133401502
Bug:134581123
Change-Id: I4c74d590266f89b192605be6f94d038bc2e1bd5a
2019-06-18 11:11:33 +01:00
Stanislav Zholnin
ec9cbdb220 Merge "Atoms for logging permission grants during system upgrade." into qt-dev
am: 58c51d17d1

Change-Id: I90a927891a207971c86b8abebc8cc9c5457a5f2e
2019-06-17 13:16:29 -07:00
Stanislav Zholnin
247d1b75cd Atoms for logging permission grants during system upgrade.
Test: manually verified
Bug:133401502
Bug:134581123
Change-Id: I004704e39c8936de91300b6f98e722d925142c14
2019-06-14 13:13:35 +01:00
Ryan Savitski
d205ee215d Merge "userdebug: support perfetto traces as a section in incident reports" into qt-dev
am: cfff472c8e

Change-Id: I6e023382bd1059c0081b748029a3aa201352a8cf
2019-06-13 17:31:40 -07:00
Ryan Savitski
cfff472c8e Merge "userdebug: support perfetto traces as a section in incident reports" into qt-dev 2019-06-13 23:42:09 +00:00
Stanislav Zholnin
32bf74150c Merge "Add atom for logging of ReviewPermissionsFragment actions." into qt-dev
am: 15ae30124d

Change-Id: Ideec2a7b87b5089e3b343212cb8656c3326a0e11
2019-06-13 13:27:34 -07:00
TreeHugger Robot
15ae30124d Merge "Add atom for logging of ReviewPermissionsFragment actions." into qt-dev 2019-06-13 20:15:35 +00:00
Tej Singh
52cfa0e455 Merge "Persist metric activation across beta4/5 ota" into qt-dev
am: 12ae95987b

Change-Id: I8d989540dd6807c539026e8c912c581de82b324c
2019-06-08 09:06:32 -07:00
TreeHugger Robot
12ae95987b Merge "Persist metric activation across beta4/5 ota" into qt-dev 2019-06-08 14:38:06 +00:00
Tej Singh
cbf2c64024 Persist metric activation across beta4/5 ota
In beta 4, activeEventActivation proto object does not have a state
field and assumed to be active if it is written to disk. In beta 5, we
add a state field to support persisting metric activation status across
a system server crash. However, if a device updated from beta 4 to 5, we
don't have any knowledge of the state when we read. Therefore, assume
the lack of the state field as the event activation should be active for
the provided ttl.

Bug: 134795027
Test: used flashstation to flash a device to beta 4. Then manually push
and activate a simple config. Then use vendor/google/tools/flashall to
update to qt-dev + this change. Manually ensure metric/config are still
active.
Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Test: bit statsd_test:*

Change-Id: I8594d04efaa2ae1f669113aaffd33e5fa5851e73
2019-06-07 17:56:24 -07:00
Ryan Savitski
cc7d9973c6 userdebug: support perfetto traces as a section in incident reports
This set of patches adds a way for the perfetto command line client to
save a trace to a hardcoded location,
/data/misc/perfetto-traces/incident-trace, and call into incidentd to
start a report, which will include said trace in a new section.

This is not a long-term solution, and is structured to minimize changes
to perfetto and incidentd. The latter is currently architected in a way
where it can only pull pre-defined information out of the system, so
we're resorting to persisting the intermediate results in a hardcoded
location.

This will introduce at most two more linked files at the same time.

Bug: 130543265
Tested: manually on crosshatch-userdebug
Merged-In: Iaaa312d2d9da73ca329807211227a8c7a049102c
Change-Id: Iaaa312d2d9da73ca329807211227a8c7a049102c
(cherry picked from commit 09a847902f)
2019-06-07 18:13:56 +01:00
Stanislav Zholnin
3d215df180 Add atom for logging of ReviewPermissionsFragment actions.
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 211
Bug: 133401502
Bug: 134581123
Change-Id: I326731e70221c1a28568573a241592006d1bb59e
2019-06-07 14:33:42 +00:00
Tej Singh
e4677ac1d2 Merge "Blacklist truncated atoms instead of whitelistnig" into qt-dev
am: 85a3a4689c

Change-Id: I6322b4844a49ef6d5257f29751b7486e14fc6586
2019-06-06 19:49:39 -07:00
TreeHugger Robot
85a3a4689c Merge "Blacklist truncated atoms instead of whitelistnig" into qt-dev 2019-06-07 02:35:51 +00:00
Tej Singh
44149fc2c1 Merge "Allow same matcher to cancel >1 event activation" into qt-dev
am: de7e1ccb0c

Change-Id: I53a6d2a429dd379b6334f719cfcce3ae308cb9a6
2019-06-05 23:23:54 -07:00
TreeHugger Robot
de7e1ccb0c Merge "Allow same matcher to cancel >1 event activation" into qt-dev 2019-06-06 06:15:55 +00:00
Tej Singh
29ac601429 Blacklist truncated atoms instead of whitelistnig
We used a whitelist to determine which atoms should have their
timestamps truncated to the nearest 5 minutes. This changes the logic
to a blacklist so that we can get fine grained timestamps from vendor and
mainline atoms. Also reserves a range for atoms that need to be
truncated in the future.

Bug: 134574701
Test: inspected generated statslog.cpp file to make sure it had the
correct blacklist
Test: testdrive on ScreenStateChanged to ensure timestamps are preserved
when they should be
Test: testdrive on CallStateChanged to ensure timestamps are truncated
when they should be.

Change-Id: Id3468542c830cdf41395a94c77f7df0b46cd11b7
2019-06-05 18:10:12 -07:00
Joe Onorato
f36b7f5f02 Merge "Do not include specific_mention sections in bugreports either." into qt-dev
am: da7f7e0a32

Change-Id: I234db31f8ee41ac5a70b46f80d0940f9d4adcff7
2019-06-05 15:24:38 -07:00
Joe Onorato
f7c2bceafe Do not include specific_mention sections in bugreports either.
Test: adb bugreport & manually verify
Bug: 134583922
Change-Id: I6b4df17fc729f78e70e126882bce611a33c8ef9a
2019-06-05 11:57:39 -07:00
Tej Singh
ee4495e6e2 Allow same matcher to cancel >1 event activation
Previously,we could only have one deactivation matcher for a given
metric. This meant that the same matcher could not be used to cancel
several (or all) event activations of a metric. This fixes that bug.

Test: bit statsd_test:*
Bug: 134185513
Change-Id: I9d74878c9e09bd1f58c8f3dcffe1092edf490329
2019-06-04 13:03:38 -07:00
Ryan Mitchell
4ab10d710e Merge "Fix atoi build errors" into qt-dev
am: 9fe4ba7a43

Change-Id: I64c88c9666c208e0e80919ea4fc3299a27d09c5b
2019-06-04 08:14:36 -07:00
TreeHugger Robot
9fe4ba7a43 Merge "Fix atoi build errors" into qt-dev 2019-06-04 15:06:08 +00:00
Ryan Mitchell
7f08644bd7 Fix atoi build errors
Use strtol instead of atoi to check vendor partition version.

Bug: 119390857
Test: manual
Change-Id: I49c5963d8bbc5a803b3ccc0dd41d7bd7f2a42226
2019-06-04 06:05:31 +00:00
Yao Chen
ae8cff710b Merge "Fix a bug in saving local history of the metrics report." into qt-dev
am: 6d647b78d3

Change-Id: I69258e0cb237f501e2962f216396889ec0521098
2019-06-03 20:38:49 -07:00