/system/bt/osi/include/ |
D | atomic.h | 49 #define ATOMIC_TYPE(name, type) \ argument 51 type _val; \ 55 #define ATOMIC_STORE(name, type, sz) \ argument 56 static inline void atomic_store_##name(volatile atomic_##name##_t *atomic, type val) { \ 60 #define ATOMIC_LOAD(name, type, sz) \ argument 61 static inline type atomic_load_##name(volatile atomic_##name##_t *atomic) { \ 66 #define ATOMIC_INC_PREFIX(name, type, sz) \ argument 67 static inline type atomic_inc_prefix_##name(volatile atomic_##name##_t *atomic) { \ 72 #define ATOMIC_DEC_PREFIX(name, type, sz) \ argument 73 static inline type atomic_dec_prefix_##name(volatile atomic_##name##_t *atomic) { \ [all …]
|
/system/core/include/cutils/ |
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/media/radio/src/ |
D | radio_metadata.c | 98 const radio_metadata_type_t type, in add_metadata() argument 122 entry->type = type; in add_metadata() 203 radio_metadata_type_t type = radio_metadata_type_of_key(key); in radio_metadata_add_int() local 204 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_INT) { in radio_metadata_add_int() 208 key, type, &value, sizeof(int)); in radio_metadata_add_int() 215 radio_metadata_type_t type = radio_metadata_type_of_key(key); in radio_metadata_add_text() local 216 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_TEXT || in radio_metadata_add_text() 220 return add_metadata((radio_metadata_buffer_t **)metadata, key, type, value, strlen(value) + 1); in radio_metadata_add_text() 228 radio_metadata_type_t type = radio_metadata_type_of_key(key); in radio_metadata_add_raw() local 229 if (metadata == NULL || *metadata == NULL || type != RADIO_METADATA_TYPE_RAW || value == NULL) { in radio_metadata_add_raw() [all …]
|
/system/bt/stack/avct/ |
D | avct_defs.h | 51 #define AVCT_BLD_HDR(p, label, type, cr_ipid) \ argument 52 *(p)++ = ((label) << 4) | ((type) << 2) | (cr_ipid); 54 #define AVCT_PRS_HDR(p, label, type, cr_ipid) \ argument 56 type = (*(p) >> 2) & 3; \ 59 #define AVCT_PRS_PKT_TYPE(p, type) \ argument 60 type = (*(p) >> 2) & 3;
|
/system/extras/perfprofd/quipper/ |
D | perf_reader.h | 42 u32 type; member 47 u32 type; member 52 u32 type; member 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 …]
|
D | perf_reader.cc | 129 sizeof(header.type) + sizeof(header.misc) + sizeof(header.size)); in CheckNoEventHeaderPadding() 149 sizeof(event.header.type) + sizeof(event.header.misc) + in CheckNoBuildIDEventPadding() 188 new_event->header.type = HEADER_BUILD_ID; in CreateOrUpdateBuildID() 744 if (event.header.type == PERF_RECORD_MMAP) in GetFilenamesAsSet() 746 if (event.header.type == PERF_RECORD_MMAP2) in GetFilenamesAsSet() 761 bool PerfReader::IsSupportedEventType(uint32_t type) { in IsSupportedEventType() argument 762 switch (type) { in IsSupportedEventType() 777 LOG(FATAL) << "Unknown event type " << type; in IsSupportedEventType() 786 if (!IsSupportedEventType(event.header.type)) { in ReadPerfSampleInfo() 787 LOG(ERROR) << "Unsupported event type " << event.header.type; in ReadPerfSampleInfo() [all …]
|
/system/bt/btcore/src/ |
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) { in property_equals() 66 if (p1->type == BT_PROPERTY_BDNAME && p1->len != p2->len) { in property_equals() 88 bt_property_t *property_new_device_type(bt_device_type_t type) { in property_new_device_type() argument 89 return property_new_((void *)&type, sizeof(bt_device_type_t), BT_PROPERTY_TYPE_OF_DEVICE); in property_new_device_type() 131 return property->type == BT_PROPERTY_BDADDR; in property_is_addr() 136 return property->type == BT_PROPERTY_CLASS_OF_DEVICE; in property_is_device_class() 141 return property->type == BT_PROPERTY_TYPE_OF_DEVICE; in property_is_device_type() 146 return property->type == BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT; in property_is_discovery_timeout() 151 return property->type == BT_PROPERTY_BDNAME; in property_is_name() [all …]
|
/system/bt/hci/src/ |
D | hci_hal_h4.c | 115 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block) { in read_data() argument 116 if (type < DATA_TYPE_ACL || type > DATA_TYPE_EVENT) { in read_data() 117 LOG_ERROR("%s invalid data type: %d", __func__, type); in read_data() 122 } else if (current_data_type != type) { in read_data() 130 static void packet_finished(serial_data_type_t type) { in packet_finished() argument 133 else if (current_data_type != type) in packet_finished() 139 static uint16_t transmit_data(serial_data_type_t type, uint8_t *data, uint16_t length) { in transmit_data() argument 143 if (type < DATA_TYPE_COMMAND || type > DATA_TYPE_SCO) { in transmit_data() 144 LOG_ERROR("%s invalid data type: %d", __func__, type); in transmit_data() 151 *(data) = type; in transmit_data()
|
D | hci_hal_mct.c | 128 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block) { in read_data() argument 129 if (type == DATA_TYPE_ACL) { in read_data() 131 } else if (type == DATA_TYPE_EVENT) { in read_data() 135 LOG_ERROR("%s invalid data type: %d", __func__, type); in read_data() 139 static void packet_finished(UNUSED_ATTR serial_data_type_t type) { in packet_finished() argument 143 static uint16_t transmit_data(serial_data_type_t type, uint8_t *data, uint16_t length) { in transmit_data() argument 144 if (type == DATA_TYPE_ACL) { in transmit_data() 146 } else if (type == DATA_TYPE_COMMAND) { in transmit_data() 150 LOG_ERROR("%s invalid data type: %d", __func__, type); in transmit_data()
|
/system/bt/stack/avdt/ |
D | avdt_ad.c | 48 UINT8 avdt_ad_type_to_tcid(UINT8 type, tAVDT_SCB *p_scb) in avdt_ad_type_to_tcid() argument 52 if (type == AVDT_CHAN_SIG) in avdt_ad_type_to_tcid() 62 return ((scb_idx * (AVDT_CHAN_NUM_TYPES - 1)) + type); in avdt_ad_type_to_tcid() 78 UINT8 type; in avdt_ad_tcid_to_type() local 82 type = AVDT_CHAN_SIG; in avdt_ad_tcid_to_type() 91 type = ((tcid + AVDT_CHAN_NUM_TYPES - 2) % (AVDT_CHAN_NUM_TYPES - 1)) + 1; in avdt_ad_tcid_to_type() 93 AVDT_TRACE_DEBUG("tcid: %d, type: %d", tcid, type); in avdt_ad_tcid_to_type() 94 return type; in avdt_ad_tcid_to_type() 135 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) in avdt_ad_tc_tbl_by_st() argument 160 if (type == AVDT_CHAN_SIG) in avdt_ad_tc_tbl_by_st() [all …]
|
/system/bt/btif/src/ |
D | btif_sock.c | 35 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *uuid,… 36 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uu… 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 *servi… in btsock_listen() argument 126 switch (type) { in btsock_listen() 139 LOG_ERROR("%s unknown/unsupported socket type: %d", __func__, type); in btsock_listen() 146 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uu… in btsock_connect() argument 154 switch (type) { in btsock_connect() 168 LOG_ERROR("%s unknown/unsupported socket type: %d", __func__, type); in btsock_connect() 175 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id) { in btsock_signaled() argument [all …]
|
D | btif_sock_thread.c | 90 int type; member 110 static inline void add_poll(int h, int fd, int type, int flags, uint32_t user_id); 298 int type; member 302 int btsock_thread_add_fd(int h, int fd, int type, int flags, uint32_t user_id) in btsock_thread_add_fd() argument 321 add_poll(h, fd, type, flags, user_id); in btsock_thread_add_fd() 326 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; in btsock_thread_add_fd() 348 int btsock_thread_post_cmd(int h, int type, const unsigned char* data, int size, uint32_t user_id) in btsock_thread_post_cmd() argument 360 sock_cmd_t cmd = {CMD_USER_PRIVATE, 0, type, size, user_id}; in btsock_thread_post_cmd() 361 APPL_TRACE_DEBUG("post cmd type:%d, size:%d, h:%d, ", type, size, h); in btsock_thread_post_cmd() 375 APPL_TRACE_ERROR("alloca failed at h:%d, cmd type:%d, size:%d", h, type, size_send); in btsock_thread_post_cmd() [all …]
|
/system/vold/ |
D | CryptCommandListener.cpp | 98 static int getType(const char* type) in getType() argument 100 if (!strcmp(type, "default")) { in getType() 102 } else if (!strcmp(type, "password")) { in getType() 104 } else if (!strcmp(type, "pin")) { in getType() 106 } else if (!strcmp(type, "pattern")) { in getType() 156 int type = CRYPT_TYPE_DEFAULT; in runCommand() local 166 type = getType(argv[3]); in runCommand() 167 if (type == -1) { in runCommand() 169 } else if (type != CRYPT_TYPE_DEFAULT) { in runCommand() 202 if (type == -1) { in runCommand() [all …]
|
/system/bt/hci/test/ |
D | hci_hal_h4_test.cpp | 66 static void expect_packet_synchronous(serial_data_type_t type, char *packet_data) { in expect_packet_synchronous() argument 70 EXPECT_EQ((size_t)1, hal->read_data(type, &byte, 1, true)); in expect_packet_synchronous() 74 hal->packet_finished(type); in expect_packet_synchronous() 94 STUB_FUNCTION(void, data_ready_callback, (serial_data_type_t type)) 97 EXPECT_EQ(DATA_TYPE_ACL, type); 98 expect_packet_synchronous(type, acl_data); 102 EXPECT_EQ(DATA_TYPE_SCO, type); 103 expect_packet_synchronous(type, sco_data); 107 EXPECT_EQ(DATA_TYPE_EVENT, type); 108 expect_packet_synchronous(type, event_data); [all …]
|
D | hci_hal_mct_test.cpp | 61 static void expect_packet_synchronous(serial_data_type_t type, char *packet_data) { in expect_packet_synchronous() argument 65 EXPECT_EQ((size_t)1, hal->read_data(type, &byte, 1, true)); in expect_packet_synchronous() 69 hal->packet_finished(type); in expect_packet_synchronous() 91 STUB_FUNCTION(void, data_ready_callback, (serial_data_type_t type)) 94 EXPECT_EQ(DATA_TYPE_ACL, type); 95 expect_packet_synchronous(type, acl_data); 100 EXPECT_EQ(DATA_TYPE_EVENT, type); 101 expect_packet_synchronous(type, event_data); 108 EXPECT_EQ(DATA_TYPE_ACL, type); 112 while ((bytes_read = hal->read_data(type, &byte, 1, false)) != 0) { [all …]
|
/system/core/libsparse/ |
D | backed_block.c | 29 enum backed_block_type type; member 77 assert(bb->type == BACKED_BLOCK_DATA); in backed_block_data() 83 assert(bb->type == BACKED_BLOCK_FILE); in backed_block_filename() 89 assert(bb->type == BACKED_BLOCK_FD); in backed_block_fd() 95 assert(bb->type == BACKED_BLOCK_FILE || bb->type == BACKED_BLOCK_FD); in backed_block_file_offset() 96 if (bb->type == BACKED_BLOCK_FILE) { in backed_block_file_offset() 105 assert(bb->type == BACKED_BLOCK_FILL); in backed_block_fill_val() 111 return bb->type; in backed_block_type() 116 if (bb->type == BACKED_BLOCK_FILE) { in backed_block_destroy() 204 if (a->type != b->type) { in merge_bb() [all …]
|
/system/media/audio_route/ |
D | audio_route.c | 80 static bool is_supported_ctl_type(enum mixer_ctl_type type) in is_supported_ctl_type() argument 82 switch (type) { in is_supported_ctl_type() 305 enum mixer_ctl_type type; in path_apply() local 310 type = mixer_ctl_get_type(ctl); in path_apply() 311 if (!is_supported_ctl_type(type)) in path_apply() 328 enum mixer_ctl_type type; in path_reset() local 333 type = mixer_ctl_get_type(ctl); in path_reset() 334 if (!is_supported_ctl_type(type)) in path_reset() 374 enum mixer_ctl_type type; in start_tag() local 432 type = mixer_ctl_get_type(ctl); in start_tag() [all …]
|
/system/bt/osi/src/ |
D | data_dispatcher.c | 78 void data_dispatcher_register(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, fixed_que… in data_dispatcher_register() argument 81 hash_map_erase(dispatcher->dispatch_table, (void *)type); in data_dispatcher_register() 83 hash_map_set(dispatcher->dispatch_table, (void *)type, queue); in data_dispatcher_register() 92 bool data_dispatcher_dispatch(data_dispatcher_t *dispatcher, data_dispatcher_type_t type, void *dat… in data_dispatcher_dispatch() argument 96 fixed_queue_t *queue = hash_map_get(dispatcher->dispatch_table, (void *)type); in data_dispatcher_dispatch() 103 …LOG_WARN("%s has no handler for type (%zd) in data dispatcher named: %s", __func__, type, dispatch… in data_dispatcher_dispatch()
|
/system/media/camera/src/ |
D | camera_metadata.c | 49 uint8_t type; member 401 if (entry.type >= NUM_TYPES) { in validate_camera_metadata_structure() 403 __FUNCTION__, i, entry.type); in validate_camera_metadata_structure() 411 if (tag_type != (int)entry.type && tag_section < VENDOR_SECTION) { in validate_camera_metadata_structure() 413 __FUNCTION__, i, tag_type, entry.type); in validate_camera_metadata_structure() 418 calculate_camera_metadata_entry_data_size(entry.type, in validate_camera_metadata_structure() 472 if ( calculate_camera_metadata_entry_data_size(entry->type, in append_camera_metadata() 511 size_t calculate_camera_metadata_entry_data_size(uint8_t type, in calculate_camera_metadata_entry_data_size() argument 513 if (type >= NUM_TYPES) return 0; in calculate_camera_metadata_entry_data_size() 515 camera_metadata_type_size[type]; in calculate_camera_metadata_entry_data_size() [all …]
|
/system/extras/simpleperf/ |
D | event_type.cpp | 28 #define EVENT_TYPE_TABLE_ENTRY(name, type, config) \ argument 29 { name, type, config } \ 71 const EventType* EventTypeFactory::FindEventTypeByConfig(uint32_t type, uint64_t config) { in FindEventTypeByConfig() argument 73 if (event_type.type == type && event_type.config == config) { in FindEventTypeByConfig()
|
/system/extras/perfprofd/quipper/base/ |
D | compiler_specific.h | 131 #define ALIGNOF(type) (sizeof(type) - sizeof(type) + __alignof(type)) argument 133 #define ALIGNOF(type) __alignof__(type) argument
|
/system/bt/hci/include/ |
D | hci_hal.h | 34 typedef void (*data_ready_cb)(serial_data_type_t type); 63 size_t (*read_data)(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block); 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/bt/stack/sdp/ |
D | sdp_utils.c | 240 switch(p_attr->type) in sdpu_build_attrib_entry() 249 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_IN_NEXT_LONG); in sdpu_build_attrib_entry() 258 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_IN_NEXT_WORD); in sdpu_build_attrib_entry() 265 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_IN_NEXT_BYTE); in sdpu_build_attrib_entry() 280 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_ONE_BYTE); in sdpu_build_attrib_entry() 283 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_TWO_BYTES); in sdpu_build_attrib_entry() 286 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_FOUR_BYTES); in sdpu_build_attrib_entry() 289 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_EIGHT_BYTES); in sdpu_build_attrib_entry() 292 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_SIXTEEN_BYTES); in sdpu_build_attrib_entry() 295 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_IN_NEXT_BYTE); in sdpu_build_attrib_entry() [all …]
|
/system/media/camera/docs/ |
D | metadata_model_test.py | 16 entry1 = Entry(name="entry1", type="int32", kind="static", 18 entry2 = Entry(name="entry2", type="int32", kind="static", 20 entry3 = Entry(name="entry3", type="int32", kind="static", 62 entry1 = Entry(name="entry1", type="int32", kind="static", 64 entry2 = Entry(name="entry2", type="int32", kind="static", 96 entry1 = Entry(name="entry1", type="int32", kind="static", 98 entry2 = Entry(name="entry2", type="int32", kind="static", 100 entry3 = Entry(name="entry3", type="int32", kind="static",
|
/system/core/include/private/ |
D | android_logger.h | 51 int8_t type; // EVENT_TYPE_INT member 63 int8_t type; // EVENT_TYPE_LONG member 85 int8_t type; // EVENT_TYPE_STRING; member 93 int8_t type; // EVENT_TYPE_STRING; member
|