Searched refs:off (Results 1 - 25 of 33) sorted by relevance

12

/system/libhwbinder/
H A DDebug.cpp37 ssize_t off = sizeof(indentStr)-1-(indentLevel*2); local
38 return indentStr + (off < 0 ? 0 : off);
/system/extras/libpagemap/
H A Dpm_kernel.c117 off64_t off; local
122 off = lseek64(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET);
123 if (off == (off_t)-1)
133 off64_t off; local
138 off = lseek64(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET);
139 if (off == (off_t)-1)
H A Dpm_process.c113 off64_t off; local
132 off = lseek64(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET);
133 if (off == (off_t)-1) {
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfile.c146 size_t off; local
171 for (len = bufrem, off = 0; ; len += bufrem) {
175 memcpy(lnbuf + off, bufpos, len - off);
176 off = len;
190 memcpy(lnbuf + off, bufpos, diff);
H A Dqueue.c68 item->data.off = x->off;
H A Dgrep.h90 off_t off; member in struct:str
H A Dutil.c227 ln.off = -1;
230 ln.off += ln.len + 1;
467 printf("%lld", (long long)line->off);
/system/core/trusty/storage/lib/include/trusty/lib/
H A Dstorage.h99 * @off: the start offset from whence to read in the file
106 storage_off_t off, void *buf, size_t size);
111 * @off: the start offset from whence to write in the file
119 storage_off_t off, const void *buf, size_t size,
125 * @off: the number of bytes to set as the new size of the file
/system/core/trusty/storage/lib/
H A Dstorage.c191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) argument
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off };
202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) argument
212 rc = _read_chunk(fh, off, ptr, chunk);
217 off += rc;
225 static int _write_req(file_handle_t fh, storage_off_t off, argument
229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, };
238 ssize_t storage_write(file_handle_t fh, storage_off_t off, argument
253 rc = _write_req(fh, off, ptr, chunk, msg_flags);
260 off
[all...]
/system/extras/tests/workloads/
H A Dpwrtest.sh114 if [ "$1" = off ]; then
115 state=off
165 usbpassthru off
167 # take off the first 2min of samples
249 airplane_mode off
268 airplane_mode off
270 # have already been filtered off. For our power baseline, keep the first
296 airplane_mode off
310 airplane_mode off
330 # off afte
[all...]
/system/core/libcutils/tests/
H A DAshmemTest.cpp40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) {
43 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off);
168 auto off = lseek(fd, cfg.offset, cfg.whence); local
169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed"
172 if (off >= dataStart && off < dataEnd) {
173 off_t dataOff = off - dataStart;
/system/extras/tests/directiotest/
H A Ddirectiotest.c143 int off = i % 16; local
145 if (off == 0)
148 ascii_buf[off] = isprint(val) ? val : '.';
149 if (off == 15)
/system/core/trusty/storage/tests/
H A Dmain.cpp36 static bool is_valid_offset(storage_off_t off) argument
38 return (off & 0x3) == 0ULL;
41 static void fill_pattern32(uint32_t *buf, size_t len, storage_off_t off) argument
44 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t));
50 static bool check_pattern32(const uint32_t *buf, size_t len, storage_off_t off) argument
53 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t));
104 void WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete );
105 void WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete);
106 void WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete);
108 void ReadChunk(file_handle_t handle, storage_off_t off, size_
125 WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete) argument
141 WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete) argument
157 WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete) argument
173 ReadChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t head_len, size_t pattern_len, size_t tail_len) argument
205 ReadPattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len) argument
226 ReadPatternEOF(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t exp_len) argument
[all...]
/system/core/libmemunreachable/
H A DThreadCapture.cpp134 ssize_t off = 0; local
135 while (off < nread) {
136 linux_dirent64* dirent = reinterpret_cast<linux_dirent64*>(dirent_buf + off);
137 off += dirent->d_reclen;
/system/chre/external/flatbuffers/include/flatbuffers/
H A Dflatbuffers.h832 template<typename T> uoffset_t PushElement(Offset<T> off) {
834 return PushElement(ReferTo(off.o));
839 void TrackField(voffset_t field, uoffset_t off) {
840 FieldLoc fl = { off, field };
848 auto off = PushElement(e);
849 TrackField(field, off);
852 template<typename T> void AddOffset(voffset_t field, Offset<T> off) {
853 if (!off.o) return; // An offset of 0 means NULL, don't store.
854 AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0));
864 void AddStructOffset(voffset_t field, uoffset_t off) {
1036 auto off = CreateString(str, len); local
1365 uoffset_t off; member in struct:flatbuffers::Vector::FieldLoc
[all...]
/system/core/libziparchive/
H A Dzip_archive_private.h109 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t off) const;
H A Dzip_archive.cc317 * low as 50% after we round off to a power of 2. There must be at
337 ALOGW("Zip: ran off the end (at %" PRIu16 ")", i);
1172 // Attempts to read |len| bytes into |buf| at offset |off|.
1173 bool MappedZipFile::ReadAtOffset(uint8_t* buf, size_t len, off64_t off) const {
1175 if (!android::base::ReadFullyAtOffset(fd_, buf, len, off)) {
1176 ALOGE("Zip: failed to read at offset %" PRId64 "\n", off);
1180 if (off < 0 || off > static_cast<off64_t>(data_length_)) {
1181 ALOGE("Zip: invalid offset: %" PRId64 ", data length: %" PRId64 "\n", off, data_length_);
1184 memcpy(buf, static_cast<uint8_t*>(base_ptr_) + off, le
[all...]
/system/core/adb/
H A Dsysdeps.h632 int off = 1; local
633 adb_setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off));
/system/extras/ksmutils/
H A Dksminfo.c199 off_t off; local
248 off = lseek(fd, vaddr, SEEK_SET);
249 if (off == (off_t)-1) {
/system/core/libcutils/arch-x86/
H A Dandroid_memset32.S40 # define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off
48 # define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
/system/core/libsparse/
H A Doutput_file.c280 static int callback_file_skip(struct output_file *out, int64_t off) argument
286 while (off > 0) {
287 to_write = min(off, (int64_t)INT_MAX);
292 off -= to_write;
/system/extras/power_profile/camera_avg/
H A Dgradlew.bat1 @if "%DEBUG%" == "" @echo off
/system/extras/power_profile/camera_flashlight/
H A Dgradlew.bat1 @if "%DEBUG%" == "" @echo off
/system/extras/power_profile/gps_on/
H A Dgradlew.bat1 @if "%DEBUG%" == "" @echo off
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/
H A Dgradlew.bat1 @if "%DEBUG%" == "" @echo off

Completed in 355 milliseconds

12