/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 40 ASSERT_EQ(0ULL, coords.bits); in TEST_F() 49 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 51 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F() 55 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F() 56 ASSERT_EQ(5, coords.values[0]); in TEST_F() 57 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F() 59 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 61 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F() 65 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F() 66 ASSERT_EQ(0x5000000000000000ULL, coords.bits); in TEST_F() [all …]
|
D | InputWindow_test.cpp | 33 ASSERT_EQ(OK, i.write(p)); in TEST() 74 ASSERT_EQ(i.token, i2.token); in TEST() 75 ASSERT_EQ(i.name, i2.name); in TEST() 76 ASSERT_EQ(i.layoutParamsFlags, i2.layoutParamsFlags); in TEST() 77 ASSERT_EQ(i.layoutParamsType, i2.layoutParamsType); in TEST() 78 ASSERT_EQ(i.dispatchingTimeout, i2.dispatchingTimeout); in TEST() 79 ASSERT_EQ(i.frameLeft, i2.frameLeft); in TEST() 80 ASSERT_EQ(i.frameTop, i2.frameTop); in TEST() 81 ASSERT_EQ(i.frameRight, i2.frameRight); in TEST() 82 ASSERT_EQ(i.frameBottom, i2.frameBottom); in TEST() [all …]
|
D | TouchVideoFrame_test.cpp | 33 ASSERT_EQ(data, frame.getData()); in TEST() 34 ASSERT_EQ(height, frame.getHeight()); in TEST() 35 ASSERT_EQ(width, frame.getWidth()); in TEST() 36 ASSERT_EQ(TIMESTAMP.tv_sec, frame.getTimestamp().tv_sec); in TEST() 37 ASSERT_EQ(TIMESTAMP.tv_usec, frame.getTimestamp().tv_usec); in TEST() 47 ASSERT_EQ(frame, identicalFrame); in TEST() 76 ASSERT_EQ(frame, frameRotated); in TEST() 83 ASSERT_EQ(frame, frameRotated); in TEST() 90 ASSERT_EQ(frame, frameRotated); in TEST() 97 ASSERT_EQ(frame, frameRotated); in TEST() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 48 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/av/media/libstagefright/foundation/tests/ |
D | Utils_test.cpp | 33 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/ |
D | BufferQueue_test.cpp | 65 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(dc, false)); in TEST_F() 140 ASSERT_EQ(OK, in TEST_F() [all …]
|
D | SurfaceTextureMultiContextGL_test.cpp | 29 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 …]
|
D | StreamSplitter_test.cpp | 67 ASSERT_EQ(OK, outputConsumer->consumerConnect(new DummyListener, 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, inputProducer->connect(new DummyProducerListener, in TEST_F() 84 ASSERT_EQ(IGraphicBufferProducer::BUFFER_NEEDS_REALLOCATION, in TEST_F() 87 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F() 90 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F() 93 ASSERT_EQ(OK, buffer->unlock()); in TEST_F() 98 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F() [all …]
|
D | SurfaceTextureClient_test.cpp | 62 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 67 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 73 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 81 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 85 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 89 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 149 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 155 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 171 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 219 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() [all …]
|
D | SurfaceTextureGLToGL_test.cpp | 34 ASSERT_EQ(OK, mSTC->setMaxDequeuedBufferCount(2)); in TEST_F() 41 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 58 ASSERT_EQ(texWidth, buf->getHeight()); in TEST_F() 59 ASSERT_EQ(texHeight, buf->getWidth()); in TEST_F() 61 ASSERT_EQ(texWidth, buf->getWidth()); in TEST_F() 62 ASSERT_EQ(texHeight, buf->getHeight()); in TEST_F() 75 ASSERT_EQ((uint32_t) 0, mST->getCurrentTransform()); in TEST_F() 76 ASSERT_EQ(texWidth, buf->getWidth()); in TEST_F() 77 ASSERT_EQ(texHeight, buf->getHeight()); in TEST_F() 88 ASSERT_EQ(OK, mSTC->setMaxDequeuedBufferCount(2)); in TEST_F() [all …]
|
D | TextureRenderer.cpp | 61 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in SetUp() 64 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in SetUp() 67 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in SetUp() 82 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 84 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 88 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 90 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 98 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 101 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 104 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() [all …]
|
/frameworks/base/cmds/idmap2/tests/ |
D | IdmapTests.cpp | 40 ASSERT_EQ(Idmap::CanonicalIdmapPathFor("/foo", "/vendor/overlay/bar.apk"), in TEST() 49 ASSERT_EQ(header->GetMagic(), 0x504d4449U); in TEST() 50 ASSERT_EQ(header->GetVersion(), 0x01U); in TEST() 51 ASSERT_EQ(header->GetTargetCrc(), 0x1234U); in TEST() 52 ASSERT_EQ(header->GetOverlayCrc(), 0x5678U); in TEST() 53 ASSERT_EQ(header->GetTargetPath().to_string(), "target.apk"); in TEST() 54 ASSERT_EQ(header->GetOverlayPath().to_string(), "overlay.apk"); in TEST() 76 ASSERT_EQ(header->GetTargetPackageId(), 0x7fU); in TEST() 77 ASSERT_EQ(header->GetTypeCount(), 2U); in TEST() 88 ASSERT_EQ(data->GetTargetTypeId(), 0x02U); in TEST() [all …]
|
D | ResultTests.cpp | 42 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 …]
|
D | PoliciesTests.cpp | 31 ASSERT_EQ(*bitmask1, PolicyFlags::POLICY_SYSTEM_PARTITION); in TEST() 35 ASSERT_EQ(*bitmask2, PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_VENDOR_PARTITION); in TEST() 39 ASSERT_EQ(*bitmask3, PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_VENDOR_PARTITION); in TEST() 43 ASSERT_EQ(*bitmask4, PolicyFlags::POLICY_ODM_PARTITION | PolicyFlags::POLICY_OEM_PARTITION | in TEST() 50 ASSERT_EQ(*bitmask5, PolicyFlags::POLICY_SYSTEM_PARTITION); in TEST() 70 ASSERT_EQ(1, policies1.size()); in TEST() 71 ASSERT_EQ(policies1[0], "public"); in TEST() 75 ASSERT_EQ(2, policies2.size()); in TEST() 76 ASSERT_EQ(policies2[0], "system"); in TEST() 77 ASSERT_EQ(policies2[1], "vendor"); in TEST() [all …]
|
D | CommandLineOptionsTests.cpp | 66 ASSERT_EQ(foo, "FOO"); in TEST() 67 ASSERT_EQ(bar, "BAR"); in TEST() 78 ASSERT_EQ(foo, "SECOND"); in TEST() 86 ASSERT_EQ(args.size(), 2U); in TEST() 87 ASSERT_EQ(args[0], "FOO"); in TEST() 88 ASSERT_EQ(args[1], "BAR"); in TEST() 99 ASSERT_EQ(foo, "FOO"); in TEST() 100 ASSERT_EQ(bar, "BAR"); in TEST() 104 ASSERT_EQ(foo, "BAZ"); in TEST() 124 ASSERT_EQ(foo.size(), 1U); in TEST() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | BlobCache_test.cpp | 58 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); in TEST_F() 59 ASSERT_EQ('e', buf[0]); in TEST_F() 60 ASSERT_EQ('f', buf[1]); in TEST_F() 61 ASSERT_EQ('g', buf[2]); in TEST_F() 62 ASSERT_EQ('h', buf[3]); in TEST_F() 69 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); in TEST_F() 70 ASSERT_EQ('c', buf[0]); in TEST_F() 71 ASSERT_EQ('d', buf[1]); in TEST_F() 72 ASSERT_EQ(size_t(2), mBC->get("ef", 2, buf, 2)); in TEST_F() 73 ASSERT_EQ('g', buf[0]); in TEST_F() [all …]
|
/frameworks/ml/nn/driver/cache/BlobCache/ |
D | BlobCache_test.cpp | 72 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); in TEST_P() 73 ASSERT_EQ('e', buf[0]); in TEST_P() 74 ASSERT_EQ('f', buf[1]); in TEST_P() 75 ASSERT_EQ('g', buf[2]); in TEST_P() 76 ASSERT_EQ('h', buf[3]); in TEST_P() 83 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); in TEST_P() 84 ASSERT_EQ('c', buf[0]); in TEST_P() 85 ASSERT_EQ('d', buf[1]); in TEST_P() 86 ASSERT_EQ(size_t(2), mBC->get("ef", 2, buf, 2)); in TEST_P() 87 ASSERT_EQ('g', buf[0]); in TEST_P() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 509 ASSERT_EQ(size_t(0), mEvents.size()) in assertQueueIsEmpty() 1090 ASSERT_EQ(ViewportType::VIEWPORT_INTERNAL, internalViewport->type); in TEST_F() 1095 ASSERT_EQ(uniqueId, internalViewport->uniqueId); in TEST_F() 1130 ASSERT_EQ(internalUniqueId, internalViewport->uniqueId); in TEST_F() 1136 ASSERT_EQ(externalUniqueId, externalViewport->uniqueId); in TEST_F() 1142 ASSERT_EQ(ViewportType::VIEWPORT_VIRTUAL, virtualViewport1->type); in TEST_F() 1143 ASSERT_EQ(virtualUniqueId1, virtualViewport1->uniqueId); in TEST_F() 1144 ASSERT_EQ(virtualDisplayId1, virtualViewport1->displayId); in TEST_F() 1150 ASSERT_EQ(ViewportType::VIEWPORT_VIRTUAL, virtualViewport2->type); in TEST_F() 1151 ASSERT_EQ(virtualUniqueId2, virtualViewport2->uniqueId); in TEST_F() [all …]
|
/frameworks/ml/nn/driver/cache/nnCache/ |
D | nnCache_test.cpp | 65 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); in TEST_P() 66 ASSERT_EQ(0xee, buf[0]); in TEST_P() 67 ASSERT_EQ(0xee, buf[1]); in TEST_P() 68 ASSERT_EQ(0xee, buf[2]); in TEST_P() 69 ASSERT_EQ(0xee, buf[3]); in TEST_P() 76 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); in TEST_P() 77 ASSERT_EQ('e', buf[0]); in TEST_P() 78 ASSERT_EQ('f', buf[1]); in TEST_P() 79 ASSERT_EQ('g', buf[2]); in TEST_P() 80 ASSERT_EQ('h', buf[3]); in TEST_P() [all …]
|
/frameworks/native/opengl/tests/EGLTest/ |
D | egl_cache_test.cpp | 50 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 …]
|
D | EGL_test.cpp | 78 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 83 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 90 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TearDown() 91 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TearDown() 107 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TEST_F() 108 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 114 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TEST_F() 115 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 117 ASSERT_EQ(EGL_UNSIGNED_TRUE, success); in TEST_F() 118 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() [all …]
|
/frameworks/native/libs/vr/libdvr/tests/ |
D | dvr_named_buffer-test.cpp | 19 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 …]
|
D | dvr_buffer_queue-test.cpp | 74 ASSERT_EQ(0, ret); in TEST_F() 84 ASSERT_EQ(0, ret); in TEST_F() 89 ASSERT_EQ(kQueueCapacity, capacity); in TEST_F() 96 ASSERT_EQ(0, ret); in TEST_F() 101 ASSERT_EQ(0, ret); in TEST_F() 111 ASSERT_EQ(0, ret); in TEST_F() 117 ASSERT_EQ(0, ret); in TEST_F() 121 ASSERT_EQ(0, ret); in TEST_F() 133 ASSERT_EQ(ret, 0); in TEST_F() 142 ASSERT_EQ(ret, 0); in TEST_F() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 41 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 50 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 78 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 89 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 97 ASSERT_EQ(basic::R::string::test1, resID); in TEST() 106 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 109 ASSERT_EQ(NO_ERROR, theme.applyStyle(basic::R::style::Theme1)); in TEST() 115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 116 ASSERT_EQ(uint32_t(100), val.data); in TEST() 120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() [all …]
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 105 ASSERT_EQ(-1, fence.get()); in TEST_F() 111 ASSERT_EQ(0, composer_view_.display_refresh_count()); in TEST_F() 113 ASSERT_EQ(1, composer_view_.display_refresh_count()); in TEST_F() 117 ASSERT_EQ(-1, fence.get()); in TEST_F() 145 ASSERT_EQ(frame.display_id, received_frame.display_id); in TEST_F() 146 ASSERT_EQ(frame.display_width, received_frame.display_width); in TEST_F() 147 ASSERT_EQ(frame.display_height, received_frame.display_height); in TEST_F() 148 ASSERT_EQ(frame.removed, received_frame.removed); in TEST_F() 149 ASSERT_EQ(1u, received_frame.layers.size()); in TEST_F() 150 ASSERT_EQ(frame.layers[0].id, received_frame.layers[0].id); in TEST_F() [all …]
|