/system/keymaster/ |
D | google_keymaster_test_utils.h | 46 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 …]
|
D | authorization_set.cpp | 447 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 …]
|
D | authorization_set_test.cpp | 79 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/ |
D | nandread.c | 34 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/ |
D | String16.cpp | 259 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/ |
D | NetlinkEvent.cpp | 444 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/ |
D | socketTag.cpp | 139 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/ |
D | f2fs_sparseblock.h | 68 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), vo…
|
D | f2fs_sparseblock.c | 482 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/ |
D | String16.h | 86 status_t insert(size_t pos, const char16_t* chrs); 87 status_t insert(size_t pos,
|
D | Vector.h | 196 inline iterator erase(iterator pos) { in erase() argument 197 ssize_t index = removeItemsAt(pos-array()); in erase()
|
/system/core/adb/ |
D | sysdeps.h | 118 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()
|
D | sysdeps_win32.c | 83 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/ |
D | output_file.c | 716 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/ |
D | cryptfs.c | 2514 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()
|