Home
last modified time | relevance | path

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

1234

/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/memory/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/adb/client/pairing/
Dpairing_client.cpp136 int off = 1; in StartConnection() local
137 adb_setsockopt(fd.get(), IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off)); in StartConnection()
/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/memory/libmeminfo/tools/
Dprocrank.cpp90 for (auto& off : swap_offsets_) { in CalculateSwap() local
91 proportional_swap_ += getpagesize() / swap_offset_array[off]; in CalculateSwap()
92 unique_swap_ += swap_offset_array[off] == 1 ? getpagesize() : 0; in CalculateSwap()
184 for (auto& off : swp_offs) { in count_swap_offsets() local
185 if (off >= swap_offset_array.size()) { in count_swap_offsets()
186 std::cerr << "swap offset " << off << " is out of bounds for process: " << proc.pid() in count_swap_offsets()
191 if (swap_offset_array[off] == USHRT_MAX) { in count_swap_offsets()
192 std::cerr << "swap offset " << off << " ref count overflow in process: " << proc.pid() in count_swap_offsets()
197 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/core/adb/pairing_connection/tests/
Dpairing_client.cpp170 int off = 1; in StartConnection() local
171 setsockopt(fd.get(), IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off)); in StartConnection()
/system/extras/simpleperf/
Dread_elf_test.cpp243 uint64_t off; in TEST() local
244 ASSERT_TRUE(elf->VaddrToOff(0x400200, &off)); in TEST()
245 ASSERT_EQ(off, 0x200); in TEST()
246 ASSERT_FALSE(elf->VaddrToOff(0x300200, &off)); in TEST()
247 ASSERT_FALSE(elf->VaddrToOff(0x420000, &off)); in TEST()
/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/memory/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.py44 for off in range(0, len(data), 16):
45 chunk = bytearray(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/libziparchive/
Dzip_archive.cc1491 bool MappedZipFile::ReadAtOffset(uint8_t* buf, size_t len, off64_t off) const { in ReadAtOffset()
1493 if (off < 0) { in ReadAtOffset()
1494 ALOGE("Zip: invalid offset %" PRId64, off); in ReadAtOffset()
1499 if (__builtin_add_overflow(fd_offset_, off, &read_offset)) { in ReadAtOffset()
1500 ALOGE("Zip: invalid read offset %" PRId64 " overflows, fd offset %" PRId64, off, fd_offset_); in ReadAtOffset()
1507 __builtin_add_overflow(off, static_cast<off64_t>(len), &read_end)) { in ReadAtOffset()
1509 static_cast<off64_t>(len), off); in ReadAtOffset()
1515 PRId64, static_cast<off64_t>(len), data_length_, off); in ReadAtOffset()
1521 ALOGE("Zip: failed to read at offset %" PRId64, off); in ReadAtOffset()
1525 if (off < 0 || data_length_ < len || off > data_length_ - len) { in ReadAtOffset()
[all …]
/system/sepolicy/prebuilts/api/27.0/public/
Dhal_bluetooth.te10 # The HAL toggles rfkill to power the chip off/on.
/system/sepolicy/prebuilts/api/30.0/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.
/system/sepolicy/vendor/
Dvendor_install_recovery.te18 # Update the recovery block device based off a diff of the boot block device
/system/sepolicy/public/
Dhal_bluetooth.te9 # 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.sh67 log -pi -t checkpoint_gc Turning off GC for ${NAME}

1234