Home
last modified time | relevance | path

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

12345678910>>...17

/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp210 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), -1, 0, 0)); in TEST_F()
211 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, -1, 0)); in TEST_F()
212 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, 0, -1)); in TEST_F()
213 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), -1, -1, 0)); in TEST_F()
214 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, 8, 0)); in TEST_F()
215 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 8, 0, 0)); in TEST_F()
220 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
224 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
229 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 16, 8, PIXEL_FORMAT_RGB_565)); in TEST_F()
230 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
[all …]
DBufferQueue_test.cpp56 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount()
108 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
110 ASSERT_EQ(OK, in TEST_F()
119 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
122 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
125 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
129 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
132 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F()
135 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
138 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
[all …]
DSurfaceTextureMultiContextGL_test.cpp33 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
47 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
50 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
62 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
66 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
77 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
89 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
92 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
103 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
119 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
[all …]
DStreamSplitter_test.cpp88 ASSERT_EQ(OK, outputConsumer->consumerConnect(new DummyListener, false)); in TEST_F()
92 ASSERT_EQ(OK, status); in TEST_F()
93 ASSERT_EQ(OK, splitter->addOutput(outputProducer)); in TEST_F()
96 ASSERT_EQ(OK, inputProducer->connect(new DummyProducerListener, in TEST_F()
105 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
108 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
111 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
116 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
119 ASSERT_EQ(OK, outputConsumer->acquireBuffer(&item, 0)); in TEST_F()
122 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
[all …]
DSurfaceTextureGL_test.cpp462 EXPECT_EQ(OK,mST->updateTexImage()); in TEST_F()
467 EXPECT_EQ(OK,mST->updateTexImage()); in TEST_F()
477 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), in TEST_F()
482 EXPECT_EQ (OK, native_window_dequeue_buffer_and_wait(mANW.get(), &anb)); in TEST_F()
483 EXPECT_EQ(OK, mANW->queueBuffer(mANW.get(), anb, -1)); in TEST_F()
485 EXPECT_EQ (OK, native_window_dequeue_buffer_and_wait(mANW.get(), &anb)); in TEST_F()
486 EXPECT_EQ(OK, mANW->queueBuffer(mANW.get(), anb, -1)); in TEST_F()
488 EXPECT_EQ(OK,mST->updateTexImage()); in TEST_F()
489 EXPECT_EQ(OK,mST->updateTexImage()); in TEST_F()
491 ASSERT_EQ(OK, native_window_api_disconnect(mANW.get(), in TEST_F()
[all …]
/frameworks/av/media/common_time/
DICommonTimeConfig.cpp62 if (status == OK) { in getMasterElectionPriority()
64 if (status == OK) { in getMasterElectionPriority()
79 if (status == OK) { in setMasterElectionPriority()
92 if (status == OK) { in getMasterElectionEndpoint()
94 if (status == OK) { in getMasterElectionEndpoint()
117 if (status == OK) { in setMasterElectionEndpoint()
131 if (status == OK) { in getMasterElectionGroupId()
133 if (status == OK) { in getMasterElectionGroupId()
149 if (status == OK) { in setMasterElectionGroupId()
162 if (status == OK) { in getInterfaceBinding()
[all …]
DICommonClock.cpp60 if (status == OK) { in isCommonTimeValid()
62 if (status == OK) { in isCommonTimeValid()
77 if (status == OK) { in commonTimeToLocalTime()
79 if (status == OK) { in commonTimeToLocalTime()
93 if (status == OK) { in localTimeToCommonTime()
95 if (status == OK) { in localTimeToCommonTime()
106 if (status == OK) { in getCommonTime()
108 if (status == OK) { in getCommonTime()
119 if (status == OK) { in getCommonFreq()
121 if (status == OK) { in getCommonFreq()
[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()
72 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) {return OK;} in setDataSource()
74 const sp<IGraphicBufferProducer>& bufferProducer) {return OK;} in setVideoSurfaceTexture()
75 virtual status_t prepare() {return OK;} in prepare()
76 virtual status_t prepareAsync() {return OK;} in prepareAsync()
77 virtual status_t start() {return OK;} in start()
78 virtual status_t stop() {return OK;} in stop()
79 virtual status_t pause() {return OK;} in pause()
[all …]
/frameworks/av/media/libstagefright/
DAMRWriter.cpp43 mInitCheck = OK; in AMRWriter()
49 mInitCheck(mFd < 0? NO_INIT: OK), in AMRWriter()
71 if (mInitCheck != OK) { in addSource()
107 return OK; in addSource()
111 if (mInitCheck != OK) { in start()
122 return OK; in start()
125 return OK; in start()
130 if (err != OK) { in start()
146 return OK; in start()
151 return OK; in pause()
[all …]
DAACWriter.cpp53 mInitCheck = OK; in AACWriter()
59 mInitCheck(mFd < 0? NO_INIT: OK), in AACWriter()
89 if (mInitCheck != OK) { in addSource()
114 return OK; in addSource()
118 if (mInitCheck != OK) { in start()
129 return OK; in start()
132 return OK; in start()
140 if (err != OK) { in start()
156 return OK; in start()
161 return OK; in pause()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.cpp90 if ((res = getBufferPreconditionCheckLocked()) != OK) { in getBufferLocked()
113 if (res != OK) { in getBufferLocked()
126 return OK; in getBufferLocked()
136 if (res != OK) { in returnBufferLocked()
142 return OK; in returnBufferLocked()
174 if (res != OK) { in returnBufferCheckedLocked()
202 if (res != OK) { in returnBufferCheckedLocked()
219 if (res != OK) { in returnBufferCheckedLocked()
225 if (res != OK) { in returnBufferCheckedLocked()
250 status_t res = OK; in setTransformLocked()
[all …]
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp51 if (err != OK) { in PostAndAwaitResponse()
56 err = OK; in PostAndAwaitResponse()
139 err = OK; in onMessageReceived()
159 if (err == OK) { in onMessageReceived()
175 status_t err = OK; in onMessageReceived()
180 if (err == OK) { in onMessageReceived()
185 if (err == OK) { in onMessageReceived()
191 if (err == OK) { in onMessageReceived()
215 if (err == OK) { in onMessageReceived()
231 status_t err = OK; in onMessageReceived()
[all …]
Dcodec.cpp80 if (extractor->setDataSource(NULL /* httpService */, path) != OK) { in decode()
92 CHECK_EQ(err, (status_t)OK); in decode()
111 CHECK_EQ(err, (status_t)OK); in decode()
130 CHECK_EQ(err, (status_t)OK); in decode()
145 CHECK_EQ((status_t)OK, codec->start()); in decode()
147 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); in decode()
148 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers)); in decode()
161 if (err != OK) { in decode()
170 if (err == OK) { in decode()
176 CHECK_EQ(err, (status_t)OK); in decode()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp77 if (res != OK) { in initialize()
85 if (res != OK) { in initialize()
150 return OK; in initialize()
474 return OK; in connect()
486 return OK; in lock()
495 return OK; in lock()
515 return OK; in unlock()
529 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewTarget()
575 if (res != OK) { in setPreviewWindowL()
586 if (res != OK) { in setPreviewWindowL()
[all …]
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp100 return OK; in init()
125 return OK; in setAudioSource()
142 return OK; in setVideoSource()
159 return OK; in setOutputFormat()
176 return OK; in setAudioEncoder()
189 return OK; in setVideoEncoder()
203 return OK; in setVideoSize()
217 return OK; in setVideoFrameRate()
234 return OK; in setCamera()
241 return OK; in setPreviewSurface()
[all …]
DDrm.cpp151 mInitCheck = OK; in findFactoryForScheme()
180 mInitCheck = OK; in findFactoryForScheme()
232 if (mInitCheck != OK) { in isCryptoSchemeSupported()
255 if (mInitCheck != OK) { in createPlugin()
267 if (mInitCheck != OK) { in destroyPlugin()
278 return OK; in destroyPlugin()
284 if (mInitCheck != OK) { in openSession()
298 if (mInitCheck != OK) { in closeSession()
316 if (mInitCheck != OK) { in getKeyRequest()
333 if (mInitCheck != OK) { in provideKeyResponse()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DStreamingProcessor.cpp67 if (res != OK) return res; in setPreviewWindow()
73 return OK; in setPreviewWindow()
112 if (res != OK) { in updatePreviewRequest()
120 if (res != OK) { in updatePreviewRequest()
129 if (res != OK) { in updatePreviewRequest()
135 return OK; in updatePreviewRequest()
154 if (res != OK) { in updatePreviewStream()
165 if (res != OK) { in updatePreviewStream()
171 if (res != OK) { in updatePreviewStream()
185 if (res != OK) { in updatePreviewStream()
[all …]
/frameworks/av/media/libstagefright/timedtext/
DTimedTextDriver.cpp65 return OK; in selectTrack_l()
74 return OK; in selectTrack_l()
83 return OK; in start()
87 return OK; in start()
91 return OK; in start()
107 return OK; in pause()
111 return OK; in pause()
119 status_t ret = OK; in selectTrack()
131 if (ret != OK) { in selectTrack()
155 return OK; in unselectTrack()
[all …]
/frameworks/av/media/img_utils/src/
DDngUtils.cpp23 if(mEndianOut.open() != OK) { in OpcodeListBuilder()
29 if(mEndianOut.close() != OK) { in ~OpcodeListBuilder()
46 return OK; in buildOpList()
149 if (err != OK) return err; in addGainMapsForMetadata()
167 if (err != OK) return err; in addGainMapsForMetadata()
185 if (err != OK) return err; in addGainMapsForMetadata()
226 if (err != OK) return err; in addGainMap()
230 if (err != OK) return err; in addGainMap()
236 if (err != OK) return err; in addGainMap()
245 if (err != OK) return err; in addGainMap()
[all …]
/frameworks/av/services/camera/libcameraservice/device2/
DCamera2Device.cpp74 if (res != OK) { in initialize()
91 if (res != OK ) return res; in initialize()
102 if (res != OK) { in initialize()
109 if (res != OK) { in initialize()
118 if (res != OK) { in initialize()
129 return OK; in initialize()
134 status_t res = OK; in disconnect()
146 if (res != OK) { in disconnect()
209 return OK; in capture()
256 if (res != OK) { in createStream()
[all …]
/frameworks/av/camera/
DCameraMetadata.cpp93 return OK; in unlock()
125 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != OK, in acquire()
185 return OK; in checkType()
195 if ( (res = checkType(tag, TYPE_INT32)) != OK) { in update()
208 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
221 if ( (res = checkType(tag, TYPE_FLOAT)) != OK) { in update()
234 if ( (res = checkType(tag, TYPE_INT64)) != OK) { in update()
247 if ( (res = checkType(tag, TYPE_DOUBLE)) != OK) { in update()
260 if ( (res = checkType(tag, TYPE_RATIONAL)) != OK) { in update()
273 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
[all …]
DCaptureResult.cpp42 return OK; in readFromParcel()
58 return OK; in writeToParcel()
81 status_t res = OK; in readFromParcel()
83 if (res != OK) { in readFromParcel()
91 if (res != OK) { in readFromParcel()
98 return OK; in readFromParcel()
113 if (res != OK) { in writeToParcel()
120 if (res != OK) { in writeToParcel()
126 return OK; in writeToParcel()
/frameworks/base/libs/common_time/
Dcommon_time_server_api.cpp49 return OK; in getMasterAddr()
72 return OK; in isCommonTimeValid()
81 return OK; in getMasterElectionPriority()
91 return OK; in setMasterElectionPriority()
98 return OK; in getMasterElectionEndpoint()
128 return OK; in setMasterElectionEndpoint()
134 return OK; in getMasterElectionGroupId()
140 return OK; in setMasterElectionGroupId()
148 return OK; in getInterfaceBinding()
164 return OK; in setInterfaceBinding()
[all …]
/frameworks/av/media/libmedia/
DMetadata.cpp86 ok = ok && mData->writeInt32(-1) == OK; in appendHeader()
87 ok = ok && mData->writeInt32(kMetaMarker) == OK; in appendHeader()
101 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendBool()
102 ok = ok && mData->writeInt32(key) == OK; in appendBool()
103 ok = ok && mData->writeInt32(BOOLEAN_VAL) == OK; in appendBool()
104 ok = ok && mData->writeInt32(val ? 1 : 0) == OK; in appendBool()
121 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendInt32()
122 ok = ok && mData->writeInt32(key) == OK; in appendInt32()
123 ok = ok && mData->writeInt32(INTEGER_VAL) == OK; in appendInt32()
124 ok = ok && mData->writeInt32(val) == OK; in appendInt32()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp69 return OK; in initCheck()
75 return OK; in setUID()
164 return OK; in setVideoSurfaceTexture()
186 return (mState == STATE_PREPARED) ? OK : UNKNOWN_ERROR; in prepare_l()
196 return (mState == STATE_STOPPED_AND_PREPARED) ? OK : UNKNOWN_ERROR; in prepare_l()
211 return OK; in prepareAsync()
218 return OK; in prepareAsync()
233 if (err != OK) { in start()
281 return OK; in start()
309 return OK; in stop()
[all …]

12345678910>>...17