summaryrefslogtreecommitdiff
path: root/cmds/statsd/src
AgeCommit message (Collapse)Author
2020-12-03Migrate frameworks/base/cmds/statsd to packages/modules/StatsD/binBaligh Uddin
Add statsd protos to platform_protos rule BUG: 167962588 TEST: TH TEST: Local build [ crosshatch-userdebug ] Change-Id: I053f2a211ea28c2f181937af3d58ad16b235d096
2020-12-03Merge "Enforce duration metric dimension rules"TreeHugger Robot
2020-12-02Use server flag to control partial config updateTej Singh
Hooks up statsd's partial config update feature to use server-side flags. Test: atest statsd_test Bug: 172842175 Change-Id: Iaf76172286d7259dc81b847fa0e6b7830482b014
2020-12-02Enforce duration metric dimension rulesTej Singh
Dimension_in_what, condition links, and state links should be a subset of the dimensions in what. Test: atest statsd_test Bug: 167491517 Change-Id: Ibd776829e975f04bd3c992fa7c299f017801c948
2020-12-01Init duration metric if condition existedTej Singh
Initialize a duration metric with the dimensions that are true if the "what" predicate previously existed. Assumes that the internal dimensions are a superset of the dimensions_in_what, the condition links, and the state links Test: atest statsd_test Bug: 167491517 Change-Id: I8dd984fb9cb575d6d541f80cb3b1e626ce4e5f27
2020-11-30Merge "Revert "Add OWNERS block to facilitate in migration"" am: 2228195331 ↵Baligh Uddin
am: 150418acae am: aea4eb1c6e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513010 Change-Id: Ic809e4649e7e89a5c38ea39a788579b015da00d7
2020-11-30Merge "Revert "Add OWNERS block to facilitate in migration""Baligh Uddin
2020-11-30Revert "Add OWNERS block to facilitate in migration"Baligh Uddin
This reverts commit 9e569671a3752c4edd95367f483355ad31fac8d4. Reason for revert: atoms and associated protos have been migrated. Removing migration block. Change-Id: Ia1e4a73001ebc9509b8550c7957135172ce8938d BUG: 167962588 Test: TH
2020-11-25Move enums file to new directoryJeffrey Huang
Bug: 167962588 Test: m -j Change-Id: I29b21fdc98c6c795902d23f21ef3dfd11d3f3216 Merged-In: I29b21fdc98c6c795902d23f21ef3dfd11d3f3216
2020-11-24Revert^2 "Delete atoms.proto from statsd"Jeffrey Huang
217301c36f7ffd500441cb879a4fa88b770092db Change-Id: I81a8287ed5b055e7b6547794d01e7ac897f0f022
2020-11-24Revert "Delete atoms.proto from statsd"Alex Light
Revert "Add android bp to proto_logging" Revert submission 13070789-atomsproto Reason for revert: Breaks multiple git_master-without-vendor targets ``` out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp error: frameworks/base/tools/stats_log_api_gen/Android.bp:49:1: "stats-log-api-gen-test" depends on undefined module "libstats_proto_host" ninja: build stopped: subcommand failed. ``` Reverted Changes: I184cf8bf8:Add android bp to proto_logging I36ec354d2:Delete atoms.proto from statsd Bug: 167962588 Change-Id: Idce97c5cf020473744eb7f96dcfbdc7677c094da
2020-11-24Delete atoms.proto from statsdJeffrey Huang
Use the atoms.proto in proto_logging as the source of truth. Also migrates statsd log api gen to use the new atoms.proto Bug: 167962588 Test: m -j && m CtsStatsdAtomHostTestCases Change-Id: I36ec354d273dceace5245d7634c68ac63dc5a8cd Merged-In: I36ec354d273dceace5245d7634c68ac63dc5a8cd
2020-11-23Delete atoms.proto from statsdJeffrey Huang
Use the atoms.proto in proto_logging as the source of truth. Also migrates statsd log api gen to use the new atoms.proto Bug: 167962588 Test: m -j && m CtsStatsdAtomHostTestCases Change-Id: I36ec354d273dceace5245d7634c68ac63dc5a8cd
2020-11-23Merge "Add OWNERS block to facilitate in migration" am: 5e3a035a3d am: ↵Baligh Uddin
aa975f3fee am: 40a07c66a1 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1507847 Change-Id: I846ecaa2f1c07c5eadfe67fdcd0b3cedaece7a8e
2020-11-23Merge "Add OWNERS block to facilitate in migration" am: 5e3a035a3d am: ↵Baligh Uddin
aa975f3fee Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1507847 Change-Id: Ib6425e5c6a000e8bf301b3a840d984dc170a2a15
2020-11-22Add OWNERS block to facilitate in migrationBaligh Uddin
BUG: 167962588 Test: TH Change-Id: Ia8cdeb0c2bd0e98d8d6b8a44f49d42ccd0d04908
2020-11-19Merge "Add auto rotate metrics in statsd."Brian Quezada
2020-11-19Merge "Camera: Enhance camera atoms for system health"TreeHugger Robot
2020-11-19Add auto rotate metrics in statsd.bquezada
Test: Tested with local device. Bug: 171820651 Change-Id: I19df36964d0fb9aeb1cdf6dff4a0574c0854ed3e
2020-11-19Merge "Add a new launch type for hot start with relaunched activity"Riddle Hsu
2020-11-18Add TifTuneStateChanged atom.Nick Chalko
This is the base atom for all TIF metrics Test: ./out/host/linux-x86/bin/statsd_testdrive Bug: 165369586 Change-Id: I2e5c3e7f51abd2700611fcc0eaef91ec029513c8
2020-11-18Camera: Enhance camera atoms for system healthShuzhen Wang
Introduce camera system health atoms, including: - Camera open, close, and session creation time - Camera session and stream combination information, - Stream statistics: - stream width, height, format, dataspace, usage flag, - max buffer count - buffer loss - first frame latency. Test: ./out/host/linux-x86/bin/statsd_testdrive 227 Test: CTS PerformanceTest Bug: 154159000 Change-Id: I858d64f3324bb9652a59e5857f2730c92c616a8e
2020-11-18Add a new launch type for hot start with relaunched activityRiddle Hsu
An existing activity may be relaunched when moving from background to front if the current configuration is changed and the activity cannot handle the change. The relaunch type was reported as a hot start because its process is alive and the original activity exists. But the relaunch needs to destroy the original activity and create a new instance, which may even take longer time than a warm start. So the case should be separated from hot start. Also: - Make WaitResult#launchState is always populated by ActivityMetricsLogger, so "am start -W" can get consistent launch type. - Remove dead code in ActivityRecord#ensureActivityConfiguration that it already early returns if !attachedToProcess. Bug: 172528316 Test: atest ActivityMetricsLaunchObserverTests#testLaunchState Change-Id: I3ef64ce1e23b2f13d42fa2b12bc31c0cdb4652fc
2020-11-17Declare Wifi Scan atom.Sergey Troshin
Test: not required Bug: 171790175 Change-Id: I87c861d263a25db2ef05688007654622886f75a8
2020-11-17Add package_name to log for debugging the back gesture model. am: 8c95065cb7Maryam Karimzadehgan
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13005358 Change-Id: I99aa9a670cde9df8317a3433c21fda47326e2875
2020-11-17Add log entries for the results for the ML model for am: 832d060168Maryam Karimzadehgan
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13005357 Change-Id: Id49f87dd43c69e29e0840fbdfba2a38361211e2a
2020-11-16Merge changes from topic "voice_metrics_android_s"TreeHugger Robot
* changes: Add band mapping for GERAN and UTRAN Add new metrics to VoiceCallSession atom.
2020-11-16Add package_name to log for debugging the back gesture model.Maryam Karimzadehgan
Test: manual. Bug: 150170384 Change-Id: I94efa3ec6af62b485c45f9bf17861722b73ecca3 Merged-In: I94efa3ec6af62b485c45f9bf17861722b73ecca3
2020-11-16Add log entries for the results for the ML model forMaryam Karimzadehgan
the back gesture. Test: manual Bug: 150170384 Change-Id: Ic08bdea27fea085bcbb425dbac6682a88d29aa8a Merged-In: Ic08bdea27fea085bcbb425dbac6682a88d29aa8a
2020-11-13Merge "Partial config update: test update states"Tej Singh
2020-11-12Partial config update: test update statesTej Singh
Adds a unit test for updating states. Mostly to ensure that replaced states are calculated correctly. Also refactor the logic a bit to make it easier to test. Test: atest statsd_test Bug: 162323667 Change-Id: Ie0e72c25c879d1c4dd59c330d40e5757ef750ec5
2020-11-12Merge "Partial config update: various small things"TreeHugger Robot
2020-11-12Merge "Add media playback atom"Shubang Lu
2020-11-12Add media playback atomshubang
Bug: 159337195 Test: make Change-Id: Id0fef718bbcf131c71f50fccc020115e3a9481d4
2020-11-12Merge "Partial config update: various metadata"TreeHugger Robot
2020-11-11Add new metrics to VoiceCallSession atom.Michele Berionne
Bug: 151843373 Test: manual Change-Id: Ibd3338cbf64f5f079bb65f599a423b06699f1acc
2020-11-11Merge changes from topic "anr-add-loading-info"Songchun Fan
* changes: [am/incremental] add package loading info in main logcat for crash/ANRs [metrics/incremental] add package loading info in ANR and crash metrics
2020-11-10[metrics/incremental] add package loading info in ANR and crash metricsSongchun Fan
On ANR or crash, ProcessRecord will obtain the package loading info from Package Manager and log it as part of the Westworld metrics "ANROccurred". BUG: 162600251 Test: atest CtsStatsdAtomHostTestCases:android.cts.statsdatom.statsd.UidAtomTests#testANROccurred Change-Id: I4b527d731c59c6590771f898c26bfeacb16e6ad5
2020-11-09Partial config update: various small thingsTej Singh
- init new/replaced metrics - guardrails for number of metrics/matchers/conditions/alerts - report update to statsdstats - update if the config is active Test: atest statsd_test Bug: 162323476 Change-Id: Ieaa2d18903de8020fcee5bb128124ab19f10a152
2020-11-09Partial config update: various metadataTej Singh
Partial config update for: - atoms allowed from any uid - no report metrics - installer/version strings in uidmap - hash strings - annotations - config ttl - persisting configs locally Mostly just reset these fields. BYPASS_INCLUSIVE_LANGUAGE_REASON=proto field that cant be renamed Test: atest statsd_test Bug: 162323476 Change-Id: I5e636f8eb240bd3d44f08a87811b1dfefc428191
2020-11-09Deprecate DaveyOccurred AtomJeffrey Huang
Bug: 172692115 Test: m libhwui Change-Id: I56df46ac5b8e00acc251f222bd6d0c1f4e0f17ac
2020-11-05Merge "Import TLS handshake atom for Conscrypt" am: 97f35bbbef am: ↵Nikita Iashchenko
bce0208847 am: d5cad5b37b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484136 Change-Id: I34e7639f6fb4aa3516302d6d63fc74fd632dbcea
2020-11-05Merge "Config update for allowed log sources"TreeHugger Robot
2020-11-04Merge "Add carwatchdog atoms for apps' stats on killing."TreeHugger Robot
2020-11-04Merge "Add some missing conversation log fields"Julia Reynolds
2020-11-04Merge "Instrument CUJ for HUN and App launch from notification"TreeHugger Robot
2020-11-03Config update for allowed log sourcesTej Singh
Completely resets the allowed log sources from scratch. Also: - renamed initLogSourceWhitelist to initAllowedLogSources. - refactored tests to have cleaner asserts on data structures Test: atest statsd_test Bug: 162323471 Change-Id: Ie717da732eea82c764b5b1f272080a4d97a7a8eb
2020-11-03Import TLS handshake atom for ConscryptNikita Iashchenko
Bug: 160345816 Test: m droid Change-Id: I7ddf7626376bd649c8b10306d464b783cf16959b Merged-In: I142a792c34dced6b0e27b867ed3a1d95249a5f7f
2020-11-02Merge "Update SurfaceFlinger atoms to include shared timeline counters"TreeHugger Robot
2020-11-02Merge changes Ia2fb33e9,Id3afa04bTreeHugger Robot
* changes: Update Alarms/Subscriptions Partial config update for alerts/subscriptions