Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 58) sorted by relevance

123

/base/sensors/sensor/services/sensor/src/
Dsensor_data_processer.cpp49 … sptr<SensorBasicDataChannel> &channel, SensorData &data, in SendNoneFifoCacheData() argument
60 fifoCacheData->SetChannel(channel); in SendNoneFifoCacheData()
63 SendRawData(cacheBuf, channel, sendEvents); in SendNoneFifoCacheData()
76 if (fifoChannel != channel) { in SendNoneFifoCacheData()
86 SendRawData(cacheBuf, channel, sendEvents); in SendNoneFifoCacheData()
93 fifoCacheData->SetChannel(channel); in SendNoneFifoCacheData()
95 SendRawData(cacheBuf, channel, sendEvents); in SendNoneFifoCacheData()
100 sptr<SensorBasicDataChannel> &channel, SensorData &data, in SendFifoCacheData() argument
110 fifoCacheData->SetChannel(channel); in SendFifoCacheData()
126 if (fifoChannel != channel) { in SendFifoCacheData()
[all …]
Dflush_info_record.cpp44 ErrCode FlushInfoRecord::SetFlushInfo(int32_t sensorId, const sptr<SensorBasicDataChannel> &channel in SetFlushInfo() argument
47 CHKPR(channel, INVALID_POINTER); in SetFlushInfo()
48 FlushInfo flush(channel, isFirstFlush); in SetFlushInfo()
66 for (const auto &channel : currChannelList) { in IsFlushChannelValid() local
67 if (channel == flushChannel) { in IsFlushChannelValid()
75 const sptr<SensorBasicDataChannel> &channel) in GetFlushChannelIndex() argument
78 if (flushInfoList[i].flushChannel.promote() == channel) { in GetFlushChannelIndex()
88 sptr<SensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess() local
89 CHKPR(channel, ERROR); in FlushProcess()
90 int32_t ret = SetFlushInfo(sensorId, channel, false); in FlushProcess()
Dfifo_cache_data.cpp54 void FifoCacheData::SetChannel(const sptr<SensorBasicDataChannel> &channel) in SetChannel() argument
56 channel_ = channel; in SetChannel()
Dclient_info.cpp267 bool ClientInfo::UpdateSensorChannel(int32_t pid, const sptr<SensorBasicDataChannel> &channel) in UpdateSensorChannel() argument
270 CHKPR(channel, false); in UpdateSensorChannel()
282 auto ret = channelMap_.insert(std::make_pair(pid, channel)); in UpdateSensorChannel()
286 channelMap_[pid] = channel; in UpdateSensorChannel()
389 uint64_t ClientInfo::ComputeBestPeriodCount(int32_t sensorId, sptr<SensorBasicDataChannel> &channel) in ComputeBestPeriodCount() argument
391 if (sensorId == INVALID_SENSOR_ID || channel == nullptr) { in ComputeBestPeriodCount()
399 if (channelIt.second == channel) { in ComputeBestPeriodCount()
414 uint64_t ClientInfo::ComputeBestFifoCount(int32_t sensorId, sptr<SensorBasicDataChannel> &channel) in ComputeBestFifoCount() argument
416 if (channel == nullptr || sensorId == INVALID_SENSOR_ID) { in ComputeBestFifoCount()
424 if (channelIt.second == channel) { in ComputeBestFifoCount()
[all …]
Dsensor_dump.cpp198 for (const auto &channel : channelInfo) { in DumpSensorChannel() local
199 auto sensorId = channel.GetSensorId(); in DumpSensorChannel()
206channel.GetUid(), channel.GetPackageName().c_str(), sensorId, sensorMap_[sensorId].c_str(), in DumpSensorChannel()
207 channel.GetSamplingPeriodNs(), channel.GetFifoCount()); in DumpSensorChannel()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_data_processer.cpp63 sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event, uint64_t periodCount) in SendNoneFifoCacheData() argument
80 fifoCacheData->SetChannel(channel); in SendNoneFifoCacheData()
83 SendRawData(cacheBuf, channel, sendEvents); in SendNoneFifoCacheData()
88 if (fifoCacheData->GetChannel() != channel) { in SendNoneFifoCacheData()
98 SendRawData(cacheBuf, channel, sendEvents); in SendNoneFifoCacheData()
108 fifoCacheData->SetChannel(channel); in SendNoneFifoCacheData()
110 SendRawData(cacheBuf, channel, sendEvents); in SendNoneFifoCacheData()
115 …sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event, uint64_t periodCount, uin… in SendFifoCacheData() argument
131 fifoCacheData->SetChannel(channel); in SendFifoCacheData()
139 if (fifoData->GetChannel() != channel) { in SendFifoCacheData()
[all …]
Dflush_info_record.cpp53 const sptr<MedicalSensorBasicDataChannel> &channel, bool isFirstFlush) in SetFlushInfo() argument
56 if (channel == nullptr) { in SetFlushInfo()
60 struct FlushInfo flush(channel, isFirstFlush); in SetFlushInfo()
79 for (const auto &channel : currChannelList) { in IsFlushChannelValid() local
80 if (channel == flushChannel) { in IsFlushChannelValid()
88 const sptr<MedicalSensorBasicDataChannel> &channel) in GetFlushChannelIndex() argument
92 if (flushInfoList[i].flushChannel == channel) { in GetFlushChannelIndex()
107 sptr<MedicalSensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess() local
108 if (channel == nullptr) { in FlushProcess()
112 ret = SetFlushInfo(sensorId, channel, false); in FlushProcess()
Dfifo_cache_data.cpp54 void FifoCacheData::SetChannel(const sptr<MedicalSensorBasicDataChannel> &channel) in SetChannel() argument
56 channel_ = channel; in SetChannel()
Dmedical_dump.cpp97 for (const auto &channel : channelInfo) { in DumpSensorChannel() local
98 auto sensorId = channel.GetSensorId(); in DumpSensorChannel()
100 auto cmdList = channel.GetCmdType(); in DumpSensorChannel()
107channel.GetUid(), channel.GetPackageName().c_str(), sensorId, sensorMap_[sensorId].c_str(), in DumpSensorChannel()
108 int32_t { channel.GetSamplingPeriodNs() }, channel.GetFifoCount(), cmds.c_str()); in DumpSensorChannel()
Dclient_info.cpp272 …ol ClientInfo::UpdateSensorChannel(int32_t pid, const sptr<MedicalSensorBasicDataChannel> &channel) in UpdateSensorChannel() argument
275 if (pid <= INVALID_PID || channel == nullptr) { in UpdateSensorChannel()
286 auto ret = channelMap_.insert(std::make_pair(pid, channel)); in UpdateSensorChannel()
290 channelMap_[pid] = channel; in UpdateSensorChannel()
398 …ClientInfo::ComputeBestPeriodCount(uint32_t sensorId, sptr<MedicalSensorBasicDataChannel> &channel) in ComputeBestPeriodCount() argument
400 if (sensorId == INVALID_SENSOR_ID || channel == nullptr) { in ComputeBestPeriodCount()
408 if (channelIt.second == channel) { in ComputeBestPeriodCount()
424 …t ClientInfo::ComputeBestFifoCount(uint32_t sensorId, sptr<MedicalSensorBasicDataChannel> &channel) in ComputeBestFifoCount() argument
426 if (channel == nullptr || sensorId == INVALID_SENSOR_ID) { in ComputeBestFifoCount()
434 if (channelIt.second == channel) { in ComputeBestFifoCount()
[all …]
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/
Dinput_method_ability.cpp266 void InputMethodAbility::ClearDataChannel(const sptr<IRemoteObject> &channel) in ClearDataChannel() argument
270 if (dataChannelObject_ == nullptr || channel == nullptr) { in ClearDataChannel()
273 if (dataChannelObject_.GetRefPtr() == channel.GetRefPtr()) { in ClearDataChannel()
377 auto channel = GetInputDataChannelProxy(); in ShowInputWindow() local
378 if (channel == nullptr) { in ShowInputWindow()
382 channel->SendKeyboardStatus(KEYBOARD_SHOW); in ShowInputWindow()
442 auto channel = GetInputDataChannelProxy(); in HideKeyboard() local
443 if (channel == nullptr) { in HideKeyboard()
447 channel->SendKeyboardStatus(KEYBOARD_HIDE); in HideKeyboard()
466 auto channel = GetInputDataChannelProxy(); in InsertText() local
[all …]
Dinput_method_core_stub.cpp148 sptr<IRemoteObject> channel; in ShowKeyboardOnRemote() local
151 if (!ITypesUtil::Unmarshal(data, channel, isShowKeyboard, attachFlag)) { in ShowKeyboardOnRemote()
155 auto ret = InputMethodAbility::GetInstance()->ShowKeyboard(channel, isShowKeyboard, attachFlag); in ShowKeyboardOnRemote()
171 sptr<IRemoteObject> channel = nullptr; in ClearDataChannelOnRemote() local
172 if (!ITypesUtil::Unmarshal(data, channel)) { in ClearDataChannelOnRemote()
176 InputMethodAbility::GetInstance()->ClearDataChannel(channel); in ClearDataChannelOnRemote()
191 int32_t InputMethodCoreStub::ClearDataChannel(const sptr<IInputDataChannel> &channel) in ClearDataChannel() argument
Dinput_method_core_proxy.cpp68 int32_t InputMethodCoreProxy::ClearDataChannel(const sptr<IInputDataChannel> &channel) in ClearDataChannel() argument
71 [&channel](MessageParcel &data) { return ITypesUtil::Marshal(data, channel->AsObject()); }); in ClearDataChannel()
/base/sensors/medical_sensor/services/medical_sensor/include/
Dmedical_sensor_data_processer.h41 int32_t SendEvents(sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event);
43 …_t CacheSensorEvent(const struct SensorEvent &event, sptr<MedicalSensorBasicDataChannel> &channel);
47 void ReportData(sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event);
49 … sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event);
51 … sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event,
54 sptr<MedicalSensorBasicDataChannel> &channel, struct SensorEvent &event,
57 sptr<MedicalSensorBasicDataChannel> channel,
60 bool CheckSendDataPermission(sptr<MedicalSensorBasicDataChannel> channel, uint32_t sensorId);
Dflush_info_record.h38 FlushInfo(const sptr<MedicalSensorBasicDataChannel> &channel, bool enableFlush) in FlushInfo()
39 : flushChannel(channel), flushFromEnable(enableFlush) {}; in FlushInfo()
52 …ErrCode SetFlushInfo(uint32_t sensorId, const sptr<MedicalSensorBasicDataChannel> &channel, bool i…
56 const sptr<MedicalSensorBasicDataChannel> &channel);
Dclient_info.h50 bool UpdateSensorChannel(int32_t pid, const sptr<MedicalSensorBasicDataChannel> &channel);
57 … uint64_t ComputeBestPeriodCount(uint32_t sensorId, sptr<MedicalSensorBasicDataChannel> &channel);
58 uint64_t ComputeBestFifoCount(uint32_t sensorId, sptr<MedicalSensorBasicDataChannel> &channel);
62 AppThreadInfo GetAppInfoByChannel(const sptr<MedicalSensorBasicDataChannel> &channel);
/base/sensors/sensor/services/sensor/include/
Dsensor_data_processer.h41 int32_t SendEvents(sptr<SensorBasicDataChannel> &channel, SensorData &data);
43 int32_t CacheSensorEvent(const SensorData &data, sptr<SensorBasicDataChannel> &channel);
47 void ReportData(sptr<SensorBasicDataChannel> &channel, SensorData &data);
49 sptr<SensorBasicDataChannel> &channel, SensorData &data);
51 … sptr<SensorBasicDataChannel> &channel, SensorData &data, uint64_t periodCount);
53 … sptr<SensorBasicDataChannel> &channel, SensorData &data, uint64_t periodCount,
55 …endRawData(std::unordered_map<int32_t, SensorData> &cacheBuf, sptr<SensorBasicDataChannel> channel,
Dflush_info_record.h40 FlushInfo(const sptr<SensorBasicDataChannel> &channel, bool enableFlush) in FlushInfo()
41 : flushChannel(channel), flushFromEnable(enableFlush){}; in FlushInfo()
53 …ErrCode SetFlushInfo(int32_t sensorId, const sptr<SensorBasicDataChannel> &channel, bool isFirstFl…
57 const sptr<SensorBasicDataChannel> &channel);
Dclient_info.h54 bool UpdateSensorChannel(int32_t pid, const sptr<SensorBasicDataChannel> &channel);
61 uint64_t ComputeBestPeriodCount(int32_t sensorId, sptr<SensorBasicDataChannel> &channel);
62 uint64_t ComputeBestFifoCount(int32_t sensorId, sptr<SensorBasicDataChannel> &channel);
66 AppThreadInfo GetAppInfoByChannel(const sptr<SensorBasicDataChannel> &channel);
/base/inputmethod/imf/services/include/
Dinput_channel.h36 InputChannel(const InputChannel &channel);
37 InputChannel &operator=(const InputChannel &channel);
/base/sensors/sensor/frameworks/native/sensor/src/
Dfd_listener.cpp31 void FdListener::SetChannel(SensorDataChannel *channel) in SetChannel() argument
33 channel_ = channel; in SetChannel()
Dsensor_file_descriptor_listener.cpp79 void SensorFileDescriptorListener::SetChannel(SensorDataChannel* channel) in SetChannel() argument
81 channel_ = channel; in SetChannel()
/base/security/access_token/services/tokensyncmanager/src/remote/
Dremote_command_manager.cpp167 auto channel = RemoteCommandExecutor::CreateChannel(nodeId); in NotifyDeviceOnline() local
168 if (channel == nullptr) { in NotifyDeviceOnline()
172 executor->SetChannel(channel); in NotifyDeviceOnline()
192 auto channel = GetExecutorChannel(nodeId); in NotifyDeviceOffline() local
193 if (channel != nullptr) { in NotifyDeviceOffline()
194 channel->Release(); in NotifyDeviceOffline()
Dsoft_bus_session_listener.cpp106 auto channel = RemoteCommandManager::GetInstance().GetExecutorChannel(networkId); in OnBytesReceived() local
107 if (channel == nullptr) { in OnBytesReceived()
111channel->HandleDataReceived(sessionId, static_cast<unsigned char *>(const_cast<void *>(data)), dat… in OnBytesReceived()
/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/
Dmy_file_descriptor_listener.cpp72 void MyFileDescriptorListener::SetChannel(MedicalSensorDataChannel* channel) in SetChannel() argument
74 channel_ = channel; in SetChannel()

123