Searched refs:callback (Results 1 - 25 of 34) sorted by relevance

12

/system/media/opensles/libopensles/
H A DIVisualization.c23 slVisualizationCallback callback, void *pContext, SLmilliHertz rate)
32 this->mCallback = callback;
22 IVisualization_RegisterVisualizationCallback(SLVisualizationItf self, slVisualizationCallback callback, void *pContext, SLmilliHertz rate) argument
H A DIMIDIMessage.c39 slMetaEventCallback callback, void *pContext)
45 this->mMetaEventCallback = callback;
55 slMIDIMessageCallback callback, void *pContext)
61 this->mMessageCallback = callback;
38 IMIDIMessage_RegisterMetaEventCallback(SLMIDIMessageItf self, slMetaEventCallback callback, void *pContext) argument
54 IMIDIMessage_RegisterMIDIMessageCallback(SLMIDIMessageItf self, slMIDIMessageCallback callback, void *pContext) argument
H A Dandroid_AudioRecorder.cpp102 slRecordCallback callback = NULL; local
106 callback = ar->mRecord.mCallback;
110 if (NULL != callback) {
112 (*callback)(&ar->mRecord.mItf, callbackPContext, SL_RECORDEVENT_HEADATNEWPOS);
119 slRecordCallback callback = NULL; local
123 callback = ar->mRecord.mCallback;
127 if (NULL != callback) {
129 (*callback)(&ar->mRecord.mItf, callbackPContext, SL_RECORDEVENT_HEADATMARKER);
136 slRecordCallback callback = NULL; local
141 callback
211 slBufferQueueCallback callback = NULL; local
[all...]
H A DIOutputMix.c48 slMixDeviceChangeCallback callback, void *pContext)
54 this->mCallback = callback;
47 IOutputMix_RegisterDeviceChangeCallback(SLOutputMixItf self, slMixDeviceChangeCallback callback, void *pContext) argument
H A Dandroid_AudioPlayer.cpp164 slPlayCallback callback = NULL; local
168 callback = ap->mPlay.mCallback;
172 if (NULL != callback) {
174 (*callback)(&ap->mPlay.mItf, callbackPContext, SL_PLAYEVENT_HEADATMARKER);
181 slPlayCallback callback = NULL; local
185 callback = ap->mPlay.mCallback;
189 if (NULL != callback) {
191 (*callback)(&ap->mPlay.mItf, callbackPContext, SL_PLAYEVENT_HEADATNEWPOS);
198 slPlayCallback callback = NULL; local
202 callback
425 slPrefetchCallback callback = NULL; local
497 slPrefetchCallback callback = NULL; local
520 slPrefetchCallback callback = NULL; local
776 slBufferQueueCallback callback = NULL; local
[all...]
H A DSDL.c56 fmt.callback = SDL_callback;
H A DIDynamicInterfaceManagement.c91 // Make a copy of these, so we can call the callback with mutex unlocked
92 slDynamicInterfaceManagementCallback callback = this->mCallback; local
96 // Note that the mutex is unlocked during the callback
97 if (NULL != callback) {
99 (*callback)(&this->mItf, context, SL_DYNAMIC_ITF_EVENT_ASYNC_TERMINATION, result, iid);
341 // Make a copy of these, so we can call the callback with mutex unlocked
342 slDynamicInterfaceManagementCallback callback = this->mCallback; local
346 // Note that the mutex is unlocked during the callback
347 if (NULL != callback) {
349 (*callback)(
441 IDynamicInterfaceManagement_RegisterCallback(SLDynamicInterfaceManagementItf self, slDynamicInterfaceManagementCallback callback, void *pContext) argument
[all...]
H A DIAudioIODeviceCapabilities.c71 SLAudioIODeviceCapabilitiesItf self, slAvailableAudioInputsChangedCallback callback,
78 this->mAvailableAudioInputsChangedCallback = callback;
141 SLAudioIODeviceCapabilitiesItf self, slAvailableAudioOutputsChangedCallback callback,
148 this->mAvailableAudioOutputsChangedCallback = callback;
158 SLAudioIODeviceCapabilitiesItf self, slDefaultDeviceIDMapChangedCallback callback,
165 this->mDefaultDeviceIDMapChangedCallback = callback;
70 IAudioIODeviceCapabilities_RegisterAvailableAudioInputsChangedCallback( SLAudioIODeviceCapabilitiesItf self, slAvailableAudioInputsChangedCallback callback, void *pContext) argument
140 IAudioIODeviceCapabilities_RegisterAvailableAudioOutputsChangedCallback( SLAudioIODeviceCapabilitiesItf self, slAvailableAudioOutputsChangedCallback callback, void *pContext) argument
157 IAudioIODeviceCapabilities_RegisterDefaultDeviceIDMapChangedCallback( SLAudioIODeviceCapabilitiesItf self, slDefaultDeviceIDMapChangedCallback callback, void *pContext) argument
H A DIPrefetchStatus.c61 slPrefetchCallback callback, void *pContext)
67 this->mCallback = callback;
60 IPrefetchStatus_RegisterCallback(SLPrefetchStatusItf self, slPrefetchCallback callback, void *pContext) argument
H A DIObject.c73 // Make a copy of these, so we can call the callback with mutex unlocked
74 slObjectCallback callback = this->mCallback; local
78 // Note that the mutex is unlocked during the callback
79 if (NULL != callback) {
80 (*callback)(&this->mItf, context, SL_OBJECT_EVENT_ASYNC_TERMINATION, result, state, NULL);
129 slObjectCallback callback = this->mCallback; local
133 // callback because there is no thread pool yet to do it asynchronously.
134 if (async && (NULL != callback)) {
135 (*callback)(&this->mItf, context, SL_OBJECT_EVENT_ASYNC_TERMINATION, result, state,
201 // Make a copy of these, so we can call the callback wit
202 slObjectCallback callback = this->mCallback; local
373 IObject_RegisterCallback(SLObjectItf self, slObjectCallback callback, void *pContext) argument
[all...]
H A DIBufferQueue.c146 slBufferQueueCallback callback, void *pContext)
154 this->mCallback = callback;
145 IBufferQueue_RegisterCallback(SLBufferQueueItf self, slBufferQueueCallback callback, void *pContext) argument
H A DSndFile.c51 slPlayCallback callback = thisAP->mPlay.mCallback; local
91 if (NULL != callback) {
93 (*callback)(&thisAP->mPlay.mItf, context, SL_PLAYEVENT_HEADATNEWPOS);
201 // seek postpones the next head at new position callback
H A DIRecord.c116 static SLresult IRecord_RegisterCallback(SLRecordItf self, slRecordCallback callback, argument
123 this->mCallback = callback;
H A DIOutputMixExt.c118 // NTH should be able to call a desperation callback when completely starved,
297 slBufferQueueCallback callback = bufferQueue->mCallback; local
300 // The callback function is called on each buffer completion
301 if (NULL != callback) {
302 (*callback)((SLBufferQueueItf) bufferQueue, context);
H A DIPlay.c217 static SLresult IPlay_RegisterCallback(SLPlayItf self, slPlayCallback callback, void *pContext) argument
223 this->mCallback = callback;
360 // setting a new update period postpones the next callback
/system/core/fastboot/
H A Dusb.h60 usb_handle *usb_open(ifc_match_func callback);
H A Dusb_windows.c69 int recognized_device(usb_handle* handle, ifc_match_func callback);
271 int recognized_device(usb_handle* handle, ifc_match_func callback) { argument
313 if (callback(&info) == 0) {
320 static usb_handle *find_usb_device(ifc_match_func callback) { argument
350 if (recognized_device(handle, callback)) {
367 usb_handle *usb_open(ifc_match_func callback) argument
369 return find_usb_device(callback);
H A Dusb_osx.c56 ifc_match_func callback; member in struct:usb_handle
220 if (handle->callback(&handle->info) == 0) {
374 static int init_usb(ifc_match_func callback, usb_handle **handle) { argument
382 h.callback = callback;
447 usb_handle *usb_open(ifc_match_func callback) { argument
450 if (init_usb(callback, &handle) < 0) {
H A Dusb_linux.c93 ifc_match_func callback,
186 if(callback(&info) == 0) {
197 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) argument
238 if(filter_usb_device(fd, desc, n, writable, callback,
385 usb_handle *usb_open(ifc_match_func callback) argument
387 return find_usb_device("/dev/bus/usb", callback);
92 filter_usb_device(int fd, char *ptr, int len, int writable, ifc_match_func callback, int *ept_in_id, int *ept_out_id, int *ifc_id) argument
/system/core/libcutils/
H A Dselector.c127 * Adds an fd to the given set if the callback is non-null. Returns true
131 void (*callback)(SelectableFd*), fd_set* fdSet) {
132 if (callback != NULL) {
198 * Invokes a callback if the callback is non-null and the fd is in the given
202 void (*callback)(SelectableFd*), fd_set* fdSet) {
203 if (callback != NULL && !selectableFd->remove &&
206 callback(selectableFd);
130 maybeAdd(SelectableFd* selectableFd, void (*callback)(SelectableFd*), fd_set* fdSet) argument
201 maybeInvoke(SelectableFd* selectableFd, void (*callback)(SelectableFd*), fd_set* fdSet) argument
H A Dhashmap.c307 bool (*callback)(void* key, void* value, void* context),
313 if (!callback(entry->key, entry->value, context)) {
/system/core/include/cutils/
H A Dhashmap.h77 * value and creates an entry using the given callback.
79 * If memory allocation fails, the callback is not called, this function
97 * Invokes the given callback on each entry in the map. Stops iterating if
98 * the callback returns false.
101 bool (*callback)(void* key, void* value, void* context),
/system/media/opensles/include/SLES/
H A DOpenSLES_Android.h200 slAndroidSimpleBufferQueueCallback callback,
/system/media/opensles/tests/sandbox/
H A Dintbufq.c70 static void callback(BufferQueueItf caller, void *context) function
208 callback : NULL, expectedContext);
H A Dplaybq.c41 // This callback is called each time a buffer finishes playing
43 static void callback(SLBufferQueueItf bufq, void *param) function
251 // register a callback on the buffer queue
252 result = (*playerBufferQueue)->RegisterCallback(playerBufferQueue, callback, NULL);

Completed in 179 milliseconds

12