Home
last modified time | relevance | path

Searched refs:atom2 (Results 1 – 3 of 3) sorted by relevance

/frameworks/proto_logging/stats/stats_log_api_gen/test_java/src/com/android/test/statslogapigen/
DVendorAtomCodeGenTest.java262 VendorAtom atom2 = funcWrapper.methodSignature( in testCreateAtomWithTruncateTimestampApiGen() local
266 assertThat(atom2.atomId).isEqualTo(VendorAtomsLog.TRUNCATE_TIMESTAMP_ATOM2); in testCreateAtomWithTruncateTimestampApiGen()
267 assertThat(atom2.reverseDomainName).isEqualTo(kTestStringValue); in testCreateAtomWithTruncateTimestampApiGen()
268 assertThat(atom2.values.length).isEqualTo(1); in testCreateAtomWithTruncateTimestampApiGen()
269 assertThat(atom2.values[0].getIntValue()).isEqualTo(kTestStateValue2); in testCreateAtomWithTruncateTimestampApiGen()
271 assertThat(atom2.valuesAnnotations).isNull(); in testCreateAtomWithTruncateTimestampApiGen()
272 assertThat(atom2.atomAnnotations).isNotNull(); in testCreateAtomWithTruncateTimestampApiGen()
273 assertThat(atom2.atomAnnotations.length).isEqualTo(1); in testCreateAtomWithTruncateTimestampApiGen()
274 assertThat(atom2.atomAnnotations[0].annotationId) in testCreateAtomWithTruncateTimestampApiGen()
276 assertThat(atom2.atomAnnotations[0].value.getBoolValue()).isEqualTo(true); in testCreateAtomWithTruncateTimestampApiGen()
/frameworks/proto_logging/stats/stats_log_api_gen/
Dtest_api_gen_vendor.cpp263 VendorAtom atom2 = func(TRUNCATE_TIMESTAMP_ATOM2, kTestStringValue, in TEST() local
265 EXPECT_EQ(atom2.atomId, TRUNCATE_TIMESTAMP_ATOM2); in TEST()
266 EXPECT_EQ(atom2.reverseDomainName, kTestStringValue); in TEST()
267 EXPECT_EQ(atom2.values.size(), static_cast<size_t>(1)); in TEST()
268 EXPECT_EQ(atom2.values[0].get<VendorAtomValue::intValue>(), in TEST()
270 EXPECT_NE(atom2.atomAnnotations, std::nullopt); in TEST()
271 EXPECT_EQ(atom2.atomAnnotations->size(), static_cast<size_t>(1)); in TEST()
272 EXPECT_NE(atom2.atomAnnotations.value()[0], std::nullopt); in TEST()
273 EXPECT_EQ(atom2.atomAnnotations.value()[0]->annotationId, AnnotationId::TRUNCATE_TIMESTAMP); in TEST()
274 EXPECT_TRUE(atom2.atomAnnotations.value()[0]->value.get<AnnotationValue::boolValue>()); in TEST()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTimeStatsTest.cpp1416 const SurfaceflingerStatsLayerInfo& atom2 = atomList.atom(2); in TEST_F() local
1418 EXPECT_EQ(atom2.layer_name(), genLayerName(LAYER_ID_0)); in TEST_F()
1419 EXPECT_EQ(atom2.total_frames(), 1); in TEST_F()
1420 EXPECT_EQ(atom2.dropped_frames(), 0); in TEST_F()
1421 EXPECT_THAT(atom2.present_to_present(), HistogramEq(buildExpectedHistogram({1}, {1}))); in TEST_F()
1422 EXPECT_THAT(atom2.post_to_present(), HistogramEq(buildExpectedHistogram({4}, {1}))); in TEST_F()
1423 EXPECT_THAT(atom2.acquire_to_present(), HistogramEq(buildExpectedHistogram({3}, {1}))); in TEST_F()
1424 EXPECT_THAT(atom2.latch_to_present(), HistogramEq(buildExpectedHistogram({2}, {1}))); in TEST_F()
1425 EXPECT_THAT(atom2.desired_to_present(), HistogramEq(buildExpectedHistogram({1}, {1}))); in TEST_F()
1426 EXPECT_THAT(atom2.post_to_acquire(), HistogramEq(buildExpectedHistogram({1}, {1}))); in TEST_F()
[all …]