summaryrefslogtreecommitdiff
path: root/core/java/android/metrics
Commit message (Collapse)AuthorAgeFilesLines
* Improve OWNERS coverage across frameworks/base/.Jeff Sharkey2020-12-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As general background, OWNERS files expedite code reviews by helping code authors quickly find relevant reviewers, and they also ensure that stakeholders are involved in code changes in their areas. Some teams under frameworks/base/ have been using OWNERS files successfully for many years, and we're ready to expand them to cover more areas. Here's the historical coverage statistics for the last two years of changes before these new OWNERS changes land: -- 56% of changes are fully covered by OWNERS -- 17% of changes are partially covered by OWNERS -- 25% of changes have no OWNERS coverage Working closely with team leads, we've now identified clear OWNERS on a per-package basis, and we're using "include" directives whenever possible to to simplify future maintenance. With this extensive effort, we've now improved our coverage as follows: -- 98% of changes are fully covered by OWNERS -- 1% of changes are partially covered by OWNERS -- 1% of changes have no OWNERS coverage This specific change is automatically generated by a script from detailed ownership information confirmed by team leads. Bug: 174932174 Test: manual Exempt-From-Owner-Approval: refactoring with team leads buy-in Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
* Remove @TestApi from @SystemApi symbolsAnton Hansson2020-10-192-4/+0
| | | | | | | | | | | | | | I ran these commands: cd frameworks/base grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs' grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs' Bug: 171179806 Test: m checkapi Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789 Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
* Update language to comply with Android’s inclusive language guidanceChris Wren2020-07-231-1/+1
| | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: comments only change Change-Id: I6012e3b30ef81149d8f52708de4fc1ec2a4fa8b1
* Added some TestApi that are already used by CTSWale Ogunwale2019-02-212-0/+4
| | | | | | | | Allows us to remove the use of private platform API from CTS. Bug: 124134247 Test: builds Change-Id: Iceb81ff7c9385e877d2612fbb7b506245d116928
* MetricsLogger writes to both event log and statsdHoward Ro2018-10-031-0/+8
| | | | | | | | | For the intermediate period, MetricsLogger logs to both event buffer in logd as well as stastd socket. Bug: 110537511 Test: statsd, statsd_test Change-Id: Ie349b1d202e07c585ab5b085141865f20d1f57cd
* use the dedicated latency field in logmakerChris Wren2018-03-141-1/+1
| | | | | | Bug: 65724609 Test: runtest systemui Change-Id: Ic5d3f569c06f641454c356f64f773db59140fedc
* expose the UID in the EventLog APIChris Wren2017-04-282-1/+40
| | | | | | Bug: 32806111 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: I16800a33bc6d4d37b3addd71b675fd760bd5d7b8
* guard against nulls in LogMakerChris Wren2017-04-181-3/+7
| | | | | | Bug: 36909905 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: Ibd12bf12f9b1ed5fbc926ec04bbfa429ff98f7d2
* Log screen-on latency with tronMakoto Onuki2017-04-171-0/+10
| | | | | | Bug: 36776886 Test: manual test with "adb logcat -b all" and systrace. Change-Id: I9e7188475a79899569046892e6f08c9005b84303
* don't interpret milliseconds as nanosecondsChris Wren2017-04-121-8/+11
| | | | | | | | | | | | The bug fix is in the readEvents() wrapper, but also make sure that both the Event and LogReader interfaces only expose milliseconds. No test changes, because the Java-layer didn't change, the bug was in the JNI wrapper, below the level that's easily testable. Bug: 37205954 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: I0c4ad9233a81bcf585ab525b3a5cc63fbb645093
* Clean up and cover more QS metricsJason Monk2017-03-271-0/+11
| | | | | | Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377 Fixes: 34801532 Test: runtest systemui
* revise the reader semanticsChris Wren2017-03-181-38/+129
| | | | | | | | | | checkpoint modifies the underlying log rather than reading timestamps. reset replays without going back to the underlying log. add a test Bug: 32982362 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: I381b203a1c24fcd098d7df4d9d0a50bd8aaa1309
* add process ID to LogMakerChris Wren2017-03-092-4/+87
| | | | | | Bug: 32806111 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: I3efa38a6b25502def3ba7ace04b6ba76e4d1a6cb
* Merge "add clear methods to LogMaker"Chris Wren2017-03-071-0/+25
|\
| * add clear methods to LogMakerChris Wren2017-03-071-0/+25
| | | | | | | | | | | | | | | | To support object reuse. Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Bug: 36020746 Change-Id: I09e5689da70963e9aba3bd8428a55acfcbe4e92a
* | remove the last of the legacy log helpersChris Wren2017-03-071-17/+68
|/ | | | | | | | All logs should now flow through LogMaker. Bug: 34705522 Test: mmma -j20 platform_testing/tests/functional/notificationtests && adb install -r -g /data/app/NotificationFunctionalTests/NotificationFunctionalTests.apk && adb shell am instrument -w -e iterations 1 -e class com.android.notification.functional.NotificationInteractionTests com.android.notification.functional/android.support.test.runner.AndroidJUnitRunner && runtest --path platform_testing/libraries/metrics-helper/tests Change-Id: I94732c84564e4cb25d77b63be8beb4aab4c38985
* add a comparator for LogMakerChris Wren2017-01-271-0/+21
| | | | | | | | Tests need to be able to compare partial log structures. Bug: 34705522 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: I4e26e43f5f5ea3fbba5a2a2a9563982c7260671b
* allow clearing fields for LogMaker reuseChris Wren2017-01-261-6/+19
| | | | | | Bug: 34705522 Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics Change-Id: I00a1ef279740c890ff8b059be97c4463c9f1af0e
* Tron logging - Fix isValidValue to match its name, allow nulls.Alison Cichowlas2017-01-251-3/+7
| | | | | Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics/LogMakerTest.java Change-Id: I92567e1873c5178606ac88135b5934d760b4ec24
* Move MetricsReader to SystemApiChris Wren2017-01-242-0/+306
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics && runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/logging/legacy/ Change-Id: If55f0444d5a836f24234182d298ebc128643efc1