Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 15 of 15) sorted by relevance

/system/keymaster/
Dgoogle_keymaster_test_utils.h46 int pos = set.find(tag); in contains() local
47 return pos != -1 && set[pos].enumerated == val; in contains()
53 int pos = -1; in contains() local
54 while ((pos = set.find(tag, pos)) != -1) in contains()
55 if (set[pos].enumerated == val) in contains()
62 int pos = set.find(tag); in contains() local
63 return pos != -1 && set[pos].integer == val; in contains()
68 int pos = -1; in contains() local
69 while ((pos = set.find(tag, pos)) != -1) in contains()
70 if (set[pos].integer == val) in contains()
[all …]
Dauthorization_set.cpp447 int pos = find(tag); in GetTagValueEnum() local
448 if (pos == -1) { in GetTagValueEnum()
451 *val = elems_[pos].enumerated; in GetTagValueEnum()
458 int pos = -1; in GetTagValueEnumRep() local
460 pos = find(tag, pos); in GetTagValueEnumRep()
461 if (pos == -1) { in GetTagValueEnumRep()
466 *val = elems_[pos].enumerated; in GetTagValueEnumRep()
471 int pos = find(tag); in GetTagValueInt() local
472 if (pos == -1) { in GetTagValueInt()
475 *val = elems_[pos].integer; in GetTagValueInt()
[all …]
Dauthorization_set_test.cpp79 int pos = set.find(TAG_ALGORITHM); in TEST() local
80 ASSERT_NE(-1, pos); in TEST()
81 EXPECT_EQ(KM_TAG_ALGORITHM, set[pos].tag); in TEST()
82 EXPECT_EQ(KM_ALGORITHM_RSA, set[pos].enumerated); in TEST()
84 pos = set.find(TAG_MAC_LENGTH); in TEST()
85 EXPECT_EQ(-1, pos); in TEST()
111 int pos = set.find(TAG_PURPOSE); in TEST() local
112 ASSERT_FALSE(pos == -1); in TEST()
113 EXPECT_EQ(KM_TAG_PURPOSE, set[pos].tag); in TEST()
114 EXPECT_EQ(KM_PURPOSE_SIGN, set[pos].enumerated); in TEST()
[all …]
/system/core/toolbox/
Dnandread.c34 loff_t pos, opos, end, bpos; in nandread_main() local
190 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) { in nandread_main()
193 printf("reading at %" PRIx64 "\n", pos); in nandread_main()
194 lseek64(fd, pos, SEEK_SET); in nandread_main()
197 fprintf(stderr, "short read at %" PRIx64 ", %d\n", pos, ret); in nandread_main()
201 oobbuf.start = pos; in nandread_main()
204 fprintf(stderr, "failed to read oob data at %" PRIx64 ", %d\n", pos, ret); in nandread_main()
214 bpos = pos / mtdinfo.erasesize * mtdinfo.erasesize; in nandread_main()
217 printf("badblock at %" PRIx64 "\n", pos); in nandread_main()
221 printf("ecc corrected, %u, at %" PRIx64 "\n", ecc.corrected - last_ecc.corrected, pos); in nandread_main()
[all …]
/system/core/libutils/
DString16.cpp259 status_t String16::insert(size_t pos, const char16_t* chrs) in insert() argument
261 return insert(pos, chrs, strlen16(chrs)); in insert()
264 status_t String16::insert(size_t pos, const char16_t* chrs, size_t len) in insert() argument
274 if (pos > myLen) pos = myLen; in insert()
278 String8(*this).string(), pos, in insert()
286 if (pos < myLen) { in insert()
287 memmove(str+pos+len, str+pos, (myLen-pos)*sizeof(char16_t)); in insert()
289 memcpy(str+pos, chrs, len*sizeof(char16_t)); in insert()
/system/core/libsysutils/src/
DNetlinkEvent.cpp444 int pos = kTagLength; in parseNdUserOptMessage() local
449 buf[pos++] = ','; in parseNdUserOptMessage()
451 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos); in parseNdUserOptMessage()
452 pos += strlen(buf + pos); in parseNdUserOptMessage()
454 buf[pos] = '\0'; in parseNdUserOptMessage()
/system/extras/tests/iptables/qtaguid/
DsocketTag.cpp139 char *pos; in checkTag() local
169 pos = strstr(ctrl_data, buff); in checkTag()
171 if (pos && !addr) { in checkTag()
173 res = sscanf(pos - strlen("sock=1234abcd"), in checkTag()
187 return pos != NULL; in checkTag()
/system/extras/f2fs_utils/
Df2fs_sparseblock.h68 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), vo…
Df2fs_sparseblock.c482 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), vo… in run_on_used_blocks() argument
544 int copy_used(u64 pos, void *data) in copy_used() argument
548 int pdone = (pos*100)/d->info->total_blocks; in copy_used()
556 if(read_structure_blk(d->infd, (unsigned long long)pos, d->buf, 1)) { in copy_used()
562 ret = lseek64(d->outfd, pos*F2FS_BLKSIZE, SEEK_SET); in copy_used()
/system/core/include/utils/
DString16.h86 status_t insert(size_t pos, const char16_t* chrs);
87 status_t insert(size_t pos,
DVector.h196 inline iterator erase(iterator pos) { in erase() argument
197 ssize_t index = removeItemsAt(pos-array()); in erase()
/system/core/adb/
Dsysdeps.h118 extern int adb_lseek(int fd, int pos, int where);
391 static __inline__ int adb_lseek(int fd, int pos, int where) in adb_lseek() argument
393 return lseek(fd, pos, where); in adb_lseek()
Dsysdeps_win32.c83 int (*_fh_lseek)( FH f, int pos, int origin );
258 _fh_file_lseek( FH f, int pos, int origin ) in _fh_file_lseek() argument
273 result = SetFilePointer( f->fh_handle, pos, NULL, method ); in _fh_file_lseek()
426 int adb_lseek(int fd, int pos, int where) in adb_lseek() argument
434 return f->clazz->_fh_lseek(f, pos, where); in adb_lseek()
507 _fh_socket_lseek( FH f, int pos, int origin ) in _fh_socket_lseek() argument
1142 _fh_socketpair_lseek( FH f, int pos, int origin ) in _fh_socketpair_lseek() argument
/system/core/libsparse/
Doutput_file.c716 off64_t pos; in write_fd_chunk() local
721 pos = lseek64(fd, offset, SEEK_SET); in write_fd_chunk()
722 if (pos < 0) { in write_fd_chunk()
/system/vold/
Dcryptfs.c2514 static int encrypt_one_block_f2fs(u64 pos, void *data) in encrypt_one_block_f2fs() argument
2518 priv_dat->blocks_already_done = pos - 1; in encrypt_one_block_f2fs()
2521 off64_t offset = pos * CRYPT_INPLACE_BUFSIZE; in encrypt_one_block_f2fs()
2532 log_progress_f2fs(pos, false); in encrypt_one_block_f2fs()