/system/media/audio_utils/include/audio_utils/ |
D | LogPlot.h | 42 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/apex/apexd/ |
D | apex_database.h | 101 it = insert_it.first; in AddMountedApexLocked() 132 if (pkg_it->first.full_path == full_path && 133 pkg_it->first.is_temp_mount == match_temp_mounts) { 156 if (pkg_it->first.full_path == full_path) { in SetLatestLocked() 181 if (pair.first.is_temp_mount == match_temp_mounts) { 182 handler(pair.first, pair.second); 194 if (pair.first.is_temp_mount == match_temp_mounts) { 195 handler(pkg.first, pair.first, pair.second); 249 CHECK_LE(count, 1u) << apex_set.first; in CheckAtMostOneLatest() 258 if (pair.first.loop_name != "") { in CheckUniqueLoopDm() [all …]
|
/system/extras/memtrack/ |
D | memtrack.cpp | 198 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/extras/tests/lib/testUtil/ |
D | testUtil.c | 100 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/bt/gd/btaa/linux_generic/ |
D | attribution_processor.cc | 70 if (btaa_aggregator_.find(it.first) == btaa_aggregator_.end()) { in OnWakelockReleased() 71 btaa_aggregator_[it.first] = {}; in OnWakelockReleased() 72 btaa_aggregator_[it.first].creation_time = cur_time; in OnWakelockReleased() 76 …std::chrono::duration_cast<std::chrono::seconds>(cur_time - btaa_aggregator_[it.first].creation_ti… in OnWakelockReleased() 78 btaa_aggregator_[it.first].wakeup_count = 0; in OnWakelockReleased() 79 btaa_aggregator_[it.first].byte_count = 0; in OnWakelockReleased() 80 btaa_aggregator_[it.first].wakelock_duration_ms = 0; in OnWakelockReleased() 81 btaa_aggregator_[it.first].creation_time = cur_time; in OnWakelockReleased() 84 btaa_aggregator_[it.first].wakeup_count += it.second.wakeup_count; in OnWakelockReleased() 85 btaa_aggregator_[it.first].byte_count += it.second.byte_count; in OnWakelockReleased() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/unions/ |
D | UnionInUnion.java | 8 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() 97 case first: { in readFromParcel() 120 case first: in describeContents() 137 …case first: return "android.aidl.tests.unions.UnionInUnion.first(" + (java.util.Objects.toString(g… in toString() [all …]
|
/system/libziparchive/ |
D | entry_name_utils-inl.h | 44 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/nvram/messages/ |
D | blob.cpp | 43 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/bt/service/ |
D | settings.cc | 42 if (iter.first == switches::kCreateIPCSocketPath) { in Init() 52 } else if (iter.first == switches::kAndroidIPCSocketSuffix) { in Init() 62 } else if (iter.first == switches::kEnableOnStart) { in Init() 75 else if (iter.first != switches::kV) { in Init() 76 LOG(ERROR) << "Unexpected command-line switches found: " << iter.first; in Init()
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/unions/ |
D | UnionInUnion.cpp | 17 case first: { in readFromParcel() 21 set<first>(_aidl_value); in readFromParcel() 24 set<first>(std::move(_aidl_value)); in readFromParcel() 44 case first: return ::ndk::AParcel_writeParcelable(_parcel, get<first>()); in writeToParcel()
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/unions/ |
D | UnionInUnion.cpp | 16 case first: { in readFromParcel() 20 set<first>(_aidl_value); in readFromParcel() 23 set<first>(std::move(_aidl_value)); in readFromParcel() 44 case first: return _aidl_parcel->writeParcelable(get<first>()); in writeToParcel()
|
/system/update_engine/payload_generator/ |
D | squashfs_filesystem.cc | 198 for (auto first = files_.begin(), in Init() local 199 second = first + (first == files_.end() ? 0 : 1); in Init() 200 first != files_.end() && second != files_.end(); in Init() 201 second = first + 1) { in Init() 202 auto first_begin = first->extents[0].start_block(); in Init() 203 auto first_end = first_begin + first->extents[0].num_blocks(); in Init() 208 first = files_.erase(first); in Init() 215 first = files_.erase(first); in Init() 218 first->extents[0].set_num_blocks(second_begin - first_begin); in Init() 219 ++first; in Init() [all …]
|
/system/update_engine/payload_consumer/ |
D | fake_file_descriptor.cc | 34 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/tools/hidl/ |
D | HidlTypeAssertion.cpp | 46 return a.first < b.first; in EmitAll() 51 << entry.first in EmitAll()
|
/system/core/libutils/include/utils/ |
D | List.h | 224 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/keymaster/include/keymaster/ |
D | List.h | 200 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/incremental_delivery/incfs/include/ |
D | path.h | 106 std::string join(std::string&& first, std::string_view second, Paths&&... paths) { in join() argument 107 std::string& result = first; in join() 110 result.reserve(first.size() + second.size() + 1 + (sizeof...(paths) + ... + size(paths))); in join() 118 std::string join(std::string_view first, std::string_view second, Paths&&... paths) { in join() argument 119 return join(std::string(), first, second, std::forward<Paths>(paths)...); in join() 122 std::string join(const char* first, std::string_view second, Paths&&... paths) { in join() argument 123 return path::join(std::string_view(first), second, std::forward<Paths>(paths)...); in join()
|
/system/update_engine/update_manager/ |
D | evaluation_context.cc | 88 if (it.first->GetMode() == kVariableModeAsync) in RemoveObserversAndTimeout() 89 it.first->RemoveObserver(this); in RemoveObserversAndTimeout() 152 if (it->first->GetMode() == kVariableModeConst) { in ResetEvaluation() 188 switch (it.first->GetMode()) { in RunOnValueChangeOrTimeout() 190 DLOG(INFO) << "Waiting for value on " << it.first->GetName(); in RunOnValueChangeOrTimeout() 191 it.first->AddObserver(this); in RunOnValueChangeOrTimeout() 195 timeout = std::min(timeout, it.first->GetPollInterval()); in RunOnValueChangeOrTimeout() 234 variables->SetString(it.first->GetName(), it.second.ToString()); in DumpContext()
|
/system/update_engine/aosp/ |
D | dynamic_partition_test_utils.h | 70 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/nvram/messages/include/nvram/messages/ |
D | vector.h | 60 friend void swap(Vector<ElementType>& first, Vector<ElementType>& second) { in swap() argument 63 ElementType* tmp_data = first.data_; in swap() 64 size_t tmp_size = first.size_; in swap() 65 first.data_ = second.data_; in swap() 66 first.size_ = second.size_; in swap()
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 131 const int64_t time = mEntries[idx].first; in dumpToString() 178 bool first = true; in dumpToString() local 183 const int64_t time = mEntries[idx].first; in dumpToString() 187 if (!first) { in dumpToString() 193 plotEntries.emplace_back(plotEntries.back().first, true); in dumpToString() 203 if (!first) { in dumpToString() 208 first = false; in dumpToString()
|
/system/tools/hidl/hidl2aidl/ |
D | AidlHelper.cpp | 209 if (version.first > it->version.first || in processCompoundType() 210 (version.first == it->version.first && version.second > it->version.second)) { in processCompoundType() 212 << "Keeping " << field->get()->typeName() << " from " << version.first in processCompoundType() 214 << (it->field)->get()->typeName() << " from " << it->version.first in processCompoundType() 222 << it->version.first << "." << it->version.second << " and discarding " in processCompoundType() 223 << field->get()->typeName() << " from " << version.first << "." in processCompoundType()
|
/system/bt/gd/storage/ |
D | config_cache.cc | 173 …information_sections_.try_emplace_back(section, common::ListMap<std::string, std::string>{}).first; in SetProperty() 184 …_iter = persistent_devices_.try_emplace_back(section, std::move(section_properties->second)).first; in SetProperty() 186 …= persistent_devices_.try_emplace_back(section, common::ListMap<std::string, std::string>{}).first; in SetProperty() 272 … LOG_INFO("Removing persistent section %s with property %s", it->first.c_str(), property.c_str()); in RemoveSectionWithProperty() 282 … LOG_INFO("Removing temporary section %s with property %s", it->first.c_str(), property.c_str()); in RemoveSectionWithProperty() 298 paired_devices.emplace_back(elem.first); in GetPersistentSections() 328 serialized << "[" << section.first << "]" << std::endl; in SerializeToLegacyFormat() 330 serialized << property.first << " = " << property.second << std::endl; in SerializeToLegacyFormat() 346 result.emplace_back(SectionAndPropertyValue{.section = elem.first, .property = it->second}); in GetSectionNamesWithProperty() 354 result.emplace_back(SectionAndPropertyValue{.section = elem.first, .property = it->second}); in GetSectionNamesWithProperty() [all …]
|
/system/incremental_delivery/incfs/tests/ |
D | MountRegistry_test.cpp | 78 ASSERT_EQ("/root"s, r().rootAndSubpathFor("/root").first->path); in TEST_F() 80 ASSERT_EQ("/root"s, r().rootAndSubpathFor("/bind").first->path); in TEST_F() 82 ASSERT_EQ("/root"s, r().rootAndSubpathFor("/bind2").first->path); in TEST_F() 84 ASSERT_EQ("/root"s, r().rootAndSubpathFor("/bind2/blah").first->path); in TEST_F() 86 ASSERT_EQ("/root"s, r().rootAndSubpathFor("/other/bind/blah").first->path); in TEST_F()
|
/system/logging/liblog/ |
D | event_tag_map.cpp | 88 fprintf(stderr, errorFormat, it->first, (int)it->second.first.length(), in emplaceUnique() 89 it->second.first.data(), (int)it->second.second.length(), in emplaceUnique() 90 it->second.second.data(), tag, (int)tagfmt.first.length(), in emplaceUnique() 91 tagfmt.first.data(), (int)tagfmt.second.length(), in emplaceUnique() 101 auto it = Tag2Idx.find(tagfmt.first); in emplaceUnique() 107 Tag2Idx.emplace(std::make_pair(tagfmt.first, tag)); in emplaceUnique() 372 if (len) *len = str->first.length(); in android_lookupEventTag_len() 373 return str->first.data(); in android_lookupEventTag_len()
|