Searched refs:offset (Results 1 - 25 of 502) 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.h25 * Sets the estimated offset between the host and SLPI clock.
27 * @param offset The current estimated offset in nanoseconds.
29 void setEstimatedHostTimeOffset(int64_t offset);
/system/core/property_service/libpropertyinfoserializer/
H A Dtrie_node_arena.h29 ArenaObjectPointer(std::string& arena_data, uint32_t offset) argument
30 : arena_data_(arena_data), offset_(offset) {}
45 // data_ + offset.
48 uint32_t offset; local
49 AllocateData(sizeof(T), &offset); local
50 if (return_offset) *return_offset = offset;
51 return ArenaObjectPointer<T>(data_, offset);
55 uint32_t offset; local
56 AllocateData(sizeof(uint32_t) * length, &offset);
57 return offset;
60 uint32_array(uint32_t offset) argument
65 uint32_t offset; local
76 AllocateData(size_t size, uint32_t* offset) argument
[all...]
/system/chre/platform/slpi/
H A Dsystem_time.cc44 void setEstimatedHostTimeOffset(int64_t offset) { argument
45 gEstimatedHostTimeOffset = 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:__anon1672
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/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/chre/chre_api/legacy/v1_1/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/core/libunwindstack/tests/
H A DElfFake.h43 FunctionData(std::string name, uint64_t offset) : name(name), offset(offset) {} argument
46 uint64_t offset; member in struct:unwindstack::FunctionData
78 void FakeSetGlobalVariable(const std::string& global, uint64_t offset) { argument
79 globals_[global] = offset;
106 void FakeSetEhFrameOffset(uint64_t offset) { eh_frame_offset_ = offset; } argument
108 void FakeSetDebugFrameOffset(uint64_t offset) { debug_frame_offset_ = offset; } argument
117 FakeSetEhFrameOffset(uint64_t offset) argument
119 FakeSetDebugFrameOffset(uint64_t offset) argument
128 FakeSetStartOffset(uint64_t offset) argument
[all...]
H A DMemoryOfflineTest.cpp34 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, &offset, sizeof(offset)));
44 uint64_t offset = 4096; member in class:unwindstack::MemoryOfflineTest
51 ASSERT_EQ(0U, memory->Read(offset - 1, &buf, 1));
52 ASSERT_EQ(0U, memory->Read(offset + data.size(), &buf, 1));
53 ASSERT_EQ(1U, memory->Read(offset, &buf, 1));
55 ASSERT_EQ(1U, memory->Read(offset + data.size() - 1, &buf, 1));
62 ASSERT_EQ(data.size(), memory->Read(offset, buf.data(), buf.size()));
/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/libhidl/transport/memory/block/1.0/
H A Dtypes.hal24 uint64_t offset;
/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);
/system/extras/ioshark/
H A Dioshark.h87 #define lseek_offset u.lseek_a.offset
89 u_int64_t offset; member in struct:ioshark_file_operation::__anon1871::lseek_args
93 #define prw_offset u.prw_a.offset
95 u_int64_t offset; member in struct:ioshark_file_operation::__anon1871::prw_args
102 #define mmap_offset u.mmap_a.offset
106 u_int64_t offset; member in struct:ioshark_file_operation::__anon1871::mmap_args
/system/bt/packet/base/
H A Diterator.cc35 Iterator Iterator::operator+(size_t offset) { argument
38 return itr += offset;
41 Iterator& Iterator::operator+=(size_t offset) { argument
42 size_t new_offset = index_ + offset;
65 Iterator Iterator::operator-(size_t offset) { argument
68 return itr -= offset;
73 Iterator& Iterator::operator-=(size_t offset) { argument
74 index_ = (index_ < offset || index_ - offset < packet_->packet_start_index_)
76 : index_ - offset;
[all...]

Completed in 1907 milliseconds

1234567891011>>