/system/core/trusty/storage/lib/ |
D | storage.c | 191 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/ |
D | pwrtest.sh | 114 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/ |
D | storage.h | 106 storage_off_t off, void *buf, size_t size); 119 storage_off_t off, const void *buf, size_t size,
|
/system/core/libcutils/ |
D | ashmem_test.cpp | 45 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() argument 48 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); in TestMmap() 173 auto off = lseek(fd, cfg.offset, cfg.whence); in TEST() local 174 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed" in TEST() 177 if (off >= dataStart && off < dataEnd) { in TEST() 178 off_t dataOff = off - dataStart; in TEST()
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 143 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/memory/libmeminfo/include/meminfo/ |
D | meminfo.h | 87 Vma(uint64_t s, uint64_t e, uint64_t off, uint16_t f, const std::string& n, in Vma() 89 : start(s), end(e), offset(off), flags(f), name(n), inode(iNode), is_shared(is_shared) {} in Vma()
|
/system/core/libsparse/ |
D | sparse_read.cpp | 91 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/ |
D | procrank.cpp | 90 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/ |
D | main.cpp | 36 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/extras/simpleperf/ |
D | read_elf_test.cpp | 243 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/memory/libmemunreachable/ |
D | ThreadCapture.cpp | 134 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/ |
D | Debug.cpp | 37 ssize_t off = sizeof(indentStr)-1-(indentLevel*2); in stringForIndent() local 38 return indentStr + (off < 0 ? 0 : off); in stringForIndent()
|
/system/update_engine/scripts/ |
D | payload_info.py | 44 for off in range(0, len(data), 16): 45 chunk = bytearray(data[off:off + 16])
|
/system/incremental_delivery/incfs/tests/util/ |
D | map_ptr_test.cpp | 261 for (uint32_t off : in TEST_F() 267 auto map = GetFileMap(fd.get(), off /* offset */, FILE_SIZE); in TEST_F() 271 auto p1 = map->data().offset(missing_page_start - off).convert<uint32_t>(); in TEST_F() 307 auto p8 = map->data().offset(missing_page_end - off).convert<uint32_t>(); in TEST_F()
|
/system/core/rootdir/ |
D | init.zygote32.rc | 16 critical window=${zygote.critical_window.minute:-off} target=zygote-fatal
|
D | init.zygote64.rc | 16 critical window=${zygote.critical_window.minute:-off} target=zygote-fatal
|
/system/extras/ANRdaemon/ |
D | README | 4 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/31.0/public/ |
D | hal_bluetooth.te | 9 # The HAL toggles rfkill to power the chip off/on.
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | hal_bluetooth.te | 10 # The HAL toggles rfkill to power the chip off/on.
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | hal_bluetooth.te | 9 # The HAL toggles rfkill to power the chip off/on.
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | hal_bluetooth.te | 9 # The HAL toggles rfkill to power the chip off/on.
|
/system/sepolicy/vendor/ |
D | vendor_install_recovery.te | 18 # Update the recovery block device based off a diff of the boot block device
|
/system/sepolicy/public/ |
D | hal_bluetooth.te | 9 # The HAL toggles rfkill to power the chip off/on.
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | hal_bluetooth.te | 10 # The HAL toggles rfkill to power the chip off/on.
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | hal_bluetooth.te | 10 # The HAL toggles rfkill to power the chip off/on.
|