Home
last modified time | relevance | path

Searched refs:CHECK (Results 1 – 25 of 192) sorted by relevance

12345678

/frameworks/base/media/jni/
Dandroid_media_Utils.cpp82 CHECK(clazz.get() != NULL); in makeIntegerObject()
86 CHECK(integerConstructID != NULL); in makeIntegerObject()
93 CHECK(clazz.get() != NULL); in makeLongObject()
96 CHECK(longConstructID != NULL); in makeLongObject()
103 CHECK(clazz.get() != NULL); in makeFloatObject()
107 CHECK(floatConstructID != NULL); in makeFloatObject()
118 CHECK(clazz.get() != NULL); in makeByteBufferObject()
123 CHECK(byteBufWrapID != NULL); in makeByteBufferObject()
183 CHECK(msg->findInt32(key, &val)); in ConvertMessageToMap()
192 CHECK(msg->findInt64(key, &val)); in ConvertMessageToMap()
[all …]
Dandroid_media_MediaCodec.cpp110 CHECK(clazz != NULL); in JMediaCodec()
130 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec()
136 CHECK(mByteBufferClass != NULL); in cacheJavaObjects()
140 CHECK(byteOrderClass.get() != NULL); in cacheJavaObjects()
144 CHECK(nativeOrderID != NULL); in cacheJavaObjects()
149 CHECK(mNativeByteOrderObj != NULL); in cacheJavaObjects()
157 CHECK(mByteBufferOrderMethodID != NULL); in cacheJavaObjects()
161 CHECK(mByteBufferAsReadOnlyBufferMethodID != NULL); in cacheJavaObjects()
165 CHECK(mByteBufferPositionMethodID != NULL); in cacheJavaObjects()
169 CHECK(mByteBufferLimitMethodID != NULL); in cacheJavaObjects()
[all …]
Dandroid_media_MediaDataSource.cpp37 CHECK(mMediaDataSourceObj != NULL); in JMediaDataSource()
40 CHECK(mediaDataSourceClass.get() != NULL); in JMediaDataSource()
43 CHECK(mReadMethod != NULL); in JMediaDataSource()
45 CHECK(mGetSizeMethod != NULL); in JMediaDataSource()
47 CHECK(mCloseMethod != NULL); in JMediaDataSource()
51 CHECK(mByteArrayObj != NULL); in JMediaDataSource()
/frameworks/av/cmds/stagefright/
Dsf2.cpp71 CHECK(!mDecodeAudio || mSurface == NULL); in Controller()
128 CHECK(meta->findCString(kKeyMIMEType, &mime)); in onMessageReceived()
179 CHECK(mSeekState == SEEK_NONE in onMessageReceived()
211 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
289 CHECK(mCSD.isEmpty()); in makeFormat()
292 CHECK(meta->findCString(kKeyMIMEType, &mime)); in makeFormat()
299 CHECK(meta->findInt32(kKeyWidth, &width)); in makeFormat()
300 CHECK(meta->findInt32(kKeyHeight, &height)); in makeFormat()
305 CHECK(!strncasecmp("audio/", mime, 6)); in makeFormat()
308 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); in makeFormat()
[all …]
Dstagefright.cpp125 CHECK(size >= 7); in displayAVCProfileLevelIfPossible()
126 CHECK(ptr[0] == 1); // configurationVersion == 1 in displayAVCProfileLevelIfPossible()
170 CHECK(meta->findCString(kKeyMIMEType, &mime)); in playSource()
181 CHECK(!gPreferSoftwareCodec); in playSource()
224 CHECK(meta->findInt64(kKeyDuration, &durationUs)); in playSource()
236 CHECK(buffer == NULL); in playSource()
246 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs)); in playSource()
324 CHECK(buffer == NULL); in playSource()
429 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in DetectSyncSource()
435 CHECK(!"sync frame detection not implemented yet for MPEG4"); in DetectSyncSource()
[all …]
Dmediafilter.cpp198 CHECK(srcFormat->findInt32("stride", &srcStride) in tryCopyDecodedBuffer()
203 CHECK(destFormat->findInt32("stride", &destStride) in tryCopyDecodedBuffer()
209 CHECK(srcWidth <= destStride && srcHeight <= destSliceHeight); in tryCopyDecodedBuffer()
220 CHECK(srcBuffer->meta()->findInt64("timeUs", &timeUs)); in tryCopyDecodedBuffer()
244 CHECK(err == OK); in tryCopyDecodedBuffer()
247 CHECK(err == OK); in tryCopyDecodedBuffer()
303 CHECK(err == OK); in tryDrainOutputBuffer()
334 CHECK(err == OK); in decode()
337 CHECK(format->findString("mime", &mime)); in decode()
346 CHECK(err == OK); in decode()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp91 CHECK(meta->findCString(kKeyMIMEType, &mime)); in Puller()
177 CHECK(msg->findObject("meta", &obj)); in onMessageReceived()
191 CHECK(msg->senderAwaitsResponse(&replyID)); in onMessageReceived()
207 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived()
308 CHECK(mFlags & FLAG_USE_SURFACE_INPUT); in getGraphicBufferProducer()
354 CHECK(mLooper != NULL); in MediaCodecSource()
357 CHECK(mOutputFormat->findString("mime", &mime)); in MediaCodecSource()
402 CHECK(mOutputFormat->findString("mime", &outputMIME)); in initEncoder()
430 CHECK(mIsVideo); in initEncoder()
536 CHECK(mFlags & FLAG_USE_SURFACE_INPUT); in suspend()
[all …]
DMediaCodec.cpp495 CHECK(found); in createInputSurface()
690 CHECK(response->findSize("index", index)); in dequeueInputBuffer()
711 CHECK(response->findSize("index", index)); in dequeueOutputBuffer()
712 CHECK(response->findSize("offset", offset)); in dequeueOutputBuffer()
713 CHECK(response->findSize("size", size)); in dequeueOutputBuffer()
714 CHECK(response->findInt64("timeUs", presentationTimeUs)); in dequeueOutputBuffer()
715 CHECK(response->findInt32("flags", (int32_t *)flags)); in dequeueOutputBuffer()
763 CHECK(response->findMessage("format", format)); in getOutputFormat()
777 CHECK(response->findMessage("format", format)); in getInputFormat()
791 CHECK(response->findString("name", name)); in getName()
[all …]
DMediaBuffer.cpp103 CHECK(prevCount > 0); in release()
107 CHECK(mObserver != NULL); in claim()
118 CHECK(mGraphicBuffer == NULL); in data()
123 CHECK(mGraphicBuffer == NULL); in size()
139 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); in set_range()
159 CHECK(mObserver == NULL); in ~MediaBuffer()
173 CHECK(observer == NULL || mObserver == NULL); in setObserver()
190 CHECK(mGraphicBuffer == NULL); in clone()
DDRMExtractor.cpp77 CHECK(mDrmManagerClient); in DRMSource()
83 CHECK(success); in DRMSource()
89 CHECK(getFormat()->findData(kKeyAVCC, &type, &data, &size)); in DRMSource()
93 CHECK(size >= 7); in DRMSource()
153 CHECK(pDecryptedDrmBuffer == &decryptedDrmBuffer); in read()
156 CHECK(getFormat()->findCString(kKeyMIMEType, &mime)); in read()
165 CHECK(srcOffset + mNALLengthSize <= len); in read()
183 CHECK(!"Should not be here."); in read()
203 CHECK(dstOffset + 4 <= (*buffer)->size()); in read()
255 CHECK(getTrackMetaData(index, 0)->findInt32(kKeyTrackID, &trackID)); in getTrack()
[all …]
DMPEG2TSWriter.cpp106 CHECK(meta->findCString(kKeyMIMEType, &mime)); in SourceInfo()
152 CHECK(meta->findCString(kKeyMIMEType, &mime)); in extractCodecSpecificData()
204 CHECK(size >= 2); in extractCodecSpecificData()
210 CHECK(size >= length); in extractCodecSpecificData()
221 CHECK(size >= 1); in extractCodecSpecificData()
227 CHECK(size >= 2); in extractCodecSpecificData()
233 CHECK(size >= length); in extractCodecSpecificData()
265 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in postAVCFrame()
296 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); in appendAACFrames()
454 CHECK(mLastAccessUnit->meta()->findInt64("timeUs", &timeUs)); in lastAccessUnitTimeUs()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp353 CHECK(response->findInt32("err", &err)); in setPlaybackSettings()
363 CHECK(response->findInt32("err", &err)); in getPlaybackSettings()
377 CHECK(response->findInt32("err", &err)); in setSyncSettings()
388 CHECK(response->findInt32("err", &err)); in getSyncSettings()
425 CHECK(format->findInt32("type", &trackType)); in writeTrackInfo()
443 CHECK(format->findString("language", &lang)); in writeTrackInfo()
452 CHECK(format->findInt32("auto", &isAuto)); in writeTrackInfo()
453 CHECK(format->findInt32("default", &isDefault)); in writeTrackInfo()
454 CHECK(format->findInt32("forced", &isForced)); in writeTrackInfo()
468 CHECK(mSource == NULL); in onMessageReceived()
[all …]
DRTSPSource.cpp87 CHECK(mHandler == NULL); in prepareAsync()
88 CHECK(mSDPLoader == NULL); in prepareAsync()
304 CHECK(response->findInt32("err", &err)); in seekTo()
323 CHECK(msg->senderAwaitsResponse(&replyID)); in onMessageReceived()
330 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived()
331 CHECK(msg->senderAwaitsResponse(&mSeekReplyID)); in onMessageReceived()
340 CHECK(msg->findInt64("timeUs", &seekTimeUs)); in onMessageReceived()
349 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
409 CHECK(msg->findInt64("time", &timeUs)); in onMessageReceived()
418 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
[all …]
DNuPlayerRenderer.cpp162 CHECK(response->findInt32("err", &err)); in setPlaybackSettings()
196 CHECK(response->findInt32("err", &err)); in getPlaybackSettings()
230 CHECK(response->findInt32("err", &err)); in setSyncSettings()
248 CHECK(response->findInt32("err", &err)); in getSyncSettings()
365 CHECK(response->findInt32("offload", &offload)); in openAudioSink()
383 CHECK(msg->findMessage("format", &format)); in onMessageReceived()
386 CHECK(msg->findInt32("offload-only", &offloadOnly)); in onMessageReceived()
389 CHECK(msg->findInt32("has-video", &hasVideo)); in onMessageReceived()
392 CHECK(msg->findInt32("flags", (int32_t *)&flags)); in onMessageReceived()
401 CHECK(msg->senderAwaitsResponse(&replyID)); in onMessageReceived()
[all …]
DNuPlayerDecoder.cpp103 CHECK(response->findInt32("err", &err)); in setVideoSurface()
115 CHECK(msg->findInt32("callbackID", &cbID)); in onMessageReceived()
128 CHECK(msg->findInt32("index", &index)); in onMessageReceived()
142 CHECK(msg->findInt32("index", &index)); in onMessageReceived()
143 CHECK(msg->findSize("offset", &offset)); in onMessageReceived()
144 CHECK(msg->findSize("size", &size)); in onMessageReceived()
145 CHECK(msg->findInt64("timeUs", &timeUs)); in onMessageReceived()
146 CHECK(msg->findInt32("flags", &flags)); in onMessageReceived()
155 CHECK(msg->findMessage("format", &format)); in onMessageReceived()
164 CHECK(msg->findInt32("err", &err)); in onMessageReceived()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dnativewindow.cpp31 #define CHECK assert macro
32 #define CHECK_EQ(a,b) CHECK((a)==(b))
60 CHECK(control != NULL); in getNativeWindow_()
61 CHECK(control->isValid()); in getNativeWindow_()
69 CHECK(surface != NULL); in getNativeWindow_()
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp136 CHECK(encoder != NULL); in DpbAllocWrapper()
143 CHECK(encoder != NULL); in BindFrameWrapper()
149 CHECK(encoder != NULL); in UnbindFrameWrapper()
191 CHECK(outQueue.empty()); in ~SoftAVCEncoder()
192 CHECK(inQueue.empty()); in ~SoftAVCEncoder()
196 CHECK(mHandle != NULL); in initEncParams()
206 CHECK(mEncParams != NULL); in initEncParams()
253 CHECK(mInputFrameData != NULL); in initEncParams()
270 CHECK(mSliceGroup == NULL); in initEncParams()
276 CHECK(mSliceGroup != NULL); in initEncParams()
[all …]
/frameworks/av/media/libstagefright/wifi-display/source/
DConverter.cpp66 CHECK(mOutputFormat->findString("mime", &mime)); in Converter()
91 CHECK(mEncoder == NULL); in ~Converter()
110 CHECK(mFlags & FLAG_USE_SURFACE_INPUT); in getGraphicBufferProducer()
144 CHECK(mOutputFormat->findString("mime", &outputMIME)); in initEncoder()
237 CHECK(mIsVideo); in initEncoder()
297 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
305 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
322 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
425 CHECK(mOutputFormat->findString("mime", &mime)); in onMessageReceived()
444 CHECK(msg->findInt32("bufferIndex", (int32_t*)&bufferIndex)); in onMessageReceived()
[all …]
DPlaybackSession.cpp153 CHECK(!mStarted); in ~Track()
160 CHECK(format->findString("mime", &mime)); in IsAudioFormat()
195 CHECK(!mStarted); in start()
273 CHECK(accessUnit != NULL); in dequeueAccessUnit()
307 CHECK(outputBuffer->meta()->findInt64("timeUs", timeUs)); in hasOutputBuffer()
319 CHECK(!mQueuedOutputBuffers.empty()); in dequeueOutputBuffer()
491 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
494 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
498 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
531 CHECK(msg->findInt32("err", &err)); in onMessageReceived()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DMyTransmitter.h128 CHECK(buffer != NULL); in MyTransmitter()
181 CHECK(meta->findInt32(kKeyWidth, &width)); in issueAnnounce()
182 CHECK(meta->findInt32(kKeyHeight, &height)); in issueAnnounce()
274 CHECK(!strncmp(value.c_str(), "Digest", 6)); in authenticate()
347 CHECK(msg->findInt32("result", &result)); in onMessageReceived()
359 CHECK(msg->findInt32("server-ip", (int32_t *)&mServerIP)); in onMessageReceived()
368 CHECK(msg->findInt32("result", &result)); in onMessageReceived()
374 CHECK(msg->findObject("response", &obj)); in onMessageReceived()
379 CHECK(response != NULL); in onMessageReceived()
456 CHECK(msg->findInt32("result", &result)); in onMessageReceived()
[all …]
/frameworks/av/media/libmedia/
DMediaProfiles.cpp172 CHECK(!strcmp("codec", atts[0]) && in createVideoCodec()
180 CHECK(codec != -1); in createVideoCodec()
188 CHECK((nCamcorderProfiles = profiles->mCamcorderProfiles.size()) >= 1); in createVideoCodec()
196 CHECK(!strcmp("codec", atts[0]) && in createAudioCodec()
202 CHECK(codec != -1); in createAudioCodec()
210 CHECK((nCamcorderProfiles = profiles->mCamcorderProfiles.size()) >= 1); in createAudioCodec()
217 CHECK(!strcmp("name", atts[0]) && in createAudioDecoderCap()
222 CHECK(codec != -1); in createAudioDecoderCap()
233 CHECK(!strcmp("name", atts[0]) && in createVideoDecoderCap()
238 CHECK(codec != -1); in createVideoDecoderCap()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAString.cpp108 CHECK(&from != this); in setTo()
183 CHECK(mData != NULL); in append()
202 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
209 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
216 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
223 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
230 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
237 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
244 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
251 CHECK((result > 0) && ((size_t) result) < sizeof(s)); in append()
[all …]
/frameworks/av/media/libstagefright/http/
DHTTPHelper.cpp43 CHECK(clazz.get() != NULL); in CreateHTTPServiceInCurrentJavaContext()
46 CHECK(constructID != NULL); in CreateHTTPServiceInCurrentJavaContext()
55 CHECK(asBinderID != NULL); in CreateHTTPServiceInCurrentJavaContext()
59 CHECK(httpServiceBinderObj.get() != NULL); in CreateHTTPServiceInCurrentJavaContext()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp185 CHECK(mPlaylist != NULL); in getSegmentStartTimeUs()
198 CHECK(mPlaylist->itemAt( in getSegmentStartTimeUs()
202 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); in getSegmentStartTimeUs()
211 CHECK(mPlaylist != NULL); in getSegmentDurationUs()
222 CHECK(mPlaylist->itemAt( in getSegmentDurationUs()
226 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); in getSegmentDurationUs()
253 CHECK(mPlaylist->itemAt(n - 1, NULL /* uri */, &itemMeta)); in delayUsToRefreshPlaylist()
256 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); in delayUsToRefreshPlaylist()
301 CHECK(mPlaylist->itemAt(i, &uri, &itemMeta)); in decryptBuffer()
358 CHECK(n % 16 == 0); in decryptBuffer()
[all …]
/frameworks/av/media/libstagefright/omx/
DSimpleSoftOMXComponent.cpp59 CHECK(data == NULL); in sendCommand()
100 CHECK(portIndex < mPorts.size()); in isSetParameterAllowed()
115 CHECK(isSetParameterAllowed(index, params)); in setParameter()
218 CHECK(mState == OMX_StateLoaded || port->mDef.bEnabled == OMX_FALSE); in useBuffer()
255 CHECK((*header)->pPlatformPrivate == NULL); in allocateBuffer()
271 CHECK((mState == OMX_StateIdle && mTargetState == OMX_StateLoaded) in freeBuffer()
280 CHECK(!buffer->mOwnedByUs); in freeBuffer()
284 CHECK(header->pPlatformPrivate == header->pBuffer); in freeBuffer()
303 CHECK(found); in freeBuffer()
342 CHECK(msg->findInt32("cmd", &cmd)); in onMessageReceived()
[all …]

12345678