Home
last modified time | relevance | path

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

1234

/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c147 size_t off; in grep_fgetln() local
174 for (len = bufrem, off = 0; ; len += bufrem) { in grep_fgetln()
177 memcpy(lnbuf + off, bufpos, len - off); in grep_fgetln()
179 off = len; in grep_fgetln()
192 memcpy(lnbuf + off, bufpos, diff); in grep_fgetln()
193 lnbuf[off + diff] = '\0'; in grep_fgetln()
Dqueue.c68 item->data.off = x->off; in enqueue()
/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/libmeminfo/include/meminfo/
Dmeminfo.h71 Vma(uint64_t s, uint64_t e, uint64_t off, uint16_t f, const char* n) in Vma()
72 : start(s), end(e), offset(off), flags(f), name(n) {} in Vma()
/system/core/libcutils/
Dashmem_test.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/libsparse/
Dsparse_read.cpp91 void Seek(int64_t off) override { lseek64(fd, off, SEEK_CUR); } in Seek() argument
130 void Seek(int64_t off) override { in Seek() argument
131 buf += off; in Seek()
132 offset += off; in Seek()
137 int SetOffset(int64_t off) override { in SetOffset() argument
138 buf += off - offset; in SetOffset()
139 offset = off; in SetOffset()
/system/core/libmeminfo/tools/
Dprocrank.cpp89 for (auto& off : swap_offsets_) { in CalculateSwap() local
90 proportional_swap_ += getpagesize() / swap_offset_array[off]; in CalculateSwap()
91 unique_swap_ += swap_offset_array[off] == 1 ? getpagesize() : 0; in CalculateSwap()
183 for (auto& off : swp_offs) { in count_swap_offsets() local
184 if (off >= size) { in count_swap_offsets()
185 std::cerr << "swap offset " << off << " is out of bounds for process: " << proc.pid() in count_swap_offsets()
190 if (swap_offset_array[off] == USHRT_MAX) { in count_swap_offsets()
191 std::cerr << "swap offset " << off << " ref count overflow in process: " << proc.pid() in count_swap_offsets()
196 swap_offset_array[off]++; in count_swap_offsets()
/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/update_engine/scripts/
Dpayload_info.py43 for off in range(0, len(data), 16):
44 chunk = data[off:off + 16]
/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/public/
Dhal_bluetooth.te9 # The HAL toggles rfkill to power the chip off/on.
/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/prebuilts/api/27.0/public/
Dhal_bluetooth.te10 # The HAL toggles rfkill to power the chip off/on.
/system/sepolicy/prebuilts/api/29.0/public/
Dhal_bluetooth.te9 # The HAL toggles rfkill to power the chip off/on.
/system/extras/checkpoint_gc/
Dcheckpoint_gc.sh66 log -pi -t checkpoint_gc Turning off GC for ${NAME}
/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

1234