Searched defs:type (Results 26 - 50 of 63) sorted by relevance

123

/system/core/libsparse/
H A Dbacked_block.c29 enum backed_block_type type; member in struct:backed_block
77 assert(bb->type == BACKED_BLOCK_DATA);
83 assert(bb->type == BACKED_BLOCK_FILE);
89 assert(bb->type == BACKED_BLOCK_FD);
95 assert(bb->type == BACKED_BLOCK_FILE || bb->type == BACKED_BLOCK_FD);
96 if (bb->type == BACKED_BLOCK_FILE) {
98 } else { /* bb->type == BACKED_BLOCK_FD */
105 assert(bb->type == BACKED_BLOCK_FILL);
111 return bb->type;
[all...]
/system/core/toolbox/cp/
H A Dcp.c109 enum op type; local
273 type = DIR_TO_DNE;
275 type = FILE_TO_FILE;
277 type = FILE_TO_FILE;
279 if (have_trailing_slash && type == FILE_TO_FILE) {
290 type = FILE_TO_DIR;
303 exit(copy(argv, type, fts_options));
328 copy(char *argv[], enum op type, int fts_options) argument
363 if (type != FILE_TO_FILE) {
392 if (type !
[all...]
/system/core/toolbox/
H A Dmount.c146 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, argument
181 while ((s = strsep(&type, ",")) != NULL) {
278 char *type = NULL; local
303 type = optarg;
317 * have a "type" as such. Use the dummy "none" type.
320 type = "none";
329 if (dev == NULL || dir == NULL || type == NULL) {
330 fprintf(stderr, "Usage: %s [-r] [-w] [-o options] [-t type] "
335 return do_mount(dev, dir, type, rwfla
[all...]
H A Dgetevent.c193 static void print_event(int type, int code, int value, int print_flags) argument
198 type_label = get_label(ev_labels, type);
202 switch(type) {
246 printf("%04x ", type);
256 printf("%04x %04x %08x", type, code, value);
650 print_event(event.type, event.code, event.value, print_flags);
651 if(sync_rate && event.type == 0 && event.code == 0) {
/system/extras/fatblock/
H A Dfs.c29 offset_t start, offset_t len, int type)
36 extent->type = type;
110 offset_t len, int type, cluster_t *first_cluster_out)
121 extent->type = type;
151 type);
204 strpadcpy(bs->type, "FAT32", ' ', sizeof(bs->type));
28 fs_add_extent(struct fs *fs, struct extent *extent, offset_t start, offset_t len, int type) argument
109 fs_alloc_extent(struct fs *fs, struct extent *extent, offset_t len, int type, cluster_t *first_cluster_out) argument
H A Dfat.h55 char type[8]; member in struct:fat_boot_sector
/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_mutex.c122 static void set_mutexattr_type(pthread_mutexattr_t *attr, int type) argument
125 TZERO(pthread_mutexattr_settype(attr, type));
126 newtype = ~type;
128 TEXPECT_INT(newtype,type);
134 int ret, type; local
H A Dtest_pthread_rwlock.c144 int ret, type; local
/system/extras/tests/framebuffer/
H A Dmdp_test.c34 char *type, *fn; local
36 type = name;
42 if (!strncmp(type, "yuv420", 6))
44 else if (!strncmp(type, "rgb565", 6))
47 fprintf(stderr, "Unsupported image type: %s\n", type);
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp239 EXPECT_EQ(TYPE_INT64, entry.type);
248 EXPECT_EQ(TYPE_INT32, entry.type);
257 EXPECT_EQ(TYPE_FLOAT, entry.type);
266 EXPECT_EQ(TYPE_FLOAT, entry.type);
334 EXPECT_EQ(TYPE_INT64, entry.type);
339 entry.type = 56;
346 EXPECT_EQ((uint8_t)56, entry.type);
395 EXPECT_EQ(e1.type, e2.type);
398 j < e1.count * camera_metadata_type_size[e1.type];
785 int type = get_camera_metadata_tag_type(tag); local
[all...]
/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp95 static int wrap_key(EVP_PKEY* pkey, int type, uint8_t** keyBlob, size_t* keyBlobLength) { argument
105 /* int type + int size + private key data + int size + public key data */
119 /* Write key type to allocated buffer */
121 *p++ = (type >> (8*i)) & 0xFF;
159 // int32 magic, int32 type, int32 pubLen, char* pub, int32 privLen, char* priv
172 int type = 0; local
174 type = (type << 8) | *p++;
191 d2i_PublicKey(type, &tmp, &p, publicLen);
204 d2i_PrivateKey(type,
[all...]
/system/core/fs_mgr/
H A Dfs_mgr.c318 fstab[cnt].type = strdup(p);
356 free(fstab[i].type);
367 static void check_fs(char *blk_dev, char *type, char *target) argument
376 if (!strcmp(type, "ext2") || !strcmp(type, "ext3") || !strcmp(type, "ext4")) {
390 ret = mount(blk_dev, target, type, tmpmnt_flags, tmpmnt_opts);
464 check_fs(fstab[i].blk_dev, fstab[i].type, fstab[i].mnt_point);
467 mret = mount(fstab[i].blk_dev, fstab[i].mnt_point, fstab[i].type,
530 check_fs(fstab[i].blk_dev, fstab[i].type, fsta
[all...]
/system/core/init/
H A Dutil.c88 int create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid) argument
96 fd = socket(PF_UNIX, type, 0);
/system/core/libnetutils/
H A Ddhcpclient.c101 uint32_t type; member in struct:dhcp_info
136 static const char *dhcp_type_to_name(uint32_t type) argument
138 switch(type) {
155 dhcp_type_to_name(info->type), info->type);
223 info->type = *x;
416 info.type = 0;
431 if ( info.type == DHCPOFFER ) {
503 if (info.type == DHCPOFFER) {
511 if (info.type
[all...]
/system/core/sh/
H A Dnodes.h35 int type; member in struct:nbinary
42 int type; member in struct:ncmd
50 int type; member in struct:npipe
57 int type; member in struct:nredir
64 int type; member in struct:nif
72 int type; member in struct:nfor
80 int type; member in struct:ncase
87 int type; member in struct:nclist
95 int type; member in struct:narg
103 int type; member in struct:nfile
112 int type; member in struct:ndup
121 int type; member in struct:nhere
129 int type; member in struct:nnot
135 int type; member in union:node
[all...]
/system/extras/tests/fstest/
H A Dperm_checker.c62 enum perm_rule_type type; member in struct:perm_rule
122 pr->type = RECURSIVE;
125 pr->type = WILDCARD;
128 pr->type = EXACT_DIR;
131 pr->type = EXACT_FILE;
145 pr->next = rules[pr->type];
146 rules[pr->type] = pr;
148 printf("rule #%d: type = %d spec = %s min_mode = %o max_mode = %o "
150 num_rules, pr->type, pr->spec, pr->min_mode, pr->max_mode,
/system/extras/tests/sdcard/
H A Dtestcase.h120 Type type() const { return mType; } function in class:android_test::TestCase
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dl2cap.h142 uint8_t type; member in struct:__anon255
176 uint16_t type; member in struct:__anon258
181 uint16_t type; member in struct:__anon259
/system/bluetooth/tools/
H A Dasocket_test.c53 int type; member in struct:thread_args
85 static int _socket(int type) { argument
91 switch (type) {
127 static int _close(int fd, int type) { argument
138 static int _bind(int fd, int type) { argument
143 switch (type) {
175 static int _listen(int fd, int type) { argument
199 static int _accept(int fd, int type) { argument
204 switch (type) {
238 static int _connect(int fd, int type) { argument
274 _write(int fd, int type) argument
398 do_accept_accept_accept(int type) argument
418 do_accept_and_close(int type) argument
443 do_accept_shutdown(int type) argument
471 do_connect_shutdown(int type) argument
496 do_accept_close_write(int type) argument
521 do_poll_poll_poll_shutdown(int type) argument
544 do_poll_poll_poll_close(int type) argument
565 do_read_read_read_close(int type) argument
586 do_read_read_read_shutdown(int type) argument
609 do_connected_read1_shutdown1(int type) argument
643 do_accept_connect_connect(int type) argument
691 enum sock_type type; member in struct:__anon262
717 int type = -1; local
[all...]
H A Dsocktest.c52 int type; member in struct:thread_args
84 static int _socket(int type) { argument
90 switch (type) {
126 static int _close(int fd, int type) { argument
137 static int _bind(int fd, int type) { argument
142 switch (type) {
174 static int _listen(int fd, int type) { argument
198 static int _accept(int fd, int type) { argument
203 switch (type) {
251 static int _connect(int fd, int type) { argument
288 _write(int fd, int type) argument
412 do_accept_accept_accept(int type) argument
432 do_accept_and_close(int type) argument
457 do_accept_shutdown(int type) argument
485 do_connect_shutdown(int type) argument
509 do_connectnb_shutdown(int type) argument
540 do_connectnb_close(int type) argument
568 do_accept_close_write(int type) argument
593 do_poll_poll_poll_shutdown(int type) argument
616 do_poll_poll_poll_close(int type) argument
637 do_read_read_read_close(int type) argument
658 do_read_read_read_shutdown(int type) argument
681 do_connected_read1_shutdown1(int type) argument
715 do_accept_connect_connect(int type) argument
765 enum sock_type type; member in struct:__anon268
791 int type = -1; local
[all...]
/system/core/adb/
H A Dsysdeps.h170 extern int socket_loopback_client(int port, int type);
171 extern int socket_network_client(const char *host, int port, int type);
172 extern int socket_loopback_server(int port, int type);
173 extern int socket_inaddr_any_server(int port, int type);
445 static __inline__ int unix_socketpair( int d, int type, int protocol, int sv[2] ) argument
447 return socketpair( d, type, protocol, sv );
H A Dusb_linux.c211 unsigned char type = bufptr[1]; local
213 if (type == USB_DT_INTERFACE) {
319 urb->type = USBDEVFS_URB_TYPE_BULK;
371 urb->type = USBDEVFS_URB_TYPE_BULK;
/system/core/liblog/
H A Dlogprint.c448 unsigned char type; local
454 type = *eventData++;
457 //fprintf(stderr, "--- type=%d (rem len=%d)\n", type, eventDataLen);
459 switch (type) {
575 fprintf(stderr, "Unknown binary event type %d\n", type);
/system/core/libpixelflinger/codeflinger/
H A DARMAssembler.cpp510 uint32_t ARMAssembler::reg_imm(int Rm, int type, uint32_t shift) argument
512 return ((shift&0x1F)<<7) | ((type&0x3)<<5) | (Rm&0xF);
520 uint32_t ARMAssembler::reg_reg(int Rm, int type, int Rs) argument
522 return ((Rs&0xF)<<8) | ((type&0x3)<<5) | (1<<4) | (Rm&0xF);
545 uint32_t ARMAssembler::reg_scale_pre(int Rm, int type, argument
550 reg_imm(abs(Rm), type, shift);
553 uint32_t ARMAssembler::reg_scale_post(int Rm, int type, uint32_t shift) argument
555 return (1<<25) | (((uint32_t(Rm)>>31)^1)<<23) | reg_imm(abs(Rm), type, shift);
H A DARMAssemblerProxy.cpp93 uint32_t ARMAssemblerProxy::reg_imm(int Rm, int type, uint32_t shift) argument
95 return mTarget->reg_imm(Rm, type, shift);
103 uint32_t ARMAssemblerProxy::reg_reg(int Rm, int type, int Rs) argument
105 return mTarget->reg_reg(Rm, type, Rs);
122 uint32_t ARMAssemblerProxy::reg_scale_pre(int Rm, int type, uint32_t shift, int W) argument
124 return mTarget->reg_scale_pre(Rm, type, shift, W);
127 uint32_t ARMAssemblerProxy::reg_scale_post(int Rm, int type, uint32_t shift) argument
129 return mTarget->reg_scale_post(Rm, type, shift);

Completed in 1187 milliseconds

123