/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/logging/ |
D | HealthConnectServiceStatsTests.java | 84 HealthConnectApiCalled atom = in testInsertRecords() local 86 assertThat(atom.getApiStatus()).isEqualTo(ApiStatus.SUCCESS); in testInsertRecords() 87 assertThat(atom.getErrorCode()).isEqualTo(0); in testInsertRecords() 88 assertThat(atom.getDurationMillis()).isAtLeast(0); in testInsertRecords() 89 assertThat(atom.getNumberOfRecords()).isEqualTo(2); in testInsertRecords() 90 assertThat(atom.getRateLimit()).isEqualTo(RateLimit.NOT_USED); in testInsertRecords() 102 HealthConnectApiCalled atom = in testInsertRecordsError() local 104 assertThat(atom.getApiStatus()).isEqualTo(ApiStatus.ERROR); in testInsertRecordsError() 105 assertThat(atom.getErrorCode()).isNotEqualTo(0); in testInsertRecordsError() 106 assertThat(atom.getDurationMillis()).isAtLeast(0); in testInsertRecordsError() [all …]
|
D | HealthConnectDailyLogsStatsTests.java | 109 HealthConnectUsageStats atom = in testConnectedApps() local 114 assertThat(atom.getConnectedAppsCount()).isGreaterThan(0); in testConnectedApps() 115 assertThat(atom.getAvailableAppsCount()).isGreaterThan(0); in testConnectedApps() 130 HealthConnectStorageStats atom = in testDatabaseStats() local 135 assertThat(atom.getDatabaseSize()).isGreaterThan(0); in testDatabaseStats() 136 assertThat(atom.getInstantDataCount()).isEqualTo(1); in testDatabaseStats() 137 assertThat(atom.getIntervalDataCount()).isEqualTo(1); in testDatabaseStats() 138 assertThat(atom.getSeriesDataCount()).isEqualTo(1); in testDatabaseStats() 139 assertThat(atom.getChangelogCount()).isGreaterThan(2); in testDatabaseStats() 158 HealthConnectUsageStats atom = in testIsUserActive_insertRecord_userMonthlyActiveNextDay() local [all …]
|
D | HealthConnectUiLogsTests.kt | 104 it.atom.getExtension(UiExtensionAtoms.healthConnectUiImpression).page == in testImpressionsAndInteractionsSent() 106 !it.atom.getExtension(UiExtensionAtoms.healthConnectUiImpression).hasElement() in testImpressionsAndInteractionsSent() 112 it.atom.getExtension(UiExtensionAtoms.healthConnectUiImpression).page == in testImpressionsAndInteractionsSent() 114 !it.atom.getExtension(UiExtensionAtoms.healthConnectUiImpression).hasElement() in testImpressionsAndInteractionsSent() 120 it.atom.getExtension(UiExtensionAtoms.healthConnectUiInteraction).page == in testImpressionsAndInteractionsSent() 122 it.atom.getExtension(UiExtensionAtoms.healthConnectUiInteraction).element == in testImpressionsAndInteractionsSent() 165 it.atom.getExtension(UiExtensionAtoms.healthConnectUiImpression).element == in filterImpressionLogs()
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | atom.rs | 28 pub fn forward_vm_creation_atom(atom: &AtomVmCreationRequested) { in forward_vm_creation_atom() 29 let config_type = match atom.configType { in forward_vm_creation_atom() 39 uid: atom.uid, in forward_vm_creation_atom() 40 vm_identifier: &atom.vmIdentifier, in forward_vm_creation_atom() 42 is_protected: atom.isProtected, in forward_vm_creation_atom() 43 creation_succeeded: atom.creationSucceeded, in forward_vm_creation_atom() 44 binder_exception_code: atom.binderExceptionCode, in forward_vm_creation_atom() 46 num_cpus: atom.numCpus, in forward_vm_creation_atom() 48 memory_mib: atom.memoryMib, in forward_vm_creation_atom() 49 apexes: &atom.apexes, in forward_vm_creation_atom() [all …]
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | EventMetric_e2e_test.cpp | 96 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl1"); in TEST_F() 99 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl1"); in TEST_F() 102 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl2"); in TEST_F() 167 TestAtomReported atom = data.atom().test_atom_reported(); in TEST_F() local 168 EXPECT_THAT(atom.repeated_int_field(), ElementsAreArray(intArray)); in TEST_F() 169 EXPECT_THAT(atom.repeated_long_field(), ElementsAreArray(longArray)); in TEST_F() 170 EXPECT_THAT(atom.repeated_float_field(), ElementsAreArray(floatArray)); in TEST_F() 171 EXPECT_THAT(atom.repeated_string_field(), ElementsAreArray(stringArray)); in TEST_F() 172 EXPECT_THAT(atom.repeated_boolean_field(), ElementsAreArray(boolArrayVector)); in TEST_F() 173 EXPECT_THAT(atom.repeated_enum_field(), ElementsAreArray(enumArray)); in TEST_F() [all …]
|
D | GaugeMetric_e2e_push_test.cpp | 219 data.bucket_info(0).atom(0).app_start_occurred().type()); in TEST_F() 221 data.bucket_info(0).atom(0).app_start_occurred().activity_name()); in TEST_F() 223 data.bucket_info(0).atom(0).app_start_occurred().activity_start_millis()); in TEST_F() 225 data.bucket_info(0).atom(1).app_start_occurred().type()); in TEST_F() 227 data.bucket_info(0).atom(1).app_start_occurred().activity_name()); in TEST_F() 229 data.bucket_info(0).atom(1).app_start_occurred().activity_start_millis()); in TEST_F() 238 data.bucket_info(1).atom(0).app_start_occurred().type()); in TEST_F() 240 data.bucket_info(1).atom(0).app_start_occurred().activity_name()); in TEST_F() 242 data.bucket_info(1).atom(0).app_start_occurred().activity_start_millis()); in TEST_F() 251 data.bucket_info(2).atom(0).app_start_occurred().type()); in TEST_F() [all …]
|
D | GaugeMetric_e2e_pull_test.cpp | 167 EXPECT_TRUE(data.bucket_info(0).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST() 168 EXPECT_GT(data.bucket_info(0).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST() 175 EXPECT_TRUE(data.bucket_info(1).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST() 176 EXPECT_GT(data.bucket_info(1).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST() 183 EXPECT_TRUE(data.bucket_info(2).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST() 184 EXPECT_GT(data.bucket_info(2).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST() 191 EXPECT_TRUE(data.bucket_info(3).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST() 192 EXPECT_GT(data.bucket_info(3).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST() 199 EXPECT_TRUE(data.bucket_info(4).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST() 200 EXPECT_GT(data.bucket_info(4).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST() [all …]
|
/packages/modules/StatsD/statsd/tools/localtools/test/com/android/statsd/shelltools/testdrive/ |
D | ConfigurationTest.java | 64 final int atom = 90; in testOnePushed() local 65 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushed() 66 mConfiguration.addAtom(atom, null); in testOnePushed() 87 assertEquals(atom, in testOnePushed() 96 final int atom = 105999; in testOnePushedFromExternalAtomsProto() local 97 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushedFromExternalAtomsProto() 102 mConfiguration.addAtom(atom, mProtoIncludes); in testOnePushedFromExternalAtomsProto() 123 assertEquals(atom, in testOnePushedFromExternalAtomsProto() 132 final int atom = 106001; in testOnePushedFromExternalAtomsProtoWithImportedAtom() local 133 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushedFromExternalAtomsProtoWithImportedAtom() [all …]
|
/packages/modules/StatsD/tests/utils/tests/src/android/util/ |
D | StatsEventTestUtilsTest.java | 47 Atom atom = StatsEventTestUtils.convertToAtom( in testOnlyAtomId() local 53 assertThat(atom.hasTombStoneOccurred()).isTrue(); in testOnlyAtomId() 60 Atom atom = StatsEventTestUtils.convertToAtom(mStatsEventCaptor.getValue()); in testOneField() local 62 assertThat(atom.hasBatteryLevelChanged()).isTrue(); in testOneField() 63 assertThat(atom.getBatteryLevelChanged().getBatteryLevel()).isEqualTo(3); in testOneField() 89 Atom atom = StatsEventTestUtils.convertToAtom(mStatsEventCaptor.getValue()); in testTestAtomReported() local 91 assertThat(atom.hasTestAtomReported()).isTrue(); in testTestAtomReported() 92 TestAtomReported tar = atom.getTestAtomReported(); in testTestAtomReported()
|
/packages/modules/RemoteKeyProvisioning/app/tests/hosttest/src/com/android/rkpdapp/hosttest/ |
D | RkpdClientOperationAtomTests.java | 152 private void verifyE2eTestAtom(RkpdClientOperation atom, Operation expectedOperation, in verifyE2eTestAtom() argument 155 assertThat(atom.getRemotelyProvisionedComponent()).isEqualTo( in verifyE2eTestAtom() 157 assertThat(atom.getOperation()).isEqualTo(expectedOperation); in verifyE2eTestAtom() 158 assertThat(atom.getResult()).isEqualTo(expectedResult); in verifyE2eTestAtom() 159 assertThat(atom.getOperationTimeMillis()).isAtLeast(0); in verifyE2eTestAtom() 160 assertThat(atom.getClientUid()).isEqualTo(keystoreUid); in verifyE2eTestAtom() 163 private void verifyUnitTestAtom(RkpdClientOperation atom, Operation expectedOperation, in verifyUnitTestAtom() argument 165 assertThat(atom.getOperation()).isEqualTo(expectedOperation); in verifyUnitTestAtom() 166 assertThat(atom.getResult()).isEqualTo(expectedResult); in verifyUnitTestAtom() 167 assertThat(atom.getOperationTimeMillis()).isAtLeast(0); in verifyUnitTestAtom()
|
/packages/modules/Permission/tests/hostside/safetycenter/src/android/safetycenter/hostside/ |
D | SafetyCenterSystemEventReportedLoggingHostTest.kt | 70 it.atom.safetyCenterSystemEventReported in refreshAllSources_allSourcesSuccessful_successAtomsForEachSourceAndOverallCompletion() 93 it.atom.safetyCenterSystemEventReported in refreshAllSources_oneSourceError_errorAtomForThatSourceAndOverall() 116 it.atom.safetyCenterSystemEventReported in refreshAllSources_anyResult_atomsIncludeRefreshReason() 134 it.atom.safetyCenterSystemEventReported in refreshAllSources_differentRefreshReason_atomsIncludeCorrectRefreshReason() 151 it.atom.safetyCenterSystemEventReported in refreshAllSources_firstTime_allSourcesSuccessful_dataChangedTrueForAll() 168 it.atom.safetyCenterSystemEventReported in refreshAllSources_secondTime_allSourcesUnchanged_dataChangedFalseForAll() 189 it.atom.safetyCenterSystemEventReported in refreshAllSources_secondTime_someSourcesChanged_dataChangedCorrect() 206 .mapNotNull { it.atom.safetyCenterSystemEventReported } in resolveAction_success_resolvingActionSuccessEvent() 222 .mapNotNull { it.atom.safetyCenterSystemEventReported } in resolveAction_error_resolvingActionErrorEvent()
|
/packages/modules/NeuralNetworks/runtime/ |
D | TelemetryStatsd.cpp | 196 void logAtomToStatsd(Atom&& atom) { in logAtomToStatsd() argument 198 const auto& [key, value] = atom; in logAtomToStatsd() 285 void AtomAggregator::push(Atom&& atom) { in push() argument 286 const AtomValue& value = atom.second; in push() 287 if (const auto [it, inserted] = mAggregate.try_emplace(std::move(atom.first), value); in push() 326 [&data](Atom& atom) { data.push(std::move(atom)); }); in AsyncLogger() argument 341 void AsyncLogger::write(Atom&& atom) { in write() argument 346 mChannel.push_back(std::move(atom)); in write() 381 Atom atom = Atom{ in createAtomFrom() 403 auto& value = atom.second; in createAtomFrom() [all …]
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 216 String atom = args[first_arg]; in processArgs() local 218 configuration.addAtom(Integer.valueOf(atom), mProtoIncludes); in processArgs() 220 LOGGER.severe("Bad atom id provided: " + atom); in processArgs() 316 void addAtom(Integer atom, List<String> protoIncludes) { in addAtom() argument 317 if (Atom.getDescriptor().findFieldByNumber(atom) == null && in addAtom() 318 Atom.getDescriptor().isExtensionNumber(atom) == false) { in addAtom() 323 isAtomDefined = isAtomDefinedInFile(protoIncludes.get(i), atom); in addAtom() 329 LOGGER.severe("No such atom found: " + atom); in addAtom() 334 if (isPulledAtom(atom)) { in addAtom() 335 mPulledAtoms.add(atom); in addAtom() [all …]
|
/packages/modules/StatsD/statsd/tools/localtools/test/data/ |
D | atoms.proto | 27 /* Allocated atom IDs. */ 36 /* A test atom from an AOSP atom ids range */ 42 /* A test atom from an AOSP atom ids range */
|
/packages/modules/Virtualization/virtualizationmanager/src/ |
D | atom.rs | 141 let atom = AtomVmCreationRequested { in write_vm_creation_stats() localVariable 155 GLOBAL_SERVICE.atomVmCreationRequested(&atom).unwrap_or_else(|e| { in write_vm_creation_stats() 171 let atom = AtomVmBooted { in write_vm_booted_stats() localVariable 179 GLOBAL_SERVICE.atomVmBooted(&atom).unwrap_or_else(|e| { in write_vm_booted_stats() 198 let atom = AtomVmExited { in write_vm_exited_stats_sync() localVariable 210 GLOBAL_SERVICE.atomVmExited(&atom).unwrap_or_else(|e| { in write_vm_exited_stats_sync()
|
/packages/services/Car/service/src/com/android/car/telemetry/publisher/statsconverters/ |
D | GaugeMetricDataConverter.java | 75 Atom atom = aggregate.getAtom(); in convertGaugeDataList() local 78 atoms.add(atom); in convertGaugeDataList() 84 for (Atom atom : bi.getAtomList()) { in convertGaugeDataList() 85 atoms.add(atom); in convertGaugeDataList()
|
D | ActivityForegroundStateChangedConverter.java | 69 ActivityForegroundStateChanged getAtomData(@NonNull Atom atom) { in getAtomData() argument 71 atom.hasActivityForegroundStateChanged(), in getAtomData() 73 return atom.getActivityForegroundStateChanged(); in getAtomData()
|
D | ProcessCpuTimeConverter.java | 67 ProcessCpuTime getAtomData(@NonNull Atom atom) { in getAtomData() argument 69 atom.hasProcessCpuTime(), "Atom doesn't contain ProcessCpuTime"); in getAtomData() 70 return atom.getProcessCpuTime(); in getAtomData()
|
D | WtfOccurredConverter.java | 73 WTFOccurred getAtomData(@NonNull AtomsProto.Atom atom) { in getAtomData() argument 74 Preconditions.checkArgument(atom.hasWtfOccurred(), "Atom doesn't contain WtfOccurred"); in getAtomData() 75 return atom.getWtfOccurred(); in getAtomData()
|
D | AppStartMemoryStateCapturedConverter.java | 89 AppStartMemoryStateCaptured getAtomData(@NonNull Atom atom) { in getAtomData() argument 91 atom.hasAppStartMemoryStateCaptured(), in getAtomData() 93 return atom.getAppStartMemoryStateCaptured(); in getAtomData()
|
D | ProcessMemoryStateConverter.java | 87 ProcessMemoryState getAtomData(@NonNull Atom atom) { in getAtomData() argument 89 atom.hasProcessMemoryState(), "Atom doesn't contain ProcessMemoryState"); in getAtomData() 90 return atom.getProcessMemoryState(); in getAtomData()
|
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | ProvisionerTest.java | 105 ProvisioningAttempt atom = ProvisioningAttempt.createScheduledAttemptMetrics(sContext); in testProvisionerUsesCorrectBatchSize() local 108 doReturn(FAKE_RKP_KEY).when(mockSystem).generateKey(eq(atom)); in testProvisionerUsesCorrectBatchSize() 109 doReturn(new byte[1]).when(mockSystem).generateCsr(eq(atom), notNull(), notNull()); in testProvisionerUsesCorrectBatchSize() 113 mProvisioner.provisionKeys(atom, mockSystem, geekResponse); in testProvisionerUsesCorrectBatchSize() 127 ProvisioningAttempt atom = ProvisioningAttempt.createScheduledAttemptMetrics(sContext); in testProvisionerHandlesExceptionOnGetBatchSize() local 130 doReturn(FAKE_RKP_KEY).when(mockSystem).generateKey(eq(atom)); in testProvisionerHandlesExceptionOnGetBatchSize() 136 mProvisioner.provisionKeys(atom, mockSystem, geekResponse)); in testProvisionerHandlesExceptionOnGetBatchSize()
|
/packages/modules/Virtualization/virtualizationservice/aidl/android/system/virtualizationservice_internal/ |
D | IVirtualizationServiceInternal.aidl | 45 void atomVmBooted(in AtomVmBooted atom); in atomVmBooted() argument 48 void atomVmCreationRequested(in AtomVmCreationRequested atom); in atomVmCreationRequested() argument 51 void atomVmExited(in AtomVmExited atom); in atomVmExited() argument
|
/packages/modules/StatsD/lib/libstatspull/tests/ |
D | stats_subscription_test.cpp | 191 EXPECT_THAT(actualShellData.atom(0), EqAtom(expectedAtom)); in TEST_F() 218 EXPECT_THAT(actualShellData.atom(1), EqAtom(expectedAtom)); in TEST_F() 222 EXPECT_THAT(actualShellData.atom(2), EqAtom(expectedAtom)); in TEST_F() 249 EXPECT_THAT(actualShellData.atom(0), EqAtom(expectedAtom)); in TEST_F() 276 EXPECT_THAT(actualShellData.atom(0), EqAtom(expectedAtom)); in TEST_F() 304 EXPECT_THAT(actualShellData.atom(0), EqAtom(expectedAtom)); in TEST_F()
|
/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/ |
D | LibStatsPullTests.java | 123 TestAtoms.PullCallbackAtom atom = in testPullAtomCallbackRegistration() local 125 assertThat(atom.getLongVal()).isEqualTo(1); in testPullAtomCallbackRegistration() 207 TestAtoms.PullCallbackAtom atom = in testPullAtomCallbackCache() local 209 assertThat(atom.getLongVal()).isEqualTo(1); in testPullAtomCallbackCache() 245 TestAtoms.PullCallbackAtom atom = in testPullAtomCallbackStress() local 247 assertThat(atom.getLongVal()).isEqualTo(1); in testPullAtomCallbackStress()
|