Lines Matching refs:SIZE
107 // minimum normal mix buffer size, expressed in milliseconds rather than frames
109 // maximum normal mix buffer size
121 // multiplier is calculated based on min & max normal mixer buffer size
123 // multiplier is calculated based on min & max normal mixer buffer size
136 // IAudioFlinger::createTrack() reports back to client the total size of shared memory area
286 for (size_t i = 0; i < mConfigEvents.size(); i++) {
355 ALOGV("sendIoConfigEvent() num events %d event %d, param %d", mConfigEvents.size(), event,
366 mConfigEvents.size(), pid, tid, prio);
374 ALOGV("processConfigEvents() remaining events %d", mConfigEvents.size());
410 const size_t SIZE = 256;
411 char buffer[SIZE];
416 snprintf(buffer, SIZE, "thread %p maybe dead locked\n", this);
420 snprintf(buffer, SIZE, "io handle: %d\n", mId);
422 snprintf(buffer, SIZE, "TID: %d\n", getTid());
424 snprintf(buffer, SIZE, "standby: %d\n", mStandby);
426 snprintf(buffer, SIZE, "Sample rate: %u\n", mSampleRate);
428 snprintf(buffer, SIZE, "HAL frame count: %d\n", mFrameCount);
430 snprintf(buffer, SIZE, "Channel Count: %u\n", mChannelCount);
432 snprintf(buffer, SIZE, "Channel Mask: 0x%08x\n", mChannelMask);
434 snprintf(buffer, SIZE
436 snprintf(buffer, SIZE, "Frame size: %u\n", mFrameSize);
439 snprintf(buffer, SIZE, "\nPending setParameters commands: \n");
442 for (size_t i = 0; i < mNewParameters.size(); ++i) {
443 snprintf(buffer, SIZE, "\n %02d ", i);
448 snprintf(buffer, SIZE, "\n\nPending config events: \n");
450 for (size_t i = 0; i < mConfigEvents.size(); i++) {
451 mConfigEvents[i]->dump(buffer, SIZE);
456 write(fd, result.string(), result.size());
465 const size_t SIZE = 256;
466 char buffer[SIZE];
469 snprintf(buffer, SIZE, "\n- %d Effect Chains:\n", mEffectChains.size());
472 for (size_t i = 0; i < mEffectChains.size(); ++i) {
577 status = mPowerManager->updateWakeLockUids(mWakeLockToken, uids.size(), uids.array());
630 for (size_t i = 0; i < sessionEffects.size(); i++) {
940 for (size_t i = 0; i < mEffectChains.size(); i++) {
948 for (size_t i = 0; i < effectChains.size(); i++) {
961 size_t size = mEffectChains.size();
962 for (size_t i = 0; i < size; i++) {
973 size_t size = mEffectChains.size();
974 for (size_t i = 0; i < size; i++) {
1075 const size_t SIZE = 256;
1076 char buffer[SIZE];
1094 snprintf(buffer, SIZE, "Output thread %p tracks\n", this);
1097 for (size_t i = 0; i < mTracks.size(); ++i) {
1100 track->dump(buffer, SIZE);
1105 snprintf(buffer, SIZE, "Output thread %p active tracks\n", this);
1108 for (size_t i = 0; i < mActiveTracks.size(); ++i) {
1111 track->dump(buffer, SIZE);
1115 write(fd, result.string(), result.size());
1125 const size_t SIZE = 256;
1126 char buffer[SIZE];
1129 snprintf(buffer, SIZE, "\nOutput thread %p internals\n", this);
1131 snprintf(buffer, SIZE, "Normal frame count: %d\n", mNormalFrameCount);
1133 snprintf(buffer, SIZE, "last write occurred (msecs): %llu\n",
1136 snprintf(buffer, SIZE, "total writes: %d\n", mNumWrites);
1138 snprintf(buffer, SIZE, "delayed writes: %d\n", mNumDelayedWrites);
1140 snprintf(buffer, SIZE, "blocked in write: %d\n", mInWrite);
1142 snprintf(buffer, SIZE, "suspend count: %d\n", mSuspended);
1144 snprintf(buffer, SIZE, "mix buffer : %p\n", mMixBuffer);
1146 write(fd, result.string(), result.size());
1309 for (size_t i = 0; i < mTracks.size(); ++i) {
1647 ALOGW("HAL output buffer size is %u frames but AudioMixer requires multiples of 16 frames",
1660 // Calculate size of normal mix buffer relative to the HAL output buffer size
1683 // SRC (it would be unusual for the normal mix buffer size to not be a multiple of fast
1699 ALOGI("HAL output buffer size %u frames, normal mix buffer size %u frames", mFrameCount,
1708 // force reconfiguration of effect chains and engines to take new buffer size and audio
1715 for (size_t i = 0; i < effectChains.size(); i ++) {
1751 for (size_t i = 0; i < mTracks.size(); ++i) {
1769 for (size_t i = 0; i < mTracks.size(); i++) {
1820 for (size_t i = 0; i < mTracks.size(); ++i) {
1839 size_t count = tracksToRemove.size();
1966 - mixBufferSize from frame count * frame size
1974 - frame size
1992 ALOGV("MixerThread::invalidateTracks() mixer %p, streamType %d, mTracks.size %d",
1993 this, streamType, mTracks.size());
1996 size_t size = mTracks.size();
1997 for (size_t i = 0; i < size; i++) {
2024 for (size_t i = 0; i < mTracks.size(); ++i) {
2035 for (size_t i = 0 ; i < mActiveTracks.size() ; ++i) {
2059 size_t size = mEffectChains.size();
2061 for (i = 0; i < size; i++) {
2078 for (size_t i = 0; i < mEffectChains.size(); i++) {
2082 for (size_t i = 0 ; i < mActiveTracks.size() ; ++i) {
2095 for (size_t i = 0; i < mTracks.size(); ++i) {
2105 return mEffectChains.size();
2140 for (size_t i = 0; i < mTracks.size(); ++i) {
2230 if ((!mActiveTracks.size() && systemTime() > standbyTime) ||
2240 if (!mActiveTracks.size() && mConfigEvents.isEmpty()) {
2314 for (size_t i = 0; i < effectChains.size(); i ++) {
2324 for (size_t i = 0; i < effectChains.size(); i ++) {
2407 size_t count = tracksToRemove.size();
2783 // buffer size, then write 0s to the output
2816 size_t count = mActiveTracks.size();
3029 // the minimum track buffer size is normally twice the number of frames necessary
3377 // size depends on frame count and correct behavior would not be guaranteed
3413 for (size_t i = 0; i < mEffectChains.size(); i++) {
3433 for (size_t i = 0; i < mTracks.size() ; i++) {
3469 const size_t SIZE = 256;
3470 char buffer[SIZE];
3475 snprintf(buffer, SIZE, "AudioMixer tracks: %08x\n", mAudioMixer->trackNames());
3477 write(fd, result.string(), result.size());
3596 size_t count = mActiveTracks.size();
3755 // size depends on frame count and correct behavior would not be garantied
3962 size_t count = mActiveTracks.size
4170 if (mTracks.size() > 0) {
4171 TrackPaused = mTracks[mTracks.size() - 1]->isPaused();
4215 for (size_t i = 0; i < mOutputTracks.size(); i++) {
4256 for (size_t i = 0; i < outputTracks.size(); i++) {
4266 for (size_t i = 0; i < outputTracks.size(); i++) {
4304 for (size_t i = 0; i < mOutputTracks.size(); i++) {
4319 for (size_t i = 0; i < mOutputTracks.size(); i++) {
4334 for (size_t i = 0; i < outputTracks.size(); i++) {
4499 for (size_t i = 0; i < effectChains.size(); i ++) {
4636 for (size_t i = 0; i < mTracks.size(); i++) {
4915 for (size_t i = 0; i < mTracks.size(); i++) {
4954 const size_t SIZE = 256;
4955 char buffer[SIZE];
4958 snprintf(buffer, SIZE, "\nInput thread %p internals\n", this);
4962 snprintf(buffer, SIZE, "In index: %d\n", mRsmpInIndex);
4964 snprintf(buffer, SIZE, "Buffer size: %u bytes\n", mBufferSize);
4966 snprintf(buffer, SIZE, "Resampling: %d\n", (mResampler != NULL));
4968 snprintf(buffer, SIZE, "Out channel count: %u\n", mReqChannelCount);
4970 snprintf(buffer, SIZE, "Out sample rate: %u\n", mReqSampleRate);
4976 write(fd, result.string(), result.size());
4983 const size_t SIZE = 256;
4984 char buffer[SIZE];
4987 snprintf(buffer, SIZE, "Input thread %p tracks\n", this);
4990 for (size_t i = 0; i < mTracks.size(); ++i) {
4993 track->dump(buffer, SIZE);
4999 snprintf(buffer, SIZE, "\nInput thread %p active tracks\n", this);
5002 mActiveTrack->dump(buffer, SIZE);
5006 write(fd, result.string(), result.size());
5086 // size depends on frame count and correct behavior would not be guaranteed
5097 for (size_t i = 0; i < mEffectChains.size(); i++) {
5111 if (mTracks.size() > 0) {
5114 for (size_t i = 0; i < mTracks.size(); i++) {
5126 for (size_t i = 0; i < mEffectChains.size(); i++) {
5267 for (size_t i = 0; i < mTracks.size(); ++i) {
5281 for (size_t j = 0; j < mTracks.size(); ++j) {
5311 if (mEffectChains.size() != 0) {
5329 ALOGW_IF(mEffectChains.size() != 1,
5330 "removeEffectChain_l() %p invalid chain size %d on thread %p",
5331 chain.get(), mEffectChains.size(), this);
5332 if (mEffectChains.size() == 1) {