/system/bt/stack/avct/ |
H A D | avct_defs.h | 32 /* packet type */ 51 #define AVCT_BLD_HDR(p, label, type, cr_ipid) \ 52 *(p)++ = ((label) << 4) | ((type) << 2) | (cr_ipid); 54 #define AVCT_PRS_HDR(p, label, type, cr_ipid) \ 56 type = (*(p) >> 2) & 3; \ 59 #define AVCT_PRS_PKT_TYPE(p, type) \ 60 type = (*(p) >> 2) & 3;
|
/system/bt/osi/include/ |
H A D | atomic.h | 25 // The atomic type data should only be manipulated by these functions. 49 #define ATOMIC_TYPE(name, type) \ 51 type _val; \ 55 #define ATOMIC_STORE(name, type, sz) \ 56 static inline void atomic_store_##name(volatile atomic_##name##_t *atomic, type val) { \ 60 #define ATOMIC_LOAD(name, type, sz) \ 61 static inline type atomic_load_##name(volatile atomic_##name##_t *atomic) { \ 66 #define ATOMIC_INC_PREFIX(name, type, sz) \ 67 static inline type atomic_inc_prefix_##name(volatile atomic_##name##_t *atomic) { \ 72 #define ATOMIC_DEC_PREFIX(name, type, s [all...] |
H A D | data_dispatcher.h | 40 // Registers |type| and |queue| with the data dispatcher so that data 41 // sent under |type| ends up in |queue|. If |type| is already registered, 44 void data_dispatcher_register(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, fixed_queue_t *queue); 47 // type/queue relationship registered. If a default queue is already registered, 52 // Dispatches |data| to the queue registered for |type|. If no such registration 56 bool data_dispatcher_dispatch(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, void *data);
|
/system/bt/test/suite/support/ |
H A D | adapter.h | 25 bt_property_t *adapter_get_property(bt_property_type_t type);
|
/system/core/include/cutils/ |
H A D | sockets.h | 77 extern int socket_loopback_client(int port, int type); 78 extern int socket_network_client(const char *host, int port, int type); 79 extern int socket_network_client_timeout(const char *host, int port, int type, 81 extern int socket_loopback_server(int port, int type); 82 extern int socket_local_server(const char *name, int namespaceId, int type); 85 const char *name, int namespaceId, int type); 86 extern int socket_local_client(const char *name, int namespaceId, int type); 87 extern int socket_inaddr_any_server(int port, int type);
|
/system/extras/simpleperf/ |
H A D | event_type.h | 24 // EventType represents one type of event, like cpu_cycle_event, cache_misses_event. 25 // The user knows one event type by its name, and the kernel knows one event type by its 26 // (type, config) pair. EventType connects the two representations, and tells the user if 27 // the event type is supported by the kernel. 33 uint32_t type; member in struct:EventType 42 static const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config);
|
H A D | event_type.cpp | 28 #define EVENT_TYPE_TABLE_ENTRY(name, type, config) \ 29 { name, type, config } \ 60 << "', try `simpleperf list` to list all possible event type names"; 64 (report_unsupported_type ? PLOG(ERROR) : PLOG(DEBUG)) << "Event type '" << result->name 71 const EventType* EventTypeFactory::FindEventTypeByConfig(uint32_t type, uint64_t config) { argument 73 if (event_type.type == type && event_type.config == config) {
|
H A D | cmd_list.cpp | 27 static void PrintEventTypesOfType(uint32_t type, const char* type_name, argument 31 if (event_type.type == type && event_type.IsSupportedByKernel()) {
|
/system/bt/btif/include/ |
H A D | btif_sock_thread.h | 39 typedef void (*btsock_signaled_cb)(int fd, int type, int flags, uint32_t user_id); 40 typedef void (*btsock_cmd_cb)(int cmd_fd, int type, int size, uint32_t user_id); 43 int btsock_thread_add_fd(int handle, int fd, int type, int flags, uint32_t user_id);
|
H A D | btif_debug_btsnoop.h | 36 uint8_t type; member in struct:btsnooz_header_t
|
/system/bt/hci/src/ |
H A D | btsnoop_mem.c | 37 const uint16_t type = packet->event & BT_EVT_MASK; local 40 switch (type) { 60 (*data_callback)(type, data, length);
|
H A D | hci_hal_h4.c | 101 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block) { argument 102 if (type < DATA_TYPE_ACL || type > DATA_TYPE_EVENT) { 103 LOG_ERROR("%s invalid data type: %d", __func__, type); 108 } else if (current_data_type != type) { 109 LOG_ERROR("%s with different type than existing interpretation.", __func__); 116 static void packet_finished(serial_data_type_t type) { argument 119 else if (current_data_type != type) 120 LOG_ERROR("%s with different type tha 125 transmit_data(serial_data_type_t type, uint8_t *data, uint16_t length) argument [all...] |
/system/bt/hci/include/ |
H A D | btsnoop_mem.h | 27 typedef void (*btsnoop_data_cb)(const uint16_t type, const uint8_t *p_data, const size_t len);
|
H A D | hci_hal.h | 34 typedef void (*data_ready_cb)(serial_data_type_t type); 38 // Data |type| may be ACL, SCO, or EVENT. 62 // of the corresponding type. 63 size_t (*read_data)(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block); 65 // reading a packet of the specified |type|. Underlying implementations that 68 void (*packet_finished)(serial_data_type_t type); 78 uint16_t (*transmit_data)(serial_data_type_t type, uint8_t *data, uint16_t length);
|
/system/extras/ext4_utils/ |
H A D | key_control.cpp | 26 key_serial_t add_key(const char *type, argument 32 return syscall(__NR_add_key, type, description, payload, plen, ringid); 40 long keyctl_search(key_serial_t ringid, const char *type, argument 43 return keyctl(KEYCTL_SEARCH, ringid, type, description, destringid);
|
H A D | key_control.h | 7 // keyring serial number type 18 key_serial_t add_key(const char *type, 26 long keyctl_search(key_serial_t ringid, const char *type,
|
/system/core/libcutils/ |
H A D | socket_inaddr_any_server.c | 35 int socket_inaddr_any_server(int port, int type) argument 45 s = socket(AF_INET, type, 0); 56 if (type == SOCK_STREAM) {
|
H A D | socket_loopback_server.c | 35 int socket_loopback_server(int port, int type) argument 45 s = socket(AF_INET, type, 0); 56 if (type == SOCK_STREAM) {
|
/system/bt/osi/src/ |
H A D | data_dispatcher.c | 78 void data_dispatcher_register(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, fixed_queue_t *queue) { argument 81 hash_map_erase(dispatcher->dispatch_table, (void *)type); 83 hash_map_set(dispatcher->dispatch_table, (void *)type, queue); 92 bool data_dispatcher_dispatch(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, void *data) { argument 96 fixed_queue_t *queue = hash_map_get(dispatcher->dispatch_table, (void *)type); 103 LOG_WARN("%s has no handler for type (%zd) in data dispatcher named: %s", __func__, type, dispatcher->name);
|
/system/extras/perfprofd/quipper/base/ |
H A D | compiler_specific.h | 125 // Return the byte alignment of the given type (available at compile time). Use 126 // sizeof(type) prior to checking __alignof to workaround Visual C++ bug: 131 #define ALIGNOF(type) (sizeof(type) - sizeof(type) + __alignof(type)) 133 #define ALIGNOF(type) __alignof__(type)
|
/system/media/radio/src/ |
H A D | radio_metadata.c | 98 const radio_metadata_type_t type, 122 entry->type = type; 203 radio_metadata_type_t type = radio_metadata_type_of_key(key); local 204 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_INT) { 208 key, type, &value, sizeof(int)); 215 radio_metadata_type_t type = radio_metadata_type_of_key(key); local 216 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_TEXT || 220 return add_metadata((radio_metadata_buffer_t **)metadata, key, type, value, strlen(value) + 1); 228 radio_metadata_type_t type local 96 add_metadata(radio_metadata_buffer_t **metadata_ptr, const radio_metadata_key_t key, const radio_metadata_type_t type, const void *value, const unsigned int size) argument 260 radio_metadata_type_t type; local 344 radio_metadata_get_at_index(const radio_metadata_t *metadata, const unsigned int index, radio_metadata_key_t *key, radio_metadata_type_t *type, void **value, unsigned int *size) argument 374 radio_metadata_get_from_key(const radio_metadata_t *metadata, const radio_metadata_key_t key, radio_metadata_type_t *type, void **value, unsigned int *size) argument [all...] |
/system/extras/perfprofd/quipper/ |
H A D | perf_reader.h | 42 u32 type; member in struct:quipper::PerfStringMetadata 47 u32 type; member in struct:quipper::PerfUint32Metadata 52 u32 type; member in struct:quipper::PerfUint64Metadata 139 static bool IsSupportedEventType(uint32_t type); 195 bool ReadBuildIDMetadata(const ConstBufferWithSize& data, u32 type, 197 bool ReadStringMetadata(const ConstBufferWithSize& data, u32 type, 199 bool ReadUint32Metadata(const ConstBufferWithSize& data, u32 type, 201 bool ReadUint64Metadata(const ConstBufferWithSize& data, u32 type, 203 bool ReadCPUTopologyMetadata(const ConstBufferWithSize& data, u32 type, 205 bool ReadNUMATopologyMetadata(const ConstBufferWithSize& data, u32 type, [all...] |
/system/bt/btif/src/ |
H A D | btif_sock.c | 35 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *uuid, int channel, int *sock_fd, int flags); 36 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags); 38 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id); 117 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *service_uuid, int channel, int *sock_fd, int flags) { argument 126 switch (type) { 139 LOG_ERROR("%s unknown/unsupported socket type: %d", __func__, type); 146 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags) { argument 154 switch (type) { 168 LOG_ERROR("%s unknown/unsupported socket type 175 btsock_signaled(int fd, int type, int flags, uint32_t user_id) argument [all...] |
/system/bt/btcore/src/ |
H A D | property.c | 27 static bt_property_t *property_new_(void *val, size_t len, bt_property_type_t type); 54 if (!p1 || !p2 || p1->type != p2->type) { 66 if (p1->type == BT_PROPERTY_BDNAME && p1->len != p2->len) { 88 bt_property_t *property_new_device_type(bt_device_type_t type) { argument 89 return property_new_((void *)&type, sizeof(bt_device_type_t), BT_PROPERTY_TYPE_OF_DEVICE); 131 return property->type == BT_PROPERTY_BDADDR; 136 return property->type == BT_PROPERTY_CLASS_OF_DEVICE; 141 return property->type == BT_PROPERTY_TYPE_OF_DEVICE; 146 return property->type 211 property_new_(void *val, size_t len, bt_property_type_t type) argument [all...] |
/system/bt/stack/avdt/ |
H A D | avdt_ad.c | 42 ** Description Derives the TCID from the channel type and SCB. 48 UINT8 avdt_ad_type_to_tcid(UINT8 type, tAVDT_SCB *p_scb) argument 52 if (type == AVDT_CHAN_SIG) 60 AVDT_TRACE_DEBUG("type: %d, tcid: %d", type, ((scb_idx * (AVDT_CHAN_NUM_TYPES - 1)) + type)); 62 return ((scb_idx * (AVDT_CHAN_NUM_TYPES - 1)) + type); 70 ** Description Derives the channel type from the TCID. 73 ** Returns Channel type value. 78 UINT8 type; local 135 avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) argument 231 avdt_ad_tc_tbl_by_type(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) argument 509 avdt_ad_write_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, BT_HDR *p_buf) argument 537 avdt_ad_open_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, UINT8 role) argument 615 avdt_ad_close_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) argument [all...] |