/cts/hostsidetests/neuralnetworks/src/com/android/nn/host/cts/ |
D | NeuralNetworksStatsTests.java | 95 NeuralNetworksCompilationCompleted atom = data.get(0).getAtom() in testAppNeuralNetworksCompilationCompletedNative() local 98 assertThat(atom.getUid()).isGreaterThan(10000); in testAppNeuralNetworksCompilationCompletedNative() 101 assertThat(atom.getModelArchHash()).hasSize(32); in testAppNeuralNetworksCompilationCompletedNative() 102 assertThat(atom.getDeviceId()).isNotEmpty(); in testAppNeuralNetworksCompilationCompletedNative() 103 assertThat(atom.getInputDataClass()) in testAppNeuralNetworksCompilationCompletedNative() 105 assertThat(atom.getOutputDataClass()) in testAppNeuralNetworksCompilationCompletedNative() 108 assertFalse(atom.getIntrospectionEnabled()); in testAppNeuralNetworksCompilationCompletedNative() 109 assertFalse(atom.getCacheEnabled()); in testAppNeuralNetworksCompilationCompletedNative() 110 assertFalse(atom.getHasControlFlow()); in testAppNeuralNetworksCompilationCompletedNative() 111 assertFalse(atom.getHasDynamicTemporaries()); in testAppNeuralNetworksCompilationCompletedNative() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | UidAtomTests.java | 132 AppBreadcrumbReported atom = data.get(0).getAtom().getAppBreadcrumbReported(); in testIsolatedToHostUidMapping() local 133 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping() 134 assertThat(atom.getLabel()).isEqualTo(0); in testIsolatedToHostUidMapping() 135 assertThat(atom.getState()).isEqualTo(AppBreadcrumbReported.State.START); in testIsolatedToHostUidMapping() 175 .filter(atom -> atom.getUid() == appUid) in testLmkKillOccurred() 205 AppCrashOccurred atom = data.get(0).getAtom().getAppCrashOccurred(); in testAppCrashOccurred() local 207 assertThat(atom.getUid()).isGreaterThan(10000); in testAppCrashOccurred() 208 assertThat(atom.getEventType()).isEqualTo("crash"); in testAppCrashOccurred() 209 assertThat(atom.getIsInstantApp().getNumber()) in testAppCrashOccurred() 211 assertThat(atom.getForegroundState().getNumber()) in testAppCrashOccurred() [all …]
|
D | HostAtomTests.java | 147 atom -> atom.getScreenStateChanged().getState().getNumber()); in testScreenStateChangedAtom() 197 atom -> atom.getChargingStateChanged().getState().getNumber()); in testChargingStateChangedAtom() 253 atom -> atom.getPluggedStateChanged().getState().getNumber()); in testPluggedStateChangedAtom() 304 atom -> atom.getBatteryLevelChanged().getBatteryLevel()); in testBatteryLevelChangedAtom() 340 atom -> atom.getDeviceIdleModeStateChanged().getState().getNumber()); in testDeviceIdleModeStateChangedAtom() 375 atom -> atom.getBatterySaverModeStateChanged().getState().getNumber()); in testBatterySaverModeStateChangedAtom() 392 Atom atom = data.get(0); in testRemainingBatteryCapacity() local 393 assertThat(atom.getRemainingBatteryCapacity().hasChargeMicroAmpereHour()).isTrue(); in testRemainingBatteryCapacity() 395 assertThat(atom.getRemainingBatteryCapacity().getChargeMicroAmpereHour()) in testRemainingBatteryCapacity() 414 Atom atom = data.get(0); in testFullBatteryCapacity() local [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gnss/ |
D | GnssPowerStatsTests.java | 73 for (AtomsProto.Atom atom : dataList) { in testGnssPowerStats() 74 assertThat(atom.getGnssPowerStats().getElapsedRealtimeUncertaintyNanos()) in testGnssPowerStats() 76 assertThat(atom.getGnssPowerStats().getTotalEnergyMicroJoule()).isAtLeast(0L); in testGnssPowerStats() 77 assertThat(atom.getGnssPowerStats().getSinglebandTrackingModeEnergyMicroJoule()) in testGnssPowerStats() 79 assertThat(atom.getGnssPowerStats().getMultibandTrackingModeEnergyMicroJoule()) in testGnssPowerStats() 81 assertThat(atom.getGnssPowerStats().getSinglebandAcquisitionModeEnergyMicroJoule()) in testGnssPowerStats() 83 assertThat(atom.getGnssPowerStats().getMultibandAcquisitionModeEnergyMicroJoule()) in testGnssPowerStats() 85 assertThat(atom.getGnssPowerStats().getVendorSpecificPowerModesEnergyMicroJoule0()) in testGnssPowerStats() 87 assertThat(atom.getGnssPowerStats().getVendorSpecificPowerModesEnergyMicroJoule1()) in testGnssPowerStats() 89 assertThat(atom.getGnssPowerStats().getVendorSpecificPowerModesEnergyMicroJoule2()) in testGnssPowerStats() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/ |
D | CpuStatsTests.java | 78 for (AtomsProto.Atom atom : atoms) { in testCpuTimePerUid() 79 assertThat(atom.getCpuTimePerUid().getUid()).isEqualTo(appUid); in testCpuTimePerUid() 80 assertThat(atom.getCpuTimePerUid().getUserTimeMicros()).isGreaterThan(0L); in testCpuTimePerUid() 81 assertThat(atom.getCpuTimePerUid().getSysTimeMicros()).isGreaterThan(0L); in testCpuTimePerUid() 101 for (AtomsProto.Atom atom : atoms) { in testCpuTimePerClusterFreq() 102 assertThat(atom.getCpuTimePerClusterFreq().getCluster()).isAtLeast(0); in testCpuTimePerClusterFreq() 103 assertThat(atom.getCpuTimePerClusterFreq().getFreqKhz()).isAtLeast(0); in testCpuTimePerClusterFreq() 104 assertThat(atom.getCpuTimePerClusterFreq().getTimeMillis()).isAtLeast(0); in testCpuTimePerClusterFreq() 122 for (AtomsProto.Atom atom : atoms) { in testCpuCyclesPerUidCluster() 123 assertThat(atom.getCpuCyclesPerUidCluster().getUid()).isAtLeast(0); in testCpuCyclesPerUidCluster() [all …]
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | IncrementalAppErrorStatsTests.java | 150 AtomsProto.AppCrashOccurred atom = data.get(0).getAtom().getAppCrashOccurred(); in testAppCrashOnIncremental() local 152 assertThat(atom.getUid()).isGreaterThan(10000); in testAppCrashOnIncremental() 153 assertThat(atom.getEventType()).isEqualTo("crash"); in testAppCrashOnIncremental() 154 assertThat(atom.getIsInstantApp().getNumber()) in testAppCrashOnIncremental() 156 assertThat(atom.getForegroundState().getNumber()) in testAppCrashOnIncremental() 158 assertThat(atom.getPackageName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testAppCrashOnIncremental() 159 assertThat(atom.getErrorSource()).isEqualTo(ErrorSource.DATA_APP); in testAppCrashOnIncremental() 160 assertTrue(atom.getIsIncremental()); in testAppCrashOnIncremental() 161 assertFalse((1.0f - atom.getLoadingProgress()) < 0.0000001f); in testAppCrashOnIncremental() 162 assertTrue(atom.getMillisSinceOldestPendingRead() > 0); in testAppCrashOnIncremental() [all …]
|
D | ComponentStateChangedReportedStatsTests.java | 120 ComponentStateChangedReported atom = data.get(0).getAtom().getExtension( in testComponentStateChangedReportedForWholeApp() local 122 assertThat(atom.getUid()).isEqualTo( in testComponentStateChangedReportedForWholeApp() 124 assertThat(atom.getComponentOldState()).isEqualTo(COMPONENT_STATE_DEFAULT); in testComponentStateChangedReportedForWholeApp() 125 assertThat(atom.getComponentNewState()).isEqualTo(COMPONENT_STATE_ENABLED); in testComponentStateChangedReportedForWholeApp() 126 assertThat(atom.getIsLauncher()).isFalse(); in testComponentStateChangedReportedForWholeApp() 127 assertThat(atom.getIsForWholeApp()).isTrue(); in testComponentStateChangedReportedForWholeApp() 128 assertThat(atom.getCallingUid()).isEqualTo( in testComponentStateChangedReportedForWholeApp() 155 ComponentStateChangedReported atom = data.get(0).getAtom().getExtension( in testComponentStateChangedReportedForLauncherActivity() local 157 assertThat(atom.getUid()).isEqualTo( in testComponentStateChangedReportedForLauncherActivity() 159 assertThat(atom.getComponentOldState()).isEqualTo(COMPONENT_STATE_DEFAULT); in testComponentStateChangedReportedForLauncherActivity() [all …]
|
D | InstalledIncrementalPackageStatsTests.java | 76 for (AtomsProto.Atom atom : data) { in testInstalledIncrementalMetricsReported() 77 assertFalse(atom.getInstalledIncrementalPackage().getIsLoading()); in testInstalledIncrementalMetricsReported() 78 Truth.assertThat(atom.getInstalledIncrementalPackage().getLoadingCompletedTimestamp() in testInstalledIncrementalMetricsReported() 86 for (AtomsProto.Atom atom : metricData) { in filterTestAppMetrics() 87 int uid = atom.getInstalledIncrementalPackage().getUid(); in filterTestAppMetrics() 89 result.add(atom); in filterTestAppMetrics()
|
/cts/hostsidetests/biometrics/src/android/server/biometrics/cts/ |
D | BiometricsAtomsTests.java | 116 private void assertEnrollmentAtomData(AtomsProto.BiometricEnrolled atom) throws Exception { in assertEnrollmentAtomData() argument 117 assertThat(atom.hasSuccess() && atom.getSuccess()).isTrue(); in assertEnrollmentAtomData() 118 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertEnrollmentAtomData() 119 assertThat(atom.hasAmbientLightLux()).isTrue(); in assertEnrollmentAtomData() 127 for (AtomsProto.BiometricAcquired atom : atoms) { in assertEnrollmentAcquiredAtomsData() 128 assertThat(atom.hasModality() && atom.getModality() == modality).isTrue(); in assertEnrollmentAcquiredAtomsData() 129 assertThat(atom.hasAction() && atom.getAction() == ActionEnum.ACTION_ENROLL).isTrue(); in assertEnrollmentAcquiredAtomsData() 130 assertThat(atom.hasUser() && atom.getUser() == getDevice().getCurrentUser()).isTrue(); in assertEnrollmentAcquiredAtomsData() 209 AtomsProto.BiometricAuthenticated atom) throws Exception { in assertAuthenticateAtomData() argument 210 assertThat(atom.getState()).isEqualTo(AtomsProto.BiometricAuthenticated.State.CONFIRMED); in assertAuthenticateAtomData() [all …]
|
/cts/hostsidetests/media/src/android/media/metrics/cts/ |
D | MediaMetricsAtomTests.java | 465 MediaEditingExtensionAtoms.MediaEditingEndedReported atom = in testEditingEndedEvent_default() local 469 assertThat(atom.getFinalProgressPercent()).isEqualTo(-1f); in testEditingEndedEvent_default() 470 assertThat(atom.getTimeSinceEditingCreatedMillis()).isEqualTo(-1L); in testEditingEndedEvent_default() 471 assertThat(atom.getExporterName()).isEqualTo(""); in testEditingEndedEvent_default() 472 assertThat(atom.getMuxerName()).isEqualTo(""); in testEditingEndedEvent_default() 473 assertThat(atom.getFinalState().toString()).isEqualTo("FINAL_STATE_SUCCEEDED"); in testEditingEndedEvent_default() 474 assertThat(atom.getErrorCode().toString()).isEqualTo("ERROR_CODE_NONE"); in testEditingEndedEvent_default() 495 MediaEditingExtensionAtoms.MediaEditingEndedReported atom = in testEditingEndedEvent_error() local 499 assertThat(atom.getTimeSinceEditingCreatedMillis()).isEqualTo(17630000L); in testEditingEndedEvent_error() 500 assertThat(atom.getExporterName()).isEqualTo(""); in testEditingEndedEvent_error() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/vibrator/ |
D | VibratorStatsTests.java | 84 atom -> atom.getVibratorStateChanged().getState().getNumber()); in testVibratorStateChanged() 96 atom -> atom.getVibrationReported().getVibrationType().getNumber()); in testVibrationReportedSingleVibration() 108 atom -> atom.getVibrationReported().getVibrationType().getNumber()); in testVibrationReportedRepeatedVibration() 120 atom -> atom.getVibrationReported().getVibrationType().getNumber()); in testVibrationReportedComposedVibration() 122 atom -> atom.getVibrationReported().getHalComposeCount()); in testVibrationReportedComposedVibration() 124 atom -> atom.getVibrationReported().getHalCompositionSize()); in testVibrationReportedComposedVibration() 136 atom -> atom.getVibrationReported().getVibrationType().getNumber()); in testVibrationReportedPredefinedVibration() 138 atom -> atom.getVibrationReported().getHalPerformCount()); in testVibrationReportedPredefinedVibration()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/ |
D | AppStartStatsTests.java | 82 runTestAppStartOccurredCommon(null, atom -> { in testAppStartOccurred() 83 assertThat(atom.getType()).isEqualTo( in testAppStartOccurred() 85 assertThat(atom.getProcessState()).isEqualTo( in testAppStartOccurred() 94 }, atom -> { in testAppStartOccurredWarm() 95 assertThat(atom.getType()).isEqualTo( in testAppStartOccurredWarm() 97 assertThat(atom.getProcessState()).isEqualTo( in testAppStartOccurredWarm() 137 AtomsProto.AppStartOccurred atom = data.get(0).getAtom().getAppStartOccurred(); in runTestAppStartOccurredCommon() local 138 assertThat(atom.getPkgName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in runTestAppStartOccurredCommon() 139 assertThat(atom.getActivityName()) in runTestAppStartOccurredCommon() 141 assertThat(atom.getIsInstantApp()).isFalse(); in runTestAppStartOccurredCommon() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | MediaCapabilitiesTests.java | 96 for (AtomsProto.Atom atom : atoms) { in testSurroundSoundCapabilities() 97 assertThat(atom.getMediaCapabilities().getSurroundEncodings().getAudioEncodingsCount()) in testSurroundSoundCapabilities() 100 atom.getMediaCapabilities().getSurroundOutputMode()); in testSurroundSoundCapabilities() 102 atom.getMediaCapabilities() in testSurroundSoundCapabilities() 105 atom.getMediaCapabilities() in testSurroundSoundCapabilities() 131 for (AtomsProto.Atom atom : atoms) { in testDisplayCapabilities() 132 assertThat(atom.getMediaCapabilities().getSinkDisplayModes().getDisplayModesCount()) in testDisplayCapabilities() 134 assertEquals(720, atom.getMediaCapabilities().getUserPreferredResolutionHeight()); in testDisplayCapabilities() 135 assertEquals(1020, atom.getMediaCapabilities().getUserPreferredResolutionWidth()); in testDisplayCapabilities() 136 assertEquals(60.0f, atom.getMediaCapabilities().getUserPreferredRefreshRate()); in testDisplayCapabilities() [all …]
|
D | HdrCapabilitiesTests.java | 74 for (AtomsProto.Atom atom : atoms) { in fetchIsHdrOutputControlSupportedFromMetrics() 76 atom.getHdrCapabilities().getDeviceSupportsHdrOutputControl(); in fetchIsHdrOutputControlSupportedFromMetrics() 103 for (AtomsProto.Atom atom : atoms) { in testForceHdrFormat() 105 atom.getHdrCapabilities().getForceHdrFormat()); in testForceHdrFormat() 116 for (AtomsProto.Atom atom : atoms) { in testForceHdrFormat() 118 atom.getHdrCapabilities().getForceHdrFormat().getNumber()); in testForceHdrFormat() 132 for (AtomsProto.Atom atom : atoms) { in testHasUserDisabledHdrConversion() 133 assertFalse(atom.getHdrCapabilities().getHasUserDisabledHdrConversion()); in testHasUserDisabledHdrConversion() 142 for (AtomsProto.Atom atom : atoms) { in testHasUserDisabledHdrConversion() 143 assertTrue(atom.getHdrCapabilities().getHasUserDisabledHdrConversion()); in testHasUserDisabledHdrConversion() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/ |
D | DevicePolicyEventWrapper.java | 50 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/telephony/ |
D | TelephonyStatsTests.java | 121 AtomsProto.SupportedRadioAccessFamily atom = data.get(0).getSupportedRadioAccessFamily(); in testSupportedRadioAccessFamily() local 123 assertThat(atom.getNetworkTypeBitmask() & NETWORK_TYPE_BITMASK_GSM_ALL) in testSupportedRadioAccessFamily() 127 assertThat(atom.getNetworkTypeBitmask() & NETWORK_TYPE_BITMASK_CDMA_ALL) in testSupportedRadioAccessFamily() 147 AtomsProto.CarrierIdTableVersion atom = data.get(0).getCarrierIdTableVersion(); in testCarrierIdTableVersion() local 148 assertThat(atom.getTableVersion()).isEqualTo(expectedVersion); in testCarrierIdTableVersion() 172 AtomsProto.AirplaneMode atom = d.getAtom().getAirplaneMode(); in testAirplaneModeEvent_shortToggle() local 173 if (atom.getIsEnabled() && airplaneModeEnabledAtom == null) { in testAirplaneModeEvent_shortToggle() 174 airplaneModeEnabledAtom = atom; in testAirplaneModeEvent_shortToggle() 176 if (!atom.getIsEnabled() && airplaneModeDisabledAtom == null) { in testAirplaneModeEvent_shortToggle() 177 airplaneModeDisabledAtom = atom; in testAirplaneModeEvent_shortToggle() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 71 false, (atom) -> { in testDataUsageBytesTransfer() 73 atom.getDataUsageBytesTransfer(); in testDataUsageBytesTransfer() 91 (atom) -> { in testMobileBytesTransfer() 92 final AtomsProto.MobileBytesTransfer data = atom.getMobileBytesTransfer(); in testMobileBytesTransfer() 103 (atom) -> { in testMobileBytesTransferByFgBg() 105 atom.getMobileBytesTransferByFgBg(); in testMobileBytesTransferByFgBg() 119 (atom) -> { in testBytesTransferByTagAndMetered() 121 atom.getBytesTransferByTagAndMetered(); in testBytesTransferByTagAndMetered() 192 for (final Atom atom : atoms) { in doTestMobileBytesTransferThat() 193 TransferredBytes transferredBytes = p.accept(atom); in doTestMobileBytesTransferThat()
|
/cts/hostsidetests/statsdatom/apps/adpfapp/src/android/adpf/atom/app/ |
D | ADPFAtomTestActivity.java | 17 package android.adpf.atom.app; 19 import static android.adpf.atom.common.ADPFAtomTestConstants.ACTION_CREATE_DEAD_TIDS_THEN_GO_BACKGR… 20 import static android.adpf.atom.common.ADPFAtomTestConstants.ACTION_CREATE_REGULAR_HINT_SESSIONS; 21 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_KEY_RESULT_TIDS; 22 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_KEY_UID; 23 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_URI_STRING; 24 import static android.adpf.atom.common.ADPFAtomTestConstants.INTENT_ACTION_KEY;
|
D | ADPFAtomTestDataProvider.java | 17 package android.adpf.atom.app; 19 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_COLUMN_KEY; 20 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_COLUMN_VALUE; 21 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_URI_STRING;
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/ |
D | NotificationStatsTests.java | 72 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationPackagePreferenceExtraction() 73 if (atom.hasPackageNotificationPreferences()) { in testNotificationPackagePreferenceExtraction() 74 allPreferences.add(atom.getPackageNotificationPreferences()); in testNotificationPackagePreferenceExtraction() 107 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationChannelPreferencesExtraction() 108 if (atom.hasPackageNotificationChannelPreferences()) { in testNotificationChannelPreferencesExtraction() 109 allChannelPreferences.add(atom.getPackageNotificationChannelPreferences()); in testNotificationChannelPreferencesExtraction() 146 for (AtomsProto.Atom atom : ReportUtils.getGaugeMetricAtoms(getDevice())) { in testNotificationChannelGroupPreferencesExtraction() 147 if (atom.hasPackageNotificationChannelGroupPreferences()) { in testNotificationChannelGroupPreferencesExtraction() 148 allGroupPreferences.add(atom.getPackageNotificationChannelGroupPreferences()); in testNotificationChannelGroupPreferencesExtraction()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/ |
D | AlarmStatsTests.java | 265 for (AtomsProto.Atom atom : atoms) { in testPendingAlarmInfo() 266 assertThat(atom.getPendingAlarmInfo().getNumTotal()).isAtLeast(5); in testPendingAlarmInfo() 267 assertThat(atom.getPendingAlarmInfo().getNumExact()).isAtLeast(2); in testPendingAlarmInfo() 268 assertThat(atom.getPendingAlarmInfo().getNumWakeup()).isAtLeast(3); in testPendingAlarmInfo() 269 assertThat(atom.getPendingAlarmInfo().getNumAllowWhileIdle()).isAtLeast(1); in testPendingAlarmInfo() 270 assertThat(atom.getPendingAlarmInfo().getNumForegroundService()).isAtLeast(2); in testPendingAlarmInfo() 271 assertThat(atom.getPendingAlarmInfo().getNumActivity()).isAtLeast(1); in testPendingAlarmInfo() 272 assertThat(atom.getPendingAlarmInfo().getNumService()).isAtLeast(1); in testPendingAlarmInfo() 273 assertThat(atom.getPendingAlarmInfo().getNumListener()).isAtLeast(1); in testPendingAlarmInfo() 274 assertThat(atom.getPendingAlarmInfo().getNumIndefiniteFuture()).isAtLeast(1); in testPendingAlarmInfo() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/ |
D | UserLifecycleJourneyStatsTests.java | 102 UserLifecycleJourneyReported atom = getAtom(data.get(i)); in assertExpectedEvents() local 103 String expectedName = atom.getJourney() + "_" + atom.getUserType(); in assertExpectedEvents() 104 long originUserId = atom.getOriginUser(); in assertExpectedEvents() 105 long targetUserId = atom.getTargetUser(); in assertExpectedEvents()
|
/cts/hostsidetests/bootstats/src/android/bootstats/cts/ |
D | BootStatsHostTest.java | 72 for (int atom : ATOMS_EXPECTED) { in testBootStats() 73 expectedAtomHeaders.add("Atom " + atom + "->(total count)"); in testBootStats() 91 for (String atom : expectedAtomHeaders) { in checkAllExpectedAtoms() 92 int atomIndex = log.indexOf(atom); in checkAllExpectedAtoms() 96 int numberOfEvents = getIntValue(log, atomIndex + atom.length()); in checkAllExpectedAtoms() 101 notExistingAtoms.remove(atom); in checkAllExpectedAtoms()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | PerformanceHintManagerTests.java | 19 import static android.adpf.atom.common.ADPFAtomTestConstants.ACTION_CREATE_DEAD_TIDS_THEN_GO_BACKGR… 20 import static android.adpf.atom.common.ADPFAtomTestConstants.ACTION_CREATE_REGULAR_HINT_SESSIONS; 21 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_COLUMN_KEY; 22 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_COLUMN_VALUE; 23 import static android.adpf.atom.common.ADPFAtomTestConstants.CONTENT_URI_STRING; 24 import static android.adpf.atom.common.ADPFAtomTestConstants.INTENT_ACTION_KEY;
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/express/ |
D | ExpresslogAtomsTests.java | 190 ExpressHistogramSampleReported atom = in testExpressLogSampleAtomUniform() local 194 assertThat(atom.getMetricId()).isEqualTo(testMetricId); in testExpressLogSampleAtomUniform() 195 assertThat(atom.getCount()).isEqualTo(1); in testExpressLogSampleAtomUniform() 229 ExpressHistogramSampleReported atom = in testExpressLogSampleAtomScaled() local 233 assertThat(atom.getMetricId()).isEqualTo(testMetricId); in testExpressLogSampleAtomScaled() 234 assertThat(atom.getCount()).isEqualTo(1); in testExpressLogSampleAtomScaled() 269 ExpressUidHistogramSampleReported atom = in testExpressLogSampleWihtUidAtomUniform() local 274 assertThat(atom.getMetricId()).isEqualTo(testMetricId); in testExpressLogSampleWihtUidAtomUniform() 275 assertThat(atom.getCount()).isEqualTo(1); in testExpressLogSampleWihtUidAtomUniform() 276 assertThat(atom.getUid()).isEqualTo(TEST_UID); in testExpressLogSampleWihtUidAtomUniform() [all …]
|