Home
last modified time | relevance | path

Searched refs:cblk (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/media/libmedia/
DAudioRecord.cpp441 sp<IMemory> cblk = record->getCblk(); in openRecord() local
442 if (cblk == 0) { in openRecord()
449 mCblkMemory = cblk; in openRecord()
450 mCblk = static_cast<audio_track_cblk_t*>(cblk->pointer()); in openRecord()
462 audio_track_cblk_t* cblk = mCblk; in obtainBuffer() local
464 uint32_t waitTimeMs = (waitCount < 0) ? cblk->bufferTimeoutMs : WAIT_PERIOD_MS; in obtainBuffer()
469 uint32_t framesReady = cblk->framesReady(); in obtainBuffer()
472 cblk->lock.lock(); in obtainBuffer()
477 cblk->lock.unlock(); in obtainBuffer()
481 cblk->lock.unlock(); in obtainBuffer()
[all …]
DAudioTrack.cpp505 audio_track_cblk_t* cblk = mCblk; in setLoop() local
507 Mutex::Autolock _l(cblk->lock); in setLoop()
510 cblk->loopStart = UINT_MAX; in setLoop()
511 cblk->loopEnd = UINT_MAX; in setLoop()
512 cblk->loopCount = 0; in setLoop()
518 loopEnd - loopStart > cblk->frameCount) { in setLoop()
519 …oopCount %d, framecount %d, user %d", loopStart, loopEnd, loopCount, cblk->frameCount, cblk->user); in setLoop()
523 if ((mSharedBuffer != 0) && (loopEnd > cblk->frameCount)) { in setLoop()
525 loopStart, loopEnd, cblk->frameCount); in setLoop()
529 cblk->loopStart = loopStart; in setLoop()
[all …]
DIAudioRecord.cpp68 sp<IMemory> cblk; in getCblk() local
72 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
74 return cblk; in getCblk()
DIAudioTrack.cpp94 sp<IMemory> cblk; in getCblk() local
98 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
100 return cblk; in getCblk()
DIEffect.cpp108 sp<IMemory> cblk; in getCblk() local
112 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
114 return cblk; in getCblk()
DAudioEffect.cpp99 sp<IMemory> cblk; in set() local
149 cblk = iEffect->getCblk(); in set()
150 if (cblk == 0) { in set()
157 mCblkMemory = cblk; in set()
158 mCblk = static_cast<effect_param_cblk_t*>(cblk->pointer()); in set()
/frameworks/base/libs/surfaceflinger_client/
DSurfaceComposerClient.cpp223 volatile surface_flinger_cblk_t const * cblk = get_cblk(); in getDisplayInfo() local
224 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayInfo()
240 volatile surface_flinger_cblk_t const * cblk = get_cblk(); in getDisplayWidth() local
241 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayWidth()
249 volatile surface_flinger_cblk_t const * cblk = get_cblk(); in getDisplayHeight() local
250 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayHeight()
258 volatile surface_flinger_cblk_t const * cblk = get_cblk(); in getDisplayOrientation() local
259 volatile display_cblk_t const * dcblk = cblk->displays + dpy; in getDisplayOrientation()
265 volatile surface_flinger_cblk_t const * cblk = get_cblk(); in getNumberOfDisplays() local
266 uint32_t connected = cblk->connected; in getNumberOfDisplays()
/frameworks/base/services/audioflinger/
DAudioFlinger.cpp1713 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
1718 if (cblk->framesReady() && track->isReady() && in prepareTracks_l()
1748 } else if (cblk->server != 0) { in prepareTracks_l()
1778 vl = (uint32_t)(v * cblk->volume[0]) << 12; in prepareTracks_l()
1779 vr = (uint32_t)(v * cblk->volume[1]) << 12; in prepareTracks_l()
1781 va = (uint32_t)(v * cblk->sendLevel); in prepareTracks_l()
1833 (void *)(cblk->sampleRate)); in prepareTracks_l()
1860 cblk->flags |= CBLK_DISABLED_ON; in prepareTracks_l()
2230 audio_track_cblk_t* cblk = track->cblk(); in threadLoop() local
2234 if (cblk->framesReady() && track->isReady() && in threadLoop()
[all …]
DAudioFlinger.h315 audio_track_cblk_t* cblk() const { return mCblk; } in cblk() function