Home
last modified time | relevance | path

Searched refs:ASSERT_EQ (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp48 ASSERT_EQ(buffer[0], 2); in TEST_F()
49 ASSERT_EQ(result, buffer + 1); in TEST_F()
54 ASSERT_EQ(buffer[0], 127); in TEST_F()
55 ASSERT_EQ(result, buffer + 1); in TEST_F()
60 ASSERT_EQ(buffer[0], 0 + 0x80); in TEST_F()
61 ASSERT_EQ(buffer[1], 1); in TEST_F()
62 ASSERT_EQ(result, buffer + 2); in TEST_F()
67 ASSERT_EQ(buffer[0], 1 + 0x80); in TEST_F()
68 ASSERT_EQ(buffer[1], 1); in TEST_F()
69 ASSERT_EQ(result, buffer + 2); in TEST_F()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp47 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
55 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
57 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
61 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
62 ASSERT_EQ(5, coords.values[0]); in TEST_F()
63 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F()
65 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
67 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
71 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F()
72 ASSERT_EQ(0x5000000000000000ULL, coords.bits); in TEST_F()
[all …]
DInputWindow_test.cpp35 ASSERT_EQ(OK, i.writeToParcel(&p)); in TEST()
82 ASSERT_EQ(i.token, i2.token); in TEST()
83 ASSERT_EQ(i.id, i2.id); in TEST()
84 ASSERT_EQ(i.name, i2.name); in TEST()
85 ASSERT_EQ(i.flags, i2.flags); in TEST()
86 ASSERT_EQ(i.type, i2.type); in TEST()
87 ASSERT_EQ(i.dispatchingTimeout, i2.dispatchingTimeout); in TEST()
88 ASSERT_EQ(i.frameLeft, i2.frameLeft); in TEST()
89 ASSERT_EQ(i.frameTop, i2.frameTop); in TEST()
90 ASSERT_EQ(i.frameRight, i2.frameRight); in TEST()
[all …]
DVerifiedInputEvent_test.cpp60 ASSERT_EQ(VerifiedInputEvent::Type::KEY, verified.type); in TEST()
62 ASSERT_EQ(event.getDeviceId(), verified.deviceId); in TEST()
63 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
64 ASSERT_EQ(event.getSource(), verified.source); in TEST()
65 ASSERT_EQ(event.getDisplayId(), verified.displayId); in TEST()
67 ASSERT_EQ(event.getAction(), verified.action); in TEST()
68 ASSERT_EQ(event.getDownTime(), verified.downTimeNanos); in TEST()
69 ASSERT_EQ(event.getFlags() & VERIFIED_KEY_EVENT_FLAGS, verified.flags); in TEST()
70 ASSERT_EQ(event.getKeyCode(), verified.keyCode); in TEST()
71 ASSERT_EQ(event.getScanCode(), verified.scanCode); in TEST()
[all …]
/frameworks/base/libs/androidfw/tests/
DCursorWindow_test.cpp30 ASSERT_EQ(w->setNumColumns(3), OK); \
31 ASSERT_EQ(w->allocRow(), OK); \
32 ASSERT_EQ(w->allocRow(), OK); \
33 ASSERT_EQ(w->allocRow(), OK);
47 ASSERT_EQ(w->getNumRows(), 0); in TEST()
48 ASSERT_EQ(w->getNumColumns(), 0); in TEST()
49 ASSERT_EQ(w->size(), 1 << 10); in TEST()
50 ASSERT_EQ(w->freeSpace(), 1 << 10); in TEST()
57 ASSERT_EQ(w->getNumColumns(), 0); in TEST()
58 ASSERT_EQ(w->setNumColumns(4), OK); in TEST()
[all …]
/frameworks/av/services/mediametrics/tests/
Dmediametrics_tests.cpp54 ASSERT_EQ(true, android::mediametrics::startsWith(s, "te")); in TEST()
55 ASSERT_EQ(true, android::mediametrics::startsWith(s, std::string("tes"))); in TEST()
56 ASSERT_EQ(false, android::mediametrics::startsWith(s, "ts")); in TEST()
57 ASSERT_EQ(false, android::mediametrics::startsWith(s, std::string("est"))); in TEST()
64 ASSERT_EQ(false, check); in TEST()
66 ASSERT_EQ(true, check); in TEST()
72 ASSERT_EQ('1', s->at(0)); in TEST()
73 ASSERT_EQ('2', s->at(1)); in TEST()
75 ASSERT_EQ('4', s->at(3)); in TEST()
78 ASSERT_EQ('3', s2->operator[](0)); // s2[0] == '3' in TEST()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/
DUtils_test.cpp33 ASSERT_EQ(AStringUtils::Compare("Audio", "AudioExt", 5, false), 0); in TEST_F()
34 ASSERT_EQ(AStringUtils::Compare("Audio", "audiOExt", 5, true), 0); in TEST_F()
108 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "", LVL(5)), LVL(5)); in TEST_F()
109 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", " \t \n ", LVL(2)), LVL(2)); in TEST_F()
110 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3", LVL(5)), LVL(3)); in TEST_F()
111 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3:*deo", LVL(5)), LVL(3)); in TEST_F()
112 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F()
114 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3:*deo,2:vid*", LVL(5)), LVL(2)); in TEST_F()
115 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F()
117 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureMultiContextGL_test.cpp29 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
34 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
39 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
40 ASSERT_EQ(INVALID_OPERATION, mST->updateTexImage()); in TEST_F()
44 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
49 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
52 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
60 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
65 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
69 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
[all …]
DBufferQueue_test.cpp65 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount()
86 ASSERT_EQ(timestamp, item.mTimestamp); in testBufferItem()
87 ASSERT_EQ(isAutoTimestamp, item.mIsAutoTimestamp); in testBufferItem()
88 ASSERT_EQ(dataSpace, item.mDataSpace); in testBufferItem()
89 ASSERT_EQ(crop, item.mCrop); in testBufferItem()
90 ASSERT_EQ(static_cast<uint32_t>(scalingMode), item.mScalingMode); in testBufferItem()
91 ASSERT_EQ(transform, item.mTransform); in testBufferItem()
92 ASSERT_EQ(fence, item.mFence); in testBufferItem()
138 ASSERT_EQ(OK, mConsumer->consumerConnect(mc, false)); in TEST_F()
140 ASSERT_EQ(OK, in TEST_F()
[all …]
DSurfaceTextureClient_test.cpp60 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
65 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
71 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
79 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
83 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
87 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
147 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
153 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
169 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
217 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
[all …]
DStreamSplitter_test.cpp67 ASSERT_EQ(OK, outputConsumer->consumerConnect(new FakeListener, false)); in TEST_F()
71 ASSERT_EQ(OK, status); in TEST_F()
72 ASSERT_EQ(OK, splitter->addOutput(outputProducer)); in TEST_F()
75 ASSERT_EQ(OK, outputProducer->allowAllocation(false)); in TEST_F()
78 ASSERT_EQ(OK, in TEST_F()
85 ASSERT_EQ(IGraphicBufferProducer::BUFFER_NEEDS_REALLOCATION, in TEST_F()
88 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
91 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
94 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
99 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_histogram.cpp34 ASSERT_EQ(kNumBins, histogram.getNumBinsInRange()); in TEST()
38 ASSERT_EQ(0, histogram.getCount(i)); in TEST()
40 ASSERT_EQ(0, histogram.getCountBelowRange()); in TEST()
41 ASSERT_EQ(0, histogram.getCountAboveRange()); in TEST()
42 ASSERT_EQ(0, histogram.getCount()); in TEST()
51 ASSERT_EQ(2, histogram.getCount(2)); // For items 27 and 23 in TEST()
52 ASSERT_EQ(3, histogram.getLastItemNumber(2)); // Item 23 was the 0,1,2,3th item added. in TEST()
53 ASSERT_EQ(1, histogram.getCount(5)); // For item 53 in TEST()
54 ASSERT_EQ(1, histogram.getLastItemNumber(5)); // item 53 was the second item added. in TEST()
55 ASSERT_EQ(1, histogram.getCount(17)); // For item 171 in TEST()
[all …]
/frameworks/native/libs/binder/rust/tests/
Dserialization.cpp96 ASSERT_EQ(data.writeBool(true), OK); in TEST_F()
97 ASSERT_EQ(data.writeBool(false), OK); in TEST_F()
98 ASSERT_EQ(data.writeBoolVector(bools), OK); in TEST_F()
99 ASSERT_EQ(data.writeBoolVector(nullopt), OK); in TEST_F()
102 ASSERT_EQ(m_server->transact(TEST_BOOL, data, &reply), OK); in TEST_F()
106 ASSERT_EQ(reply.readBool(), true); in TEST_F()
107 ASSERT_EQ(reply.readBool(), false); in TEST_F()
108 ASSERT_EQ(reply.readBoolVector(&read_bools), OK); in TEST_F()
109 ASSERT_EQ(read_bools, bools); in TEST_F()
110 ASSERT_EQ(reply.readBoolVector(&maybe_bools), OK); in TEST_F()
[all …]
/frameworks/native/opengl/libs/EGL/
DBlobCache_test.cpp53 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); in TEST_F()
54 ASSERT_EQ('e', buf[0]); in TEST_F()
55 ASSERT_EQ('f', buf[1]); in TEST_F()
56 ASSERT_EQ('g', buf[2]); in TEST_F()
57 ASSERT_EQ('h', buf[3]); in TEST_F()
64 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); in TEST_F()
65 ASSERT_EQ('c', buf[0]); in TEST_F()
66 ASSERT_EQ('d', buf[1]); in TEST_F()
67 ASSERT_EQ(size_t(2), mBC->get("ef", 2, buf, 2)); in TEST_F()
68 ASSERT_EQ('g', buf[0]); in TEST_F()
[all …]
/frameworks/minikin/tests/unittest/
DBufferTest.cpp43 ASSERT_EQ(fakeWriter.size(), 20u); in TEST()
48 ASSERT_EQ(writer.size(), buffer.size()); in TEST()
51 ASSERT_EQ(reader.data(), buffer.data()); in TEST()
52 ASSERT_EQ(reader.pos(), 0u); in TEST()
53 ASSERT_EQ(reader.read<uint8_t>(), 0xABu); in TEST()
54 ASSERT_EQ(reader.pos(), 1u); in TEST()
55 ASSERT_EQ(reader.read<uint16_t>(), 0xCDEFu); in TEST()
56 ASSERT_EQ(reader.pos(), 4u); in TEST()
57 ASSERT_EQ(reader.read<uint8_t>(), 0x01u); in TEST()
58 ASSERT_EQ(reader.pos(), 5u); in TEST()
[all …]
/frameworks/base/cmds/idmap2/tests/
DPoliciesTests.cpp35 ASSERT_EQ(*bitmask1, PolicyFlags::SYSTEM_PARTITION); in TEST()
39 ASSERT_EQ(*bitmask2, PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST()
43 ASSERT_EQ(*bitmask3, PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST()
48 ASSERT_EQ(*bitmask4, PolicyFlags::ODM_PARTITION | PolicyFlags::OEM_PARTITION | in TEST()
54 ASSERT_EQ(*bitmask5, PolicyFlags::SYSTEM_PARTITION); in TEST()
73 ASSERT_EQ(*bitmask11, PolicyFlags::SIGNATURE); in TEST()
77 ASSERT_EQ(*bitmask12, PolicyFlags::ACTOR_SIGNATURE); in TEST()
82 ASSERT_EQ(1, policies1.size()); in TEST()
83 ASSERT_EQ(policies1[0], "public"); in TEST()
87 ASSERT_EQ(2, policies2.size()); in TEST()
[all …]
DBinaryStreamVisitorTests.cpp51 ASSERT_EQ(idmap1->GetHeader()->GetFulfilledPolicies(), in TEST()
53 ASSERT_EQ(idmap1->GetHeader()->GetEnforceOverlayable(), in TEST()
55 ASSERT_EQ(idmap1->GetHeader()->GetTargetPath(), idmap2->GetHeader()->GetTargetPath()); in TEST()
56 ASSERT_EQ(idmap1->GetHeader()->GetTargetCrc(), idmap2->GetHeader()->GetTargetCrc()); in TEST()
57 ASSERT_EQ(idmap1->GetHeader()->GetTargetPath(), idmap2->GetHeader()->GetTargetPath()); in TEST()
58 ASSERT_EQ(idmap1->GetData().size(), 1U); in TEST()
59 ASSERT_EQ(idmap1->GetData().size(), idmap2->GetData().size()); in TEST()
62 ASSERT_EQ(data_blocks1.size(), 1U); in TEST()
67 ASSERT_EQ(data_blocks2.size(), 1U); in TEST()
73 ASSERT_EQ(target_entries1.size(), target_entries2.size()); in TEST()
[all …]
DXmlParserTests.cpp58 ASSERT_EQ(root_iter->event(), XmlParser::Event::START_TAG); in TEST()
59 ASSERT_EQ(root_iter->name(), "a"); in TEST()
62 ASSERT_EQ(a_iter->event(), XmlParser::Event::START_TAG); in TEST()
63 ASSERT_EQ(a_iter->name(), "b"); in TEST()
66 ASSERT_EQ(c_iter->event(), XmlParser::Event::START_TAG); in TEST()
67 ASSERT_EQ(c_iter->name(), "c"); in TEST()
70 ASSERT_EQ(c_iter->event(), XmlParser::Event::END_TAG); in TEST()
71 ASSERT_EQ(c_iter, a_iter.end()); in TEST()
74 ASSERT_EQ(a_iter->event(), XmlParser::Event::START_TAG); in TEST()
75 ASSERT_EQ(a_iter->name(), "d"); in TEST()
[all …]
DResultTests.cpp42 ASSERT_EQ(e.GetMessage(), "resid=0x7f010002"); in TEST()
47 ASSERT_EQ(e1.GetMessage(), "foo"); in TEST()
50 ASSERT_EQ(e2.GetMessage(), "foo -> bar"); in TEST()
53 ASSERT_EQ(e3.GetMessage(), "foo -> bar"); in TEST()
56 ASSERT_EQ(e4.GetMessage(), "foo -> bar -> 01"); in TEST()
67 ASSERT_EQ(*r2, 42U); in TEST()
71 ASSERT_EQ(*r3, 42U); in TEST()
79 ASSERT_EQ(*r1, 42U); in TEST()
84 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()
91 ASSERT_EQ(*r1, 42U); in TEST()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1268 ASSERT_EQ(ViewportType::INTERNAL, internalViewport->type); in TEST_F()
1273 ASSERT_EQ(uniqueId, internalViewport->uniqueId); in TEST_F()
1312 ASSERT_EQ(internalUniqueId, internalViewport->uniqueId); in TEST_F()
1318 ASSERT_EQ(externalUniqueId, externalViewport->uniqueId); in TEST_F()
1324 ASSERT_EQ(ViewportType::VIRTUAL, virtualViewport1->type); in TEST_F()
1325 ASSERT_EQ(virtualUniqueId1, virtualViewport1->uniqueId); in TEST_F()
1326 ASSERT_EQ(virtualDisplayId1, virtualViewport1->displayId); in TEST_F()
1332 ASSERT_EQ(ViewportType::VIRTUAL, virtualViewport2->type); in TEST_F()
1333 ASSERT_EQ(virtualUniqueId2, virtualViewport2->uniqueId); in TEST_F()
1334 ASSERT_EQ(virtualDisplayId2, virtualViewport2->displayId); in TEST_F()
[all …]
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_named_buffer-test.cpp19 ASSERT_EQ(0, ret1); in TEST()
24 ASSERT_EQ(0, ret2); in TEST()
29 ASSERT_EQ(0, e1); in TEST()
34 ASSERT_EQ(0, e2); in TEST()
41 ASSERT_EQ(desc1.width, 10u); in TEST()
42 ASSERT_EQ(desc1.height, 1u); in TEST()
43 ASSERT_EQ(desc1.layers, 1u); in TEST()
44 ASSERT_EQ(desc1.format, HAL_PIXEL_FORMAT_BLOB); in TEST()
45 ASSERT_EQ(desc1.usage, 0u); in TEST()
46 ASSERT_EQ(desc2.width, 10u); in TEST()
[all …]
/frameworks/native/opengl/tests/EGLTest/
Degl_cache_test.cpp50 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); in TEST_F()
51 ASSERT_EQ(0xee, buf[0]); in TEST_F()
52 ASSERT_EQ(0xee, buf[1]); in TEST_F()
53 ASSERT_EQ(0xee, buf[2]); in TEST_F()
54 ASSERT_EQ(0xee, buf[3]); in TEST_F()
61 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); in TEST_F()
62 ASSERT_EQ('e', buf[0]); in TEST_F()
63 ASSERT_EQ('f', buf[1]); in TEST_F()
64 ASSERT_EQ('g', buf[2]); in TEST_F()
65 ASSERT_EQ('h', buf[3]); in TEST_F()
[all …]
DEGL_test.cpp77 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
82 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp()
89 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TearDown()
90 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TearDown()
106 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TEST_F()
107 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
113 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TEST_F()
114 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
116 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TEST_F()
117 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerState_test.cpp49 ASSERT_EQ(args.pixelFormat, args2.pixelFormat); in TEST()
50 ASSERT_EQ(args.sourceCrop, args2.sourceCrop); in TEST()
51 ASSERT_EQ(args.frameScaleX, args2.frameScaleX); in TEST()
52 ASSERT_EQ(args.frameScaleY, args2.frameScaleY); in TEST()
53 ASSERT_EQ(args.captureSecureLayers, args2.captureSecureLayers); in TEST()
54 ASSERT_EQ(args.displayToken, args2.displayToken); in TEST()
55 ASSERT_EQ(args.width, args2.width); in TEST()
56 ASSERT_EQ(args.height, args2.height); in TEST()
57 ASSERT_EQ(args.useIdentityTransform, args2.useIdentityTransform); in TEST()
58 ASSERT_EQ(args.grayscale, args2.grayscale); in TEST()
[all …]
/frameworks/av/media/libstagefright/timedtext/test/
DTimedTextUnitTest.cpp104 ASSERT_EQ(mEleStream.is_open(), true) << "Failed to open " << GetParam(); in SetUp()
108 ASSERT_EQ(status, 0) << "Failed to get properties of input file: " << GetParam(); in SetUp()
131 ASSERT_EQ(mEleStream.gcount(), mFileSize); in TEST_P()
137 ASSERT_EQ(status, 0) << "getParcelOfDescriptions returned error"; in TEST_P()
143 ASSERT_EQ(key, KEY_LOCAL_SETTING) << "Parcel has invalid key"; in TEST_P()
146 ASSERT_EQ(key, KEY_START_TIME) << "Parcel has invalid start time key"; in TEST_P()
147 ASSERT_EQ(parcel.readInt32(), kStartTimeMs) << "Parcel has invalid timings"; in TEST_P()
150 ASSERT_EQ(key, KEY_STRUCT_TEXT) << "Parcel has invalid struct text key"; in TEST_P()
151 ASSERT_EQ(parcel.readInt32(), mFileSize) << "Parcel has invalid text data"; in TEST_P()
153 ASSERT_EQ(fileSize, mFileSize) << "Parcel has invalid file size value"; in TEST_P()
[all …]

12345678910>>...14