Home
last modified time | relevance | path

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

1234567

/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()
184 CHECK(msg->findInt32(key, &val)); in ConvertMessageToMap()
193 CHECK(msg->findInt64(key, &val)); in ConvertMessageToMap()
[all …]
Dandroid_media_MediaCodec.cpp94 CHECK(clazz != NULL); in JMediaCodec()
114 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec()
120 CHECK(mByteBufferClass != NULL); in cacheJavaObjects()
124 CHECK(byteOrderClass.get() != NULL); in cacheJavaObjects()
128 CHECK(nativeOrderID != NULL); in cacheJavaObjects()
133 CHECK(mNativeByteOrderObj != NULL); in cacheJavaObjects()
141 CHECK(mByteBufferOrderMethodID != NULL); in cacheJavaObjects()
145 CHECK(mByteBufferAsReadOnlyBufferMethodID != NULL); in cacheJavaObjects()
149 CHECK(mByteBufferPositionMethodID != NULL); in cacheJavaObjects()
153 CHECK(mByteBufferLimitMethodID != NULL); in cacheJavaObjects()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp346 CHECK(format->findInt32("type", &trackType)); in writeTrackInfo()
349 CHECK(format->findString("language", &lang)); in writeTrackInfo()
357 CHECK(format->findString("mime", &mime)); in writeTrackInfo()
360 CHECK(format->findInt32("auto", &isAuto)); in writeTrackInfo()
361 CHECK(format->findInt32("default", &isDefault)); in writeTrackInfo()
362 CHECK(format->findInt32("forced", &isForced)); in writeTrackInfo()
377 CHECK(mSource == NULL); in onMessageReceived()
381 CHECK(msg->findObject("source", &obj)); in onMessageReceived()
388 CHECK(mDriver != NULL); in onMessageReceived()
405 CHECK(msg->senderAwaitsResponse(&replyID)); in onMessageReceived()
[all …]
DRTSPSource.cpp87 CHECK(mHandler == NULL); in prepareAsync()
88 CHECK(mSDPLoader == NULL); in prepareAsync()
315 CHECK(msg->senderAwaitsResponse(&replyID)); in onMessageReceived()
322 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived()
330 CHECK(msg->findInt64("timeUs", &seekTimeUs)); in onMessageReceived()
339 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
377 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
386 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
431 CHECK(accessUnit->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); in onMessageReceived()
456 CHECK(msg->findInt32("finalResult", &finalResult)); in onMessageReceived()
[all …]
/frameworks/av/cmds/stagefright/
Dsf2.cpp71 CHECK(!mDecodeAudio || mSurface == NULL); in Controller()
128 CHECK(meta->findCString(kKeyMIMEType, &mime)); in onMessageReceived()
180 CHECK(mSeekState == SEEK_NONE in onMessageReceived()
212 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
290 CHECK(mCSD.isEmpty()); in makeFormat()
293 CHECK(meta->findCString(kKeyMIMEType, &mime)); in makeFormat()
300 CHECK(meta->findInt32(kKeyWidth, &width)); in makeFormat()
301 CHECK(meta->findInt32(kKeyHeight, &height)); in makeFormat()
306 CHECK(!strncasecmp("audio/", mime, 6)); in makeFormat()
309 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); in makeFormat()
[all …]
Dstagefright.cpp123 CHECK(size >= 7); in displayAVCProfileLevelIfPossible()
124 CHECK(ptr[0] == 1); // configurationVersion == 1 in displayAVCProfileLevelIfPossible()
168 CHECK(meta->findCString(kKeyMIMEType, &mime)); in playSource()
179 CHECK(!gPreferSoftwareCodec); in playSource()
222 CHECK(meta->findInt64(kKeyDuration, &durationUs)); in playSource()
234 CHECK(buffer == NULL); in playSource()
244 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs)); in playSource()
322 CHECK(buffer == NULL); in playSource()
427 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in DetectSyncSource()
433 CHECK(!"sync frame detection not implemented yet for MPEG4"); in DetectSyncSource()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp86 CHECK(meta->findCString(kKeyMIMEType, &mime)); in Puller()
172 CHECK(msg->findObject("meta", &obj)); in onMessageReceived()
186 CHECK(msg->senderAwaitsResponse(&replyID)); in onMessageReceived()
202 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived()
302 CHECK(mFlags & FLAG_USE_SURFACE_INPUT); in getGraphicBufferProducer()
343 CHECK(mLooper != NULL); in MediaCodecSource()
346 CHECK(mOutputFormat->findString("mime", &mime)); in MediaCodecSource()
391 CHECK(mOutputFormat->findString("mime", &outputMIME)); in initEncoder()
416 CHECK(mIsVideo); in initEncoder()
506 CHECK(mFlags & FLAG_USE_SURFACE_INPUT); in suspend()
[all …]
DMediaCodec.cpp299 CHECK(found); in createInputSurface()
431 CHECK(response->findSize("index", index)); in dequeueInputBuffer()
452 CHECK(response->findSize("index", index)); in dequeueOutputBuffer()
453 CHECK(response->findSize("offset", offset)); in dequeueOutputBuffer()
454 CHECK(response->findSize("size", size)); in dequeueOutputBuffer()
455 CHECK(response->findInt64("timeUs", presentationTimeUs)); in dequeueOutputBuffer()
456 CHECK(response->findInt32("flags", (int32_t *)flags)); in dequeueOutputBuffer()
504 CHECK(response->findMessage("format", format)); in getOutputFormat()
518 CHECK(response->findMessage("format", format)); in getInputFormat()
532 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/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/libmedia/
DMediaProfiles.cpp181 CHECK(!strcmp("codec", atts[0]) && in createVideoCodec()
189 CHECK(codec != -1); in createVideoCodec()
197 CHECK((nCamcorderProfiles = profiles->mCamcorderProfiles.size()) >= 1); in createVideoCodec()
205 CHECK(!strcmp("codec", atts[0]) && in createAudioCodec()
211 CHECK(codec != -1); in createAudioCodec()
219 CHECK((nCamcorderProfiles = profiles->mCamcorderProfiles.size()) >= 1); in createAudioCodec()
226 CHECK(!strcmp("name", atts[0]) && in createAudioDecoderCap()
231 CHECK(codec != -1); in createAudioDecoderCap()
242 CHECK(!strcmp("name", atts[0]) && in createVideoDecoderCap()
247 CHECK(codec != -1); in createVideoDecoderCap()
[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()
489 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
492 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
496 CHECK(msg->findBuffer("accessUnit", &accessUnit)); in onMessageReceived()
529 CHECK(msg->findInt32("err", &err)); in onMessageReceived()
[all …]
/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/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/libstagefright/httplive/
DPlaylistFetcher.cpp92 CHECK(mPlaylist != NULL); in getSegmentStartTimeUs()
110 CHECK(mPlaylist->itemAt( in getSegmentStartTimeUs()
114 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); in getSegmentStartTimeUs()
135 CHECK(mPlaylist->meta()->findInt32("target-duration", &targetDurationSecs)); in delayUsToRefreshPlaylist()
147 CHECK(mPlaylist->itemAt(n - 1, NULL /* uri */, &itemMeta)); in delayUsToRefreshPlaylist()
150 CHECK(itemMeta->findInt64("durationUs", &itemDurationUs)); in delayUsToRefreshPlaylist()
195 CHECK(mPlaylist->itemAt(i, &uri, &itemMeta)); in decryptBuffer()
250 CHECK(n % 16 == 0); in decryptBuffer()
296 CHECK(buffer->meta()->findString("cipher-method", &method)); in checkDecryptPadding()
426 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived()
[all …]
DLiveSession.cpp227 CHECK((*accessUnit)->meta()->findInt32("discontinuity", &type)); in dequeueAccessUnit()
242 CHECK((*accessUnit)->meta()->findInt32("switchGeneration", &switchGeneration)); in dequeueAccessUnit()
279 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); in dequeueAccessUnit()
393 CHECK(msg->senderAwaitsResponse(&mDisconnectReplyID)); in onMessageReceived()
406 CHECK(msg->senderAwaitsResponse(&seekReplyID)); in onMessageReceived()
421 CHECK(msg->findInt32("what", &what)); in onMessageReceived()
431 CHECK(msg->findString("uri", &uri)); in onMessageReceived()
448 CHECK(mSeekReply != NULL); in onMessageReceived()
462 CHECK(msg->findString("uri", &uri)); in onMessageReceived()
465 CHECK(msg->findInt64("durationUs", &durationUs)); in onMessageReceived()
[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/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/timedtext/
DTimedText3GPPSource.cpp49 CHECK(textBuffer != NULL); in read()
72 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in extractAndAppendLocalDescriptions()
73 CHECK(strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0); in extractAndAppendLocalDescriptions()
96 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in extractGlobalDescriptions()
97 CHECK(strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0); in extractGlobalDescriptions()
/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 …]
/frameworks/av/media/libstagefright/codecs/aacenc/
DAACEncoder.cpp46 CHECK(mApiHandle == NULL && mEncoderHandle == NULL); in initCheck()
47 CHECK(mMeta->findInt32(kKeySampleRate, &mSampleRate)); in initCheck()
48 CHECK(mMeta->findInt32(kKeyChannelCount, &mChannels)); in initCheck()
49 CHECK(mChannels <= 2 && mChannels >= 1); in initCheck()
50 CHECK(mMeta->findInt32(kKeyBitRate, &mBitRate)); in initCheck()
53 CHECK(mApiHandle); in initCheck()
61 CHECK(mMemOperator != NULL); in initCheck()
152 CHECK(mInputFrame != NULL); in start()
223 CHECK(options == NULL || !options->getSeekTo(&seekTimeUs, &mode)); in read()
301 CHECK(VO_ERR_NONE == mApiHandle->SetInputData(mEncoderHandle,&inputData)); in read()
/frameworks/av/media/libstagefright/wifi-display/
DMediaSender.cpp79 CHECK(format->findString("mime", &mime)); in addTrack()
235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAccessUnit()
261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); in queueAccessUnit()
290 CHECK(msg->findInt32("generation", &generation)); in onMessageReceived()
306 CHECK(msg->findInt32("what", &what)); in onSenderNotify()
314 CHECK(msg->findInt32("err", &err)); in onSenderNotify()
331 CHECK(msg->findInt32("err", &err)); in onSenderNotify()
340 CHECK(msg->findSize("numBytesQueued", &numBytesQueued)); in onSenderNotify()
349 CHECK(msg->findInt64("avgLatencyUs", &avgLatencyUs)); in onSenderNotify()
352 CHECK(msg->findInt64("maxLatencyUs", &maxLatencyUs)); in onSenderNotify()
[all …]

1234567