Lines Matching refs:second

63     for (const auto &pidIt : it->second) {
64 if (pidIt.second.GetSensorState()) {
90 for (const auto &pidIt : it->second) {
91 int64_t curSamplingPeriodNs = pidIt.second.GetSamplingPeriodNs();
92 int64_t curReportDelayNs = pidIt.second.GetMaxReportDelayNs();
115 for (const auto &pidIt : it->second) {
116 if (!pidIt.second.GetSensorState()) {
144 return ret.second;
176 if (uid != appThreadInfoIt.second.uid) {
184 sensorChannel.push_back(channelIt->second);
202 return channelIt->second;
218 for (const auto &sensorInfoIt : clientIt->second) {
224 if (!sensorInfoIt.second.GetPermState()) {
227 sensorChannel.push_back(channelIt->second);
245 return pidRet.second && clientRet.second;
247 auto pidIt = it->second.find(pid);
248 if (pidIt == it->second.end()) {
249 auto ret = it->second.insert(std::make_pair(pid, sensorInfo));
250 return ret.second;
252 it->second[pid] = sensorInfo;
264 auto pidIt = it->second.find(pid);
265 if (pidIt != it->second.end()) {
266 it->second.erase(pidIt);
286 SEN_HILOGD("ret.second:%{public}d", ret.second);
287 return ret.second;
322 auto pidIt = it->second.find(pid);
323 if (pidIt == it->second.end()) {
327 pidIt = it->second.erase(pidIt);
328 if (it->second.size() == MIN_MAP_SIZE) {
342 auto pidIt = it->second.find(pid);
343 if (pidIt == it->second.end()) {
347 pidIt = it->second.erase(pidIt);
348 if (it->second.size() != MIN_MAP_SIZE) {
382 auto pidIt = it->second.find(pid);
383 if (pidIt == it->second.end()) {
387 sensorInfo.SetSamplingPeriodNs(pidIt->second.GetSamplingPeriodNs());
388 sensorInfo.SetMaxReportDelayNs(pidIt->second.GetMaxReportDelayNs());
402 if (channelIt.second == channel) {
427 if (channelIt.second == channel) {
447 errno_t ret = memcpy_s(&data, sizeof(data), &storedEvent->second, sizeof(storedEvent->second));
518 return it->second;
546 auto it = itClientMap.second.find(pid);
547 if (it != itClientMap.second.end()) {
565 if (channelIt->second == channel) {
574 appThreadInfo.uid = it->second.uid;
575 appThreadInfo.callerToken = it->second.callerToken;
586 for (const auto &pidIt : sensorIt.second) {
599 int64_t samplingPeriodNs = pidIt.second.GetSamplingPeriodNs();
600 int64_t maxReportDelayNs = pidIt.second.GetMaxReportDelayNs();
617 return appThreadInfoIt->second.uid;
627 return appThreadInfoIt->second.callerToken;
642 auto tmpIt = cmdIt->second.find(uid);
643 if (tmpIt == cmdIt->second.end()) {
646 cmdIt->second.insert(std::make_pair(uid, tmp));
649 auto tmp = tmpIt->second;
651 cmdIt->second.insert(std::make_pair(uid, tmp));
667 auto uidIt = cmdIt->second.find(uid);
668 if (uidIt == cmdIt->second.end()) {
671 return uidIt->second;
687 it->second.push(data);
688 if (it->second.size() > MAX_DUMP_DATA_SIZE) {
689 it->second.pop();
711 if (!pairRet.second) {
763 return appThreadInfo.second.callerToken == tokenId;
766 pid = iter->second.pid;
779 auto clientInfo = it->second.find(pid);
780 if (clientInfo != it->second.end()) {
781 clientInfo->second.SetPermState(state);
797 for (int32_t sensorId : it->second) {