Home
last modified time | relevance | path

Searched refs:ALOG_ASSERT (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp118 ALOG_ASSERT(mPolicyCriterionTypes.find(typeName) == mPolicyCriterionTypes.end(), in addCriterionType()
130 ALOG_ASSERT(mPolicyCriterionTypes.find(typeName) != mPolicyCriterionTypes.end(), in addCriterionTypeValuePair()
141 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadCriterionType()
145 ALOG_ASSERT(node != NULL, "error in parsing file"); in loadCriterionType()
163 ALOG_ASSERT((first != NULL) && (strlen(first) != 0) && in loadCriterionType()
186 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadInclusiveCriterionType()
196 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadExclusiveCriterionType()
206 ALOG_ASSERT(root != NULL, "error in parsing file"); in parseChildren()
209 ALOG_ASSERT(node != NULL, "error in parsing file"); in parseChildren()
226 ALOG_ASSERT(it != elementsMap.end(), "Element %s not found", name.c_str()); in getElement()
[all …]
/frameworks/av/media/libnbaio/
DSourceAudioBufferProvider.cpp30 ALOG_ASSERT(source != 0); in SourceAudioBufferProvider()
36 ALOG_ASSERT(index == (ssize_t) NEGOTIATE && numCounterOffers > 0); in SourceAudioBufferProvider()
39 ALOG_ASSERT(index == 0); in SourceAudioBufferProvider()
50 ALOG_ASSERT(buffer != NULL && buffer->frameCount > 0 && mGetCount == 0); in getNextBuffer()
53 ALOG_ASSERT(mOffset + mRemaining <= mSize); in getNextBuffer()
78 ALOG_ASSERT((size_t) actual <= buffer->frameCount); in getNextBuffer()
96 ALOG_ASSERT((buffer != NULL) && in releaseBuffer()
DAudioBufferProviderSource.cpp30 ALOG_ASSERT(provider != NULL); in AudioBufferProviderSource()
31 ALOG_ASSERT(Format_isValid(format)); in AudioBufferProviderSource()
60 ALOG_ASSERT(mBuffer.raw != NULL); in read()
91 ALOG_ASSERT(accumulator <= total); in readVia()
104 ALOG_ASSERT(mBuffer.raw != NULL && mBuffer.frameCount <= count); in readVia()
128 ALOG_ASSERT((size_t) ret <= count); in readVia()
DNBAIO.cpp71 ALOG_ASSERT(frameSize > 0 && frameSize <= 8); in writeVia()
85 ALOG_ASSERT((size_t) ret <= count); in writeVia()
89 ALOG_ASSERT((size_t) ret <= maxRet); in writeVia()
107 ALOG_ASSERT(frameSize > 0 && frameSize <= 8); in readVia()
121 ALOG_ASSERT((size_t) ret <= count); in readVia()
125 ALOG_ASSERT((size_t) ret <= maxRet); in readVia()
DAudioStreamOutSink.cpp30 ALOG_ASSERT(stream != NULL); in AudioStreamOutSink()
58 ALOG_ASSERT(Format_isValid(mFormat)); in write()
DPipe.cpp40 ALOG_ASSERT(android_atomic_acquire_load(&mReaders) == 0); in ~Pipe()
DAudioStreamInSource.cpp33 ALOG_ASSERT(stream != NULL); in AudioStreamInSource()
DMonoPipeReader.cpp42 ALOG_ASSERT((0 <= ret) && ((size_t) ret <= mPipe->mMaxFrames)); in availableToRead()
/frameworks/av/services/audioflinger/
DFastCapture.cpp109 ALOG_ASSERT(channelCount >= 1 && channelCount <= FCC_8); in onStateChange()
125 ALOG_ASSERT(Format_isEqual(mFormat, mPipeSink->format())); in onStateChange()
167 ALOG_ASSERT(mInputSource != NULL); in onWork()
168 ALOG_ASSERT(mReadBuffer != NULL); in onWork()
188 ALOG_ASSERT(mPipeSink != NULL); in onWork()
189 ALOG_ASSERT(mReadBuffer != NULL); in onWork()
DStateQueue.cpp78 ALOG_ASSERT(!mInMutation, "begin() called when in a mutation"); in begin()
85 ALOG_ASSERT(mInMutation, "end() called when not in a mutation"); in end()
86 ALOG_ASSERT(mIsInitialized || didModify, "first end() must modify for initialization"); in end()
100 ALOG_ASSERT(!mInMutation, "push() called when in a mutation"); in push()
DFastMixer.cpp233 ALOG_ASSERT(mMixerBuffer != NULL); in onStateChange()
242 ALOG_ASSERT(fastTrack->mBufferProvider == NULL); in onStateChange()
245 ALOG_ASSERT(name >= 0); in onStateChange()
262 ALOG_ASSERT(bufferProvider != NULL && mFastTrackNames[i] == -1); in onStateChange()
266 ALOG_ASSERT(name >= 0); in onStateChange()
297 ALOG_ASSERT(bufferProvider != NULL); in onStateChange()
300 ALOG_ASSERT(name >= 0); in onStateChange()
339 ALOG_ASSERT(mMixerBuffer != NULL); in onWork()
371 ALOG_ASSERT(name >= 0); in onWork()
458 ALOG_ASSERT((size_t) framesWritten <= frameCount); in onWork()
DAutoPark.h45 ALOG_ASSERT(mFastThread != nullptr); in ~AutoPark()
48 ALOG_ASSERT(state->mCommand == FastThreadState::HOT_IDLE); in ~AutoPark()
DAudioStreamOut.cpp184 ALOG_ASSERT(stream != NULL); in flush()
196 ALOG_ASSERT(stream != NULL); in standby()
204 ALOG_ASSERT(stream != NULL); in write()
DAudioResamplerDyn.cpp504 ALOG_ASSERT(0 <= inFrameCount && inFrameCount < (1U << 31)); in resample()
523 ALOG_ASSERT(inputIndex <= mBuffer.frameCount, "inputIndex%d > frameCount%d", in resample()
571 ALOG_ASSERT(phaseFraction < phaseWrapLimit); in resample()
594 ALOG_ASSERT(inputIndex == frameCount, "inputIndex(%d) != frameCount(%d)", in resample()
598 ALOG_ASSERT(mBuffer.frameCount == 0); in resample()
606 ALOG_ASSERT(inputIndex == 0, "Releasing: inputindex:%d frameCount:%d phaseFraction:%u", in resample()
608 ALOG_ASSERT(mBuffer.frameCount == 0); // there must be no frames in the buffer in resample()
DTracks.cpp192 ALOG_ASSERT(index == 0); in TrackBase()
196 ALOG_ASSERT(index == 0); in TrackBase()
374 ALOG_ASSERT(!(client == 0 && sharedBuffer != 0)); in Track()
403 ALOG_ASSERT(thread->mFastTrackAvailMask != 0); in Track()
405 ALOG_ASSERT(0 < i && i < (int)FastMixerState::sMaxFastTracks); in Track()
995 ALOG_ASSERT(isFastTrack() && (mCblk != NULL)); in getVolumeLR()
1368 ALOG_ASSERT(mPeerProxy != 0, "PatchTrack::getNextBuffer() called without peer proxy"); in getNextBuffer()
1383 ALOG_ASSERT(mPeerProxy != 0, "PatchTrack::releaseBuffer() called without peer proxy"); in releaseBuffer()
1509 ALOG_ASSERT(thread->mFastTrackAvail); in RecordTrack()
1691 ALOG_ASSERT(mPeerProxy != 0, "PatchRecord::getNextBuffer() called without peer proxy"); in getNextBuffer()
[all …]
DBufferProviders.cpp92 ALOG_ASSERT(res == OK || mBuffer.frameCount == 0); in getNextBuffer()
100 ALOG_ASSERT(mConsumed < mBuffer.frameCount); in getNextBuffer()
122 ALOG_ASSERT(mBuffer.frameCount == 0); in releaseBuffer()
395 ALOG_ASSERT(res == OK || mBuffer.frameCount == 0); in getNextBuffer()
DFastThread.cpp93 ALOG_ASSERT(mSleepNs < 1000000000); in threadLoop()
161 ALOG_ASSERT(coldFutexAddr != NULL); in threadLoop()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/plugin/
DPolicySubsystem.cpp50 ALOG_ASSERT(engineInstance != NULL, "NULL Plugin Interface"); in PolicySubsystem()
54 ALOG_ASSERT(mPluginInterface != NULL, "NULL Plugin Interface"); in PolicySubsystem()
90 ALOG_ASSERT(mPluginInterface != NULL, "NULL Plugin Interface"); in getPolicyPluginInterface()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DVolumeCurve.h116 ALOG_ASSERT(mOriginVolumeCurves.indexOfKey(deviceCategory) >= 0, "Invalid device category"); in getOriginVolumeCurve()
121 ALOG_ASSERT(indexOfKey(deviceCategory) >= 0, "Invalid device category for Volume Curve"); in setVolumeCurve()
199 ALOG_ASSERT(sourceCurves.size() == dstCurves.size(), "device category not aligned"); in switchVolumeCurve()
224 ALOG_ASSERT(indexOfKey(stream) >= 0, "Invalid stream type for Volume Curve"); in editCurvesFor()
229 ALOG_ASSERT(indexOfKey(stream) >= 0, "Invalid stream type for Volume Curve"); in getCurvesFor()
/frameworks/ex/framesequence/jni/
DFrameSequence_webp.cpp61 ALOG_ASSERT(ok, "Could not retrieve frame# 0"); in constructDependencyChain()
66 ALOG_ASSERT(ok, "Could not retrieve frame# %d", i); in constructDependencyChain()
282 ALOG_ASSERT(demux, "Cannot drawFrame, mDemux is NULL"); in drawFrame()
305 ALOG_ASSERT(ok, "Could not retrieve frame# %d", start - 1); in drawFrame()
316 ALOG_ASSERT(ok, "Could not retrieve frame# %d", i); in drawFrame()
355 ALOG_ASSERT(ok, "Could not retrieve frame# %d", lastFrame - 1); in drawFrame()
/frameworks/ex/framesequence/jni/utils/
Dlog.h226 #ifndef ALOG_ASSERT
227 #define ALOG_ASSERT(cond, ...) LOG_FATAL_IF(!(cond), ## __VA_ARGS__) macro
/frameworks/av/services/radio/
DRadioService.cpp471 ALOG_ASSERT(oldestAudio != 0, "addClient() allocatedAudio/oldestAudio mismatch"); in addClient()
477 ALOG_ASSERT(oldestTuner != 0, "addClient() allocatedTuners/oldestTuner mismatch"); in addClient()
480 ALOG_ASSERT(oldestAudio != 0, "addClient() allocatedAudio/oldestAudio mismatch"); in addClient()
581 ALOG_ASSERT(allocatedTuners + allocatedAudio < mProperties.num_tuners, in removeClient()
584 ALOG_ASSERT(!moduleClient->audio() || allocatedAudio < mProperties.num_audio_sources, in removeClient()
591 ALOG_ASSERT(youngestClient != 0, "removeClient() removed client no candidate found for tuner"); in removeClient()
/frameworks/native/libs/binder/
DIPCThreadState.cpp766 ALOG_ASSERT(acquireResult != NULL, "Unexpected brACQUIRE_RESULT"); in waitForResponse()
777 ALOG_ASSERT(err == NO_ERROR, "Not enough command data for brREPLY"); in waitForResponse()
985 ALOG_ASSERT(refs->refBase() == obj, in executeCommand()
1001 ALOG_ASSERT(refs->refBase() == obj, in executeCommand()
1038 ALOG_ASSERT(success && refs->refBase() == obj, in executeCommand()
1051 ALOG_ASSERT(result == NO_ERROR, in executeCommand()
1209 ALOG_ASSERT(data != NULL, "Called with NULL data"); in freeBuffer()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp76 ALOG_ASSERT(mProfile != 0, in toAudioPortConfig()
96 ALOG_ASSERT(mProfile != 0, "toAudioPort() called on input with null profile %d", mIoHandle); in toAudioPort()
/frameworks/base/include/androidfw/
DByteBucketArray.h68 ALOG_ASSERT(index < size(), "ByteBucketArray.getOrCreate(index=%u) with size=%u", in editItemAt()

123