/system/bluetooth/tools/ |
D | socktest.c | 52 int type; member 84 static int _socket(int type) { in _socket() argument 90 switch (type) { in _socket() 126 static int _close(int fd, int type) { in _close() argument 137 static int _bind(int fd, int type) { in _bind() argument 142 switch (type) { in _bind() 174 static int _listen(int fd, int type) { in _listen() argument 198 static int _accept(int fd, int type) { in _accept() argument 203 switch (type) { in _accept() 251 static int _connect(int fd, int type) { in _connect() argument [all …]
|
D | asocket_test.c | 53 int type; member 85 static int _socket(int type) { in _socket() argument 91 switch (type) { in _socket() 127 static int _close(int fd, int type) { in _close() argument 138 static int _bind(int fd, int type) { in _bind() argument 143 switch (type) { in _bind() 175 static int _listen(int fd, int type) { in _listen() argument 199 static int _accept(int fd, int type) { in _accept() argument 204 switch (type) { in _accept() 238 static int _connect(int fd, int type) { in _connect() argument [all …]
|
D | sock_shutdown_test.c | 51 int type; member 67 static int _socket(int type) { in _socket() argument 73 switch (type) { in _socket() 120 static int _bind(int fd, int type) { in _bind() argument 125 switch (type) { in _bind() 157 static int _listen(int fd, int type) { in _listen() argument 168 static int _accept(int fd, int type) { in _accept() argument 173 switch (type) { in _accept() 221 _accept(args->fd, args->type); in thread_accept() 225 static int do_accept_shutdown(int type) { in do_accept_shutdown() argument [all …]
|
/system/core/sh/ |
D | nodes.h | 35 int type; member 42 int type; member 50 int type; member 57 int type; member 64 int type; member 72 int type; member 80 int type; member 87 int type; member 95 int type; member 103 int type; member [all …]
|
D | parser.c | 163 if (n2->type == NCMD || n2->type == NPIPE) { in list() 165 } else if (n2->type == NREDIR) { in list() 166 n2->type = NBACKGND; in list() 169 n3->type = NBACKGND; in list() 180 n3->type = NSEMI; in list() 237 n3->type = t; in andor() 261 pipenode->type = NPIPE; in pipeline() 278 n2->type = NNOT; in pipeline() 318 n1->type = NIF; in command() 327 n2->type = NIF; in command() [all …]
|
D | nodetypes | 35 # contain a node type followed by a structure tag. Subsequent indented 41 # by a type. The currently implemented types are: 46 # other - any type that can be copied by assignment 52 type int 57 type int 63 type int 68 type int 79 type int # using multiple if nodes. 88 type int 94 type int [all …]
|
/system/core/include/cutils/ |
D | sockets.h | 87 extern int socket_loopback_client(int port, int type); 88 extern int socket_network_client(const char *host, int port, int type); 89 extern int socket_loopback_server(int port, int type); 90 extern int socket_local_server(const char *name, int namespaceId, int type); 93 const char *name, int namespaceId, int type); 94 extern int socket_local_client(const char *name, int namespaceId, int type); 95 extern int socket_inaddr_any_server(int port, int type);
|
/system/core/libcutils/ |
D | private.h | 149 Please use a compiler that supports a 64-bit integer type (or wider); 267 #define TYPE_BIT(type) (sizeof (type) * CHAR_BIT) argument 271 #define TYPE_SIGNED(type) (((type) -1) < 0) argument 280 #define TYPE_INTEGRAL(type) (((type) 0.5) != 0.5) argument 290 #define INT_STRLEN_MAXIMUM(type) \ argument 291 ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + \ 292 1 + TYPE_SIGNED(type))
|
D | socket_local_server.c | 28 int socket_local_server(const char *name, int namespaceId, int type) in socket_local_server() argument 95 int socket_local_server(const char *name, int namespace, int type) argument 100 s = socket(AF_LOCAL, type, 0); 110 if (type == SOCK_STREAM) {
|
D | socket_local_client.c | 27 int socket_local_client(const char *name, int namespaceId, int type) in socket_local_client() argument 125 int type) in socket_local_client_connect() argument 152 int socket_local_client(const char *name, int namespaceId, int type) in socket_local_client() argument 156 s = socket(AF_LOCAL, type, 0); in socket_local_client() 159 if ( 0 > socket_local_client_connect(s, name, namespaceId, type)) { in socket_local_client()
|
D | socket_loopback_server.c | 36 int socket_loopback_server(int port, int type) in socket_loopback_server() argument 47 s = socket(AF_INET, type, 0); in socket_loopback_server() 58 if (type == SOCK_STREAM) { in socket_loopback_server()
|
D | socket_inaddr_any_server.c | 36 int socket_inaddr_any_server(int port, int type) in socket_inaddr_any_server() argument 47 s = socket(AF_INET, type, 0); in socket_inaddr_any_server() 58 if (type == SOCK_STREAM) { in socket_inaddr_any_server()
|
D | socket_loopback_client.c | 37 int socket_loopback_client(int port, int type) in socket_loopback_client() argument 48 s = socket(AF_INET, type, 0); in socket_loopback_client()
|
D | socket_network_client.c | 39 int socket_network_client(const char *host, int port, int type) in socket_network_client() argument 54 s = socket(hp->h_addrtype, type, 0); in socket_network_client()
|
/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/camera/src/ |
D | camera_metadata.c | 52 uint8_t type; member 288 if ( calculate_camera_metadata_entry_data_size(entry->type, in append_camera_metadata() 325 size_t calculate_camera_metadata_entry_data_size(uint8_t type, in calculate_camera_metadata_entry_data_size() argument 327 if (type >= NUM_TYPES) return 0; in calculate_camera_metadata_entry_data_size() 329 camera_metadata_type_size[type]; in calculate_camera_metadata_entry_data_size() 335 uint8_t type, in add_camera_metadata_entry_raw() argument 344 calculate_camera_metadata_entry_data_size(type, data_count); in add_camera_metadata_entry_raw() 348 data_count * camera_metadata_type_size[type]; in add_camera_metadata_entry_raw() 351 entry->type = type; in add_camera_metadata_entry_raw() 373 int type = get_camera_metadata_tag_type(tag); in add_camera_metadata_entry() local [all …]
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 244 EXPECT_EQ(TYPE_INT64, entry.type); in TEST() 253 EXPECT_EQ(TYPE_INT32, entry.type); in TEST() 262 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST() 271 EXPECT_EQ(TYPE_FLOAT, entry.type); in TEST() 339 EXPECT_EQ(TYPE_INT64, entry.type); in TEST() 344 entry.type = 56; in TEST() 351 EXPECT_EQ((uint8_t)56, entry.type); in TEST() 420 EXPECT_EQ(e1.type, e2.type); in TEST() 423 j < e1.count * camera_metadata_type_size[e1.type]; in TEST() 479 EXPECT_EQ(e1.type, e2.type); in TEST() [all …]
|
/system/extras/fatblock/ |
D | fs.c | 29 offset_t start, offset_t len, int type) in fs_add_extent() argument 36 extent->type = type; in fs_add_extent() 110 offset_t len, int type, cluster_t *first_cluster_out) in fs_alloc_extent() argument 121 extent->type = type; in fs_alloc_extent() 151 type); in fs_alloc_extent() 204 strpadcpy(bs->type, "FAT32", ' ', sizeof(bs->type)); in fs_init()
|
/system/core/libnl_2/ |
D | handlers.c | 57 int nl_cb_set(struct nl_cb *cb, enum nl_cb_type type, enum nl_cb_kind kind, \ in nl_cb_set() argument 60 cb->cb_set[type] = func; in nl_cb_set() 61 cb->cb_args[type] = arg; in nl_cb_set()
|
/system/core/libnetutils/ |
D | dhcpclient.c | 101 uint32_t type; member 136 static const char *dhcp_type_to_name(uint32_t type) in dhcp_type_to_name() argument 138 switch(type) { in dhcp_type_to_name() 155 dhcp_type_to_name(info->type), info->type); in dump_dhcp_info() 223 info->type = *x; in decode_dhcp_msg() 416 info.type = 0; in dhcp_init_ifc() 431 if ( info.type == DHCPOFFER ) { in dhcp_init_ifc() 503 if (info.type == DHCPOFFER) { in dhcp_init_ifc() 511 if (info.type == DHCPACK) { in dhcp_init_ifc() 515 } else if (info.type == DHCPNAK) { in dhcp_init_ifc() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr.c | 318 fstab[cnt].type = strdup(p); in read_fstab() 356 free(fstab[i].type); in free_fstab() 367 static void check_fs(char *blk_dev, char *type, char *target) in check_fs() argument 376 if (!strcmp(type, "ext2") || !strcmp(type, "ext3") || !strcmp(type, "ext4")) { in check_fs() 390 ret = mount(blk_dev, target, type, tmpmnt_flags, tmpmnt_opts); in check_fs() 464 check_fs(fstab[i].blk_dev, fstab[i].type, fstab[i].mnt_point); in fs_mgr_mount_all() 467 mret = mount(fstab[i].blk_dev, fstab[i].mnt_point, fstab[i].type, in fs_mgr_mount_all() 530 check_fs(n_blk_dev, fstab[i].type, fstab[i].mnt_point); in fs_mgr_do_mount() 539 if (mount(n_blk_dev, m, fstab[i].type, in fs_mgr_do_mount()
|
/system/core/toolbox/cp/ |
D | cp.c | 109 enum op type; in cp_main() local 273 type = DIR_TO_DNE; in cp_main() 275 type = FILE_TO_FILE; in cp_main() 277 type = FILE_TO_FILE; in cp_main() 279 if (have_trailing_slash && type == FILE_TO_FILE) { in cp_main() 290 type = FILE_TO_DIR; in cp_main() 303 exit(copy(argv, type, fts_options)); in cp_main() 328 copy(char *argv[], enum op type, int fts_options) in copy() argument 363 if (type != FILE_TO_FILE) { in copy() 392 if (type != DIR_TO_DNE) { in copy()
|
/system/vold/ |
D | main.cpp | 173 char *type, *label, *mount_point, *mount_flags, *sysfs_path; in process_config() local 182 if (!(type = strtok_r(line, delim, &save_ptr))) { in process_config() 195 if (!strcmp(type, "dev_mount")) { in process_config() 236 } else if (!strcmp(type, "map_mount")) { in process_config() 238 SLOGE("Unknown type '%s'", type); in process_config()
|
/system/core/toolbox/ |
D | mount.c | 146 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, in do_mount() argument 181 while ((s = strsep(&type, ",")) != NULL) { in do_mount() 278 char *type = NULL; in mount_main() local 303 type = optarg; in mount_main() 320 type = "none"; in mount_main() 329 if (dev == NULL || dir == NULL || type == NULL) { in mount_main() 335 return do_mount(dev, dir, type, rwflag, extra.str, loop, loopdev); in mount_main()
|
/system/security/softkeymaster/ |
D | keymaster_openssl.cpp | 95 static int wrap_key(EVP_PKEY* pkey, int type, uint8_t** keyBlob, size_t* keyBlobLength) { in wrap_key() argument 121 *p++ = (type >> (8*i)) & 0xFF; in wrap_key() 172 int type = 0; in unwrap_key() local 174 type = (type << 8) | *p++; in unwrap_key() 191 d2i_PublicKey(type, &tmp, &p, publicLen); in unwrap_key() 204 d2i_PrivateKey(type, &tmp, &p, privateLen); in unwrap_key() 295 if (wrap_key(pkey.get(), EVP_PKEY_type(pkey->type), key_blob, key_blob_length)) { in openssl_import_keypair() 364 if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { in openssl_sign_data() 417 if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { in openssl_verify_data()
|