Home
last modified time | relevance | path

Searched refs:OK (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/frameworks/native/libs/graphicsenv/
DGpuStatsInfo.cpp29 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 …]
DIGpuService.cpp79 if (error == OK) { in getUpdatableDriverPath()
98 if ((status = data.readUtf8FromUtf16(&driverPackageName)) != OK) return status; in onTransact()
101 if ((status = data.readUtf8FromUtf16(&driverVersionName)) != OK) return status; in onTransact()
104 if ((status = data.readUint64(&driverVersionCode)) != OK) return status; in onTransact()
107 if ((status = data.readInt64(&driverBuildTime)) != OK) return status; in onTransact()
110 if ((status = data.readUtf8FromUtf16(&appPackageName)) != OK) return status; in onTransact()
113 if ((status = data.readInt32(&vulkanVersion)) != OK) return status; in onTransact()
116 if ((status = data.readInt32(&driver)) != OK) return status; in onTransact()
119 if ((status = data.readBool(&isDriverLoaded)) != OK) return status; in onTransact()
122 if ((status = data.readInt64(&driverLoadingTime)) != OK) return status; in onTransact()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp212 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F()
213 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F()
217 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
219 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
223 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
227 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
229 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
230 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
231 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
235 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
[all …]
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()
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 …]
DBufferQueue_test.cpp65 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount()
138 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
140 ASSERT_EQ(OK, in TEST_F()
149 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
152 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
155 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
160 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
163 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F()
166 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
169 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
[all …]
DStreamSplitter_test.cpp67 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()
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()
102 ASSERT_EQ(OK, inputProducer->allowAllocation(false)); in TEST_F()
[all …]
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_composer_layer.cpp20 if (ret != OK) return ret; in writeToParcel()
23 if (ret != OK) return ret; in writeToParcel()
26 if (ret != OK) return ret; in writeToParcel()
30 if (ret != OK) return ret; in writeToParcel()
34 if (ret != OK) return ret; in writeToParcel()
37 if (ret != OK) return ret; in writeToParcel()
40 if (ret != OK) return ret; in writeToParcel()
43 if (ret != OK) return ret; in writeToParcel()
46 if (ret != OK) return ret; in writeToParcel()
49 if (ret != OK) return ret; in writeToParcel()
[all …]
Dparcelable_composer_frame.cpp20 if (ret != OK) return ret; in writeToParcel()
23 if (ret != OK) return ret; in writeToParcel()
26 if (ret != OK) return ret; in writeToParcel()
29 if (ret != OK) return ret; in writeToParcel()
32 if (ret != OK) return ret; in writeToParcel()
35 if (ret != OK) return ret; in writeToParcel()
38 if (ret != OK) return ret; in writeToParcel()
41 if (ret != OK) return ret; in writeToParcel()
44 if (ret != OK) return ret; in writeToParcel()
48 if (ret != OK) return ret; in writeToParcel()
[all …]
/frameworks/base/media/tests/players/
Dinvoke_mock_media_player.cpp32 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/av/camera/
DCaptureResult.cpp45 status_t res = OK; in readFromParcel()
46 if ((res = parcel->readString16(&cameraId)) != OK) { in readFromParcel()
56 return OK; in readFromParcel()
74 status_t res = OK; in writeToParcel()
75 if ((res = parcel->writeString16(errorPhysicalCameraId)) != OK) { in writeToParcel()
86 return OK; in writeToParcel()
95 if ((res = parcel->readString16(&mPhysicalCameraId)) != OK) { in readFromParcel()
100 if ((res = mPhysicalCameraMetadata.readFromParcel(parcel)) != OK) { in readFromParcel()
104 return OK; in readFromParcel()
109 if ((res = parcel->writeString16(mPhysicalCameraId)) != OK) { in writeToParcel()
[all …]
/frameworks/av/camera/camera2/
DConcurrentCamera.cpp43 status_t err = OK; in readFromParcel()
46 if ((err = parcel->readInt32(&cameraIdCount)) != OK) { in readFromParcel()
52 if ((err = parcel->readString16(&id)) != OK) { in readFromParcel()
58 return OK; in readFromParcel()
68 status_t err = OK; in writeToParcel()
70 if ((err = parcel->writeInt32(mConcurrentCameraIds.size())) != OK) { in writeToParcel()
76 if ((err = parcel->writeString16(String16(it.c_str()))) != OK) { in writeToParcel()
81 return OK; in writeToParcel()
92 status_t err = OK; in readFromParcel()
94 if ((err = parcel->readString16(&id)) != OK) { in readFromParcel()
[all …]
DCaptureRequest.cpp51 status_t err = OK; in readFromParcel()
54 if ((err = parcel->readInt32(&settingsCount)) != OK) { in readFromParcel()
66 if ((err = parcel->readString16(&id)) != OK) { in readFromParcel()
72 if ((err = settings.readFromParcel(parcel)) != OK) { in readFromParcel()
81 if ((err = parcel->readInt32(&isReprocess)) != OK) { in readFromParcel()
88 if ((err = parcel->readInt32(&size)) != OK) { in readFromParcel()
108 if ((err = surfaceShim.readFromParcel(parcel)) != OK) { in readFromParcel()
123 if ((err = parcel->readInt32(&streamSurfaceSize)) != OK) { in readFromParcel()
135 if ((err = parcel->readInt32(&streamIdx)) != OK) { in readFromParcel()
142 if ((err = parcel->readInt32(&surfaceIdx)) != OK) { in readFromParcel()
[all …]
DSessionConfiguration.cpp30 status_t err = OK; in readFromParcel()
35 if ((err = parcel->readInt32(&operatingMode)) != OK) { in readFromParcel()
41 if ((err = parcel->readInt32(&inputWidth)) != OK) { in readFromParcel()
47 if ((err = parcel->readInt32(&inputHeight)) != OK) { in readFromParcel()
53 if ((err = parcel->readInt32(&inputFormat)) != OK) { in readFromParcel()
59 if ((err = parcel->readParcelableVector(&outputStreams)) != OK) { in readFromParcel()
79 status_t err = OK; in writeToParcel()
82 if (err != OK) return err; in writeToParcel()
85 if (err != OK) return err; in writeToParcel()
88 if (err != OK) return err; in writeToParcel()
[all …]
DOutputConfiguration.cpp88 status_t err = OK; in readFromParcel()
93 if ((err = parcel->readInt32(&rotation)) != OK) { in readFromParcel()
99 if ((err = parcel->readInt32(&setID)) != OK) { in readFromParcel()
105 if ((err = parcel->readInt32(&surfaceType)) != OK) { in readFromParcel()
111 if ((err = parcel->readInt32(&width)) != OK) { in readFromParcel()
117 if ((err = parcel->readInt32(&height)) != OK) { in readFromParcel()
123 if ((err = parcel->readInt32(&isDeferred)) != OK) { in readFromParcel()
129 if ((err = parcel->readInt32(&isShared)) != OK) { in readFromParcel()
141 if ((err = parcel->readParcelableVector(&surfaceShims)) != OK) { in readFromParcel()
191 status_t err = OK; in writeToParcel()
[all …]
/frameworks/av/media/img_utils/src/
DDngUtils.cpp29 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/media/libstagefright/
DAMRWriter.cpp36 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 …]
DAACWriter.cpp41 mInitCheck(mFd < 0? NO_INIT: OK), in AACWriter()
71 if (mInitCheck != OK) { in addSource()
96 return OK; in addSource()
100 if (mInitCheck != OK) { in start()
111 return OK; in start()
114 return OK; in start()
122 if (err != OK) { in start()
138 return OK; in start()
143 return OK; in pause()
146 return OK; in pause()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DStreamingProcessor.cpp66 if (res != OK) return res; in setPreviewWindow()
72 return OK; in setPreviewWindow()
80 if (res != OK) return res; in setRecordingWindow()
86 return OK; in setRecordingWindow()
125 if (res != OK) { in updatePreviewRequest()
133 if (res != OK) { in updatePreviewRequest()
142 if (res != OK) { in updatePreviewRequest()
148 return OK; in updatePreviewRequest()
166 if (res != OK) { in updatePreviewStream()
177 if (res != OK) { in updatePreviewStream()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp111 ASSERT_EQ(OK, mProducer->connect(kDummyListener, kTestApi, in ConnectProducer()
173 ASSERT_EQ(OK, mProducer->disconnect(kTestApi)); in TEST_F()
189 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_WIDTH, &value)); in TEST_F()
192 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_HEIGHT, &value)); in TEST_F()
195 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_FORMAT, &value)); in TEST_F()
198 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &value)); in TEST_F()
202 EXPECT_EQ(OK, in TEST_F()
206 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &value)); in TEST_F()
244 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
251 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
[all …]
/frameworks/base/libs/hostgraphics/
DHostBufferQueue.cpp25 virtual status_t setConsumerIsProtected(bool isProtected) { return OK; } in setConsumerIsProtected()
27 virtual status_t detachBuffer(int slot) { return OK; } in detachBuffer()
29 virtual status_t getReleasedBuffers(uint64_t* slotMask) { return OK; } in getReleasedBuffers()
35 return OK; in setDefaultBufferSize()
38 virtual status_t setDefaultBufferFormat(PixelFormat defaultFormat) { return OK; } in setDefaultBufferFormat()
40 virtual status_t setDefaultBufferDataSpace(android_dataspace defaultDataSpace) { return OK; } in setDefaultBufferDataSpace()
42 virtual status_t discardFreeBuffers() { return OK; } in discardFreeBuffers()
48 return OK; in acquireBuffer()
51 virtual status_t setMaxAcquiredBufferCount(int maxAcquiredBuffers) { return OK; } in setMaxAcquiredBufferCount()
53 virtual status_t setConsumerUsageBits(uint64_t usage) { return OK; } in setConsumerUsageBits()
/frameworks/av/media/libstagefright/timedtext/
DTextDescriptions.cpp62 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 …]
/frameworks/native/libs/vr/libdisplay/
Dvsync_service.cpp16 if (result != OK) { in onTransact()
21 return OK; in onTransact()
39 if (result != OK) { in onVsync()
44 if (result != OK) { in onVsync()
50 if (result != OK) { in onVsync()
68 if (result != OK) { in onTransact()
73 return OK; in onTransact()
79 if (result != OK) { in onTransact()
84 return OK; in onTransact()
102 if (result != OK) { in registerCallback()
[all …]
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp52 if (err != OK) { in PostAndAwaitResponse()
57 err = OK; in PostAndAwaitResponse()
137 err = OK; in onMessageReceived()
157 if (err == OK) { in onMessageReceived()
173 status_t err = OK; in onMessageReceived()
178 if (err == OK) { in onMessageReceived()
183 if (err == OK) { in onMessageReceived()
189 if (err == OK) { in onMessageReceived()
213 if (err == OK) { in onMessageReceived()
229 status_t err = OK; in onMessageReceived()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp79 if (res == OK) { in isZslEnabledInStillTemplate()
97 if (res != OK) { in initializeImpl()
105 if (res != OK) { in initializeImpl()
153 return OK; in initializeImpl()
480 return OK; in connect()
492 return OK; in lock()
501 return OK; in lock()
521 return OK; in unlock()
535 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewTarget()
581 if (res != OK) { in setPreviewWindowL()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3SharedOutputStream.cpp54 status_t res = OK; in connectStreamSplitterLocked()
70 if (res != OK) { in connectStreamSplitterLocked()
82 status_t res = OK; in attachBufferToSplitterLocked()
91 if (res != OK) { in attachBufferToSplitterLocked()
106 status_t res = OK; in notifyBufferReleased()
132 status_t ret = OK; in setConsumers()
150 if (ret != OK) { in setConsumers()
167 if (res != OK) { in getBufferLocked()
173 if (res != OK) { in getBufferLocked()
185 return OK; in getBufferLocked()
[all …]

12345678910>>...31