/frameworks/native/libs/graphicsenv/ |
D | GpuStatsInfo.cpp | 29 if ((status = parcel->writeUtf8AsUtf16(driverPackageName)) != OK) return status; in writeToParcel() 30 if ((status = parcel->writeUtf8AsUtf16(driverVersionName)) != OK) return status; in writeToParcel() 31 if ((status = parcel->writeUint64(driverVersionCode)) != OK) return status; in writeToParcel() 32 if ((status = parcel->writeInt64(driverBuildTime)) != OK) return status; in writeToParcel() 33 if ((status = parcel->writeInt32(glLoadingCount)) != OK) return status; in writeToParcel() 34 if ((status = parcel->writeInt32(glLoadingFailureCount)) != OK) return status; in writeToParcel() 35 if ((status = parcel->writeInt32(vkLoadingCount)) != OK) return status; in writeToParcel() 36 if ((status = parcel->writeInt32(vkLoadingFailureCount)) != OK) return status; in writeToParcel() 37 if ((status = parcel->writeInt32(vulkanVersion)) != OK) return status; in writeToParcel() 38 if ((status = parcel->writeInt32(cpuVulkanVersion)) != OK) return status; in writeToParcel() [all …]
|
D | IGpuService.cpp | 117 if (error == OK) { in getUpdatableDriverPath() 136 if ((status = data.readUtf8FromUtf16(&driverPackageName)) != OK) return status; in onTransact() 139 if ((status = data.readUtf8FromUtf16(&driverVersionName)) != OK) return status; in onTransact() 142 if ((status = data.readUint64(&driverVersionCode)) != OK) return status; in onTransact() 145 if ((status = data.readInt64(&driverBuildTime)) != OK) return status; in onTransact() 148 if ((status = data.readUtf8FromUtf16(&appPackageName)) != OK) return status; in onTransact() 151 if ((status = data.readInt32(&vulkanVersion)) != OK) return status; in onTransact() 154 if ((status = data.readInt32(&driver)) != OK) return status; in onTransact() 157 if ((status = data.readBool(&isDriverLoaded)) != OK) return status; in onTransact() 160 if ((status = data.readInt64(&driverLoadingTime)) != OK) return status; in onTransact() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiCecMessageValidatorTest.java | 26 import static com.android.server.hdmi.HdmiCecMessageValidator.OK; 69 assertMessageValidity("F4:91").isEqualTo(OK); in isValid_unregisteredSource() 71 assertMessageValidity("FF:85").isEqualTo(OK); in isValid_unregisteredSource() 75 assertMessageValidity("FF:80:00:00:10:00").isEqualTo(OK); in isValid_unregisteredSource() 78 assertMessageValidity("FF:81:10:00").isEqualTo(OK); in isValid_unregisteredSource() 81 assertMessageValidity("F4:36").isEqualTo(OK); in isValid_unregisteredSource() 82 assertMessageValidity("FF:36").isEqualTo(OK); in isValid_unregisteredSource() 85 assertMessageValidity("FF:84:10:00:04").isEqualTo(OK); in isValid_unregisteredSource() 86 assertMessageValidity("FF:82:10:00").isEqualTo(OK); in isValid_unregisteredSource() 91 assertMessageValidity("04:8F").isEqualTo(OK); in isValid_giveDevicePowerStatus() [all …]
|
/frameworks/av/camera/ |
D | CameraSessionStats.cpp | 37 status_t err = OK; in readFromParcel() 40 if ((err = parcel->readInt32(&width)) != OK) { in readFromParcel() 46 if ((err = parcel->readInt32(&height)) != OK) { in readFromParcel() 52 if ((err = parcel->readInt32(&format)) != OK) { in readFromParcel() 58 if ((err = parcel->readFloat(&maxPreviewFps)) != OK) { in readFromParcel() 64 if ((err = parcel->readInt32(&dataSpace)) != OK) { in readFromParcel() 70 if ((err = parcel->readInt64(&usage)) != OK) { in readFromParcel() 76 if ((err = parcel->readInt64(&requestCount)) != OK) { in readFromParcel() 82 if ((err = parcel->readInt64(&errorCount)) != OK) { in readFromParcel() 88 if ((err = parcel->readInt32(&startLatencyMs)) != OK) { in readFromParcel() [all …]
|
D | CaptureResult.cpp | 46 status_t res = OK; in readFromParcel() 47 if ((res = parcel->readString16(&cameraId)) != OK) { in readFromParcel() 60 return OK; in readFromParcel() 78 status_t res = OK; in writeToParcel() 79 if ((res = parcel->writeString16(toString16(errorPhysicalCameraId))) != OK) { in writeToParcel() 94 return OK; in writeToParcel() 104 if ((res = parcel->readString16(&physicalCameraId)) != OK) { in readFromParcel() 110 if ((res = mPhysicalCameraMetadata.readFromParcel(parcel)) != OK) { in readFromParcel() 114 return OK; in readFromParcel() 119 if ((res = parcel->writeString16(toString16(mPhysicalCameraId))) != OK) { in writeToParcel() [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderRpcWireProtocolTest.cpp | 38 status_t readFromParcel(const Parcel*) { return OK; } in readFromParcel() 44 [](Parcel* p) { ASSERT_EQ(OK, p->writeInterfaceToken(String16(u"tok"))); }, in __anon4b266a360102() 45 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt32(-1)); }, in __anon4b266a360202() 46 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt32(0)); }, in __anon4b266a360302() 47 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt32(17)); }, in __anon4b266a360402() 48 [](Parcel* p) { ASSERT_EQ(OK, p->writeUint32(0)); }, in __anon4b266a360502() 49 [](Parcel* p) { ASSERT_EQ(OK, p->writeUint32(1)); }, in __anon4b266a360602() 50 [](Parcel* p) { ASSERT_EQ(OK, p->writeUint32(10003)); }, in __anon4b266a360702() 51 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt64(-1)); }, in __anon4b266a360802() 52 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt64(0)); }, in __anon4b266a360902() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureClient_test.cpp | 202 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F() 203 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F() 207 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() 209 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F() 213 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F() 217 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() 219 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F() 220 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F() 221 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F() 225 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); 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() 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() 76 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() 81 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F() [all …]
|
D | BufferQueue_test.cpp | 65 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount() 137 ASSERT_EQ(OK, mConsumer->consumerConnect(mc, false)); in TEST_F() 139 ASSERT_EQ(OK, in TEST_F() 148 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F() 151 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F() 154 ASSERT_EQ(OK, buffer->unlock()); in TEST_F() 159 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F() 162 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F() 165 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 168 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() [all …]
|
D | StreamSplitter_test.cpp | 51 ASSERT_EQ(OK, outputConsumer->consumerConnect(new FakeListener, false)); in TEST_F() 55 ASSERT_EQ(OK, status); in TEST_F() 56 ASSERT_EQ(OK, splitter->addOutput(outputProducer)); in TEST_F() 59 ASSERT_EQ(OK, outputProducer->allowAllocation(false)); in TEST_F() 62 ASSERT_EQ(OK, in TEST_F() 72 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F() 75 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F() 78 ASSERT_EQ(OK, buffer->unlock()); in TEST_F() 83 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F() 87 ASSERT_EQ(OK, inputProducer->allowAllocation(false)); in TEST_F() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audiorouting_tests.cpp | 35 ASSERT_EQ(OK, listAudioPorts(ports)); in TEST() 59 ASSERT_EQ(OK, ap->loadResource("/data/local/tmp/bbb_2ch_24kHz_s16le.raw")) in TEST() 61 ASSERT_EQ(OK, ap->create()) << "track creation failed"; in TEST() 63 EXPECT_EQ(OK, ap->getAudioTrackHandle()->addAudioDeviceCallback(cb)); in TEST() 64 EXPECT_EQ(OK, ap->start()) << "audio track start failed"; in TEST() 65 EXPECT_EQ(OK, ap->onProcess()); in TEST() 66 EXPECT_EQ(OK, cb->waitForAudioDeviceCb()); in TEST() 70 EXPECT_EQ(OK, getPatchForOutputMix(cb->mAudioIo, patch)); in TEST() 90 if (OK != getPortByAttributes(AUDIO_PORT_ROLE_SOURCE, AUDIO_PORT_TYPE_DEVICE, in TEST() 99 ASSERT_EQ(OK, capture->create()) << "record creation failed"; in TEST() [all …]
|
D | audiorecord_tests.cpp | 56 ASSERT_EQ(OK, mAC->create()) << "record creation failed"; in SetUp() 60 if (mAC) ASSERT_EQ(OK, mAC->stop()); in TearDown() 101 ASSERT_EQ(OK, mAC->create()) << "record creation failed"; in SetUp() 105 if (mAC) ASSERT_EQ(OK, mAC->stop()); in TearDown() 110 EXPECT_EQ(OK, mAC->start()) << "start recording failed"; in TEST_F() 111 EXPECT_EQ(OK, mAC->audioProcess()) << "audioProcess failed"; in TEST_F() 118 EXPECT_EQ(OK, mAC->getAudioRecordHandle()->addAudioDeviceCallback(cbOld)); in TEST_F() 120 EXPECT_EQ(OK, mAC->getAudioRecordHandle()->addAudioDeviceCallback(cb)); in TEST_F() 121 EXPECT_EQ(OK, mAC->start()) << "record creation failed"; in TEST_F() 122 EXPECT_EQ(OK, cb->waitForAudioDeviceCb()); in TEST_F() [all …]
|
D | audiotrack_tests.cpp | 51 ASSERT_EQ(OK, ap->loadResource("/data/local/tmp/bbb_2ch_24kHz_s16le.raw")) in TEST() 53 EXPECT_EQ(OK, ap->create()) << "track creation failed"; in TEST() 54 EXPECT_EQ(OK, ap->start()) << "audio track start failed"; in TEST() 55 EXPECT_EQ(OK, ap->onProcess()); in TEST() 63 ASSERT_EQ(OK, ap->loadResource("/data/local/tmp/bbb_2ch_24kHz_s16le.raw")) in TEST() 65 EXPECT_EQ(OK, ap->create()) << "track creation failed"; in TEST() 66 EXPECT_EQ(OK, ap->start()) << "audio track start failed"; in TEST() 67 EXPECT_EQ(OK, ap->onProcess(true)); in TEST() 103 EXPECT_EQ(OK, ap->create()) << "track creation failed"; in TEST() 105 if (OK != ap->getAudioTrackHandle()->getDualMonoMode(&mode)) { in TEST() [all …]
|
/frameworks/base/media/tests/players/ |
D | invoke_mock_media_player.cpp | 32 using android::OK; 57 virtual status_t initCheck() {return OK;} in initCheck() 69 return OK; in setDataSource() 73 return OK; in setDataSource() 77 return OK; in setVideoSurfaceTexture() 79 virtual status_t prepare() { return OK; } in prepare() 80 virtual status_t prepareAsync() { return OK; } in prepareAsync() 81 virtual status_t start() { return OK; } in start() 82 virtual status_t stop() { return OK; } in stop() 83 virtual status_t pause() { return OK; } in pause() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | CursorWindow_test.cpp | 38 ASSERT_EQ(w->setNumColumns(3), OK); \ 39 ASSERT_EQ(w->allocRow(), OK); \ 40 ASSERT_EQ(w->allocRow(), OK); \ 41 ASSERT_EQ(w->allocRow(), OK); \ 69 ASSERT_EQ(w->setNumColumns(4), OK); in TEST() 70 ASSERT_NE(w->setNumColumns(5), OK); in TEST() 71 ASSERT_NE(w->setNumColumns(3), OK); in TEST() 81 ASSERT_EQ(w->allocRow(), OK); in TEST() 82 ASSERT_NE(w->setNumColumns(4), OK); in TEST() 90 ASSERT_EQ(w->setNumColumns(4), OK); in TEST() [all …]
|
/frameworks/av/camera/camera2/ |
D | ConcurrentCamera.cpp | 45 status_t err = OK; in readFromParcel() 48 if ((err = parcel->readInt32(&cameraCount)) != OK) { in readFromParcel() 54 if ((err = parcel->readString16(&cameraId)) != OK) { in readFromParcel() 59 if ((err = parcel->readInt32(&deviceId)) != OK) { in readFromParcel() 65 return OK; in readFromParcel() 74 status_t err = OK; in writeToParcel() 76 if ((err = parcel->writeInt32(mConcurrentCameraIdDeviceIdPairs.size())) != OK) { in writeToParcel() 82 if ((err = parcel->writeString16(toString16(it.first))) != OK) { in writeToParcel() 86 if ((err = parcel->writeInt32(it.second)) != OK) { in writeToParcel() 91 return OK; in writeToParcel() [all …]
|
D | OutputConfiguration.cpp | 152 status_t err = OK; in readFromParcel() 157 if ((err = parcel->readInt32(&rotation)) != OK) { in readFromParcel() 163 if ((err = parcel->readInt32(&setID)) != OK) { in readFromParcel() 169 if ((err = parcel->readInt32(&surfaceType)) != OK) { in readFromParcel() 175 if ((err = parcel->readInt32(&width)) != OK) { in readFromParcel() 181 if ((err = parcel->readInt32(&height)) != OK) { in readFromParcel() 187 if ((err = parcel->readInt32(&isDeferred)) != OK) { in readFromParcel() 193 if ((err = parcel->readInt32(&isShared)) != OK) { in readFromParcel() 205 if ((err = parcel->readParcelableVector(&surfaceShims)) != OK) { in readFromParcel() 215 if ((err = parcel->readInt32(&isMultiResolution)) != OK) { in readFromParcel() [all …]
|
D | SessionConfiguration.cpp | 33 status_t err = OK; in readFromParcel() 38 if ((err = parcel->readInt32(&operatingMode)) != OK) { in readFromParcel() 44 if ((err = parcel->readInt32(&inputWidth)) != OK) { in readFromParcel() 50 if ((err = parcel->readInt32(&inputHeight)) != OK) { in readFromParcel() 56 if ((err = parcel->readInt32(&inputFormat)) != OK) { in readFromParcel() 62 if ((err = parcel->readBool(&inputIsMultiResolution)) != OK) { in readFromParcel() 68 if ((err = parcel->readParcelableVector(&outputStreams)) != OK) { in readFromParcel() 76 if ((err = parcel->readBool(&hasSessionParameters)) != OK) { in readFromParcel() 82 if ((err = settings.readFromParcel(parcel)) != OK) { in readFromParcel() 108 status_t err = OK; in writeToParcel() [all …]
|
D | CaptureRequest.cpp | 52 status_t err = OK; in readFromParcel() 55 if ((err = parcel->readInt32(&settingsCount)) != OK) { in readFromParcel() 67 if ((err = parcel->readString16(&id)) != OK) { in readFromParcel() 73 if ((err = settings.readFromParcel(parcel)) != OK) { in readFromParcel() 82 if ((err = parcel->readInt32(&isReprocess)) != OK) { in readFromParcel() 89 if ((err = parcel->readInt32(&size)) != OK) { in readFromParcel() 109 if ((err = surfaceShim.readFromParcel(parcel)) != OK) { in readFromParcel() 124 if ((err = parcel->readInt32(&streamSurfaceSize)) != OK) { in readFromParcel() 136 if ((err = parcel->readInt32(&streamIdx)) != OK) { in readFromParcel() 143 if ((err = parcel->readInt32(&surfaceIdx)) != OK) { in readFromParcel() [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmHal.cpp | 36 if (mDrmHalAidl->initCheck() == OK || mDrmHalHidl->initCheck() == OK) return DrmStatus(OK); in initCheck() 51 return mDrmHalAidl->createPlugin(uuid, appPackageName) == OK in createPlugin() 52 ? DrmStatus(OK) in createPlugin() 59 if (statusResult != OK) return statusResult; in destroyPlugin() 64 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->openSession(securityLevel, sessionId); in openSession() 69 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->closeSession(sessionId); in closeSession() 78 if (mDrmHalAidl->initCheck() == OK) in getKeyRequest() 87 if (mDrmHalAidl->initCheck() == OK) in provideKeyResponse() 93 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->removeKeys(keySetId); in removeKeys() 98 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->restoreKeys(sessionId, keySetId); in restoreKeys() [all …]
|
/frameworks/base/libs/hostgraphics/ |
D | HostBufferQueue.cpp | 28 return OK; in setConsumerIsProtected() 32 return OK; in detachBuffer() 36 return OK; in getReleasedBuffers() 43 return OK; in setDefaultBufferSize() 47 return OK; in setDefaultBufferFormat() 51 return OK; in setDefaultBufferDataSpace() 55 return OK; in discardFreeBuffers() 62 return OK; in acquireBuffer() 66 return OK; in setMaxAcquiredBufferCount() 70 return OK; in setConsumerUsageBits() [all …]
|
/frameworks/av/media/libstagefright/ |
D | AMRWriter.cpp | 36 mInitCheck(mFd < 0? NO_INIT: OK), in AMRWriter() 58 if (mInitCheck != OK) { in addSource() 94 return OK; in addSource() 98 if (mInitCheck != OK) { in start() 109 return OK; in start() 112 return OK; in start() 117 if (err != OK) { in start() 133 return OK; in start() 138 return OK; in pause() 141 return OK; in pause() [all …]
|
/frameworks/av/media/img_utils/src/ |
D | DngUtils.cpp | 29 if(mEndianOut.open() != OK) { in OpcodeListBuilder() 35 if(mEndianOut.close() != OK) { in ~OpcodeListBuilder() 52 return OK; in buildOpList() 63 status_t err = OK; in addGainMapsForMetadata() 190 if (err != OK) return err; in addBayerGainMapsForMetadata() 208 if (err != OK) return err; in addBayerGainMapsForMetadata() 226 if (err != OK) return err; in addBayerGainMapsForMetadata() 282 if (err != OK) return err; in addMonochromeGainMapsForMetadata() 305 if (err != OK) return err; in addGainMap() 311 if (err != OK) return err; in addGainMap() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | StreamingProcessor.cpp | 71 if (res != OK) return res; in setPreviewWindow() 77 return OK; in setPreviewWindow() 85 if (res != OK) return res; in setRecordingWindow() 91 return OK; in setRecordingWindow() 130 if (res != OK) { in updatePreviewRequest() 138 if (res != OK) { in updatePreviewRequest() 147 if (res != OK) { in updatePreviewRequest() 153 return OK; in updatePreviewRequest() 171 if (res != OK) { in updatePreviewStream() 182 if (res != OK) { in updatePreviewStream() [all …]
|
/frameworks/av/media/libstagefright/timedtext/ |
D | TextDescriptions.cpp | 62 return OK; in extractSRTLocalDescriptions() 81 return OK; in extract3GPPLocalDescriptions() 86 return OK; in extract3GPPLocalDescriptions() 99 return OK; in extract3GPPLocalDescriptions() 108 return OK; in extract3GPPLocalDescriptions() 120 return OK; in extract3GPPLocalDescriptions() 132 return OK; in extract3GPPLocalDescriptions() 167 return OK; in extract3GPPLocalDescriptions() 185 return OK; in extract3GPPLocalDescriptions() 205 return OK; in extract3GPPLocalDescriptions() [all …]
|