Lines Matching defs:callback

110         // Make sure that callback function exits in the case where
112 // Otherwise the callback thread will never exit.
120 // No lock here: worst case we remove a NULL callback which will be a nop
382 // The only purpose of setting marker position is to get a callback
412 // The only purpose of setting position update period is to get a callback
582 // use case 1: callback transfer mode
589 // callback running with SCHED_FIFO.
970 // Manage overrun callback, must be done under lock to avoid race with releaseBuffer()
982 // Manage marker callback
990 // Determine the number of new position callback(s) that will be needed, while locked
1117 ALOGE("EVENT_MORE_DATA requested %zu bytes but callback returned %zd bytes",
1123 // The callback is done consuming buffers
1143 // if callback doesn't like to accept the full chunk
1191 // callback thread or sync event hasn't changed
1205 status_t AudioRecord::addAudioDeviceCallback(const sp<AudioSystem::AudioDeviceCallback>& callback)
1207 if (callback == 0) {
1208 ALOGW("%s adding NULL callback!", __FUNCTION__);
1212 if (mDeviceCallback == callback) {
1213 ALOGW("%s adding same callback!", __FUNCTION__);
1219 ALOGW("%s callback already present!", __FUNCTION__);
1222 status = AudioSystem::addAudioDeviceCallback(callback, mInput);
1224 mDeviceCallback = callback;
1229 const sp<AudioSystem::AudioDeviceCallback>& callback)
1231 if (callback == 0) {
1232 ALOGW("%s removing NULL callback!", __FUNCTION__);
1236 if (mDeviceCallback != callback) {
1237 ALOGW("%s removing different callback!", __FUNCTION__);
1306 // Event driven: call wake() when callback notifications conditions change.
1344 // wake() might be called while servicing a callback - ignore the next