Home
last modified time | relevance | path

Searched refs:workingPidsCountMap_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/location/services/location_locator/locator/source/
H A Drequest_manager.cpp140 if (workingPidsCountMap_.count(pid) > 0) { in IncreaseWorkingPidsCount()
141 workingPidsCountMap_[pid] = workingPidsCountMap_[pid] + 1; in IncreaseWorkingPidsCount()
143 workingPidsCountMap_.insert(std::make_pair(pid, 1)); in IncreaseWorkingPidsCount()
150 if (workingPidsCountMap_.count(pid) > 0) { in DecreaseWorkingPidsCount()
151 workingPidsCountMap_[pid] = workingPidsCountMap_[pid] - 1; in DecreaseWorkingPidsCount()
152 if (workingPidsCountMap_[pid] < 0) { in DecreaseWorkingPidsCount()
161 if (workingPidsCountMap_.count(pid) <= 0) { in IsNeedStartUsingPermission()
164 if (workingPidsCountMap_[pid] == 1) { in IsNeedStartUsingPermission()
173 if (workingPidsCountMap_.count(pid) <= 0) { in IsNeedStopUsingPermission()
176 if (workingPidsCountMap_[pid] <= 0) { in IsNeedStopUsingPermission()
[all …]
/ohos5.0/base/location/services/location_locator/locator/include/
H A Drequest_manager.h104 std::map<pid_t, int32_t> workingPidsCountMap_; variable