Searched refs:offset (Results 1 - 25 of 471) sorted by relevance

1234567891011>>

/system/chre/util/nanoapp/
H A Ddebug.cc34 size_t offset = 0; local
48 offset += static_cast<size_t>(
49 snprintf(&line[offset], sizeof(line) - offset, "%02x ", buffer[i - 1]));
55 offset = 0;
58 offset += static_cast<size_t>(
59 snprintf(&line[offset], sizeof(line) - offset, " "));
63 if (offset > 0) {
66 while (offset < 2
[all...]
/system/chre/platform/slpi/include/chre/platform/slpi/
H A Dsystem_time.h23 * Sets the estimated offset between the host and SLPI clock.
25 * @param offset The current estimated offset in nanoseconds.
27 void setEstimatedHostTimeOffset(int64_t offset);
/system/core/include/utils/
H A DCompat.h28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
29 return lseek(fd, offset, whence);
32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
33 return pread(fd, buf, nbytes, offset);
36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { argument
37 return pwrite(fd, buf, nbytes, offset);
/system/core/libutils/include/utils/
H A DCompat.h28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
29 return lseek(fd, offset, whence);
32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
33 return pread(fd, buf, nbytes, offset);
36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { argument
37 return pwrite(fd, buf, nbytes, offset);
/system/bt/tools/scripts/
H A Dbtsnooz.py96 offset = 0
97 while offset < len(decompressed):
98 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
99 offset += 7 + length - 1
103 offset = 0
104 while offset < len(decompressed):
105 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
107 offset += 7
112 sys.stdout.write(decompressed[offset : offset
[all...]
/system/bt/service/common/android/bluetooth/
H A DIBluetoothGattServerCallback.aidl27 int request_id, int offset, boolean is_long, int handle);
30 int request_id, int offset, boolean is_long, int handle);
33 int request_id, int offset, boolean is_prepare_write, boolean need_response,
37 int request_id, int offset, boolean is_prepare_write, boolean need_response,
/system/core/libunwindstack/include/unwindstack/
H A DDwarfMemory.h52 void set_pc_offset(uint64_t offset) { pc_offset_ = offset; } argument
55 void set_data_offset(uint64_t offset) { data_offset_ = offset; } argument
58 void set_func_offset(uint64_t offset) { func_offset_ = offset; } argument
61 void set_text_offset(uint64_t offset) { text_offset_ = offset; } argument
/system/core/libcutils/
H A Dopen_memstream.c71 size_t offset; /* current write offset */ member in struct:__anon1553
79 * current offset. We also have to take into account the extra '\0'
86 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize));
88 size_t neededSize = stream->offset + writeSize + 1;
129 if (stream->eof < stream->offset) {
131 stream->eof, stream->offset-1));
133 stream->offset - stream->eof);
137 memcpy(*stream->bufp + stream->offset, buf, size);
138 stream->offset
162 seek_memstream(void* cookie, fpos_t offset, int whence) argument
[all...]
/system/core/libpixelflinger/codeflinger/
H A DARMAssemblerInterface.cpp55 uint32_t offset = abs(immed8); local
62 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF));
70 int Rn, uint32_t offset)
72 LDR(cc, Rd, Rn, offset);
75 int Rn, uint32_t offset)
77 STR(cc, Rd, Rn, offset);
69 ADDR_LDR(int cc, int Rd, int Rn, uint32_t offset) argument
74 ADDR_STR(int cc, int Rd, int Rn, uint32_t offset) argument
/system/extras/f2fs_utils/
H A Df2fs_ioutils.c97 static int __get_device_fd(__u64 *offset) argument
99 __u64 blk_addr = *offset >> F2FS_BLKSIZE_BITS;
105 *offset -=
113 static int dev_write_fd(void *buf, __u64 offset, size_t len) argument
115 int fd = __get_device_fd(&offset);
117 if (lseek64(fd, (off64_t)offset, SEEK_SET) < 0)
171 int dev_read_version(void *buf, __u64 offset, size_t len) argument
176 int dev_read(void *buf, __u64 offset, size_t len) argument
181 int dev_readahead(__u64 offset, size_t len) argument
186 int dev_write(void *buf, __u64 offset, size_ argument
203 dev_write_dump(void *buf, __u64 offset, size_t len) argument
209 dev_fill(void *buf, __u64 offset, size_t len) argument
[all...]
/system/chre/chre_api/include/chre_api/chre/
H A Dre.h230 * Retrieves CHRE's current estimated offset between the local CHRE clock
232 * SystemClock.elapsedRealtimeNanos(). This offset is formed as host time minus
241 * some fixed/invalid value while waiting for the initial offset estimate to be
242 * determined - this initial offset must be ready before nanoapps are started.
244 * @returns An estimate of the offset between CHRE's time returned in
247 * milliseconds, such that adding this offset to chreGetTime() produces the
268 int64_t offset = chreGetEstimatedHostTimeOffset(); local
271 // Just casting time to int64_t and adding the (potentially negative) offset
275 if (offset >= 0) {
276 time += (uint64_t) offset;
[all...]
/system/extras/libfec/
H A Dfec_read.cpp50 ptrdiff_t offset = &hex[m * 3] - hex; local
51 snprintf(hex + offset, sizeof(hex) - offset, "%02x ",
68 /* checks if `offset' is within a corrupted block */
69 static inline bool is_erasure(fec_handle *f, uint64_t offset, argument
72 if (unlikely(offset >= f->data_size)) {
80 uint64_t n = offset / FEC_BLOCKSIZE;
86 /* check if `offset' is within a block expected to contain zeros */
87 static inline bool is_zero(fec_handle *f, uint64_t offset) argument
91 if (!v->hash || unlikely(offset >
107 __ecc_read(fec_handle *f, void *rs, uint8_t *dest, uint64_t offset, bool use_erasures, uint8_t *ecc_data, size_t *errors) argument
234 ecc_read(fec_handle *f, uint8_t *dest, size_t count, uint64_t offset, size_t *errors) argument
285 verity_read(fec_handle *f, uint8_t *dest, size_t count, uint64_t offset, size_t *errors) argument
404 fec_seek(struct fec_handle *f, int64_t offset, int whence) argument
459 get_max_count(uint64_t offset, size_t count, uint64_t max) argument
472 raw_pread(fec_handle *f, void *buf, size_t count, uint64_t offset) argument
496 raw_pwrite(fec_handle *f, const void *buf, size_t count, uint64_t offset) argument
521 fec_pread(struct fec_handle *f, void *buf, size_t count, uint64_t offset) argument
[all...]
H A Dfec_open.cpp41 /* performs a binary search to find a metadata offset from a file so that
44 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, argument
47 check(offset);
71 *offset = mi;
72 debug("file_size = %" PRIu64 " -> offset = %" PRIu64, file_size,
78 warn("could not determine offset");
89 /* computes the verity metadata offset for a file with size `f->size' */
90 static int find_verity_offset(fec_handle *f, uint64_t *offset) argument
93 check(offset);
95 return find_offset(f->data_size, 0, offset, get_verity_siz
100 parse_ecc_header(fec_handle *f, uint64_t offset) argument
199 parse_ecc(fec_handle *f, uint64_t offset) argument
310 uint64_t offset = f->data_size - VERITY_METADATA_SIZE; local
351 uint64_t offset = f->data_size - FEC_BLOCKSIZE; local
[all...]
/system/bt/service/doc/
H A DIBluetoothGattServerCallback.txt42 * |offset| is the index of the characteristic value that
48 * If |offset| is invalid then sendResponse should be called with
54 in int offset, in boolean is_long,
60 * |offset| is the index of the descriptor value that
66 * If |offset| is invalid then sendResponse should be called with
72 in int offset, in boolean is_long,
80 * |request_id|. |offset| is the index of the characteristic value that the
82 * |offset|. If |need_response| is false, then this is a "Write Without
87 * If |offset| is invalid, then sendResponse should be called with
91 in int offset, i
[all...]
/system/core/include/cutils/
H A Dashmem.h26 int ashmem_pin_region(int fd, size_t offset, size_t len);
27 int ashmem_unpin_region(int fd, size_t offset, size_t len);
/system/core/libcutils/include/cutils/
H A Dashmem.h26 int ashmem_pin_region(int fd, size_t offset, size_t len);
27 int ashmem_unpin_region(int fd, size_t offset, size_t len);
/system/core/libcutils/include_vndk/cutils/
H A Dashmem.h26 int ashmem_pin_region(int fd, size_t offset, size_t len);
27 int ashmem_unpin_region(int fd, size_t offset, size_t len);
/system/core/libdiskconfig/
H A Ddiskutils.c34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument
44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset);
56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) {
57 ALOGE("Could not seek to offset %lld in %s.", (long long)offset, dst);
105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset);
H A Dwrite_lst.c73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset);
81 (long long)lst->offset);
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);
/system/extras/ioshark/
H A Dioshark.h79 #define lseek_offset u.lseek_a.offset
81 off_t offset; member in struct:ioshark_file_operation::__anon1731::lseek_args
85 #define prw_offset u.prw_a.offset
87 off_t offset; member in struct:ioshark_file_operation::__anon1731::prw_args
94 #define mmap_offset u.mmap_a.offset
98 off_t offset; member in struct:ioshark_file_operation::__anon1731::mmap_args
H A Dioshark_bench_mmap.c47 off_t offset; member in struct:mmap_io_ent_tab_s
59 size_t total_len, off_t offset)
69 mio->table[mio->num_entries].offset = offset;
73 offset += mio->table[mio->num_entries].len;
80 off_t *offset)
98 *offset = mio->table[i].offset;
99 mio->table[i].offset += iolength;
106 mmap_do_io(void *db_node, int prot, off_t offset, size_ argument
58 setup_mmap_io_state(struct mmap_io_ent_s *mio, size_t total_len, off_t offset) argument
79 mmap_getnext_off_len(struct mmap_io_ent_s *mio, off_t *offset) argument
170 off_t offset = file_op->mmap_offset; local
[all...]
/system/extras/libpagemap/
H A Dpm_memusage.c32 /* We use an array of int to store the references to a given offset in the swap
33 1 GiB swap means 512KiB size array: offset are the index */
70 fprintf(stderr, "Error allocating proportional swap offset array.\n");
86 void pm_memusage_pswap_add_offset(pm_memusage_t *mu, unsigned int offset) { argument
92 if (offset >= mu->p_swap->array_size) {
93 fprintf(stderr, "SWAP offset %d is out of swap bounds.\n", offset);
97 if (mu->p_swap->offset_array[offset] == USHRT_MAX) {
98 fprintf(stderr, "SWAP offset %d ref. count if overflowing ushort type.\n", offset);
[all...]
/system/update_engine/common/
H A Dmulti_range_http_fetcher.h60 void AddRange(off_t offset, size_t size) { argument
62 ranges_.push_back(Range(offset, size));
65 void AddRange(off_t offset) { argument
66 ranges_.push_back(Range(offset));
70 void SetOffset(off_t offset) override {} // for now, doesn't support this
122 // A range object defining the offset and length of a download chunk. Zero
123 // length indicates an unspecified end offset (note that it is impossible to
127 Range(off_t offset, size_t length) : offset_(offset), length_(length) {} argument
128 explicit Range(off_t offset) argument
130 inline off_t offset() const { return offset_; } function in class:chromeos_update_engine::MultiRangeHttpFetcher::Range
[all...]
/system/extras/zram-perf/
H A Dzram-perf.cpp66 for (uint64_t offset = 0; offset < devSize; offset += page_size) {
82 for (uint64_t offset = 0; offset < devSize; offset += page_size) {
83 if (offset == 0)
84 lseek(m_fd, offset, SEEK_SET);
103 for (uint64_t offset = 0; offset < devSiz
[all...]
/system/extras/perfprofd/quipper/
H A Dperf_reader.h180 bool ReadAttr(const ConstBufferWithSize& data, size_t* offset);
181 bool ReadEventAttr(const ConstBufferWithSize& data, size_t* offset,
184 size_t* offset, std::vector<u64>* ids);
187 bool ReadEventType(const ConstBufferWithSize& data, size_t* offset);
194 size_t offset, size_t size);
196 size_t offset, size_t size);
198 size_t offset, size_t size);
200 size_t offset, size_t size);
202 size_t offset, size_t size);
204 size_t offset, size_
[all...]

Completed in 333 milliseconds

1234567891011>>