Searched defs:pos (Results 1 - 13 of 13) sorted by relevance

/system/keymaster/
H A Dgoogle_keymaster_test_utils.h46 int pos = set.find(tag); local
47 return pos != -1 && set[pos].enumerated == val;
53 int pos = -1; local
54 while ((pos = set.find(tag, pos)) != -1)
55 if (set[pos].enumerated == val)
62 int pos = set.find(tag); local
63 return pos != -1 && set[pos]
68 int pos = -1; local
77 int pos = set.find(tag); local
83 int pos = set.find(tag); local
[all...]
H A Dauthorization_set_test.cpp79 int pos = set.find(TAG_ALGORITHM); local
80 ASSERT_NE(-1, pos);
81 EXPECT_EQ(KM_TAG_ALGORITHM, set[pos].tag);
82 EXPECT_EQ(KM_ALGORITHM_RSA, set[pos].enumerated);
84 pos = set.find(TAG_MAC_LENGTH);
85 EXPECT_EQ(-1, pos);
111 int pos = set.find(TAG_PURPOSE); local
112 ASSERT_FALSE(pos == -1);
113 EXPECT_EQ(KM_TAG_PURPOSE, set[pos].tag);
114 EXPECT_EQ(KM_PURPOSE_SIGN, set[pos]
171 int pos = deserialized.find(TAG_APPLICATION_ID); local
208 int pos = deserialized.find(TAG_APPLICATION_ID); local
[all...]
H A Dauthorization_set.cpp447 int pos = find(tag); local
448 if (pos == -1) {
451 *val = elems_[pos].enumerated;
458 int pos = -1; local
460 pos = find(tag, pos);
461 if (pos == -1) {
466 *val = elems_[pos].enumerated;
471 int pos = find(tag); local
472 if (pos
482 int pos = -1; local
495 int pos = find(tag); local
504 int pos = find(tag); local
513 int pos = find(tag); local
[all...]
/system/core/toolbox/
H A Dnandread.c34 loff_t pos, opos, end, bpos; local
190 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) {
193 printf("reading at %" PRIx64 "\n", pos);
194 lseek64(fd, pos, SEEK_SET);
197 fprintf(stderr, "short read at %" PRIx64 ", %d\n", pos, ret);
201 oobbuf.start = pos;
204 fprintf(stderr, "failed to read oob data at %" PRIx64 ", %d\n", pos, ret);
214 bpos = pos / mtdinf
[all...]
/system/core/libutils/
H A DString16.cpp259 status_t String16::insert(size_t pos, const char16_t* chrs) argument
261 return insert(pos, chrs, strlen16(chrs));
264 status_t String16::insert(size_t pos, const char16_t* chrs, size_t len) argument
274 if (pos > myLen) pos = myLen;
277 printf("Insert in to %s: pos=%d, len=%d, myLen=%d, chrs=%s\n",
278 String8(*this).string(), pos,
286 if (pos < myLen) {
287 memmove(str+pos+len, str+pos, (myLe
[all...]
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp139 char *pos; local
169 pos = strstr(ctrl_data, buff);
171 if (pos && !addr) {
173 res = sscanf(pos - strlen("sock=1234abcd"),
187 return pos != NULL;
/system/core/include/utils/
H A DVector.h196 inline iterator erase(iterator pos) { argument
197 ssize_t index = removeItemsAt(pos-array());
/system/core/adb/
H A Dsysdeps.h118 extern int adb_lseek(int fd, int pos, int where);
391 static __inline__ int adb_lseek(int fd, int pos, int where) argument
393 return lseek(fd, pos, where);
H A Dsysdeps_win32.c84 int (*_fh_lseek)( FH f, int pos, int origin );
259 _fh_file_lseek( FH f, int pos, int origin ) argument
274 result = SetFilePointer( f->fh_handle, pos, NULL, method );
427 int adb_lseek(int fd, int pos, int where) argument
435 return f->clazz->_fh_lseek(f, pos, where);
508 _fh_socket_lseek( FH f, int pos, int origin ) argument
1143 _fh_socketpair_lseek( FH f, int pos, int origin ) argument
/system/core/libsparse/
H A Doutput_file.c716 off64_t pos; local
721 pos = lseek64(fd, offset, SEEK_SET);
722 if (pos < 0) {
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp444 int pos = kTagLength; local
449 buf[pos++] = ',';
451 inet_ntop(AF_INET6, addrs + i, buf + pos, bufsize - pos);
452 pos += strlen(buf + pos);
454 buf[pos] = '\0';
/system/extras/f2fs_utils/
H A Df2fs_sparseblock.c482 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data) { argument
544 int copy_used(u64 pos, void *data) argument
548 int pdone = (pos*100)/d->info->total_blocks;
556 if(read_structure_blk(d->infd, (unsigned long long)pos, d->buf, 1)) {
562 ret = lseek64(d->outfd, pos*F2FS_BLKSIZE, SEEK_SET);
/system/vold/
H A Dcryptfs.c2548 static int encrypt_one_block_f2fs(u64 pos, void *data) argument
2552 priv_dat->blocks_already_done = pos - 1;
2555 off64_t offset = pos * CRYPT_INPLACE_BUFSIZE;
2566 log_progress_f2fs(pos, false);

Completed in 389 milliseconds