Home
last modified time | relevance | path

Searched refs:EXPECT_EQ (Results 1 – 25 of 237) sorted by relevance

12345678910

/frameworks/native/libs/math/tests/
Dvec_test.cpp35 EXPECT_EQ(sizeof(vec4), sizeof(float)*4); in TEST_F()
36 EXPECT_EQ(sizeof(vec3), sizeof(float)*3); in TEST_F()
37 EXPECT_EQ(sizeof(vec2), sizeof(float)*2); in TEST_F()
38 EXPECT_EQ(reinterpret_cast<void*>(&v3), reinterpret_cast<void*>(&v4)); in TEST_F()
43 EXPECT_EQ(v0.x, 0); in TEST_F()
44 EXPECT_EQ(v0.y, 0); in TEST_F()
45 EXPECT_EQ(v0.z, 0); in TEST_F()
46 EXPECT_EQ(v0.w, 0); in TEST_F()
49 EXPECT_EQ(v1.x, 1); in TEST_F()
50 EXPECT_EQ(v1.y, 1); in TEST_F()
[all …]
Dquat_test.cpp42 EXPECT_EQ(sizeof(quatd), sizeof(double)*4); in TEST_F()
43 EXPECT_EQ(reinterpret_cast<void*>(&q), reinterpret_cast<void*>(&v)); in TEST_F()
48 EXPECT_EQ(q0.x, 0); in TEST_F()
49 EXPECT_EQ(q0.y, 0); in TEST_F()
50 EXPECT_EQ(q0.z, 0); in TEST_F()
51 EXPECT_EQ(q0.w, 0); in TEST_F()
54 EXPECT_EQ(q1.x, 0); in TEST_F()
55 EXPECT_EQ(q1.y, 0); in TEST_F()
56 EXPECT_EQ(q1.z, 0); in TEST_F()
57 EXPECT_EQ(q1.w, 1); in TEST_F()
[all …]
Dhalf_test.cpp35 EXPECT_EQ(2UL, sizeof(half)); in TEST_F()
38 EXPECT_EQ(0x0000, half( 0.0f).getBits()); in TEST_F()
39 EXPECT_EQ(0x8000, half(-0.0f).getBits()); in TEST_F()
42 EXPECT_EQ(0x7e00, half(NAN).getBits()); in TEST_F()
45 EXPECT_EQ(0x7C00, half( std::numeric_limits<float>::infinity()).getBits()); in TEST_F()
46 EXPECT_EQ(0xFC00, half(-std::numeric_limits<float>::infinity()).getBits()); in TEST_F()
49 EXPECT_EQ(0x3C01, half(1.0009765625).getBits()); in TEST_F()
50 EXPECT_EQ(0xC000, half(-2).getBits()); in TEST_F()
51 EXPECT_EQ(0x0400, half(6.10352e-5).getBits()); in TEST_F()
52 EXPECT_EQ(0x7BFF, half(65504).getBits()); in TEST_F()
[all …]
/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp40 EXPECT_EQ(0, breaker.current()); in TEST()
41 EXPECT_EQ(6, breaker.followingWithLocale(Locale("en-US"), 0)); // after "hello " in TEST()
42 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST()
43 EXPECT_EQ(5, breaker.wordEnd()); in TEST()
44 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
45 EXPECT_EQ(6, breaker.current()); in TEST()
46 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
47 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST()
48 EXPECT_EQ(11, breaker.wordEnd()); in TEST()
49 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
[all …]
DHyphenatorMapTest.cpp151 EXPECT_EQ(AS_HYPHENATOR, lookup("as")); in TEST_F()
152 EXPECT_EQ(BG_HYPHENATOR, lookup("bg")); in TEST_F()
153 EXPECT_EQ(BN_HYPHENATOR, lookup("bn")); in TEST_F()
154 EXPECT_EQ(CU_HYPHENATOR, lookup("cu")); in TEST_F()
155 EXPECT_EQ(CY_HYPHENATOR, lookup("cy")); in TEST_F()
156 EXPECT_EQ(DA_HYPHENATOR, lookup("da")); in TEST_F()
157 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-1901")); in TEST_F()
158 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-1996")); in TEST_F()
159 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-CH-1901")); in TEST_F()
160 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-GB")); in TEST_F()
[all …]
DFontCollectionItemizeTest.cpp113 EXPECT_EQ(0, runs[0].start); in TEST()
114 EXPECT_EQ(5, runs[0].end); in TEST()
115 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
121 EXPECT_EQ(0, runs[0].start); in TEST()
122 EXPECT_EQ(5, runs[0].end); in TEST()
123 EXPECT_EQ(kLatinItalicFont, getFontName(runs[0])); in TEST()
129 EXPECT_EQ(0, runs[0].start); in TEST()
130 EXPECT_EQ(5, runs[0].end); in TEST()
131 EXPECT_EQ(kLatinBoldFont, getFontName(runs[0])); in TEST()
137 EXPECT_EQ(0, runs[0].start); in TEST()
[all …]
DStringPieceTest.cpp26 EXPECT_EQ(nullptr, s.data()); in TEST()
27 EXPECT_EQ(0u, s.size()); in TEST()
33 EXPECT_EQ(0u, s.size()); in TEST()
39 EXPECT_EQ(0u, s.size()); in TEST()
45 EXPECT_EQ(5u, s.size()); in TEST()
47 EXPECT_EQ("abcde", s); in TEST()
53 EXPECT_EQ(5u, s.size()); in TEST()
55 EXPECT_EQ("abcde", s); in TEST()
61 EXPECT_EQ(3u, s.size()); in TEST()
63 EXPECT_EQ("abc", s); in TEST()
[all …]
DHyphenatorTest.cpp53 EXPECT_EQ((size_t)5, result.size()); in TEST()
54 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST()
55 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST()
56 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST()
57 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST()
58 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST()
67 EXPECT_EQ((size_t)5, result.size()); in TEST()
68 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST()
69 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST()
70 EXPECT_EQ(HyphenationType::DONT_BREAK, result[2]); in TEST()
[all …]
/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp70 EXPECT_EQ(-1, validate_apk_path(badprefix1)) in TEST_F()
74 EXPECT_EQ(-1, validate_apk_path(badprefix2)) in TEST_F()
78 EXPECT_EQ(-1, validate_apk_path(badprefix3)) in TEST_F()
82 EXPECT_EQ(-1, validate_apk_path(badprefix4)) in TEST_F()
89 EXPECT_EQ(0, validate_apk_path(internal1)) in TEST_F()
94 EXPECT_EQ(0, validate_apk_path(path2)) in TEST_F()
98 EXPECT_EQ(-1, validate_apk_path(badint1)) in TEST_F()
102 EXPECT_EQ(-1, validate_apk_path(badint2)) in TEST_F()
107 EXPECT_EQ(-1, validate_apk_path(bad_path3)) in TEST_F()
111 EXPECT_EQ(-1, validate_apk_path(bad_path4)) in TEST_F()
[all …]
Dinstalld_cache_test.cpp145 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F()
146 EXPECT_EQ(0, exists("com.example/cache/foo/one")); in TEST_F()
147 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F()
152 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F()
153 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F()
154 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F()
169 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F()
170 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F()
175 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F()
176 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F()
[all …]
/frameworks/base/libs/androidfw/tests/
DAttributeResolution_test.cpp87 EXPECT_EQ(Res_value::TYPE_INT_DEC, values_cursor[STYLE_TYPE]); in TEST()
88 EXPECT_EQ(1u, values_cursor[STYLE_DATA]); in TEST()
89 EXPECT_EQ(0u, values_cursor[STYLE_RESOURCE_ID]); in TEST()
90 EXPECT_EQ(1u, values_cursor[STYLE_ASSET_COOKIE]); in TEST()
91 EXPECT_EQ(0u, values_cursor[STYLE_DENSITY]); in TEST()
92 EXPECT_EQ(public_flag, values_cursor[STYLE_CHANGING_CONFIGURATIONS]); in TEST()
95 EXPECT_EQ(Res_value::TYPE_INT_DEC, values_cursor[STYLE_TYPE]); in TEST()
96 EXPECT_EQ(2u, values_cursor[STYLE_DATA]); in TEST()
97 EXPECT_EQ(0u, values_cursor[STYLE_RESOURCE_ID]); in TEST()
98 EXPECT_EQ(1u, values_cursor[STYLE_ASSET_COOKIE]); in TEST()
[all …]
DAttributeFinder_test.cpp56 EXPECT_EQ(0, finder.Find(0x01010000)); in TEST()
57 EXPECT_EQ(1, finder.Find(0x01010001)); in TEST()
58 EXPECT_EQ(2, finder.Find(0x01010002)); in TEST()
59 EXPECT_EQ(3, finder.Find(0x01010004)); in TEST()
60 EXPECT_EQ(4, finder.Find(0x02010001)); in TEST()
61 EXPECT_EQ(5, finder.Find(0x02010010)); in TEST()
62 EXPECT_EQ(6, finder.Find(0x7f010001)); in TEST()
63 EXPECT_EQ(end, finder.Find(0x7f010002)); in TEST()
70 EXPECT_EQ(6, finder.Find(0x7f010001)); in TEST()
71 EXPECT_EQ(end, finder.Find(0x7f010002)); in TEST()
[all …]
/frameworks/native/services/vr/performanced/
Dperformance_service_tests.cpp67 EXPECT_EQ(0, error); in TEST()
70 EXPECT_EQ(0, error); in TEST()
94 EXPECT_EQ(0, error); in TEST()
105 EXPECT_EQ(-EINVAL, error); in TEST()
109 EXPECT_EQ(-ENOENT, error); in TEST()
113 EXPECT_EQ(0, error); in TEST()
122 EXPECT_EQ(0, error); in TEST()
123 EXPECT_EQ(SCHED_BATCH, sched_getscheduler(0)); in TEST()
126 EXPECT_EQ(0, error); in TEST()
127 EXPECT_EQ(SCHED_FIFO | SCHED_RESET_ON_FORK, sched_getscheduler(0)); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DUserHandleTest.java39 EXPECT_EQ(0, multiuser_get_uid(0, 0)); in testMerge()
40 EXPECT_EQ(1000, multiuser_get_uid(0, 1000)); in testMerge()
41 EXPECT_EQ(10000, multiuser_get_uid(0, 10000)); in testMerge()
42 EXPECT_EQ(50000, multiuser_get_uid(0, 50000)); in testMerge()
43 EXPECT_EQ(1000000, multiuser_get_uid(10, 0)); in testMerge()
44 EXPECT_EQ(1001000, multiuser_get_uid(10, 1000)); in testMerge()
45 EXPECT_EQ(1010000, multiuser_get_uid(10, 10000)); in testMerge()
46 EXPECT_EQ(1050000, multiuser_get_uid(10, 50000)); in testMerge()
51 EXPECT_EQ(0, multiuser_get_user_id(0)); in testSplitUser()
52 EXPECT_EQ(0, multiuser_get_user_id(1000)); in testSplitUser()
[all …]
/frameworks/native/libs/vr/libpdx/
Dserialization_tests.cpp109 EXPECT_EQ(1, tt.a); in TEST()
110 EXPECT_EQ(2.0, tt.b); in TEST()
111 EXPECT_EQ("three", tt.c); in TEST()
112 EXPECT_EQ(TestType::Foo::kBar, tt.d); in TEST()
124 EXPECT_EQ(expected, result); in TEST()
131 EXPECT_EQ(expected, result); in TEST()
144 EXPECT_EQ(expected, result); in TEST()
151 EXPECT_EQ(expected, result); in TEST()
158 EXPECT_EQ(expected, result); in TEST()
165 EXPECT_EQ(expected, result); in TEST()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DOffscreenBufferPoolTests.cpp26 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(1)); in TEST()
27 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(31)); in TEST()
28 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(33)); in TEST()
29 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(64)); in TEST()
30 EXPECT_EQ(1024u, OffscreenBuffer::computeIdealDimension(1000)); in TEST()
35 EXPECT_EQ(49u, layer.viewportWidth); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
36 EXPECT_EQ(149u, layer.viewportHeight); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
38 EXPECT_EQ(64u, layer.texture.width()); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
39 EXPECT_EQ(192u, layer.texture.height()); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
41 EXPECT_EQ(64u * 192u * 4u, layer.getSizeInBytes()); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
[all …]
DTypefaceTests.cpp71 EXPECT_EQ(regular.get(), Typeface::resolveDefault(regular.get())); in TEST()
78 EXPECT_EQ(regular.get(), Typeface::resolveDefault(nullptr)); in TEST()
85 EXPECT_EQ(700, bold->fStyle.weight()); in TEST()
86 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST()
87 EXPECT_EQ(Typeface::kNormal, bold->fAPIStyle); in TEST()
90 EXPECT_EQ(300, light->fStyle.weight()); in TEST()
91 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, light->fStyle.slant()); in TEST()
92 EXPECT_EQ(Typeface::kNormal, light->fAPIStyle); in TEST()
98 EXPECT_EQ(400, normal->fStyle.weight()); in TEST()
99 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST()
[all …]
/frameworks/base/cmds/statsd/tests/
DLogEvent_test.cpp48 EXPECT_EQ((size_t)8, items.size()); in TEST()
49 EXPECT_EQ(1, event1.GetTagId()); in TEST()
52 EXPECT_EQ(0x2010101, item0.mField.getField()); in TEST()
53 EXPECT_EQ(Type::INT, item0.mValue.getType()); in TEST()
54 EXPECT_EQ(1000, item0.mValue.int_value); in TEST()
57 EXPECT_EQ(0x2010182, item1.mField.getField()); in TEST()
58 EXPECT_EQ(Type::STRING, item1.mValue.getType()); in TEST()
59 EXPECT_EQ("tag1", item1.mValue.str_value); in TEST()
62 EXPECT_EQ(0x2018201, item2.mField.getField()); in TEST()
63 EXPECT_EQ(Type::INT, item2.mValue.getType()); in TEST()
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_linear_ramp.cpp35 EXPECT_EQ(8, ramp.getLengthInFrames()); in TEST()
38 EXPECT_EQ(1, ramping); in TEST()
39 EXPECT_EQ(0.0f, levelFrom); in TEST()
40 EXPECT_EQ(4.0f, levelTo); in TEST()
43 EXPECT_EQ(0.0f, destination[0]); in TEST()
44 EXPECT_EQ(1.0f, destination[1]); in TEST()
45 EXPECT_EQ(2.0f, destination[2]); in TEST()
46 EXPECT_EQ(3.0f, destination[3]); in TEST()
49 EXPECT_EQ(1, ramping); in TEST()
50 EXPECT_EQ(4.0f, levelFrom); in TEST()
[all …]
/frameworks/ml/nn/runtime/test/
DTestValidation.cpp127 EXPECT_EQ(ANeuralNetworksModel_create(nullptr), ANEURALNETWORKS_UNEXPECTED_NULL); in TEST_F()
133 EXPECT_EQ(ANeuralNetworksModel_addOperand(nullptr, &floatType), in TEST_F()
135 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, nullptr), ANEURALNETWORKS_UNEXPECTED_NULL); in TEST_F()
145 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &quant8TypeInvalidScale), in TEST_F()
156 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &quant8TypeInvalidZeroPoint), in TEST_F()
166 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &invalidScalarType), in TEST_F()
171 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &floatType), in TEST_F()
178 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &floatType), ANEURALNETWORKS_NO_ERROR); in TEST_F()
180 EXPECT_EQ(ANeuralNetworksModel_setOperandValue(mModel, 0, nullptr, 0), in TEST_F()
187 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &floatType), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
/frameworks/base/cmds/statsd/tests/e2e/
DGaugeMetric_e2e_push_test.cpp101 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
159 EXPECT_EQ(1, reports.reports_size()); in TEST()
160 EXPECT_EQ(1, reports.reports(0).metrics_size()); in TEST()
164 EXPECT_EQ(2, gaugeMetrics.data_size()); in TEST()
167 EXPECT_EQ(android::util::APP_START_OCCURRED, data.dimensions_in_what().field()); in TEST()
168 EXPECT_EQ(1, data.dimensions_in_what().value_tuple().dimensions_value_size()); in TEST()
169 EXPECT_EQ(1 /* uid field */, in TEST()
171 EXPECT_EQ(appUid1, data.dimensions_in_what().value_tuple().dimensions_value(0).value_int()); in TEST()
172 EXPECT_EQ(3, data.bucket_info_size()); in TEST()
174 EXPECT_EQ(2, data.bucket_info(0).atom_size()); in TEST()
[all …]
DDimensionInCondition_e2e_simple_cond_test.cpp84 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
153 EXPECT_EQ(reports.reports_size(), 1); in TEST()
154 EXPECT_EQ(reports.reports(0).metrics_size(), 1); in TEST()
159 EXPECT_EQ(metrics.data_size(), 4); in TEST()
161 EXPECT_EQ(data.dimensions_in_what().field(), in TEST()
163 EXPECT_EQ(data.dimensions_in_what().value_tuple().dimensions_value(0).field(), in TEST()
165 EXPECT_EQ(data.dimensions_in_what().value_tuple().dimensions_value(0).value_str(), in TEST()
169 EXPECT_EQ(data.bucket_info_size(), 1); in TEST()
170 EXPECT_EQ(data.bucket_info(0).duration_nanos(), 40); in TEST()
171 EXPECT_EQ(data.bucket_info(0).start_bucket_elapsed_nanos(), in TEST()
[all …]
DDimensionInCondition_e2e_combination_AND_cond_test.cpp99 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
194 EXPECT_EQ(reports.reports_size(), 1); in TEST()
195 EXPECT_EQ(reports.reports(0).metrics_size(), 1); in TEST()
200 EXPECT_EQ(metrics.data_size(), 4); in TEST()
202 EXPECT_EQ(data.dimensions_in_what().field(), in TEST()
204 EXPECT_EQ(data.dimensions_in_what().value_tuple().dimensions_value(0).field(), in TEST()
206 EXPECT_EQ(data.dimensions_in_what().value_tuple(). in TEST()
212 EXPECT_EQ(data.bucket_info_size(), 1); in TEST()
213 EXPECT_EQ(data.bucket_info(0).duration_nanos(), 40 - 11); in TEST()
214 EXPECT_EQ(data.bucket_info(0).start_bucket_elapsed_nanos(), in TEST()
[all …]
DDimensionInCondition_e2e_combination_OR_cond_test.cpp79 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
141 EXPECT_EQ(reports.reports_size(), 1); in TEST()
142 EXPECT_EQ(reports.reports(0).metrics_size(), 1); in TEST()
146 EXPECT_EQ(countMetrics.data_size(), 7); in TEST()
148 EXPECT_EQ(data.bucket_info_size(), 1); in TEST()
149 EXPECT_EQ(data.bucket_info(0).count(), 1); in TEST()
150 EXPECT_EQ(data.bucket_info(0).start_bucket_elapsed_nanos(), bucketStartTimeNs); in TEST()
151 EXPECT_EQ(data.bucket_info(0).end_bucket_elapsed_nanos(), bucketStartTimeNs + bucketSizeNs); in TEST()
152 EXPECT_EQ(data.dimensions_in_what().field(), android::util::SCREEN_BRIGHTNESS_CHANGED); in TEST()
153 EXPECT_EQ(data.dimensions_in_what().value_tuple().dimensions_value_size(), 1); in TEST()
[all …]
/frameworks/rs/rsov/compiler/spirit/
Dmodule_test.cpp69 EXPECT_EQ(5, countEntity<AccessChainInst>(m)); in TEST_F()
70 EXPECT_EQ(2, countEntity<BitcastInst>(m)); in TEST_F()
71 EXPECT_EQ(1, countEntity<CapabilityInst>(m)); in TEST_F()
72 EXPECT_EQ(1, countEntity<CompositeConstructInst>(m)); in TEST_F()
73 EXPECT_EQ(5, countEntity<ConstantInst>(m)); in TEST_F()
74 EXPECT_EQ(1, countEntity<ConstantCompositeInst>(m)); in TEST_F()
75 EXPECT_EQ(11, countEntity<DecorateInst>(m)); in TEST_F()
76 EXPECT_EQ(1, countEntity<DotInst>(m)); in TEST_F()
77 EXPECT_EQ(1, countEntity<EntryPointInst>(m)); in TEST_F()
78 EXPECT_EQ(1, countEntity<ExecutionModeInst>(m)); in TEST_F()
[all …]

12345678910