Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp207 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), -1, 0, 0)); in TEST_F()
208 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, -1, 0)); in TEST_F()
209 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, 0, -1)); in TEST_F()
210 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), -1, -1, 0)); in TEST_F()
211 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, 8, 0)); in TEST_F()
212 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 8, 0, 0)); in TEST_F()
217 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
221 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
226 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 16, 8, PIXEL_FORMAT_RGB_565)); in TEST_F()
227 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
[all …]
/frameworks/base/media/tests/players/
Dinvoke_mock_media_player.cpp31 using android::OK;
56 virtual status_t initCheck() {return OK;} in initCheck()
67 return OK; in setDataSource()
70 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) {return OK;} in setDataSource()
72 const sp<IGraphicBufferProducer>& bufferProducer) {return OK;} in setVideoSurfaceTexture()
73 virtual status_t prepare() {return OK;} in prepare()
74 virtual status_t prepareAsync() {return OK;} in prepareAsync()
75 virtual status_t start() {return OK;} in start()
76 virtual status_t stop() {return OK;} in stop()
77 virtual status_t pause() {return OK;} in pause()
[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/av/media/libstagefright/
DAMRWriter.cpp41 mInitCheck = OK; in AMRWriter()
47 mInitCheck(mFd < 0? NO_INIT: OK), in AMRWriter()
69 if (mInitCheck != OK) { in addSource()
105 return OK; in addSource()
109 if (mInitCheck != OK) { in start()
120 return OK; in start()
123 return OK; in start()
128 if (err != OK) { in start()
144 return OK; in start()
149 return OK; in pause()
[all …]
DAACWriter.cpp51 mInitCheck = OK; in AACWriter()
57 mInitCheck(mFd < 0? NO_INIT: OK), in AACWriter()
86 if (mInitCheck != OK) { in addSource()
111 return OK; in addSource()
115 if (mInitCheck != OK) { in start()
126 return OK; in start()
129 return OK; in start()
137 if (err != OK) { in start()
153 return OK; in start()
158 return OK; in pause()
[all …]
DNuMediaExtractor.cpp54 CHECK_EQ((status_t)OK, info->mSource->stop()); in ~NuMediaExtractor()
125 return OK; in setDataSource()
139 if (err != OK) { in setDataSource()
153 return OK; in setDataSource()
164 if (err != OK) { in setDataSource()
178 return OK; in setDataSource()
256 return OK; in getFileFormat()
275 return OK; in selectTrack()
281 CHECK_EQ((status_t)OK, source->start()); in selectTrack()
288 info->mFinalResult = OK; in selectTrack()
[all …]
DESDS.cpp49 if (mInitCheck != OK) { in getObjectTypeIndication()
55 return OK; in getObjectTypeIndication()
59 if (mInitCheck != OK) { in getCodecSpecificInfo()
66 return OK; in getCodecSpecificInfo()
102 return OK; in skipDescriptorHeader()
112 if (err != OK) { in parse()
178 if (err != OK) { in parseESDescriptor()
204 return OK; in parseDecoderConfigDescriptor()
212 if (err != OK) { in parseDecoderConfigDescriptor()
223 return OK; in parseDecoderConfigDescriptor()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.cpp88 if ((res = getBufferPreconditionCheckLocked()) != OK) { in getBufferLocked()
111 if (res != OK) { in getBufferLocked()
124 return OK; in getBufferLocked()
134 if (res != OK) { in returnBufferLocked()
140 return OK; in returnBufferLocked()
172 if (res != OK) { in returnBufferCheckedLocked()
200 if (res != OK) { in returnBufferCheckedLocked()
208 if (res != OK) { in returnBufferCheckedLocked()
214 if (res != OK) { in returnBufferCheckedLocked()
239 status_t res = OK; in setTransformLocked()
[all …]
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp50 if (err != OK) { in PostAndAwaitResponse()
55 err = OK; in PostAndAwaitResponse()
138 err = OK; in onMessageReceived()
158 if (err == OK) { in onMessageReceived()
174 status_t err = OK; in onMessageReceived()
179 if (err == OK) { in onMessageReceived()
184 if (err == OK) { in onMessageReceived()
190 if (err == OK) { in onMessageReceived()
214 if (err == OK) { in onMessageReceived()
230 status_t err = OK; in onMessageReceived()
[all …]
Dcodec.cpp78 if (extractor->setDataSource(path) != OK) { in decode()
90 CHECK_EQ(err, (status_t)OK); in decode()
109 CHECK_EQ(err, (status_t)OK); in decode()
128 CHECK_EQ(err, (status_t)OK); in decode()
143 CHECK_EQ((status_t)OK, codec->start()); in decode()
145 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers)); in decode()
146 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers)); in decode()
159 if (err != OK) { in decode()
168 if (err == OK) { in decode()
174 CHECK_EQ(err, (status_t)OK); in decode()
[all …]
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp88 return OK; in init()
113 return OK; in setAudioSource()
130 return OK; in setVideoSource()
147 return OK; in setOutputFormat()
164 return OK; in setAudioEncoder()
181 return OK; in setVideoEncoder()
195 return OK; in setVideoSize()
209 return OK; in setVideoFrameRate()
226 return OK; in setCamera()
233 return OK; in setPreviewSurface()
[all …]
DDrm.cpp139 mInitCheck = OK; in findFactoryForScheme()
168 mInitCheck = OK; in findFactoryForScheme()
220 if (mInitCheck != OK) { in isCryptoSchemeSupported()
243 if (mInitCheck != OK) { in createPlugin()
255 if (mInitCheck != OK) { in destroyPlugin()
266 return OK; in destroyPlugin()
272 if (mInitCheck != OK) { in openSession()
286 if (mInitCheck != OK) { in closeSession()
304 if (mInitCheck != OK) { in getKeyRequest()
321 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()
94 if (res != OK) { in updatePreviewRequest()
102 if (res != OK) { in updatePreviewRequest()
111 if (res != OK) { in updatePreviewRequest()
117 return OK; in updatePreviewRequest()
136 if (res != OK) { in updatePreviewStream()
147 if (res != OK) { in updatePreviewStream()
153 if (res != OK) { in updatePreviewStream()
168 if (res != OK) { in updatePreviewStream()
[all …]
/frameworks/av/camera/
DCameraMetadata.cpp90 return OK; in unlock()
122 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != OK, in acquire()
182 return OK; in checkType()
192 if ( (res = checkType(tag, TYPE_INT32)) != OK) { in update()
205 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
218 if ( (res = checkType(tag, TYPE_FLOAT)) != OK) { in update()
231 if ( (res = checkType(tag, TYPE_INT64)) != OK) { in update()
244 if ( (res = checkType(tag, TYPE_DOUBLE)) != OK) { in update()
257 if ( (res = checkType(tag, TYPE_RATIONAL)) != OK) { in update()
270 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp75 if (res != OK) { in initialize()
83 if (res != OK) { in initialize()
146 return OK; in initialize()
459 return OK; in connect()
471 return OK; in lock()
480 return OK; in lock()
500 return OK; in unlock()
514 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewTarget()
560 if (res != OK) { in setPreviewWindowL()
571 if (res != OK) { in setPreviewWindowL()
[all …]
/frameworks/av/media/libstagefright/timedtext/
DTimedTextDriver.cpp62 return OK; in selectTrack_l()
71 return OK; in selectTrack_l()
80 return OK; in start()
84 return OK; in start()
88 return OK; in start()
104 return OK; in pause()
108 return OK; in pause()
116 status_t ret = OK; in selectTrack()
128 if (ret != OK) { in selectTrack()
152 return OK; in unselectTrack()
[all …]
DTimedTextSRTSource.cpp49 if (err != OK) { in start()
62 return OK; in stop()
72 if (err != OK) { in read()
78 return OK; in read()
94 case OK: in scanFile()
107 return OK; in scanFile()
132 if ((err = readNextLine(offset, &data)) != OK) { in getNextSubtitleInfo()
139 if ((err = readNextLine(offset, &data)) != OK) { in getNextSubtitleInfo()
159 if ((err = readNextLine(offset, &data)) != OK) { in getNextSubtitleInfo()
174 return OK; in getNextSubtitleInfo()
[all …]
/frameworks/base/services/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/services/camera/libcameraservice/device2/
DCamera2Device.cpp72 if (res != OK) { in initialize()
89 if (res != OK ) return res; in initialize()
100 if (res != OK) { in initialize()
107 if (res != OK) { in initialize()
115 if (res != OK ) { in initialize()
122 if (res != OK) { in initialize()
130 if (res != OK) { in initialize()
140 return OK; in initialize()
145 status_t res = OK; in disconnect()
157 if (res != OK) { in disconnect()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp73 if (res != OK) { in initialize()
87 return OK; in initialize()
100 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in submitRequest()
167 if (res != OK) { in submitRequest()
175 if (res != OK) { in submitRequest()
182 if (res == OK) { in submitRequest()
195 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in cancelRequest()
217 if (res == OK) { in cancelRequest()
231 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in deleteStream()
259 } else if (res == OK) { in deleteStream()
[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()
Dmediarecorder.cpp44 if (OK != ret) { in setCamera()
69 if (OK != ret) { in setPreviewSurface()
90 if (OK != ret) { in init()
97 if (OK != ret) { in init()
121 if (OK != ret) { in setVideoSource()
133 if (OK != ret) { in setVideoSource()
152 if (OK != ret) { in setAudioSource()
166 if (OK != ret) { in setAudioSource()
192 if (OK != ret) { in setOutputFormat()
222 if (OK != ret) { in setVideoEncoder()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp63 return OK; in initCheck()
69 return OK; in setUID()
152 return OK; in setVideoSurfaceTexture()
173 return (mState == STATE_PREPARED) ? OK : UNKNOWN_ERROR; in prepare_l()
187 return OK; in prepareAsync()
201 if (err != OK) { in start()
242 return OK; in start()
255 return OK; in pause()
268 return OK; in pause()
301 return OK; in seekTo()
[all …]
/frameworks/av/libvideoeditor/lvpp/
DPreviewPlayer.cpp94 CHECK_EQ(mClient.connect(), (status_t)OK); in PreviewPlayer()
181 return OK; in setDataSource_l()
234 return OK; in setDataSource_l()
248 if (error != OK) { in setDataSource_l_jpg()
262 if (err1 != OK) { in setDataSource_l_jpg()
268 return OK; in setDataSource_l_jpg()
361 return OK; in startAudioPlayer_l()
372 if (err != OK) { in startAudioPlayer_l()
384 return OK; in startAudioPlayer_l()
401 return OK; in setAudioPlayer()
[all …]

12345678910>>...15