Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 75) sorted by relevance

123

/system/extras/libpagemap/
Dpm_kernel.c117 off64_t off; in pm_kernel_count() local
122 off = lseek64(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET); in pm_kernel_count()
123 if (off == (off_t)-1) in pm_kernel_count()
133 off64_t off; in pm_kernel_flags() local
138 off = lseek64(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET); in pm_kernel_flags()
139 if (off == (off_t)-1) in pm_kernel_flags()
Dpm_process.c113 off64_t off; in pm_process_pagemap_range() local
132 off = lseek64(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET); in pm_process_pagemap_range()
133 if (off == (off_t)-1) { in pm_process_pagemap_range()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c146 size_t off; in grep_fgetln() local
171 for (len = bufrem, off = 0; ; len += bufrem) { in grep_fgetln()
175 memcpy(lnbuf + off, bufpos, len - off); in grep_fgetln()
176 off = len; in grep_fgetln()
190 memcpy(lnbuf + off, bufpos, diff); in grep_fgetln()
Dqueue.c68 item->data.off = x->off; in enqueue()
Dutil.c227 ln.off = -1; in procfile()
230 ln.off += ln.len + 1; in procfile()
467 printf("%lld", (long long)line->off); in printline()
/system/core/trusty/storage/lib/
Dstorage.c191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) in _read_chunk() argument
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; in _read_chunk()
202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) in storage_read() argument
212 rc = _read_chunk(fh, off, ptr, chunk); in storage_read()
217 off += rc; in storage_read()
225 static int _write_req(file_handle_t fh, storage_off_t off, in _write_req() argument
229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, }; in _write_req()
238 ssize_t storage_write(file_handle_t fh, storage_off_t off, in storage_write() argument
253 rc = _write_req(fh, off, ptr, chunk, msg_flags); in storage_write()
260 off += chunk; in storage_write()
/system/extras/tests/workloads/
Dpwrtest.sh114 if [ "$1" = off ]; then
115 state=off
165 usbpassthru off
249 airplane_mode off
268 airplane_mode off
296 airplane_mode off
310 airplane_mode off
339 airplane_mode off
/system/core/trusty/storage/lib/include/trusty/lib/
Dstorage.h106 storage_off_t off, void *buf, size_t size);
119 storage_off_t off, const void *buf, size_t size,
/system/core/libcutils/tests/
DAshmemTest.cpp40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() argument
43 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); in TestMmap()
168 auto off = lseek(fd, cfg.offset, cfg.whence); in TEST() local
169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed" in TEST()
172 if (off >= dataStart && off < dataEnd) { in TEST()
173 off_t dataOff = off - dataStart; in TEST()
/system/extras/tests/directiotest/
Ddirectiotest.c143 int off = i % 16; in dump_hex() local
145 if (off == 0) in dump_hex()
148 ascii_buf[off] = isprint(val) ? val : '.'; in dump_hex()
149 if (off == 15) in dump_hex()
/system/core/trusty/storage/tests/
Dmain.cpp36 static bool is_valid_offset(storage_off_t off) in is_valid_offset() argument
38 return (off & 0x3) == 0ULL; in is_valid_offset()
41 static void fill_pattern32(uint32_t *buf, size_t len, storage_off_t off) in fill_pattern32() argument
44 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t)); in fill_pattern32()
50 static bool check_pattern32(const uint32_t *buf, size_t len, storage_off_t off) in check_pattern32() argument
53 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t)); in check_pattern32()
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…
108 void ReadChunk(file_handle_t handle, storage_off_t off, size_t chunk_len,
[all …]
/system/chre/external/flatbuffers/include/flatbuffers/
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) {
[all …]
/system/core/libmemunreachable/
DThreadCapture.cpp134 ssize_t off = 0; in ListThreads() local
135 while (off < nread) { in ListThreads()
136 linux_dirent64* dirent = reinterpret_cast<linux_dirent64*>(dirent_buf + off); in ListThreads()
137 off += dirent->d_reclen; in ListThreads()
/system/libhwbinder/
DDebug.cpp37 ssize_t off = sizeof(indentStr)-1-(indentLevel*2); in stringForIndent() local
38 return indentStr + (off < 0 ? 0 : off); in stringForIndent()
/system/extras/ANRdaemon/
DREADME4 Depending on the CPU usage level, the trace is turn on/off by writting to the
20 not running. This is because the daemon process turns off tracing when CPU usage
/system/sepolicy/prebuilts/api/27.0/public/
Dhal_bluetooth.te10 # The HAL toggles rfkill to power the chip off/on.
Dinstall_recovery.te17 # Update the recovery block device based off a diff of the boot block device
/system/sepolicy/prebuilts/api/26.0/public/
Dhal_bluetooth.te10 # The HAL toggles rfkill to power the chip off/on.
Dinstall_recovery.te17 # Update the recovery block device based off a diff of the boot block device
/system/sepolicy/public/
Dhal_bluetooth.te10 # The HAL toggles rfkill to power the chip off/on.
Dinstall_recovery.te17 # Update the recovery block device based off a diff of the boot block device
/system/sepolicy/prebuilts/api/28.0/public/
Dhal_bluetooth.te10 # The HAL toggles rfkill to power the chip off/on.
Dinstall_recovery.te17 # Update the recovery block device based off a diff of the boot block device
/system/sepolicy/tests/
DAndroid.bp8 // ASAN runtime. So turn off sanitization for ourself, and use static
/system/extras/tests/mmc_tracepoints/
DREADME11 To turn it back off, do:

123