TreeHugger Robot
25f5eaea72
Merge "Migrate pulFaceSettings to new API"
2020-01-21 22:44:38 +00:00
Muhammad Qureshi
3ab2065deb
Merge "Add sysui module for logging SystemUI atoms."
2020-01-21 21:22:14 +00:00
Ruchir Rastogi
329c767f90
Migrate pulFaceSettings to new API
...
Test: adb shell cmd stats pull-source 10058
Bug: 145565211
Change-Id: I2d36cee59e4cb9f78b6a92d5b4b00d81415a2129
2020-01-21 18:36:18 +00:00
Jeffrey Huang
45da5e671f
Merge changes Ie1d74670,I249140c5,Ie8f6d1b7,Ifeedbb94
...
* changes:
Migrate (AppsOn)ExternalStorageInfo pullers
Migrate pullRoleHolder to new API
Migrate pullAppOps to new API
Migrate pullTimeZoneDataInfo to new API
2020-01-17 23:51:33 +00:00
Jeffrey Huang
7149f4dfc3
Merge "Delete References to Statsd in StatsManager"
2020-01-17 23:33:06 +00:00
Ruchir Rastogi
6fc44a8d35
Migrate (AppsOn)ExternalStorageInfo pullers
...
Transition these two pullers to the new API for registering pullers.
Test: adb shell cmd stats pull-source 10053
Test: adb shell cmd stats pull-source 10057
Bug: 145565211
Change-Id: Ie1d74670018ae1f096e5e345e017e0ef3f1f153d
2020-01-17 14:08:29 -08:00
Ruchir Rastogi
e4fd321616
Migrate pullRoleHolder to new API
...
Test: adb shell cmd stats pull-source 10049
Test: atest CtsStatsdHostTestCases:UidAtomTests#testRoleHolder
Bug: 145565211
Change-Id: I249140c5721e21fb4eabd29429e44758ead1a109
2020-01-17 14:08:11 -08:00
Ruchir Rastogi
97050e1c0b
Migrate pullAppOps to new API
...
Test: adb shell cmd stats pull-source 10060
Bug: 145565211
Change-Id: Ie8f6d1b7706ea10b531d9732e9914477b47df431
2020-01-17 14:07:48 -08:00
Ruchir Rastogi
bd2c4ba453
Migrate pullTimeZoneDataInfo to new API
...
Test: adb shell cmd stats pull-source 10052
Bug: 145565211
Change-Id: Ifeedbb949fd01d82a9a9a0985a0a17cfbffb8558
2020-01-17 14:07:26 -08:00
Jeffrey Huang
67ad2e7a55
Delete References to Statsd in StatsManager
...
Test: adb shell cmd stats pull-source 10000 (chosen randomly)
Change-Id: I9578f84213e6c2787da60ae7e2c20157087d5b6a
2020-01-17 13:28:27 -08:00
Jeffrey Huang
7a9ae133b3
Migrate pullProcessCpuTime
...
Test: No CTS test. Ran adb shell cmd pull-source 10035
Change-Id: Idc6cad89d4a953f6c92fd55c7f9e0161633efad0
2020-01-17 13:23:37 -08:00
Jeffrey Huang
fdc5369e3e
Migrate pullDiskIo
...
Test: No cts test. Ran adb shell cmd stats pull-source 10032
Change-Id: I088cfd911e7f097ac37c485e666fe1d2fc6b3663
2020-01-17 13:23:37 -08:00
Jeffrey Huang
882f99a836
Migrate pullSystemElapsedRealtime
...
Test: atest ValueMetricTests
Test: No cts test. Ran adb shell cmd pull-source 10014
Change-Id: I89c673cb2337405dbe1aa4e3a5756bdf9410927a
2020-01-17 13:22:45 -08:00
Jeffrey Huang
7f9fe5024f
Migrate DangerousPermissionState(Sampled)
...
Test: atest UidAtomTests#testDangerousPermissionState
Test: atest UidAtomTests#testDangerousPermissionStateSampled
Test: adb shell cmd stats pull-source 10050
Test: adb shell cmd stats pull-source 10067
Change-Id: Ia740d185cc510a73e8c4f07ef8ce8d50e99779c2
2020-01-17 13:20:33 -08:00
Jeffrey Huang
730bf96884
Migrate pullNotificationRemoteViews
...
Test: atest NotificationStatsTest
Test: adb shell cmd stats pull-source 10066
Change-Id: I8fd848b233920a2fe6bba1d87ec22eeed0bcaf91
2020-01-17 13:20:33 -08:00
Jeffrey Huang
bf4eef83ae
Migrate pullCpuTimePerThreadFreq
...
Test: adb shell cmd stats pull-source 10037
Change-Id: I3e80d65e83002881f875e8250f43676bc0c6d1ef
2020-01-17 13:20:33 -08:00
Jeffrey Huang
597a886d20
Migrate pullNumBiometricsEnrolled
...
Test: adb shell cmd stats pull-source 10031
Test: adb shell cmd stats pull-source 10048
Change-Id: I35e366d6a53288afdbee7eb5462a5f15a4bd0dc8
2020-01-17 11:50:47 -08:00
Jeffrey Huang
e85d7ad721
Migrate pullAppSize and pullCategorySize
...
Test: adb shell cmd stats pull-source 10027
Test: adb shell cmd stats pull-source 10028
Change-Id: I98515bad18afc3ee542369c77d9fea6775e2cbde
2020-01-17 11:50:46 -08:00
Jeffrey Huang
95765f09e8
Migrate pullDiskStats and pullDirectoryUsage
...
Test: atest DiskStatsProtoTest
Test: adb shell cmd stats pull-source 10025
Test: adb shell cmd stats pull-source 10026
Change-Id: Ia7c63e5d475d4d84da4fff74cda7745ff07cec31
2020-01-17 11:50:46 -08:00
Jeffrey Huang
fd037c5548
Migrate pullLooperStats
...
Test: atest UidAtomTests#testLooperStats
Test: adb shell cmd stats pull-source 10024
Change-Id: I9fb11f78a9e3e7b3616185b4f62ff925c547b9df
2020-01-17 11:50:46 -08:00
Muhammad Qureshi
9bced7d7de
Add sysui module for logging SystemUI atoms.
...
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 adds autogenerated SysUiStatsLog to SystemUI and replaces usages
of StatsLog with SysUiStatsLog.
Since the write calls in SysUiStatsLog are public, StatsLogCompat is no
longer needed.
Bug: 145952197
Test: m
Test: fastboot flashall
Test: adb shell cmd stats print-logs && adb logcat "*:S statsd:*"
Change-Id: I192ff29d21cedbe715bb02ffa05921b4912af371
2020-01-17 10:41:05 -08:00
Jeffrey Huang
1507e3b1bf
Merge changes Ib321743b,I9d58a4b8,I6501109a,I0ce870a3,I5107aa47
...
* changes:
Migrate pullBinderStats
Migrate pullTemperature and pullCooldownDevice
Migrate ionHeapSize
Migrate ProcessMemory pullers
Fix crash when pulling certain atoms
2020-01-17 01:42:50 +00:00
Jeffrey Huang
877adfea28
Migrate pullBinderStats
...
Test: atest UidAtomTests#testBinderStats
Test: adb shell cmd stats pull-source 10022
Test: adb shell cmd stats pull-source 10023
Change-Id: Ib321743b725abe6770b840477d7fbce755a0bde3
2020-01-16 15:17:40 -08:00
Jeffrey Huang
b92de55380
Migrate pullTemperature and pullCooldownDevice
...
Test: adb shell cmd stats pull-source 10021
Test: adb shell cmd stats pull-source 10059
Change-Id: I9d58a4b8aa32daa0b750d4e45c1dcc6a34407865
2020-01-16 15:17:40 -08:00
Jeffrey Huang
a0e1cd2dd6
Migrate ionHeapSize
...
Test: Ran adb shell cmd stats pull-source 10056
Test: Ran adb shell cmd stats pull-source 10061
Change-Id: I6501109a94875c69078dea0ac07dcce3bc9641e3
2020-01-16 15:17:39 -08:00
Jeffrey Huang
b1c1634325
Migrate ProcessMemory pullers
...
Test: atest UidAtomTests#testProcessMemoryState
Test: atest UidAtomTests#testProcessMemoryHighWaterMark
Test: atest UidAtomTests#testProcessMemorySnapshot
Test: adb shell cmd stats pull-source 10013
Test: adb shell cmd stats pull-source 10042
Test: adb shell cmd stats pull-source 10064
Change-Id: I0ce870a3fec668e380a6b6412f278033d6734f35
2020-01-16 15:17:38 -08:00
TreeHugger Robot
6a2158f4ae
Merge "Add notification atoms for statsd."
2020-01-16 22:11:27 +00:00
Jonathan Nguyen
5886a715e3
Update BinaryPushStateChanged and TrainInfo atoms with userspace reboot info
...
Test: built proto
Change-Id: Iaf1141eaa338a7fd038c8c1fc8744fb9e41e1bf4
2020-01-16 12:16:51 -08:00
Will Brockman
079fdaae9e
Add notification atoms for statsd.
...
Bug: 146488473
Bug: 147584635
Test: m out/soong/.intermediates/frameworks/base/framework-statslog-gen/gen/android/util/StatsLogInternal.java out/soong/.intermediates/frameworks/base/tools/stats_log_api_gen/statslog.cpp/gen/statslog.cpp
Change-Id: Ia7bf24f65c8378c5c1b2d9d99995c5953e6929e7
2020-01-16 14:22:17 -05:00
Ruchir Rastogi
25e6dd3ed1
Merge "Migrate DeviceCalculcatedPower pullers to new API"
2020-01-16 19:16:50 +00:00
Blake Kragten
439408699d
Merge "Revert "GPS Atoms Addition""
2020-01-16 17:18:11 +00:00
Jeffrey Huang
0e332b3dcb
Merge changes I1eec8c74,I6c4e80df
...
* changes:
Migrate pullModemActivityInfo
Migrate pullWifiActivityInfo
2020-01-16 17:14:43 +00:00
TreeHugger Robot
8d27671552
Merge "Unregister native pull atom callback"
2020-01-16 14:16:56 +00:00
Rafal Slawik
13c4957cb4
Merge "Introduce IonHeapSize atom"
2020-01-16 12:58:28 +00:00
Rafal Slawik
bdd5a50240
Introduce IonHeapSize atom
...
IonHeapSize is replacing SystemIonHeapSize on devices with newer
kernels. It relies on libmeminfo to measure the total size of all ion
heaps, unlike the old atom that manually parsed a file from debugfs.
Test: m -j
Test: statsd_testdrive 10070
Bug: 140788538
Bug: 147722878
Change-Id: If3fa74bd96631116ef05656e7942fa6cf4e15005
2020-01-16 10:29:07 +00:00
Blake Kragten
c7bdb71cc7
Revert "GPS Atoms Addition"
...
Revert "CTS GPS test"
Revert submission 9726785-1574459091307-c480d999
Reason for revert: Pushed atoms will be integrated into the new pulled atom.
Reverted Changes:
I9cbc8e41e: CTS GPS test
If8aed8f47: GPS Atoms Addition
Change-Id: I8d0a0b73d870a8d9fb02975df70f662de4fd1690
2020-01-15 18:57:33 -08:00
Tej Singh
8f3586051b
Unregister native pull atom callback
...
Statsd changes to unregister a native puller.
Bug:14437325
Test: builds, boots
Change-Id: I1a1841de6e913f681c51919fcb9b18e30eb37801
2020-01-15 16:20:48 -08:00
Jeffrey Huang
1f81889704
Migrate pullModemActivityInfo
...
Test: No cts test. Ran adb shell cmd stats pull-source 10012
Change-Id: I1eec8c748916010182be310e726924325b694a34
2020-01-15 15:50:56 -08:00
Jeffrey Huang
4df5740027
Migrate pullWifiActivityInfo
...
Test: atest HostAtomTests#testWifiActivityInfo
Test: adb shell cmd stats pull-source 10011
Change-Id: I6c4e80df4121504cdcfb49c9f5b84916ae2adef3
2020-01-15 15:50:55 -08:00
Ruchir Rastogi
5ea3163325
Migrate DeviceCalculcatedPower pullers to new API
...
As part of migrating the pullers to the new API, we modify
permission checks within BatteryStatsService. Previously, a Binder
thread within StatsCompanionService (with statsd's calling identity)
called BatteryStatsService functions, which was why statsd was assigned
the BATTERY_STATS permission. Now, that call is being made from the
system process Background thread. Because enforceCallingPermission
outside of Binder threads, we switched to enforceCallingOrSelfPermission.
Test: m -j
Test: adb shell cmd stats pull-source 10039
Test: adb shell cmd stats pull-source 10040
Test: adb shell cmd stats pull-source 10041
Test: atest CtsStatsdHostTestCases:UidAtomTests#testDeviceCalculatedPowerUse
Test: atest
CtsStatsdHostTestCases:UidAtomTests#testDeviceCalculatedPowerBlameUid
Test: atest CtsStatsdHostTestCases:BatteryStatsValidationTests#testPowerUse
Bug: 145565211
Change-Id: Ie009e6eead3e48ecee6b40d9a38c9d571d4d4117
2020-01-15 15:39:56 -08:00
Ruchir Rastogi
8d3ec4a6c6
Merge "Migrate BuildInformation puller to new API"
2020-01-15 18:52:29 +00:00
TreeHugger Robot
72a4075c43
Merge "Migrate pullKernelWakelock"
2020-01-15 18:04:50 +00:00
Ruchir Rastogi
425d8362c1
Migrate BuildInformation puller to new API
...
Test: adb shell cmd stats pull-source 10044
Test: atest CtsStatsdHostTestCases:HostAtomTests#testBuildInformation
Bug: 145565211
Change-Id: I8aa86b75118fb17dbb2ea43f4e2b919d8bdd509c
2020-01-15 00:01:00 -08:00
TreeHugger Robot
787fe2cd19
Merge "Migrate pullSystemUptime"
2020-01-15 07:48:44 +00:00
Nikita Ioffe
48fbb0807b
Merge "Add new atom to log userspace reboot performance"
2020-01-15 03:50:57 +00:00
TreeHugger Robot
afb4dd9695
Merge "Remove repeated function"
2020-01-15 03:06:35 +00:00
Jeffrey Huang
a6e5a9ba58
Migrate pullKernelWakelock
...
Test: atest HostAtomTests#testKernelWakelock
Test: atest AnomalyDetectionTests#testPulledAnomalyDetection
Test: adb shell cmd stats pull-source 10004
Change-Id: Ifbcb1097c8003ecf3f21a5a4d9c4b9a63175b01d
2020-01-14 18:14:48 -08:00
Jeffrey Huang
2f2696676a
Merge changes Ica1f17dc,I7d959c93,I3403affa,I791c5d23,I5448b77d
...
* changes:
Migrate pullCpuClusterTime
Migrate pullCpuActiveTime
Migrate pullCpuTimePerUidFreq
Migrate pullCpuTimePerUid
Migrate pullCpuTimePerFreq
2020-01-15 02:10:50 +00:00
tsaichristine
cbdd03ffad
Remove repeated function
...
ValidateUidDimension and ValidateAttributionUidDimension do the same
thing, and ValidateUidDimension is not used in any testing code.
Test: bit statsd_test:*
Change-Id: If3e2ad300f36ef3232deeb4f04d325ae3a29719c
2020-01-14 15:29:23 -08:00
TreeHugger Robot
8c17453cde
Merge "Rename FS_MGR_FS_STAT into FS_MGR_FS_STAT_DATA_PARTITION"
2020-01-14 22:32:41 +00:00