/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | HdrCapabilitiesTests.java | 68 AtomsProto.Atom.HDR_CAPABILITIES_FIELD_NUMBER); in fetchIsHdrOutputControlSupportedFromMetrics() 71 List<AtomsProto.Atom> atoms = getAtomsFromDevice(); in fetchIsHdrOutputControlSupportedFromMetrics() 74 for (AtomsProto.Atom atom : atoms) { in fetchIsHdrOutputControlSupportedFromMetrics() 100 List<AtomsProto.Atom> atoms = getAtomsFromDevice(); in testForceHdrFormat() 103 for (AtomsProto.Atom atom : atoms) { in testForceHdrFormat() 113 List<AtomsProto.Atom> atoms = getAtomsFromDevice(); in testForceHdrFormat() 116 for (AtomsProto.Atom atom : atoms) { in testForceHdrFormat() 129 List<AtomsProto.Atom> atoms = getAtomsFromDevice(); in testHasUserDisabledHdrConversion() 132 for (AtomsProto.Atom atom : atoms) { in testHasUserDisabledHdrConversion() 139 List<AtomsProto.Atom> atoms = getAtomsFromDevice(); in testHasUserDisabledHdrConversion() [all …]
|
D | MediaCapabilitiesTests.java | 79 AtomsProto.Atom.MEDIA_CAPABILITIES_FIELD_NUMBER); in testSurroundSoundCapabilities() 94 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testSurroundSoundCapabilities() 96 for (AtomsProto.Atom atom : atoms) { in testSurroundSoundCapabilities() 115 AtomsProto.Atom.MEDIA_CAPABILITIES_FIELD_NUMBER); in testDisplayCapabilities() 129 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testDisplayCapabilities() 131 for (AtomsProto.Atom atom : atoms) { in testDisplayCapabilities()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/ |
D | CpuStatsTests.java | 65 AtomsProto.Atom.CPU_TIME_PER_UID_FIELD_NUMBER, /*uidInAttributionChain=*/false); in testCpuTimePerUid() 75 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testCpuTimePerUid() 78 for (AtomsProto.Atom atom : atoms) { in testCpuTimePerUid() 89 AtomsProto.Atom.CPU_TIME_PER_CLUSTER_FREQ_FIELD_NUMBER); in testCpuTimePerClusterFreq() 99 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testCpuTimePerClusterFreq() 101 for (AtomsProto.Atom atom : atoms) { in testCpuTimePerClusterFreq() 110 AtomsProto.Atom.CPU_CYCLES_PER_UID_CLUSTER_FIELD_NUMBER); in testCpuCyclesPerUidCluster() 120 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testCpuCyclesPerUidCluster() 122 for (AtomsProto.Atom atom : atoms) { in testCpuCyclesPerUidCluster() 133 AtomsProto.Atom.CPU_CYCLES_PER_THREAD_GROUP_CLUSTER_FIELD_NUMBER); in testCpuCyclesPerThreadGroupCluster() [all …]
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | InstalledIncrementalPackageStatsTests.java | 55 AtomsProto.Atom.INSTALLED_INCREMENTAL_PACKAGE_FIELD_NUMBER); in testInstalledIncrementalMetricsReported() 67 List<AtomsProto.Atom> data = ReportUtils.getGaugeMetricAtoms(getDevice()); in testInstalledIncrementalMetricsReported() 72 List<AtomsProto.Atom> filterMetrics = filterTestAppMetrics(expectedAppIds, data); in testInstalledIncrementalMetricsReported() 76 for (AtomsProto.Atom atom : data) { in testInstalledIncrementalMetricsReported() 83 private List<AtomsProto.Atom> filterTestAppMetrics(int[] appIds, in filterTestAppMetrics() 84 List<AtomsProto.Atom> metricData) { in filterTestAppMetrics() 85 List<AtomsProto.Atom> result = new ArrayList<>(); in filterTestAppMetrics() 86 for (AtomsProto.Atom atom : metricData) { in filterTestAppMetrics()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 33 import com.android.os.AtomsProto.Atom; 115 final int atomTag = Atom.SCREEN_STATE_CHANGED_FIELD_NUMBER; in testScreenStateChangedAtom() 156 final int atomTag = Atom.CHARGING_STATE_CHANGED_FIELD_NUMBER; in testChargingStateChangedAtom() 207 final int atomTag = Atom.PLUGGED_STATE_CHANGED_FIELD_NUMBER; in testPluggedStateChangedAtom() 263 final int atomTag = Atom.BATTERY_LEVEL_CHANGED_FIELD_NUMBER; in testBatteryLevelChangedAtom() 312 final int atomTag = Atom.DEVICE_IDLE_MODE_STATE_CHANGED_FIELD_NUMBER; in testDeviceIdleModeStateChangedAtom() 351 final int atomTag = Atom.BATTERY_SAVER_MODE_STATE_CHANGED_FIELD_NUMBER; in testBatterySaverModeStateChangedAtom() 384 Atom.REMAINING_BATTERY_CAPACITY_FIELD_NUMBER); in testRemainingBatteryCapacity() 389 List<Atom> data = ReportUtils.getGaugeMetricAtoms(getDevice()); in testRemainingBatteryCapacity() 392 Atom atom = data.get(0); in testRemainingBatteryCapacity() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/vibrator/ |
D | VibratorStatsTests.java | 28 import com.android.os.AtomsProto.Atom; 80 Atom.VIBRATOR_STATE_CHANGED_FIELD_NUMBER, "testOneShotVibration"); in testVibratorStateChanged() 93 Atom.VIBRATION_REPORTED_FIELD_NUMBER, "testOneShotVibration"); in testVibrationReportedSingleVibration() 105 Atom.VIBRATION_REPORTED_FIELD_NUMBER, "testRepeatedWaveformVibration"); in testVibrationReportedRepeatedVibration() 117 Atom.VIBRATION_REPORTED_FIELD_NUMBER, "testComposedTickThenClickVibration"); in testVibrationReportedComposedVibration() 133 Atom.VIBRATION_REPORTED_FIELD_NUMBER, "testPredefinedClickVibration"); in testVibrationReportedPredefinedVibration() 160 Function<Atom, Integer> valueFromAtomFn) { in assertValuesOccurredInOrder() argument 167 List<EventMetricData> data, Function<Atom, Integer> valueFromAtomFn) { in assertSingleValueOccurred() argument
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ |
D | ProcessMemoryStatsTests.java | 64 AtomsProto.Atom.PROCESS_MEMORY_STATE_FIELD_NUMBER); in testProcessMemoryState() 77 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testProcessMemoryState() 80 for (AtomsProto.Atom atom : atoms) { in testProcessMemoryState() 101 AtomsProto.Atom.PROCESS_MEMORY_HIGH_WATER_MARK_FIELD_NUMBER); in testProcessMemoryHighWaterMark() 114 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testProcessMemoryHighWaterMark() 119 for (AtomsProto.Atom atom : atoms) { in testProcessMemoryHighWaterMark() 143 AtomsProto.Atom.PROCESS_MEMORY_SNAPSHOT_FIELD_NUMBER); in testProcessMemorySnapshot() 154 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testProcessMemorySnapshot() 159 for (AtomsProto.Atom atom : atoms) { in testProcessMemorySnapshot()
|
D | ProcessDmabufMemoryTests.java | 67 List<AtomsProto.Atom> atoms = pullAsGaugeMetric(); in testProcessDmabufMemoryAtom() 68 for (AtomsProto.Atom atom : atoms) { in testProcessDmabufMemoryAtom() 80 private List<AtomsProto.Atom> pullAsGaugeMetric() throws Exception { in pullAsGaugeMetric() 82 AtomsProto.Atom.PROCESS_DMABUF_MEMORY_FIELD_NUMBER); in pullAsGaugeMetric()
|
D | VmStatTests.java | 61 List<AtomsProto.Atom> atoms = pullVmStatAsGaugeMetric(); in testVmStatAtom() 67 private List<AtomsProto.Atom> pullVmStatAsGaugeMetric() throws Exception { in pullVmStatAsGaugeMetric() 69 AtomsProto.Atom.VMSTAT_FIELD_NUMBER); in pullVmStatAsGaugeMetric()
|
D | SystemMemoryStatsTests.java | 62 List<AtomsProto.Atom> atoms = pullSystemMemoryAsGaugeMetric(); in testSystemMemoryAtom() 75 private List<AtomsProto.Atom> pullSystemMemoryAsGaugeMetric() throws Exception { in pullSystemMemoryAsGaugeMetric() 78 AtomsProto.Atom.SYSTEM_MEMORY_FIELD_NUMBER); in pullSystemMemoryAsGaugeMetric()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/permissionstate/ |
D | DangerousPermissionStateTests.java | 71 AtomsProto.Atom.DANGEROUS_PERMISSION_STATE_FIELD_NUMBER); in testDangerousPermissionState() 81 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testDangerousPermissionState() 112 AtomsProto.Atom.DANGEROUS_PERMISSION_STATE_FIELD_NUMBER); in testDangerousPermissionStateSampled() 118 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testDangerousPermissionStateSampled() 124 List<AtomsProto.Atom> gaugeMetricDataList = null; in testDangerousPermissionStateSampled() 130 AtomsProto.Atom.DANGEROUS_PERMISSION_STATE_SAMPLED_FIELD_NUMBER); in testDangerousPermissionStateSampled() 150 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testDangerousPermissionStateSampled()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/ |
D | AppHibernationStatsTest.java | 73 AtomsProto.Atom.USER_LEVEL_HIBERNATION_STATE_CHANGED_FIELD_NUMBER, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() 93 AtomsProto.Atom.USER_LEVEL_HIBERNATION_STATE_CHANGED_FIELD_NUMBER, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating() 109 AtomsProto.Atom.USER_LEVEL_HIBERNATED_APPS_FIELD_NUMBER); in testUserLevelHibernatedApps() 117 final List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testUserLevelHibernatedApps() 119 for (AtomsProto.Atom atom : atoms) { in testUserLevelHibernatedApps() 131 AtomsProto.Atom.GLOBAL_HIBERNATED_APPS_FIELD_NUMBER); in testGlobalHibernatedApps() 139 final List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testGlobalHibernatedApps()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 31 import com.android.os.AtomsProto.Atom; 70 doTestMobileBytesTransferThat(Atom.DATA_USAGE_BYTES_TRANSFER_FIELD_NUMBER, /*isUidAtom=*/ in testDataUsageBytesTransfer() 90 doTestMobileBytesTransferThat(Atom.MOBILE_BYTES_TRANSFER_FIELD_NUMBER, /*isUidAtom=*/true, in testMobileBytesTransfer() 101 doTestMobileBytesTransferThat(Atom.MOBILE_BYTES_TRANSFER_BY_FG_BG_FIELD_NUMBER, in testMobileBytesTransferByFgBg() 117 doTestMobileBytesTransferThat(Atom.BYTES_TRANSFER_BY_TAG_AND_METERED_FIELD_NUMBER, in testBytesTransferByTagAndMetered() 160 ThrowingPredicate<Atom, Exception> p) in doTestMobileBytesTransferThat() argument 185 final List<Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice(), in doTestMobileBytesTransferThat() 192 for (final Atom atom : atoms) { in doTestMobileBytesTransferThat()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | AtomTestUtils.java | 92 Function<AtomsProto.Atom, Integer> getStateFromAtom) { in assertStatesOccurred() argument 133 int wait, Function<AtomsProto.Atom, Integer> getStateFromAtom) { in assertStatesOccurredInOrder() argument 139 AtomsProto.Atom atom = data.get(dataIndex).getAtom(); in assertStatesOccurredInOrder() 198 Function<AtomsProto.Atom, Integer> getStateFromAtom) { in popUntilFind() argument 201 AtomsProto.Atom atom = data.get(firstStateIdx).getAtom(); in popUntilFind() 221 Function<AtomsProto.Atom, Integer> getStateFromAtom) { in popUntilFindFromEnd() argument 224 AtomsProto.Atom atom = data.get(lastStateIdx).getAtom(); in popUntilFindFromEnd()
|
D | ReportUtils.java | 22 import com.android.os.AtomsProto.Atom; 130 public static List<Atom> getGaugeMetricAtoms(ITestDevice device) throws Exception { in getGaugeMetricAtoms() 142 public static List<Atom> getGaugeMetricAtoms(ITestDevice device, in getGaugeMetricAtoms() 146 List<Atom> atoms = new ArrayList<>(); in getGaugeMetricAtoms() 163 for (Atom atom : atoms) { in getGaugeMetricAtoms() 169 public static List<Atom> getGaugeMetricAtoms( in getGaugeMetricAtoms() 175 private static List<Atom> backFillGaugeBucketAtoms( in backFillGaugeBucketAtoms() 177 List<Pair<Atom, Long>> atomTimestamp = new ArrayList<>(); in backFillGaugeBucketAtoms()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/ |
D | BatteryCycleStatsTests.java | 27 import com.android.os.AtomsProto.Atom; 67 Atom.BATTERY_CYCLE_COUNT_FIELD_NUMBER); in testBatteryCycleCount() 72 List<Atom> data = ReportUtils.getGaugeMetricAtoms(getDevice()); in testBatteryCycleCount() 74 Atom atom = data.get(0); in testBatteryCycleCount()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perf/ |
D | ProcStatsTests.java | 71 AtomsProto.Atom.PROCESS_STATE_FIELD_NUMBER); in testProcessState() 74 AtomsProto.Atom atom = ReportUtils.getGaugeMetricAtoms(getDevice()).stream() in testProcessState() 86 AtomsProto.Atom.PROCESS_STATE_FIELD_NUMBER); in testCachedState() 95 AtomsProto.Atom atom = ReportUtils.getGaugeMetricAtoms(getDevice()).stream() in testCachedState()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/ |
D | NotificationStatsTests.java | 63 AtomsProto.Atom.PACKAGE_NOTIFICATION_PREFERENCES_FIELD_NUMBER); in testNotificationPackagePreferenceExtraction() 72 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationPackagePreferenceExtraction() 97 AtomsProto.Atom.PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES_FIELD_NUMBER); in testNotificationChannelPreferencesExtraction() 107 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationChannelPreferencesExtraction() 136 AtomsProto.Atom.PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES_FIELD_NUMBER); in testNotificationChannelGroupPreferencesExtraction() 146 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationChannelGroupPreferencesExtraction()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/devicepower/ |
D | DevicePowerStatsTests.java | 66 AtomsProto.Atom.ON_DEVICE_POWER_MEASUREMENT_FIELD_NUMBER); in testOnDevicePowerMeasurement() 71 List<AtomsProto.Atom> dataList = ReportUtils.getGaugeMetricAtoms(getDevice()); in testOnDevicePowerMeasurement() 73 for (AtomsProto.Atom atom : dataList) { in testOnDevicePowerMeasurement()
|
/cts/hostsidetests/media/src/android/media/metrics/cts/ |
D | MediaMetricsAtomTests.java | 102 AtomsProto.Atom.MEDIA_PLAYBACK_STATE_CHANGED_FIELD_NUMBER); in testPlaybackStateEvent_default() 122 AtomsProto.Atom.MEDIA_PLAYBACK_STATE_CHANGED_FIELD_NUMBER); in testPlaybackStateEvent() 142 AtomsProto.Atom.MEDIA_PLAYBACK_STATE_CHANGED_FIELD_NUMBER); in testBundleSessionPlaybackStateEvent() 162 AtomsProto.Atom.MEDIA_PLAYBACK_ERROR_REPORTED_FIELD_NUMBER); in testPlaybackErrorEvent_default() 187 AtomsProto.Atom.MEDIA_PLAYBACK_ERROR_REPORTED_FIELD_NUMBER); in testPlaybackErrorEvent() 211 AtomsProto.Atom.MEDIA_PLAYBACK_TRACK_CHANGED_FIELD_NUMBER); in testTrackChangeEvent_default() 242 AtomsProto.Atom.MEDIA_PLAYBACK_TRACK_CHANGED_FIELD_NUMBER); in testTrackChangeEvent_text() 271 AtomsProto.Atom.MEDIA_PLAYBACK_TRACK_CHANGED_FIELD_NUMBER); in testTrackChangeEvent_audio() 302 AtomsProto.Atom.MEDIA_PLAYBACK_TRACK_CHANGED_FIELD_NUMBER); in testTrackChangeEvent_video() 334 AtomsProto.Atom.MEDIA_NETWORK_INFO_CHANGED_FIELD_NUMBER); in testNetworkEvent_default() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/ |
D | BatteryUsageStatsTests.java | 71 runBatteryUsageStatsAtomTest(AtomsProto.Atom.BATTERY_USAGE_STATS_SINCE_RESET_FIELD_NUMBER, in testBatteryUsageStatsSinceReset() 81 … AtomsProto.Atom.BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL_FIELD_NUMBER, in testBatteryUsageStatsSinceResetUsingPowerProfileModel() 87 Function<AtomsProto.Atom, BatteryUsageStatsAtomsProto> getter) throws Exception { in runBatteryUsageStatsAtomTest() argument 106 final List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in runBatteryUsageStatsAtomTest() 108 for (final AtomsProto.Atom atom : atoms) { in runBatteryUsageStatsAtomTest()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/ |
D | DevicePolicyEventLogVerifier.java | 20 import com.android.os.AtomsProto.Atom; 48 logVerifier.createAndUploadConfig(Atom.DEVICE_POLICY_EVENT_FIELD_NUMBER); in assertMetricsLogged() 71 logVerifier.createAndUploadConfig(Atom.DEVICE_POLICY_EVENT_FIELD_NUMBER); in assertMetricsNotLogged()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gamemanager/ |
D | GameManagerStatsTests.java | 78 AtomsProto.Atom.GAME_STATE_CHANGED_FIELD_NUMBER); in testGameStateStatsd() 96 AtomsProto.Atom.GAME_MODE_CHANGED_FIELD_NUMBER); in testGameModeChangedIsPushed() 115 AtomsProto.Atom.GAME_MODE_CONFIGURATION_CHANGED_FIELD_NUMBER); in testGameModeConfigurationChangedIsPushed() 143 AtomsProto.Atom.GAME_MODE_INFO_FIELD_NUMBER); in testGameModeInfoIsPulled() 152 List<AtomsProto.Atom> data = ReportUtils.getGaugeMetricAtoms(getDevice()); in testGameModeInfoIsPulled() 172 AtomsProto.Atom.GAME_MODE_CONFIGURATION_FIELD_NUMBER); in testGameModeConfigurationIsPulled() 181 List<AtomsProto.Atom> data = ReportUtils.getGaugeMetricAtoms(getDevice()); in testGameModeConfigurationIsPulled()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/ |
D | AlarmStatsTests.java | 115 final int atomTag = AtomsProto.Atom.WAKEUP_ALARM_OCCURRED_FIELD_NUMBER; in testWakeupAlarmOccurred() 132 final int atomId = AtomsProto.Atom.ALARM_SCHEDULED_FIELD_NUMBER; in testAlarmScheduled() 167 final int atomId = AtomsProto.Atom.ALARM_SCHEDULED_FIELD_NUMBER; in testAlarmScheduled_exactWithUEA() 195 final int atomId = AtomsProto.Atom.ALARM_SCHEDULED_FIELD_NUMBER; in testAlarmScheduled_exactWithSEA() 221 final int atomId = AtomsProto.Atom.ALARM_BATCH_DELIVERED_FIELD_NUMBER; in testAlarmBatchDelivered() 252 AtomsProto.Atom.PENDING_ALARM_INFO_FIELD_NUMBER); in testPendingAlarmInfo() 263 List<AtomsProto.Atom> atoms = ReportUtils.getGaugeMetricAtoms(getDevice()); in testPendingAlarmInfo() 265 for (AtomsProto.Atom atom : atoms) { in testPendingAlarmInfo()
|
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/ |
D | StatsdBlobStoreAtomTest.java | 69 ConfigUtils.addEventMetricForUidAtom(conf, AtomsProto.Atom.BLOB_COMMITTED_FIELD_NUMBER, in testPushedBlobStoreStats() 71 ConfigUtils.addEventMetricForUidAtom(conf, AtomsProto.Atom.BLOB_LEASED_FIELD_NUMBER, in testPushedBlobStoreStats() 73 ConfigUtils.addEventMetricForUidAtom(conf, AtomsProto.Atom.BLOB_OPENED_FIELD_NUMBER, in testPushedBlobStoreStats() 106 AtomsProto.Atom.BLOB_INFO_FIELD_NUMBER); in testPulledBlobStoreStats() 121 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testPulledBlobStoreStats()
|