/system/bt/hci/src/ |
D | vendor.c | 103 static void set_callback(vendor_async_opcode_t opcode, vendor_cb callback) { in set_callback() argument 104 callbacks[opcode] = callback; in set_callback() 113 vendor_cb callback = callbacks[VENDOR_CONFIGURE_FIRMWARE]; in firmware_config_cb() local 114 assert(callback != NULL); in firmware_config_cb() 115 callback(result == BT_VND_OP_RESULT_SUCCESS); in firmware_config_cb() 123 vendor_cb callback = callbacks[VENDOR_CONFIGURE_SCO]; in sco_config_cb() local 124 assert(callback != NULL); in sco_config_cb() 125 callback(result == BT_VND_OP_RESULT_SUCCESS); in sco_config_cb() 132 vendor_cb callback = callbacks[VENDOR_SET_LPM_MODE]; in low_power_mode_cb() local 133 assert(callback != NULL); in low_power_mode_cb() [all …]
|
/system/bt/test/suite/support/ |
D | callbacks.h | 25 #define WAIT(callback) \ argument 27 sem_t *semaphore = callbacks_get_semaphore(#callback); \ 31 #define CALL_AND_WAIT(expression, callback) \ argument 33 sem_t *semaphore = callbacks_get_semaphore(#callback); \
|
/system/core/fingerprintd/ |
D | FingerprintDaemonProxy.cpp | 46 const sp<IFingerprintDaemonCallback> callback = instance->mCallback; in hal_notify_callback() local 47 if (callback == NULL) { in hal_notify_callback() 55 callback->onError(device, msg->data.error); in hal_notify_callback() 59 callback->onAcquired(device, msg->data.acquired.acquired_info); in hal_notify_callback() 69 callback->onAuthenticated(device, in hal_notify_callback() 78 callback->onEnrollResult(device, in hal_notify_callback() 87 callback->onRemoved(device, in hal_notify_callback() 114 void FingerprintDaemonProxy::init(const sp<IFingerprintDaemonCallback>& callback) { in init() argument 115 if (mCallback != NULL && IInterface::asBinder(callback) != IInterface::asBinder(mCallback)) { in init() 118 IInterface::asBinder(callback)->linkToDeath(this); in init() [all …]
|
/system/bt/btcore/src/ |
D | module.c | 183 thread_fn callback; member 193 thread_fn callback) { in module_start_up_callbacked_wrapper() argument 199 wrapper->callback = callback; in module_start_up_callbacked_wrapper() 222 thread_fn callback = wrapper->callback; in post_result_to_callback() local 228 callback(result); in post_result_to_callback()
|
/system/core/libutils/ |
D | misc.cpp | 41 sysprop_change_callback callback; member 57 info.callback = cb; in add_sysprop_change_callback() 85 listeners[i].callback(); in report_sysprop_change()
|
D | Looper.cpp | 48 SimpleLooperCallback::SimpleLooperCallback(Looper_callbackFunc callback) : in SimpleLooperCallback() argument 49 mCallback(callback) { in SimpleLooperCallback() 359 this, response.request.callback.get(), fd, events, data); in pollInner() 364 int callbackResult = response.request.callback->handleEvent(fd, events, data); in pollInner() 371 response.request.callback.clear(); in pollInner() 434 int Looper::addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data) { in addFd() argument 435 return addFd(fd, ident, events, callback ? new SimpleLooperCallback(callback) : NULL, data); in addFd() 438 int Looper::addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) { in addFd() argument 441 events, callback.get(), data); in addFd() 444 if (!callback.get()) { in addFd() [all …]
|
/system/bt/osi/src/ |
D | non_repeating_timer.c | 28 alarm_callback_t callback; member 42 ret->callback = cb; in non_repeating_timer_new() 66 alarm_set(timer->alarm, timer->duration, timer->callback, timer->data); in non_repeating_timer_restart_if()
|
D | list.c | 24 list_t *list_new_internal(list_free_cb callback, const allocator_t *zeroed_allocator) { in list_new_internal() argument 29 list->free_cb = callback; in list_new_internal() 34 list_t *list_new(list_free_cb callback) { in list_new() argument 35 return list_new_internal(callback, &allocator_calloc); in list_new() 171 void list_foreach(const list_t *list, list_iter_cb callback) { in list_foreach() argument 173 assert(callback != NULL); in list_foreach() 177 callback(node->data); in list_foreach()
|
D | alarm.c | 49 alarm_callback_t callback; member 161 alarm->callback = cb; in alarm_set_internal() 179 alarm->callback = NULL; in alarm_cancel() 265 if (alarm->callback) in schedule_next_instance() 376 alarm_callback_t callback = alarm->callback; in callback_dispatch() local 385 alarm->callback = NULL; in callback_dispatch() 393 callback(data); in callback_dispatch()
|
D | hash_map.c | 43 list_t *list_new_internal(list_free_cb callback, const allocator_t *zeroed_allocator); 197 void hash_map_foreach(hash_map_t *hash_map, hash_map_iter_cb callback, void *context) { in hash_map_foreach() argument 199 assert(callback != NULL); in hash_map_foreach() 208 if (!callback(hash_map_entry, context)) in hash_map_foreach()
|
/system/core/libutils/tests/ |
D | LruCache_test.cpp | 270 EntryRemovedCallback callback; in TEST_F() local 271 cache.setOnEntryRemovedListener(&callback); in TEST_F() 278 EXPECT_EQ(1, callback.callbackCount); in TEST_F() 279 EXPECT_EQ(1, callback.lastKey); in TEST_F() 280 EXPECT_STREQ("one", callback.lastValue); in TEST_F() 285 EntryRemovedCallback callback; in TEST_F() local 286 cache.setOnEntryRemovedListener(&callback); in TEST_F() 293 EXPECT_EQ(3, callback.callbackCount); in TEST_F()
|
/system/core/fastboot/ |
D | usb_windows.c | 71 int recognized_device(usb_handle* handle, ifc_match_func callback); 278 int recognized_device(usb_handle* handle, ifc_match_func callback) { in recognized_device() argument 322 if (callback(&info) == 0) { in recognized_device() 329 static usb_handle *find_usb_device(ifc_match_func callback) { in find_usb_device() argument 359 if (recognized_device(handle, callback)) { in find_usb_device() 376 usb_handle *usb_open(ifc_match_func callback) in usb_open() argument 378 return find_usb_device(callback); in usb_open()
|
D | usb_osx.c | 56 ifc_match_func callback; member 220 if (handle->callback(&handle->info) == 0) { in try_interfaces() 382 static int init_usb(ifc_match_func callback, usb_handle **handle) { in init_usb() argument 390 h.callback = callback; in init_usb() 455 usb_handle *usb_open(ifc_match_func callback) { in usb_open() argument 458 if (init_usb(callback, &handle) < 0) { in usb_open()
|
D | usb_linux.c | 115 ifc_match_func callback, in filter_usb_device() argument 238 if(callback(&info) == 0) { in filter_usb_device() 308 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) in find_usb_device() argument 341 if(filter_usb_device(de->d_name, desc, n, writable, callback, in find_usb_device() 472 usb_handle *usb_open(ifc_match_func callback) in usb_open() argument 474 return find_usb_device("/sys/bus/usb/devices", callback); in usb_open()
|
D | usb.h | 65 usb_handle *usb_open(ifc_match_func callback);
|
/system/core/include/utils/ |
D | Looper.h | 123 SimpleLooperCallback(Looper_callbackFunc callback); 317 int addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data); 318 int addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data); 425 sp<LooperCallback> callback; member
|
/system/extras/simpleperf/ |
D | event_selection_set.cpp | 145 std::function<bool(const char*, size_t)> callback, in ReadMmapEventDataForFd() argument 154 if (!callback(data, size)) { in ReadMmapEventDataForFd() 163 bool EventSelectionSet::ReadMmapEventData(std::function<bool(const char*, size_t)> callback) { in ReadMmapEventData() argument 168 if (!ReadMmapEventDataForFd(event_fd, callback, &have_data)) { in ReadMmapEventData()
|
/system/bt/stack/hid/ |
D | hidh_conn.c | 306 hh_cb.callback( (UINT8) p_tle->param, hh_cb.devices[p_tle->param].addr, in hidh_proc_repage_timeout() 414 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_connect_cfm() 498 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_ind() 520 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_ind() 558 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm() 576 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm() 598 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_cfm() 658 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, disc_res, NULL); in hidh_l2cif_disconnect_ind() 679 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, hid_close_evt_reason, N… in hidh_l2cif_disconnect_ind() 728 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, p_hcon->disc_reason, NUL… in hidh_l2cif_disconnect_cfm() [all …]
|
/system/bt/osi/include/ |
D | list.h | 21 list_t *list_new(list_free_cb callback); 81 void list_foreach(const list_t *list, list_iter_cb callback);
|
/system/bt/stack/include/ |
D | btu.h | 36 void (*callback)(BT_HDR *); member 40 void (*callback)(BT_HDR *); member 46 void (*callback)(BT_HDR *); member
|
/system/bt/hci/test/ |
D | low_power_manager_test.cpp | 83 STUB_FUNCTION(void, vendor_set_callback, (vendor_async_opcode_t opcode, vendor_cb callback)) 86 low_power_state_callback = callback;
|
/system/bt/btif/src/ |
D | btif_sock_thread.c | 99 btsock_signaled_cb callback; member 235 ts[h].callback = NULL; in btsock_thread_init() 241 int btsock_thread_create(btsock_signaled_cb callback, btsock_cmd_cb cmd_callback) in btsock_thread_create() argument 243 asrt(callback || cmd_callback); in btsock_thread_create() 262 ts[h].callback = callback; in btsock_thread_create() 424 ts[h].callback = NULL; in init_poll() 573 ts[h].callback(pfds[i].fd, type, flags, user_id); in process_data_sock()
|
/system/bt/btcore/include/ |
D | module.h | 66 thread_fn callback
|
/system/bt/btif/include/ |
D | btif_sock_thread.h | 48 int btsock_thread_create(btsock_signaled_cb callback, btsock_cmd_cb cmd_callback);
|
/system/bt/hci/include/ |
D | vendor.h | 67 void (*set_callback)(vendor_async_opcode_t opcode, vendor_cb callback);
|