Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/system/media/audio_utils/include/audio_utils/
DLogPlot.h42 std::string audio_utils_log_plot(RandomAccessIterator first, RandomAccessIterator last) in audio_utils_log_plot() argument
44 using T = decltype((*first).first); in audio_utils_log_plot()
52 const size_t size = last - first; in audio_utils_log_plot()
59 const auto result = std::minmax_element(first, last); in audio_utils_log_plot()
60 const T minVal = (*result.first).first; in audio_utils_log_plot()
61 const T maxVal = (*result.second).first; in audio_utils_log_plot()
92 auto it = size <= WIDTH_MAX ? first : first + size - WIDTH_MAX; in audio_utils_log_plot()
94 const T power = it->first; in audio_utils_log_plot()
146 double maxDelta = it->first;
150 if (it->first > maxDelta) {
[all …]
/system/extras/memtrack/
Dmemtrack.cpp198 if (all_.count(it->first) == 0) { in scan()
200 all_[it->first].num_samples = 0; in scan()
201 all_[it->first].name = it->first; in scan()
202 all_[it->first].avg_pss_kb = 0; in scan()
203 all_[it->first].min_pss_kb = 0; in scan()
204 all_[it->first].max_pss_kb = 0; in scan()
207 if (it->second.pids.size() > all_[it->first].max_num_pids) { in scan()
208 all_[it->first].max_num_pids = it->second.pids.size(); in scan()
211 all_[it->first].pids = it->second.pids; in scan()
213 if (it->second.pss_kb > all_[it->first].max_pss_kb) { in scan()
[all …]
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-java-source/gen/android/aidl/tests/unions/
DUnionInUnion.java8 public final static int first = 0; // android.aidl.tests.unions.EnumUnion first; field in UnionInUnion
16 this._tag = first; in UnionInUnion()
35 public static UnionInUnion first(android.aidl.tests.unions.EnumUnion _value) { in first() method in UnionInUnion
36 return new UnionInUnion(first, _value); in first()
40 _assertTag(first); in getFirst()
45 _set(first, _value); in setFirst()
78 case first: in writeToParcel()
91 case first: { in readFromParcel()
109 case first: in describeContents()
126 case first: return "UnionInUnion.first(" + (java.util.Objects.toString(getFirst())) + ")"; in toString()
[all …]
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/unions/
DUnionInUnion.java8 public final static int first = 0; // android.aidl.tests.unions.EnumUnion first; field in UnionInUnion
16 this._tag = first; in UnionInUnion()
35 public static UnionInUnion first(android.aidl.tests.unions.EnumUnion _value) { in first() method in UnionInUnion
36 return new UnionInUnion(first, _value); in first()
40 _assertTag(first); in getFirst()
45 _set(first, _value); in setFirst()
78 case first: in writeToParcel()
91 case first: { in readFromParcel()
109 case first: in describeContents()
126 case first: return "UnionInUnion.first(" + (java.util.Objects.toString(getFirst())) + ")"; in toString()
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c100 struct timespec tsDelta(const struct timespec *first, in tsDelta() argument
105 assert(first != NULL); in tsDelta()
107 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec); in tsDelta()
109 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta()
110 if (second->tv_nsec >= first->tv_nsec) { in tsDelta()
111 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta()
113 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta()
123 struct timeval tvDelta(const struct timeval *first, in tvDelta() argument
128 assert(first != NULL); in tvDelta()
130 assert(first->tv_usec >= 0 && first->tv_usec < uSecsPerSec); in tvDelta()
[all …]
/system/nvram/messages/
Dblob.cpp43 void swap(Blob& first, Blob& second) { in swap() argument
46 uint8_t* data_tmp = first.data_; in swap()
47 size_t size_tmp = first.size_; in swap()
48 first.data_ = second.data_; in swap()
49 first.size_ = second.size_; in swap()
/system/libziparchive/
Dentry_name_utils-inl.h44 for (uint8_t first = static_cast<uint8_t>((byte & 0x7f) << 1); first & 0x80; in IsValidEntryName() local
45 first = static_cast<uint8_t>((first & 0x7f) << 1)) { in IsValidEntryName()
/system/core/fs_mgr/libsnapshot/tools/
Dcow_benchmark.cpp103 if (latencies[i].first < latencies[best_speed].first) { in OneShotCompressionTest()
106 if (ratios[i].first < ratios[best_ratio].first) { in OneShotCompressionTest()
111 std::cout << "BEST SPEED: " << latencies[best_speed].first << "ms " in OneShotCompressionTest()
113 std::cout << "BEST RATIO: " << ratios[best_ratio].first << " " << ratios[best_ratio].second in OneShotCompressionTest()
180 if (latencies[i].first < latencies[best_speed].first) { in IncrementalCompressionTest()
183 if (ratios[i].first < ratios[best_ratio].first) { in IncrementalCompressionTest()
188 std::cout << "BEST SPEED: " << latencies[best_speed].first << "ms " in IncrementalCompressionTest()
190 std::cout << "BEST RATIO: " << ratios[best_ratio].first << " " << ratios[best_ratio].second in IncrementalCompressionTest()
/system/update_engine/payload_generator/
Dsquashfs_filesystem.cc158 for (auto first = files_.begin(), in Init() local
159 second = first + (first == files_.end() ? 0 : 1); in Init()
160 first != files_.end() && second != files_.end(); in Init()
161 second = first + 1) { in Init()
162 auto first_begin = first->extents[0].start_block(); in Init()
163 auto first_end = first_begin + first->extents[0].num_blocks(); in Init()
168 first = files_.erase(first); in Init()
175 first = files_.erase(first); in Init()
178 first->extents[0].set_num_blocks(second_begin - first_begin); in Init()
179 ++first; in Init()
[all …]
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk-source/gen/android/aidl/tests/unions/
DUnionInUnion.cpp21 case first: { in readFromParcel()
25 set<first>(_aidl_value); in readFromParcel()
28 set<first>(std::move(_aidl_value)); in readFromParcel()
48 case first: return ::ndk::AParcel_writeData(_parcel, get<first>()); in writeToParcel()
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/android/aidl/tests/unions/
DUnionInUnion.cpp16 case first: { in readFromParcel()
20 set<first>(_aidl_value); in readFromParcel()
23 set<first>(std::move(_aidl_value)); in readFromParcel()
43 case first: return _aidl_parcel->writeParcelable(get<first>()); in writeToParcel()
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/unions/
DUnionInUnion.cpp16 case first: { in readFromParcel()
20 set<first>(_aidl_value); in readFromParcel()
23 set<first>(std::move(_aidl_value)); in readFromParcel()
43 case first: return _aidl_parcel->writeParcelable(get<first>()); in writeToParcel()
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-ndk-source/gen/android/aidl/tests/unions/
DUnionInUnion.cpp21 case first: { in readFromParcel()
25 set<first>(_aidl_value); in readFromParcel()
28 set<first>(std::move(_aidl_value)); in readFromParcel()
48 case first: return ::ndk::AParcel_writeData(_parcel, get<first>()); in writeToParcel()
/system/keymaster/include/keymaster/
DList.h200 void insert(iterator posn, const_iterator first, const_iterator last) { in insert() argument
201 for (; first != last; ++first) in insert()
202 insert(posn, *first); in insert()
216 iterator erase(iterator first, iterator last) { in erase() argument
217 while (first != last) in erase()
218 erase(first++); // don't erase than incr later! in erase()
247 ptrdiff_t distance(_ListIterator<U, CL> first, _ListIterator<U, CR> last) const { in distance() argument
249 while (first != last) { in distance()
250 ++first; in distance()
/system/core/libutils/include/utils/
DList.h224 void insert(iterator posn, const_iterator first, const_iterator last) { in insert() argument
225 for ( ; first != last; ++first) in insert()
226 insert(posn, *first); in insert()
240 iterator erase(iterator first, iterator last) { in erase() argument
241 while (first != last) in erase()
242 erase(first++); // don't erase than incr later! in erase()
276 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const in distance() argument
279 while (first != last) { in distance()
280 ++first; in distance()
/system/update_engine/payload_consumer/
Dfake_file_descriptor.cc34 if (failure.first <= offset_ && offset_ < failure.first + failure.second) { in Read()
38 if (failure.first > offset_) in Read()
39 first_failure = std::min(first_failure, failure.first); in Read()
/system/extras/simpleperf/
Dcmd_inject.cpp46 HashCombine(seed, ap.first); in operator ()()
86 auto res = address_count_map.emplace(p.first, p.second); in Merge()
88 OverflowSafeAdd(res.first->second, p.second); in Merge()
92 auto res = range_count_map.emplace(p.first, p.second); in Merge()
94 OverflowSafeAdd(res.first->second, p.second); in Merge()
98 auto res = branch_count_map.emplace(p.first, p.second); in Merge()
100 OverflowSafeAdd(res.first->second, p.second); in Merge()
184 const Dso* dso = p.first; in ProcessAutoFDOBinaryInfo()
345 Dso* dso = p.first; in ProcessETMBinary()
431 sample.binary_id = binary_addr.first; in ProcessRecord()
[all …]
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/unions/
DUnionInUnion.h32 first = 0, enumerator
36 static const inline Tag first = Tag::first; variable
42 …UnionInUnion() : _value(std::in_place_index<static_cast<size_t>(first)>, ::android::aidl::tests::u… in UnionInUnion()
113 case first: os << "first: " << ::android::internal::ToString(get<first>()); break; in toString()
132 case UnionInUnion::Tag::first: in toString()
150 ::android::aidl::tests::unions::UnionInUnion::Tag::first,
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/unions/
DUnionInUnion.h41 first = 0, enumerator
46 static const inline Tag first = Tag::first; variable
52 …UnionInUnion() : _value(std::in_place_index<static_cast<size_t>(first)>, ::aidl::android::aidl::te… in UnionInUnion()
121 case first: os << "first: " << ::android::internal::ToString(get<first>()); break; in toString()
142 case UnionInUnion::Tag::first: in toString()
161 aidl::android::aidl::tests::unions::UnionInUnion::Tag::first,
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/unions/
DUnionInUnion.h41 first = 0, enumerator
46 static const inline Tag first = Tag::first; variable
52 …UnionInUnion() : _value(std::in_place_index<static_cast<size_t>(first)>, ::aidl::android::aidl::te… in UnionInUnion()
121 case first: os << "first: " << ::android::internal::ToString(get<first>()); break; in toString()
142 case UnionInUnion::Tag::first: in toString()
161 aidl::android::aidl::tests::unions::UnionInUnion::Tag::first,
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/unions/
DUnionInUnion.h32 first = 0, enumerator
36 static const inline Tag first = Tag::first; variable
42 …UnionInUnion() : _value(std::in_place_index<static_cast<size_t>(first)>, ::android::aidl::tests::u… in UnionInUnion()
113 case first: os << "first: " << ::android::internal::ToString(get<first>()); break; in toString()
132 case UnionInUnion::Tag::first: in toString()
150 ::android::aidl::tests::unions::UnionInUnion::Tag::first,
/system/tools/hidl/
DHidlTypeAssertion.cpp47 return a.first < b.first; in EmitAll()
52 << entry.first in EmitAll()
/system/incremental_delivery/incfs/include/
Dpath.h116 std::string join(std::string&& first, std::string_view second, Paths&&... paths) { in join() argument
117 std::string& result = first; in join()
120 result.reserve(first.size() + second.size() + 1 + (sizeof...(paths) + ... + size(paths))); in join()
128 std::string join(std::string_view first, std::string_view second, Paths&&... paths) { in join() argument
129 return join(std::string(), first, second, std::forward<Paths>(paths)...); in join()
132 std::string join(const char* first, std::string_view second, Paths&&... paths) { in join() argument
133 return path::join(std::string_view(first), second, std::forward<Paths>(paths)...); in join()
/system/update_engine/aosp/
Ddynamic_partition_test_utils.h70 bool first = true; variable
72 if (!first)
74 os << pair.first << ":" << pair.second;
75 first = false;
83 bool first = true; in VectorToStream() local
85 if (!first) in VectorToStream()
88 first = false; in VectorToStream()
151 if (base::EndsWith(pair.first, in PartitionSuffixSizesToManifest()
158 pair.first, in PartitionSuffixSizesToManifest()
172 AddPartition(&manifest, g, pair.first, pair.second); in PartitionSizesToManifest()
/system/linkerconfig/modules/
Dstringutil.cc38 bool first = true; in MergeLibs() local
50 if (!first) { in MergeLibs()
54 first = false; in MergeLibs()

12345678910>>...16