summaryrefslogtreecommitdiff
path: root/cmds
AgeCommit message (Collapse)Author
2020-10-13Fix out of bound error of IncidentService Howard Ro
Before this change, it was possible for the code to suffer an out of bound error. Bug: 150706572 Test: make Change-Id: I3e8d37f2ee3c942bc9b176edee043557b005c757 (cherry picked from commit 8ff5315e989c1348e313bcb8170b77adc80b2fce) (cherry picked from commit e592700068db0335c83934f191fc9efcbd8037ec)
2020-09-16Additional LMK diagnostic information Ioannis Ilkos
Add free memory / swap as well as the kill reason to better understand and diagnose lmkd behaviour in the field Test: build with corresponding lmkd change Bug: 168117803 Merged-In: I190f70758daa442b8605e17960c74574676fa3ae Change-Id: I190f70758daa442b8605e17960c74574676fa3ae
2020-08-11Do not log package name on privacy-indicator logs Philip P. Moltmann
as requested by privacy review. Bug: 162547999 Test: Built Change-Id: I9333facfdc39cc7a344c5671f487928977f5d82e
2020-08-04Merge "Use -target 8 for android_uiautomator" into rvc-dev Colin Cross
2020-08-03Use -target 8 for android_uiautomator Colin Cross
android_uiautomator is distributed as part of the SDK and should use -target 8 for compatibility with old JDKs. Bug: 150153790 Bug: 162522383 Test: javap -v -cp out/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/classes.jar com.android.uiautomator.core.Configurator | grep "major version" Change-Id: I6871ab5436232ad3bffff6bd26adf2de6b3c06ff
2020-07-16Report NR connected state to provide resolution of 5G NSA mode junyulai
Test: adb shell cmd stats pull-source 10082 Test: atest UidAtomTests#testDataUsageBytesTransfer Bug: 160727498 Change-Id: I7d98ab425852ffa064c68f5dc50bd1f5a4a49ab9 Merged-In: I7d98ab425852ffa064c68f5dc50bd1f5a4a49ab9 (cherry-picked from ag/12167625)
2020-07-08Merge "Add telecom command to stop block suppression" into rvc-dev Hall Liu
2020-07-08Add telecom command to stop block suppression Hall Liu
Add a Telecom command to stop the number blocking suppression that happens after an emergency call. Bug: 158798240 Fixes: 160667708 Test: atest CtsTelecomTestCases Change-Id: I122de1962fb6aa48a3092c2aa323dcbdcbb8f42e
2020-07-01Merge "Add atom for general external storage access stats" into rvc-dev Shafik Nassar
2020-06-26Merge "Fix edge case in statsd alarms" into rvc-dev TreeHugger Robot
2020-06-26Add atom for general external storage access stats shafik
Define a new pulled atom which will be logged in MediaProvider. The atom collects general access stats for external storage: * Total number of accesses * Total number of file path accesses * Total number of secondary storage accesses * List of accesses mime types Test: build Test: make statsd_testdrive ; ./out/host/linux-x86/bin/statsd_testdrive \ -p com.google.android.providers.media.module 10085 Bug: 149669087 Change-Id: Ic0ebb040a05ec06603f1a617f290af6a2f21916d
2020-06-26Merge "Add COUNT_LIMIT_EXCEEDED as reason for BlobCommitted/Leased." into ↵ Sudheer Shanka
rvc-dev
2020-06-25Fix edge case in statsd alarms Tej Singh
Right now, if an alarm fires exactly on time (within 1 second), or exactly on a multiple of its period, statsd will reset the alarm for the same time, which can result a loop of statsd setting an alarm, the alarm firing, statsd setting an alarm at the same time, etc. The fix is that if an alarm fires on time, we should move to the next period. Test: atest statsd_test (added to a test, which would fail without the code change) Bug: 159098080 Change-Id: I150538cb1d3d5a2b943df2a32d92f8f84bb96626
2020-06-25Merge "Inroduce UNIFORM_OPS sampling." into rvc-dev TreeHugger Robot
2020-06-25Inroduce UNIFORM_OPS sampling. Stanislav Zholnin
Introduce strategy which uniformly samples OPs, without biasing in favour of specific ops. Use this strategy half of the time. Test: atest RuntimeMessageCollectionTest && statsd_testdrive 10069 Bug: 143519689 Change-Id: I481d3a9ef9c66f04577b57432cecdf2c02055e58
2020-06-24Add shard ID to statsd atom for procstats collection Richard Gaywood
Without this, RANDOM_ONE_SAMPLE would result in statsd dropping all bar the first shard. Adding the shard id as a dimension field preserves all the data. Bug: 158294266 Test: manual build & test Change-Id: I94ffb610ef3651f460600e3df6b32c87fc430594
2020-06-23Add COUNT_LIMIT_EXCEEDED as reason for BlobCommitted/Leased. Sudheer Shanka
Bug: 144155167 Bug: 159754450 Test: atest android.cts.statsd.atom.UidAtomTests Change-Id: Ic6a7d81833f98ea88e7543ac9c1710871ed7582b
2020-06-23Merge "Remove libstatsmetadata" into rvc-dev Muhammad Qureshi
2020-06-22Log IME Touches. Design document: ↵ Maryam
https://docs.google.com/document/d/1e7JrjjEVvjrUxSDuPWdsdKcGziNQbW11bdCPlCdA2Wk/edit?ts=5ed57c93#heading=h.ixy3934b5ag bug: 159343582 Test: manual test Change-Id: I263f9810592dcd0fc05913875dd31154d041455a
2020-06-18Remove libstatsmetadata Muhammad Qureshi
Remove kWhitelistedAtoms usage in MetricsManager and remove: - atoms_info references from statsd - libstatsmetadata usages from statsd - libstatsmetadata library - atoms_info_writer.h/.cpp - references to atoms_info in rest of stats-log-api-gen - allow_from_any_uid annotation Fixes: 147600720 Fixes: 154856835 Fixes: 148993016 Test: m stats-log-api-gen Test: m stats-log-api-gen-test && out/host/linux-x86/nativetest/stats-log-api-gen-test/stats-log-api-gen-test Test: m statsd Change-Id: I2e0579609ff257da934b95cdda397f3ca0ffa1f0
2020-06-18Merge "Add pullTimeoutDurations to statsdstats" into rvc-dev Jeffrey Huang
2020-06-18Add pullTimeoutDurations to statsdstats Jeffrey Huang
Bug: 156790145 Test: atest statsd_test Change-Id: Iaf6ceb94bb8729cb73e5e067b15f369dca1f52d8
2020-06-18Adding Network Tethering Metrics/atoms lifr
Test: Run statsd_testdrive Bug: 153942334 Change-Id: Ia0dc1dd45e006348c3856b483972a4ccd6048d05
2020-06-17Merge "Add KeystoreKeyEventReported atom for keystore logging." into rvc-dev Hasini Gunasinghe
2020-06-17Merge "Fix TestSubscriberDimensionWrite" into rvc-dev Ruchir Rastogi
2020-06-17Add KeystoreKeyEventReported atom for keystore logging. Hasini Gunasinghe
This is for migrating keystore logging to use statsd. Test: Adding tests for logging is yet to be decided. Change-Id: I66fbc2b8ed98a34f243387f8550b6523b13cb9a2 Bug: 157664923
2020-06-17Merge "Add CP2 general usage counters to westworld logs." into rvc-dev Tingting Wang
2020-06-16Fix TestSubscriberDimensionWrite Ruchir Rastogi
Test: m statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test64 Bug: 148954476 Change-Id: I3d2112f85460701d49103a5bfdc8cf0829ea091a Change-Id: I07813393c6226252ee839ab16f411f9f92442ada
2020-06-16Merge "Start OP_NO_ISOLATED_STORAGE on `am instrument ↵ Nikita Ioffe
--no-isolated-storage`" into rvc-dev
2020-06-16Add CP2 general usage counters to westworld logs. Tingting Wang
Bug: 158875840 Test: Together with ag/11419187, run $make statsd_testdrive & ./out/host/linux-x86/bin/statsd_testdrive -p com.android.providers.contacts 301 Change-Id: Icf6a17ab410e581a445342e829d130d6d705e71b
2020-06-15Merge "Mark bucket as condition_unknown properly" into rvc-dev TreeHugger Robot
2020-06-13Merge "Add back missing `tidy_checks`, since `tidy_checks_as_errors` isn't ↵ TreeHugger Robot
enough" into rvc-dev
2020-06-13Merge "Use `tidy_checks_as_errors` list instead of `-warnings-as-errors=*`" ↵ TreeHugger Robot
into rvc-dev
2020-06-13Mark bucket as condition_unknown properly Tej Singh
Previously, if the condition was unknown for the entire bucket, the bucket would be annotated with a NO_DATA rather than being dropped because CONDITION_UNKNOWN. This updates all the buckets to be dropped due to CONDITION_UNKNOWN. Note that this will make the condition unknown problem appear worse, when in reality it is making our bucket drop reasons more correct and should not have any impact on the true CONDITION_UNKNOWN. Also fix an issue where a test was failing due to a previous test leaving data persisted to disk. This fix is a hack for now, and should be properly fixed later. Bug: 158897179 Test: atest statsd_test Change-Id: Ic703600d37aa1873ec67cb1a279dcf349d48fc9f
2020-06-13Merge "Add BlobStore atoms" into rvc-dev Michael Wachenschwanz
2020-06-13Merge "Fix testValueMetric flake" into rvc-dev TreeHugger Robot
2020-06-13Merge "Fix testMultipleConditions flake" into rvc-dev TreeHugger Robot
2020-06-13Merge "Incident dump does not include current bucket" into rvc-dev TreeHugger Robot
2020-06-12Fix testValueMetric flake Muhammad Qureshi
Don't skip buckets with MULTIPLE_SKIPPED_BUCKETS reason for pushed metric that is not diffed. Fixes: 156690892 Test: atest --rerun-until-failure=100 CtsStatsdHostTestCases: android.cts.statsd.metric.ValueMetricsTests#testValueMetriccts.statsd.metric.ValueMetricsTests#testValueMetric Change-Id: Ic14198d38ab63d99700a4df9e9e7ae04181f5139
2020-06-13Add BlobStore atoms Michael Wachenschwanz
Bug: 144155167 Test: atest android.cts.statsd.atom.UidAtomTests Change-Id: I650dfdf6e2f7b6fff29ba6fdf5010a151fd503b5
2020-06-12Fix testMultipleConditions flake Muhammad Qureshi
Use vector<int> instead of vector<bool>. vector<bool> is not thread-safe: https://en.cppreference.com/w/cpp/container#Thread_safety Fixes: 156690351 Test: atest --iterations=500 statsd_test:MultiConditionTrigger#TestMultipleConditions Change-Id: I9121747ffbee0864afbff993e7fe417104827952
2020-06-12Incident dump does not include current bucket Tej Singh
This is to avoid value metrics skipping buckets due to DUMP_REPORT_REQUESTED, since if the metric needs to include the current bucket under time constraints and needs to pull, it will drop the bucket since it cannot pull. Test: atest statsd_test Bug: 158879346 Change-Id: Ia61e69530456ce2b3530add03ec6e068ffb25fb5
2020-06-12statsd: Add audio device usage protos. Andy Hung
MediaMetricsAudioRecordDeviceUsageReported MediaMetricsAudioThreadDeviceUsageReported MediaMetricsAudioTrackDeviceUsageReported MediaMetricsAudioDeviceConnectionReported Test: adb shell dumpsys stats --metadata (check 294-297) Test: statsd_testdrive (294-297) Bug: 149850236 Bug: 158038205 Change-Id: Idf4e324c06ed3586ba71745d110e721d290a5726
2020-06-12Merge "GnssStats atom entity name change" into rvc-dev TreeHugger Robot
2020-06-12Merge "Increase configs per uid limit to 20" into rvc-dev TreeHugger Robot
2020-06-12Merge "Adding NetworkStack Metrics/atoms" into rvc-dev Frank Li
2020-06-11Increase configs per uid limit to 20 Jeffrey Huang
Bug: 158721606 Test: m -j Change-Id: I434bb0b9cefa469e4ade5803f93eee780da7cfa9
2020-06-11Start OP_NO_ISOLATED_STORAGE on `am instrument --no-isolated-storage` Nikita Ioffe
This provides a signal for MediaProvider to whitelist access for full external storage access. Here is an overview of how the flow looks like: 1. When app is started within instrumentation with --no-isolated-storage flag, ActivityManagerService will grant OP_NO_ISOLATED_STORAGE to that package. 2. MediaProvider will note the OP_NO_ISOLATED_STORAGE app op as fallback in case app doesn't have MANAGE_EXTERNAL_STORAGE permissions. 3. When instrumentation finishes, ActivityManagerService will change mode of OP_NO_ISOLATED_STORAGE app op to MODE_ERRORED. Test: atest ExternalStorageHostTest Bug: 149894531 Change-Id: I51cd87e5e887b887fd8ac7a1a7ffff208266ffa8
2020-06-11Merge "Avoid timestamp update when data is kept on dump" into rvc-dev Jeffrey Huang
2020-06-11GnssStats atom entity name change Blake Kragten
time_to_first_fix_milli_s to time_to_first_fix_millis Bug: 142905639 Test: Compiled Change-Id: Iddeed5d0211d530369506ad66276b3c23b4c2369