Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 139) sorted by relevance

123456

/system/update_engine/common/
Dmulti_range_http_fetcher.cc73 Range range = ranges_[current_index_]; in StartTransfer() local
74 LOG(INFO) << "starting transfer of range " << range.ToString(); in StartTransfer()
77 base_fetcher_->SetOffset(range.offset()); in StartTransfer()
78 if (range.HasLength()) in StartTransfer()
79 base_fetcher_->SetLength(range.length()); in StartTransfer()
83 delegate_->SeekToOffset(range.offset()); in StartTransfer()
96 Range range = ranges_[current_index_]; in ReceivedBytes() local
97 if (range.HasLength()) { in ReceivedBytes()
99 std::min(next_size, range.length() - bytes_received_this_range_); in ReceivedBytes()
109 if (range.HasLength() && bytes_received_this_range_ >= range.length()) { in ReceivedBytes()
[all …]
/system/core/libunwindstack/tests/
DMemoryRangeTest.cpp44 MemoryRange range(process_memory_, 9001, 1024, 0); in TEST_F() local
47 ASSERT_TRUE(range.ReadFully(0, dst.data(), dst.size())); in TEST_F()
56 MemoryRange range(process_memory_, 1000, 1024, 0); in TEST_F() local
59 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); in TEST_F()
65 ASSERT_FALSE(range.ReadFully(1020, dst.data(), 5)); in TEST_F()
66 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1)); in TEST_F()
67 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1024)); in TEST_F()
70 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); in TEST_F()
84 MemoryRange range(process_memory_, 1000, 1024, 0); in TEST_F() local
87 ASSERT_EQ(4U, range.Read(1020, dst.data(), dst.size())); in TEST_F()
[all …]
/system/extras/ext4_utils/
Dwipe.cpp42 u64 range[2]; in wipe_block_device() local
50 range[0] = 0; in wipe_block_device()
51 range[1] = len; in wipe_block_device()
52 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
54 range[0] = 0; in wipe_block_device()
55 range[1] = len; in wipe_block_device()
56 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
/system/netd/tests/benchmarks/
Dbpf_benchmark.cpp39 mBpfTestMap.writeValue(state.range(0), state.range(0), BPF_NOEXIST); in BENCHMARK_DEFINE_F()
50 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_EXIST); in BENCHMARK_DEFINE_F()
61 mBpfTestMap.deleteValue(state.range(0)); in BENCHMARK_DEFINE_F()
63 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_NOEXIST); in BENCHMARK_DEFINE_F()
/system/media/audio_utils/benchmarks/
Dprimitives_benchmark.cpp26 const size_t count = state.range(0); in BM_MemcpyToFloatFromFloatWithClamping()
27 const float srcMax = state.range(1); in BM_MemcpyToFloatFromFloatWithClamping()
53 state.SetComplexityN(state.range(0)); in BM_MemcpyToFloatFromFloatWithClamping()
59 const size_t count = state.range(0); in BM_MemcpyFloat()
82 state.SetComplexityN(state.range(0)); in BM_MemcpyFloat()
88 const size_t count = state.range(0); in BM_MemcpyToFloatFromI16()
108 state.SetComplexityN(state.range(0)); in BM_MemcpyToFloatFromI16()
115 const size_t count = state.range(0); in BM_MemcpyToI16FromFloat()
135 state.SetComplexityN(state.range(0)); in BM_MemcpyToI16FromFloat()
Dbiquad_filter_benchmark.cpp172 bool isSubnormal = (state.range(0) == 1); in BM_BiquadFilter()
173 const size_t channelCount = state.range(1); in BM_BiquadFilter()
174 const size_t occupancy = state.range(2); in BM_BiquadFilter()
201 state.SetComplexityN(state.range(0)); in BM_BiquadFilter()
/system/memory/libmemunreachable/
DLeakFolding.cpp43 leak_scc->size += node->ptr->range.size(); in ComputeDAG()
75 heap_walker_.ForEachAllocation([&](const Range& range, HeapWalker::AllocationInfo& allocation) { in FoldLeaks() argument
77 auto it = leak_map_.emplace(std::piecewise_construct, std::forward_as_tuple(range), in FoldLeaks()
78 std::forward_as_tuple(range, allocator_)); in FoldLeaks()
87 heap_walker_.ForEachPtrInRange(leak.range, in FoldLeaks()
117 leak_bytes += leak.range.size(); in Leaked()
123 leaked.emplace_back(Leak{leak.range, leak.scc->cuumulative_count - 1, in Leaked()
124 leak.scc->cuumulative_size - leak.range.size()}); in Leaked()
DLeakFolding.h36 const Range range; member
79 const Range range; member
83 LeakInfo(const Range& range, Allocator<LeakInfo> allocator) in LeakInfo()
84 : node(this, allocator), range(range), scc(nullptr) {} in LeakInfo()
DHeapWalker.h89 void ForEachPtrInRange(const Range& range, F&& f);
100 bool WordContainsAllocationPtr(uintptr_t ptr, Range* range, AllocationInfo** info);
123 inline void HeapWalker::ForEachPtrInRange(const Range& range, F&& f) { in ForEachPtrInRange() argument
124 uintptr_t begin = (range.begin + (sizeof(uintptr_t) - 1)) & ~(sizeof(uintptr_t) - 1); in ForEachPtrInRange()
128 for (uintptr_t i = begin; i < range.end; i += sizeof(uintptr_t)) { in ForEachPtrInRange()
140 const Range& range = it.first; in ForEachAllocation() local
142 f(range, allocation); in ForEachAllocation()
DHeapWalker.cpp51 Range range{begin, end}; in Allocation() local
59 auto inserted = allocations_.insert(std::pair<Range, AllocationInfo>(range, AllocationInfo{})); in Allocation()
63 allocation_bytes_ += range.size(); in Allocation()
67 if (overlap != range) { in Allocation()
86 bool HeapWalker::WordContainsAllocationPtr(uintptr_t word_ptr, Range* range, AllocationInfo** info)… in WordContainsAllocationPtr() argument
97 *range = it->first; in WordContainsAllocationPtr()
108 Range range = to_do.back(); in RecurseRoot() local
111 walking_range_ = range; in RecurseRoot()
112 ForEachPtrInRange(range, [&](Range& ref_range, AllocationInfo* ref_info) { in RecurseRoot()
/system/netd/server/
DUidRanges.cpp132 for (const auto &range : mRanges) { in toString() local
133 if (length(range) == 0) { in toString()
134 StringAppendF(&s, "<BAD: %u-%u> ", range.start, range.stop); in toString()
135 } else if (length(range) == 1) { in toString()
136 StringAppendF(&s, "%u ", range.start); in toString()
138 StringAppendF(&s, "%u-%u ", range.start, range.stop); in toString()
/system/core/storaged/tools/
Dranker.py109 for j in range(8):
113 for j in range(8):
127 for j in range(8):
131 uid_io = [long(words[i+j]) for j in range(8)]
149 uid_rank = [[(uids[uid][0][i], uid) for uid in uids] for i in range(8)]
150 for i in range(8):
161 for i in range(8):
163 for j in range(min(args.uidcnt, len(uid_rank[0]))):
/system/extras/tests/storage/
Dwipe_blkdev.c53 u64 range[2]; in wipe_block_device() local
57 range[0] = 0; in wipe_block_device()
58 range[1] = len; in wipe_block_device()
65 ret = ioctl(fd, req, &range); in wipe_block_device()
/system/vold/
Dsecdiscard.cpp142 uint64_t range[2]; in secdiscard_path() local
143 range[0] = fiemap->fm_extents[i].fe_physical; in secdiscard_path()
144 range[1] = fiemap->fm_extents[i].fe_length; in secdiscard_path()
145 if (ioctl(fs_fd.get(), BLKSECDISCARD, range) == -1) { in secdiscard_path()
147 if (!overwrite_with_zeros(fs_fd.get(), range[0], range[1])) return false; in secdiscard_path()
/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc80 auto milliseconds = static_cast<int>(state.range(0)); in BENCHMARK_DEFINE_F()
132 auto milliseconds = static_cast<int>(state.range(0)); in BENCHMARK_DEFINE_F()
181 g_scheduled_tasks = state.range(0); in BENCHMARK_DEFINE_F()
182 g_task_length = state.range(1); in BENCHMARK_DEFINE_F()
183 g_task_interval = state.range(2); in BENCHMARK_DEFINE_F()
243 g_scheduled_tasks = state.range(0); in BENCHMARK_DEFINE_F()
244 g_task_length = state.range(1); in BENCHMARK_DEFINE_F()
245 g_task_interval = state.range(2); in BENCHMARK_DEFINE_F()
/system/libvintf/include/vintf/
DHalGroup.h47 auto range = mHals.equal_range(name); in getHals() local
48 for (auto it = range.first; it != range.second; ++it) { in getHals()
59 auto range = mHals.equal_range(name); in getHals() local
60 for (auto it = range.first; it != range.second; ++it) { in getHals()
/system/core/libbacktrace/
Dbacktrace_read_benchmarks.cpp142 CreateRemoteProcess(state.range(0), &map, &pid); in BM_read_with_ptrace()
145 std::vector<uint8_t> read_buffer(state.range(0)); in BM_read_with_ptrace()
160 CreateRemoteProcess(state.range(0), &map, &pid); in BM_read_with_process_vm_read()
163 std::vector<uint8_t> read_buffer(state.range(0)); in BM_read_with_process_vm_read()
178 CreateRemoteProcess(state.range(0), &map, &pid); in BM_read_with_backtrace_object()
188 std::vector<uint8_t> read_buffer(state.range(0)); in BM_read_with_backtrace_object()
/system/sepolicy/private/compat/28.0/
D28.0.compat.cil3 (allowx vendordomain dev_type (ioctl blk_file ((range 0x0000 0xffff))))
4 (allowx vendordomain file_type (ioctl file ((range 0x0000 0xffff))))
/system/sepolicy/private/compat/27.0/
D27.0.compat.cil3 (allowx vendordomain dev_type (ioctl blk_file ((range 0x0000 0xffff))))
4 (allowx vendordomain file_type (ioctl file ((range 0x0000 0xffff))))
/system/sepolicy/prebuilts/api/30.0/private/compat/28.0/
D28.0.compat.cil3 (allowx vendordomain dev_type (ioctl blk_file ((range 0x0000 0xffff))))
4 (allowx vendordomain file_type (ioctl file ((range 0x0000 0xffff))))
/system/sepolicy/prebuilts/api/30.0/private/compat/27.0/
D27.0.compat.cil3 (allowx vendordomain dev_type (ioctl blk_file ((range 0x0000 0xffff))))
4 (allowx vendordomain file_type (ioctl file ((range 0x0000 0xffff))))
/system/sepolicy/private/compat/26.0/
D26.0.compat.cil3 (allowx vendordomain dev_type (ioctl blk_file ((range 0x0000 0xffff))))
4 (allowx vendordomain file_type (ioctl file ((range 0x0000 0xffff))))
/system/sepolicy/prebuilts/api/30.0/private/compat/26.0/
D26.0.compat.cil3 (allowx vendordomain dev_type (ioctl blk_file ((range 0x0000 0xffff))))
4 (allowx vendordomain file_type (ioctl file ((range 0x0000 0xffff))))
/system/core/adb/
Dbenchmark_device.py71 for _ in range(0, 10):
88 for _ in range(0, 10):
107 for _ in range(0, 10):
125 for _ in range(0, 10):
138 for _ in range(0, 10):
/system/libvintf/
DMatrixInstance.cpp37 MatrixInstance::MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, in MatrixInstance() argument
41 mRange(std::move(range)), in MatrixInstance()
46 const VersionRange& range, bool optional, bool isRegex) in MatrixInstance() argument
49 mRange(range), in MatrixInstance()

123456