Home
last modified time | relevance | path

Searched refs:map_ (Results 1 – 7 of 7) sorted by relevance

/system/bt/audio_bluetooth_hw/
Dutils_unittest.cc29 virtual void TearDown() { map_.clear(); } in TearDown()
31 std::unordered_map<std::string, std::string> map_; member in __anond416cfd90111::UtilsTest
36 map_ = ParseAudioParams(params); in TEST_F()
38 EXPECT_TRUE(map_.empty()); in TEST_F()
43 map_ = ParseAudioParams(params); in TEST_F()
45 EXPECT_TRUE(map_.empty()); in TEST_F()
50 map_ = ParseAudioParams(params); in TEST_F()
52 EXPECT_EQ(map_.size(), 1); in TEST_F()
53 EXPECT_NE(map_.find("key0"), map_.end()); in TEST_F()
54 EXPECT_EQ(map_["key0"].length(), 0); in TEST_F()
[all …]
/system/extras/perfprofd/
Dmap_utils.h38 auto aggr_it = GetLeqIterator(map_, val); in Insert()
39 if (aggr_it == map_.end()) { in Insert()
41 if (!map_.empty()) { in Insert()
42 AggregatedSymbol& first = map_.begin()->second; in Insert()
43 CHECK_LT(val, map_.begin()->first); in Insert()
45 ExtendLeft(map_.begin(), val); in Insert()
50 map_.emplace(val, AggregatedSymbol(sym, val)); in Insert()
66 if (aggr_it != map_.end() && aggr_it->second.symbol == sym) { in Insert()
72 map_.emplace(val, AggregatedSymbol(sym, val)); in Insert()
95 map_.erase(aggr_it); in Insert()
[all …]
/system/bt/service/ipc/binder/
Dremote_callback_map.h106 CallbackMap map_; variable
131 if (map_.find(key) != map_.end()) { in Register()
144 map_[key] = dr; in Register()
155 auto iter = map_.find(key); in Unregister()
156 if (iter == map_.end()) { in Unregister()
168 auto iter = map_.find(key); in Get()
169 if (iter == map_.end()) return nullptr; in Get()
178 auto iter = map_.find(key); in Remove()
179 if (iter == map_.end()) return nullptr; in Remove()
190 for (auto iter = map_.begin(); iter != map_.end();) in Clear()
[all …]
/system/core/libbacktrace/
DBacktrace.cpp42 : pid_(pid), tid_(tid), map_(map), map_shared_(true) { in Backtrace()
43 if (map_ == nullptr) { in Backtrace()
44 map_ = BacktraceMap::Create(pid); in Backtrace()
50 if (map_ && !map_shared_) { in ~Backtrace()
51 delete map_; in ~Backtrace()
52 map_ = nullptr; in ~Backtrace()
118 if (map_ != nullptr) { in FillInMap()
119 map_->FillIn(pc, map); in FillInMap()
/system/core/libbacktrace/include/backtrace/
DBacktraceMap.h78 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} in iterator()
101 if (index_ >= map_->size()) {
104 backtrace_map_t* map = &map_->maps_[index_];
106 map->load_bias = map_->GetLoadBias(index_);
112 BacktraceMap* map_ = nullptr;
181 explicit ScopedBacktraceMapIteratorLock(BacktraceMap* map) : map_(map) { in ScopedBacktraceMapIteratorLock()
186 map_->UnlockIterator(); in ~ScopedBacktraceMapIteratorLock()
190 BacktraceMap* map_;
DBacktrace.h203 BacktraceMap* GetMap() { return map_; } in GetMap()
226 BacktraceMap* map_; variable
/system/bt/gd/os/
Dalarm_benchmark.cc39 map_.clear(); in SetUp()
59 map_[duration_since_start.count() - task_counter_ * task_interval_]++; in AlarmSleepAndCountDelayedTime()
74 std::unordered_map<int, int> map_; member in BM_ReactableAlarm
116 for (const auto& delay : map_) { in BENCHMARK_DEFINE_F()