Lines Matching defs:channel

140             SEN_HILOGE("Max support channel size is %{public}d", MAX_SUPPORT_CHANNEL);
199 SEN_HILOGE("There is no channel belong to the pid");
214 SEN_HILOGD("There is no channel belong to sensorId:%{public}d", sensorId);
270 bool ClientInfo::UpdateSensorChannel(int32_t pid, const sptr<SensorBasicDataChannel> &channel)
273 CHKPR(channel, false);
282 SEN_HILOGE("Max support channel size:%{public}d", MAX_SUPPORT_CHANNEL);
285 auto ret = channelMap_.insert(std::make_pair(pid, channel));
289 channelMap_[pid] = channel;
358 SEN_HILOGD("There is no channel belong to pid, no need to destroy");
373 SEN_HILOGE("sensorId or channel is invalid");
392 uint64_t ClientInfo::ComputeBestPeriodCount(int32_t sensorId, sptr<SensorBasicDataChannel> &channel)
394 if (sensorId == INVALID_SENSOR_ID || channel == nullptr) {
395 SEN_HILOGE("sensorId is invalid or channel cannot be null");
402 if (channelIt.second == channel) {
417 uint64_t ClientInfo::ComputeBestFifoCount(int32_t sensorId, sptr<SensorBasicDataChannel> &channel)
419 if (channel == nullptr || sensorId == INVALID_SENSOR_ID) {
420 SEN_HILOGE("sensorId is invalid or channel cannot be null");
427 if (channelIt.second == channel) {
554 AppThreadInfo ClientInfo::GetAppInfoByChannel(const sptr<SensorBasicDataChannel> &channel)
558 if (channel == nullptr) {
559 SEN_HILOGE("channel is nullptr");
565 if (channelIt->second == channel) {
593 SensorChannelInfo channel;
594 channel.SetUid(uid);
595 channel.SetSensorId(sensorIt.first);
598 channel.SetPackageName(packageName);
601 channel.SetSamplingPeriodNs(samplingPeriodNs);
603 channel.SetFifoCount(fifoCount);
604 channel.SetCmdType(GetCmdList(sensorIt.first, uid));
605 channelInfo.push_back(channel);