Home
last modified time | relevance | path

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

/system/bt/audio_bluetooth_hw/
Dutils_unittest.cc29 void TearDown() override { map_.clear(); } in TearDown()
31 std::unordered_map<std::string, std::string> map_; member in __anon622b48d00111::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/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/incremental_delivery/incfs/util/
Dmap_ptr.cpp34 return map_->getDataPtr(); in unsafe_data()
38 return map_->getDataLength(); in length()
42 return map_->getDataOffset(); in offset()
46 return map_->getFileName(); in file_name()
72 map_ = std::make_unique<android::FileMap>(); in CreateForceVerification()
73 if (!map_->create(file_name, fd, offset, length, true /* readOnly */)) { in CreateForceVerification()
85 start_block_ptr_ = reinterpret_cast<const uint8_t*>(map_->getDataPtr()) - offset_diff; in CreateForceVerification()
122 size_t start_offset = (data_start - start_block_ptr_) + map_->getDataOffset(); in Verify()
123 size_t end_offset = (data_end - start_block_ptr_) + map_->getDataOffset(); in Verify()
146 map_ = std::make_unique<android::FileMap>(); in CreateForceVerification()
[all …]
/system/unwinding/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()
125 if (map_ != nullptr) { in FillInMap()
126 map_->FillIn(pc, map); in FillInMap()
/system/unwinding/libbacktrace/include/backtrace/
DBacktraceMap.h76 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} in iterator()
99 if (index_ >= map_->size()) {
102 backtrace_map_t* map = &map_->maps_[index_];
104 map->load_bias = map_->GetLoadBias(index_);
110 BacktraceMap* map_ = nullptr;
179 explicit ScopedBacktraceMapIteratorLock(BacktraceMap* map) : map_(map) { in ScopedBacktraceMapIteratorLock()
184 map_->UnlockIterator(); in ~ScopedBacktraceMapIteratorLock()
188 BacktraceMap* map_;
DBacktrace.h180 BacktraceMap* GetMap() { return map_; } in GetMap()
203 BacktraceMap* map_; variable
/system/incremental_delivery/incfs/util/include/util/
Dmap_ptr.h107 std::unique_ptr<android::FileMap> map_; variable
210 map_ptr(const map_ptr<T, V2>& other) : map_ptr(other.map_, other.ptr_, other.verified_block_) {}
217 map_ptr(map_ptr&& other) : map_ptr(other.map_, other.ptr_, other.verified_block_) {}
223 : map_ptr(other.map_, reinterpret_cast<const void*>(other.ptr_), other.verified_block_) {}
228 map_ = nullptr;
241 map_ = other.map_;
269 return map_ptr<U>(map_, reinterpret_cast<const U*>(ptr_), verified_block_);
275 return map_ptr<T>(map_,
326 return map_ptr<T1>(map_, ptr_ + n, verified_block_);
331 return map_ptr<T1>(map_, ptr_ - n, verified_block_);
[all …]
/system/core/init/
Dkeyword_map.h47 KeywordMap(std::initializer_list<std::pair<const std::string, MapValue>> init) : map_(init) {} in KeywordMap()
55 auto result_it = map_.find(keyword); in Find()
56 if (result_it == map_.end()) { in Find()
83 std::map<std::string, MapValue> map_;
/system/bt/gd/os/
Dalarm_benchmark.cc42 map_.clear(); in SetUp()
63 map_[duration_since_start.count() - task_counter_ * task_interval_]++; in AlarmSleepAndCountDelayedTime()
78 std::unordered_map<int, int> map_; member in BM_ReactableAlarm
127 for (const auto& delay : map_) { in BENCHMARK_DEFINE_F()