Home
last modified time | relevance | path

Searched refs:atom (Results 1 – 25 of 75) sorted by relevance

123

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java128 AppBreadcrumbReported atom = data.get(0).getAtom().getAppBreadcrumbReported(); in testIsolatedToHostUidMapping() local
129 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping()
130 assertThat(atom.getLabel()).isEqualTo(0); in testIsolatedToHostUidMapping()
131 assertThat(atom.getState()).isEqualTo(AppBreadcrumbReported.State.START); in testIsolatedToHostUidMapping()
175 LmkKillOccurred atom = data.get(0).getAtom().getLmkKillOccurred(); in testLmkKillOccurred() local
176 assertThat(atom.getUid()).isEqualTo(appUid); in testLmkKillOccurred()
177 assertThat(atom.getProcessName()) in testLmkKillOccurred()
179 assertThat(atom.getOomAdjScore()).isAtLeast(500); in testLmkKillOccurred()
180 assertThat(atom.getRssInBytes() + atom.getSwapInBytes()).isGreaterThan(0); in testLmkKillOccurred()
196 AppCrashOccurred atom = data.get(0).getAtom().getAppCrashOccurred(); in testAppCrashOccurred() local
[all …]
DHostAtomTests.java152 atom -> atom.getScreenStateChanged().getState().getNumber()); in testScreenStateChangedAtom()
202 atom -> atom.getChargingStateChanged().getState().getNumber()); in testChargingStateChangedAtom()
253 atom -> atom.getPluggedStateChanged().getState().getNumber()); in testPluggedStateChangedAtom()
298 atom -> atom.getBatteryLevelChanged().getBatteryLevel()); in testBatteryLevelChangedAtom()
334 atom -> atom.getDeviceIdleModeStateChanged().getState().getNumber()); in testDeviceIdleModeStateChangedAtom()
367 atom -> atom.getBatterySaverModeStateChanged().getState().getNumber()); in testBatterySaverModeStateChangedAtom()
384 Atom atom = data.get(0); in testRemainingBatteryCapacity() local
385 assertThat(atom.getRemainingBatteryCapacity().hasChargeMicroAmpereHour()).isTrue(); in testRemainingBatteryCapacity()
387 assertThat(atom.getRemainingBatteryCapacity().getChargeMicroAmpereHour()) in testRemainingBatteryCapacity()
406 Atom atom = data.get(0); in testFullBatteryCapacity() local
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gnss/
DGnssPowerStatsTests.java72 for (AtomsProto.Atom atom : dataList) { in testGnssPowerStats()
73 assertThat(atom.getGnssPowerStats().getElapsedRealtimeUncertaintyNanos()) in testGnssPowerStats()
75 assertThat(atom.getGnssPowerStats().getTotalEnergyMicroJoule()).isAtLeast(0L); in testGnssPowerStats()
76 assertThat(atom.getGnssPowerStats().getSinglebandTrackingModeEnergyMicroJoule()) in testGnssPowerStats()
78 assertThat(atom.getGnssPowerStats().getMultibandTrackingModeEnergyMicroJoule()) in testGnssPowerStats()
80 assertThat(atom.getGnssPowerStats().getSinglebandAcquisitionModeEnergyMicroJoule()) in testGnssPowerStats()
82 assertThat(atom.getGnssPowerStats().getMultibandAcquisitionModeEnergyMicroJoule()) in testGnssPowerStats()
84 assertThat(atom.getGnssPowerStats().getVendorSpecificPowerModesEnergyMicroJoule0()) in testGnssPowerStats()
86 assertThat(atom.getGnssPowerStats().getVendorSpecificPowerModesEnergyMicroJoule1()) in testGnssPowerStats()
88 assertThat(atom.getGnssPowerStats().getVendorSpecificPowerModesEnergyMicroJoule2()) in testGnssPowerStats()
[all …]
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DIncrementalAppErrorStatsTests.java149 AtomsProto.AppCrashOccurred atom = data.get(0).getAtom().getAppCrashOccurred(); in testAppCrashOnIncremental() local
151 assertThat(atom.getUid()).isGreaterThan(10000); in testAppCrashOnIncremental()
152 assertThat(atom.getEventType()).isEqualTo("crash"); in testAppCrashOnIncremental()
153 assertThat(atom.getIsInstantApp().getNumber()) in testAppCrashOnIncremental()
155 assertThat(atom.getForegroundState().getNumber()) in testAppCrashOnIncremental()
157 assertThat(atom.getPackageName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testAppCrashOnIncremental()
158 assertThat(atom.getErrorSource()).isEqualTo(ErrorSource.DATA_APP); in testAppCrashOnIncremental()
159 assertTrue(atom.getIsIncremental()); in testAppCrashOnIncremental()
160 assertFalse((1.0f - atom.getLoadingProgress()) < 0.0000001f); in testAppCrashOnIncremental()
161 assertTrue(atom.getMillisSinceOldestPendingRead() > 0); in testAppCrashOnIncremental()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/
DCpuStatsTests.java77 for (AtomsProto.Atom atom : atoms) { in testCpuTimePerUid()
78 assertThat(atom.getCpuTimePerUid().getUid()).isEqualTo(appUid); in testCpuTimePerUid()
79 assertThat(atom.getCpuTimePerUid().getUserTimeMicros()).isGreaterThan(0L); in testCpuTimePerUid()
80 assertThat(atom.getCpuTimePerUid().getSysTimeMicros()).isGreaterThan(0L); in testCpuTimePerUid()
100 for (AtomsProto.Atom atom : atoms) { in testCpuTimePerClusterFreq()
101 assertThat(atom.getCpuTimePerClusterFreq().getCluster()).isAtLeast(0); in testCpuTimePerClusterFreq()
102 assertThat(atom.getCpuTimePerClusterFreq().getFreqKhz()).isAtLeast(0); in testCpuTimePerClusterFreq()
103 assertThat(atom.getCpuTimePerClusterFreq().getTimeMillis()).isAtLeast(0); in testCpuTimePerClusterFreq()
121 for (AtomsProto.Atom atom : atoms) { in testCpuCyclesPerUidCluster()
122 assertThat(atom.getCpuCyclesPerUidCluster().getUid()).isAtLeast(0); in testCpuCyclesPerUidCluster()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/telephony/
DTelephonyStatsTests.java120 AtomsProto.SimSlotState atom = data.get(0).getSimSlotState(); in testSimSlotState() local
122 assertThat(atom.getActiveSlotCount()).isEqualTo(getActiveSimSlotCount()); in testSimSlotState()
123 assertThat(atom.getSimCount()).isAtMost(getActiveSimCountUpperBound()); in testSimSlotState()
124 assertThat(atom.getEsimCount()).isAtMost(getActiveEsimCountUpperBound()); in testSimSlotState()
126 assertThat(atom.getActiveSlotCount()).isAtLeast(atom.getSimCount()); in testSimSlotState()
127 assertThat(atom.getSimCount()).isAtLeast(atom.getEsimCount()); in testSimSlotState()
128 assertThat(atom.getEsimCount()).isAtLeast(0); in testSimSlotState()
131 assertThat(atom.getActiveSlotCount()).isAtLeast(1); in testSimSlotState()
148 AtomsProto.SupportedRadioAccessFamily atom = data.get(0).getSupportedRadioAccessFamily(); in testSupportedRadioAccessFamily() local
150 assertThat(atom.getNetworkTypeBitmask() & NETWORK_TYPE_BITMASK_GSM_ALL) in testSupportedRadioAccessFamily()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/
DAppStartStatsTests.java92 AtomsProto.AppStartOccurred atom = data.get(0).getAtom().getAppStartOccurred(); in testAppStartOccurred() local
93 assertThat(atom.getPkgName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testAppStartOccurred()
94 assertThat(atom.getActivityName()) in testAppStartOccurred()
96 assertThat(atom.getIsInstantApp()).isFalse(); in testAppStartOccurred()
97 assertThat(atom.getActivityStartTimestampMillis()).isGreaterThan(0L); in testAppStartOccurred()
98 assertThat(atom.getTransitionDelayMillis()).isGreaterThan(0); in testAppStartOccurred()
99 assertThat(atom.getIsHibernating()).isFalse(); in testAppStartOccurred()
116 AtomsProto.AppStartOccurred atom = data.get(0).getAtom().getAppStartOccurred(); in testHibernatingAppStartOccurred() local
117 assertThat(atom.getIsHibernating()).isTrue(); in testHibernatingAppStartOccurred()
138 AtomsProto.AppStartOccurred atom = data.get(1).getAtom().getAppStartOccurred(); in testHibernatingAppStartOccurredTwice_isHibernatingShouldBeFalseSecondTime() local
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/
DAlarmStatsTests.java161 for (AtomsProto.Atom atom : atoms) { in testPendingAlarmInfo()
162 assertThat(atom.getPendingAlarmInfo().getNumTotal()).isAtLeast(5); in testPendingAlarmInfo()
163 assertThat(atom.getPendingAlarmInfo().getNumExact()).isAtLeast(2); in testPendingAlarmInfo()
164 assertThat(atom.getPendingAlarmInfo().getNumWakeup()).isAtLeast(3); in testPendingAlarmInfo()
165 assertThat(atom.getPendingAlarmInfo().getNumAllowWhileIdle()).isAtLeast(1); in testPendingAlarmInfo()
166 assertThat(atom.getPendingAlarmInfo().getNumForegroundService()).isAtLeast(2); in testPendingAlarmInfo()
167 assertThat(atom.getPendingAlarmInfo().getNumActivity()).isAtLeast(1); in testPendingAlarmInfo()
168 assertThat(atom.getPendingAlarmInfo().getNumService()).isAtLeast(1); in testPendingAlarmInfo()
169 assertThat(atom.getPendingAlarmInfo().getNumListener()).isAtLeast(1); in testPendingAlarmInfo()
170 assertThat(atom.getPendingAlarmInfo().getNumIndefiniteFuture()).isAtLeast(1); in testPendingAlarmInfo()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DDevicePolicyEventWrapper.java50 static DevicePolicyEventWrapper fromDevicePolicyAtom(DevicePolicyEvent atom) { in fromDevicePolicyAtom() argument
51 return new Builder(atom.getEventId().getNumber()) in fromDevicePolicyAtom()
52 .setAdminPackageName(atom.getAdminPackageName()) in fromDevicePolicyAtom()
53 .setInt(atom.getIntegerValue()) in fromDevicePolicyAtom()
54 .setBoolean(atom.getBooleanValue()) in fromDevicePolicyAtom()
55 .setTimePeriod(atom.getTimePeriodMillis()) in fromDevicePolicyAtom()
56 .setStrings(getStringArray(atom.getStringListValue())) in fromDevicePolicyAtom()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/
DNotificationStatsTests.java71 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationPackagePreferenceExtraction()
72 if (atom.hasPackageNotificationPreferences()) { in testNotificationPackagePreferenceExtraction()
73 allPreferences.add(atom.getPackageNotificationPreferences()); in testNotificationPackagePreferenceExtraction()
106 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationChannelPreferencesExtraction()
107 if (atom.hasPackageNotificationChannelPreferences()) { in testNotificationChannelPreferencesExtraction()
108 allChannelPreferences.add(atom.getPackageNotificationChannelPreferences()); in testNotificationChannelPreferencesExtraction()
145 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationChannelGroupPreferencesExtraction()
146 if (atom.hasPackageNotificationChannelGroupPreferences()) { in testNotificationChannelGroupPreferencesExtraction()
147 allGroupPreferences.add(atom.getPackageNotificationChannelGroupPreferences()); in testNotificationChannelGroupPreferencesExtraction()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java87 (atom) -> { in testMobileBytesTransfer()
88 final AtomsProto.MobileBytesTransfer data = atom.getMobileBytesTransfer(); in testMobileBytesTransfer()
99 (atom) -> { in testMobileBytesTransferByFgBg()
101 atom.getMobileBytesTransferByFgBg(); in testMobileBytesTransferByFgBg()
115 (atom) -> { in testBytesTransferByTagAndMetered()
117 atom.getBytesTransferByTagAndMetered(); in testBytesTransferByTagAndMetered()
160 false, (atom) -> { in doTestDataUsageBytesTransferEnabled()
162 atom.getDataUsageBytesTransfer(); in doTestDataUsageBytesTransferEnabled()
214 for (final Atom atom : atoms) { in doTestMobileBytesTransferThat()
215 TransferredBytes transferredBytes = p.accept(atom); in doTestMobileBytesTransferThat()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/
DBatteryUsageStatsTests.java70 atom -> atom.getBatteryUsageStatsSinceReset().getBatteryUsageStats()); in testBatteryUsageStatsSinceReset()
80 atom -> atom.getBatteryUsageStatsSinceResetUsingPowerProfileModel() in testBatteryUsageStatsSinceResetUsingPowerProfileModel()
106 for (final AtomsProto.Atom atom : atoms) { in runBatteryUsageStatsAtomTest()
107 final BatteryUsageStatsAtomsProto batteryUsageStats = getter.apply(atom); in runBatteryUsageStatsAtomTest()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DAtomTestUtils.java80 AtomsProto.Atom atom = data.get(dataIndex).getAtom(); in assertStatesOccurred() local
81 int state = getStateFromAtom.apply(atom); in assertStatesOccurred()
142 AtomsProto.Atom atom = data.get(firstStateIdx).getAtom(); in popUntilFind() local
143 if (state.contains(getStateFromAtom.apply(atom))) { in popUntilFind()
165 AtomsProto.Atom atom = data.get(lastStateIdx).getAtom(); in popUntilFindFromEnd() local
166 if (state.contains(getStateFromAtom.apply(atom))) { in popUntilFindFromEnd()
/cts/hostsidetests/bootstats/src/android/bootstats/cts/
DBootStatsHostTest.java71 for (int atom : ATOMS_EXPECTED) { in testBootStats()
72 expectedAtomHeaders.add("Atom " + atom + "->(total count)"); in testBootStats()
90 for (String atom : expectedAtomHeaders) { in checkAllExpectedAtoms()
91 int atomIndex = log.indexOf(atom); in checkAllExpectedAtoms()
95 int numberOfEvents = getIntValue(log, atomIndex + atom.length()); in checkAllExpectedAtoms()
100 notExistingAtoms.remove(atom); in checkAllExpectedAtoms()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/permissionstate/
DDangerousPermissionStateTests.java80 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testDangerousPermissionState()
81 … AtomsProto.DangerousPermissionState permissionState = atom.getDangerousPermissionState(); in testDangerousPermissionState()
117 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testDangerousPermissionStateSampled()
118 fullDangerousPermissionState.add(atom.getDangerousPermissionState()); in testDangerousPermissionStateSampled()
149 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testDangerousPermissionStateSampled()
151 atom.getDangerousPermissionStateSampled(); in testDangerousPermissionStateSampled()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java118 for (AtomsProto.Atom atom : atoms) { in testUserLevelHibernatedApps()
119 AtomsProto.UserLevelHibernatedApps apps = atom.getUserLevelHibernatedApps(); in testUserLevelHibernatedApps()
147 AtomsProto.UserLevelHibernationStateChanged atom = in assertUserLevelHibernationStateChangedEvent() local
149 if (atom.getPackageName().equals(DeviceUtils.STATSD_ATOM_TEST_PKG)) { in assertUserLevelHibernationStateChangedEvent()
150 assertThat(atom.getUserId()).isEqualTo(currentUser); in assertUserLevelHibernationStateChangedEvent()
151 assertThat(atom.getIsHibernating()).isEqualTo(isHibernating); in assertUserLevelHibernationStateChangedEvent()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/
DProcessMemoryStatsTests.java79 for (AtomsProto.Atom atom : atoms) { in testProcessMemoryState()
80 AtomsProto.ProcessMemoryState state = atom.getProcessMemoryState(); in testProcessMemoryState()
118 for (AtomsProto.Atom atom : atoms) { in testProcessMemoryHighWaterMark()
119 AtomsProto.ProcessMemoryHighWaterMark state = atom.getProcessMemoryHighWaterMark(); in testProcessMemoryHighWaterMark()
158 for (AtomsProto.Atom atom : atoms) { in testProcessMemorySnapshot()
159 AtomsProto.ProcessMemorySnapshot snapshot = atom.getProcessMemorySnapshot(); in testProcessMemorySnapshot()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/devicepower/
DDevicePowerStatsTests.java72 for (AtomsProto.Atom atom : dataList) { in testOnDevicePowerMeasurement()
73 assertThat(atom.getOnDevicePowerMeasurement().getMeasurementTimestampMillis()) in testOnDevicePowerMeasurement()
75 assertThat(atom.getOnDevicePowerMeasurement().getEnergyMicrowattSecs()).isAtLeast(0L); in testOnDevicePowerMeasurement()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java321 .map(atom -> atom.getAppCompatibilityChangeReported()) in getReportedChanges()
322 .filter(atom -> atom != null && atom.getUid() == packageUid) // Should be redundant in getReportedChanges()
324 atom -> atom.getChangeId(), // Key in getReportedChanges()
325 atom -> atom.getState() == // Value in getReportedChanges()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/
DBatteryCycleStatsTests.java73 Atom atom = data.get(0); in testBatteryCycleCount() local
74 assertThat(atom.getBatteryCycleCount().hasCycleCount()).isTrue(); in testBatteryCycleCount()
76 assertThat(atom.getBatteryCycleCount().getCycleCount()).isAtLeast(0); in testBatteryCycleCount()
/cts/hostsidetests/appcompat/hiddenapi/src/android/compat/hiddenapi/cts/
DHostsideStatsdAtomTests.java96 HiddenApiUsed atom = data.get(0).getAtom().getHiddenApiUsed(); in testHiddenApiUsed() local
99 assertThat(atom.getUid()).isEqualTo(appUid); in testHiddenApiUsed()
100 assertThat(atom.getAccessDenied()).isFalse(); in testHiddenApiUsed()
101 assertThat(atom.getSignature()) in testHiddenApiUsed()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/binderstats/
DLooperStatsTests.java80 for (AtomsProto.Atom atom : atomList) { in testLooperStats()
81 AtomsProto.LooperStats stats = atom.getLooperStats(); in testLooperStats()
90 if (atom.getLooperStats().getUid() == uid && handlerMatches && messageMatches) { in testLooperStats()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java95 atom -> atom.getWifiLockStateChanged().getState().getNumber()); in testWifiLockHighPerf()
124 atom -> atom.getWifiLockStateChanged().getState().getNumber()); in testWifiLockLowLatency()
156 atom -> atom.getWifiMulticastLockStateChanged().getState().getNumber()); in testWifiMulticastLock()
/cts/hostsidetests/time/host/src/android/time/cts/host/
DTimeZoneDetectorStatsTest.java90 for (AtomsProto.Atom atom : atoms) { in testAtom_TimeZoneDetectorState()
91 if (atom.hasTimeZoneDetectorState()) { in testAtom_TimeZoneDetectorState()
92 AtomsProto.TimeZoneDetectorState state = atom.getTimeZoneDetectorState(); in testAtom_TimeZoneDetectorState()
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java538 atom -> atom.getMediametricsAaudiostreamReported().getDirection().getNumber()); in validateAAudioStreamAtom()
541 AtomsProto.MediametricsAAudioStreamReported atom = in validateAAudioStreamAtom() local
543 assertThat(atom.getBufferCapacity()).isGreaterThan(0); in validateAAudioStreamAtom()
544 assertThat(atom.getBufferCapacity()).isLessThan(MAX_BUFFER_CAPACITY); in validateAAudioStreamAtom()
545 assertThat(atom.getBufferSize()).isGreaterThan(0); in validateAAudioStreamAtom()
546 assertThat(atom.getBufferSize()).isAtMost(atom.getBufferCapacity()); in validateAAudioStreamAtom()
547 assertThat(atom.getFramesPerBurst()).isGreaterThan(0); in validateAAudioStreamAtom()
548 assertThat(atom.getFramesPerBurst()).isLessThan(atom.getBufferCapacity()); in validateAAudioStreamAtom()

123