/base/accessibility/frameworks/asacfwk/src/ |
D | accessibility_operator.cpp | 58 sptr<IAccessibleAbilityChannel> AccessibilityOperator::GetChannel(int channelId) in GetChannel() argument 60 auto channel = channels_.find(channelId); in GetChannel() 62 HILOG_DEBUG("Find aams [channelId:%{public}d]", channelId); in GetChannel() 65 HILOG_ERROR("Failed to find aams [channelId:%{public}d]", channelId); in GetChannel() 70 void AccessibilityOperator::AddChannel(const int channelId, const sptr<IAccessibleAbilityChannel> &… in AddChannel() argument 72 HILOG_DEBUG("Add channel to aams [channelId:%{public}d]", channelId); in AddChannel() 73 int tempId = *(const_cast<int *>(&channelId)); in AddChannel() 76 HILOG_ERROR("channel to aams [channelId:%{public}d] is exited", channelId); in AddChannel() 84 void AccessibilityOperator::RemoveChannel(int channelId) in RemoveChannel() argument 86 HILOG_DEBUG("Remove channel to aams [channelId:%{public}d]", channelId); in RemoveChannel() [all …]
|
/base/accessibility/frameworks/aafwk/test/mock/ |
D | mock_accessibility_operator.cpp | 50 sptr<IAccessibleAbilityChannel> AccessibilityOperator::GetChannel(int channelId) in GetChannel() argument 52 (void)channelId; in GetChannel() 57 void AccessibilityOperator::AddChannel(const int channelId, const sptr<IAccessibleAbilityChannel> &… in AddChannel() argument 59 (void)channelId; in AddChannel() 64 void AccessibilityOperator::RemoveChannel(int channelId) in RemoveChannel() argument 66 (void)channelId; in RemoveChannel() 70 bool AccessibilityOperator::GetRoot(int channelId, AccessibilityElementInfo &elementInfo) in GetRoot() argument 72 (void)channelId; in GetRoot() 78 std::vector<AccessibilityWindowInfo> AccessibilityOperator::GetWindows(int channelId) in GetWindows() argument 80 (void)channelId; in GetWindows() [all …]
|
D | mock_accessible_ability_client_stub_impl.h | 34 virtual void Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in Init() argument 39 virtual void Disconnect(const int channelId) in Disconnect() argument
|
/base/accessibility/services/aams/test/mock/ |
D | accessibility_operator_mock.cpp | 39 sptr<IAccessibleAbilityChannel> AccessibilityOperator::GetChannel(int channelId) in GetChannel() argument 41 auto channel = channels_.find(channelId); in GetChannel() 43 HILOG_DEBUG("Find aams [channelId:%{public}d]", channelId); in GetChannel() 46 HILOG_ERROR("Failed to find aams [channelId:%{public}d]", channelId); in GetChannel() 51 void AccessibilityOperator::AddChannel(const int channelId, const sptr<IAccessibleAbilityChannel> &… in AddChannel() argument 53 HILOG_DEBUG("[Add connection to aams [channelId:%{public}d]", channelId); in AddChannel() 54 int tempId = *(const_cast<int *>(&channelId)); in AddChannel() 57 HILOG_ERROR("Connection to aams [channelId:%{public}d] is exited", channelId); in AddChannel() 65 void AccessibilityOperator::RemoveChannel(int channelId) in RemoveChannel() argument 67 HILOG_DEBUG("Remove connection to aams [channelId:%{public}d]", channelId); in RemoveChannel() [all …]
|
D | accessible_ability_client_stub_impl_mock.cpp | 27 …bleAbilityClientStubImpl::Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in Init() argument 30 void AccessibleAbilityClientStubImpl::Disconnect(const int channelId) in Disconnect() argument 33 …ilityClientStubImpl::InitInner(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in InitInner() argument 38 channelId_ = channelId; in InitInner()
|
D | accessible_ability_client_proxy_mock.cpp | 49 …ssibleAbilityClientProxy::Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in Init() argument 52 g_testChannalId = channelId; in Init() 55 void AccessibleAbilityClientProxy::Disconnect(const int channelId) in Disconnect() argument
|
/base/accessibility/services/test/mock/ |
D | accessibility_operator_mock.cpp | 42 sptr<IAccessibleAbilityChannel> AccessibilityOperator::GetChannel(int channelId) in GetChannel() argument 44 auto channel = channels_.find(channelId); in GetChannel() 46 HILOG_DEBUG("Find aams [channelId:%{public}d]", channelId); in GetChannel() 49 HILOG_ERROR("Failed to find aams [channelId:%{public}d]", channelId); in GetChannel() 54 void AccessibilityOperator::AddChannel(const int channelId, const sptr<IAccessibleAbilityChannel> &… in AddChannel() argument 56 HILOG_DEBUG("Add connection to aams [channelId:%{public}d]", channelId); in AddChannel() 57 int tempId = *(const_cast<int *>(&channelId)); in AddChannel() 60 HILOG_ERROR("Connection to aams [channelId:%{public}d] is exited", channelId); in AddChannel() 68 void AccessibilityOperator::RemoveChannel(int channelId) in RemoveChannel() argument 70 HILOG_DEBUG("Remove connection to aams [channelId:%{public}d]", channelId); in RemoveChannel() [all …]
|
D | accessible_ability_client_stub_impl_mock.cpp | 27 …bleAbilityClientStubImpl::Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in Init() argument 30 void AccessibleAbilityClientStubImpl::Disconnect(const int channelId) in Disconnect() argument 33 …ilityClientStubImpl::InitInner(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in InitInner() argument 38 channelId_ = channelId; in InitInner()
|
D | accessible_ability_client_proxy_mock.cpp | 53 …ssibleAbilityClientProxy::Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in Init() argument 56 g_testChannalId = channelId; in Init() 59 void AccessibleAbilityClientProxy::Disconnect(const int channelId) in Disconnect() argument
|
/base/accessibility/frameworks/asacfwk/include/ |
D | accessibility_operator.h | 75 static sptr<IAccessibleAbilityChannel> GetChannel(int channelId); 83 static void AddChannel(const int channelId, const sptr<IAccessibleAbilityChannel> &channel); 90 static void RemoveChannel(int channelId); 98 bool GetRoot(int channelId, AccessibilityElementInfo &elementInfo); 105 std::vector<AccessibilityWindowInfo> GetWindows(int channelId); 119 bool SearchElementInfosByAccessibilityId(int channelId, 132 bool SearchElementInfosByText(int channelId, int accessibilityWindowId, int elementId, 146 bool FindFocusedElementInfo(int channelId, int accessibilityWindowId, 159 bool FocusMoveSearch(int channelId, int accessibilityWindowId, 185 bool ExecuteAction(int channelId, int accessibilityWindowId, [all …]
|
/base/security/deviceauth/services/group_manager/src/channel_manager/soft_bus_channel/ |
D | soft_bus_channel.c | 31 int64_t channelId; member 37 int64_t channelId; member 45 static int32_t GetReqIdByChannelId(int64_t channelId, int64_t *returnReqId) in GetReqIdByChannelId() argument 51 if ((entry != NULL) && (channelId == entry->channelId)) { in GetReqIdByChannelId() 61 static int32_t AddChannelEntry(int64_t requestId, int64_t channelId) in AddChannelEntry() argument 64 if (GetReqIdByChannelId(channelId, &tmpReqId) == HC_SUCCESS) { in AddChannelEntry() 69 .channelId = channelId, in AddChannelEntry() 78 static void RemoveChannelEntry(int64_t channelId) in RemoveChannelEntry() argument 84 if ((entry != NULL) && (channelId == entry->channelId)) { in RemoveChannelEntry() 102 OnChannelOpened(task->requestId, task->channelId); in DoOnChannelOpened() [all …]
|
/base/security/deviceauth/services/group_manager/src/channel_manager/ |
D | channel_manager.c | 71 int64_t channelId = DEFAULT_CHANNEL_ID; in OpenChannel() local 72 int32_t result = GetSoftBusInstance()->openChannel(connectParams, requestId, &channelId); in OpenChannel() 76 *returnChannelId = channelId; in OpenChannel() 83 void CloseChannel(ChannelType channelType, int64_t channelId) in CloseChannel() argument 86 GetSoftBusInstance()->closeChannel(channelId); in CloseChannel() 90 int32_t HcSendMsg(ChannelType channelType, int64_t requestId, int64_t channelId, in HcSendMsg() argument 99 return GetSoftBusInstance()->sendMsg(channelId, (uint8_t *)data, HcStrlen(data) + 1); in HcSendMsg() 105 void NotifyBindResult(ChannelType channelType, int64_t channelId) in NotifyBindResult() argument 108 GetSoftBusInstance()->notifyResult(channelId); in NotifyBindResult()
|
/base/update/updater/services/flashd/daemon/ |
D | daemon.cpp | 100 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask() argument 123 … Send(hSession->sessionId, channelId, CMD_KERNEL_ECHO_RAW, (uint8_t *)info.data(), info.size()); in RedirectToTask() 125 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, &count, 1); in RedirectToTask() 131 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask() argument 135 Send(hSession->sessionId, channelId, CMD_KERNEL_ECHO_RAW, (uint8_t *)info.data(), info.size()); in RedirectToTask() 137 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, &count, 1); in RedirectToTask() 143 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &hands… in HandDaemonAuth() argument 152 …Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), bufString… in HandDaemonAuth() 170 … Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), in HandDaemonAuth() 188 bool HdcDaemon::DaemonSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payloa… in DaemonSessionHandshake() argument [all …]
|
/base/security/deviceauth/services/group_manager/src/session/bind_session_lite/ |
D | bind_session_client_lite.c | 24 static int32_t DoubleCheckChannelId(int64_t channelId, int64_t oldChannelId) in DoubleCheckChannelId() argument 26 if (oldChannelId != channelId) { in DoubleCheckChannelId() 34 static void OnLiteBindChannelOpened(Session *session, int64_t channelId, int64_t requestId) in OnLiteBindChannelOpened() argument 43 int32_t result = DoubleCheckChannelId(channelId, realSession->channelId); in OnLiteBindChannelOpened() 54 CloseChannel(realSession->channelType, realSession->channelId); in OnLiteBindChannelOpened() 65 return OpenChannel(session->channelType, jsonParams, session->reqId, &session->channelId); in LitePrepareClient()
|
/base/accessibility/frameworks/aafwk/src/ |
D | accessible_ability_client_stub_impl.cpp | 55 …bleAbilityClientStubImpl::Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) in Init() argument 68 listener_->GetContext()->SetChannelId(channelId); in Init() 69 AccessibilityOperator::AddChannel(channelId, channel); in Init() 70 channelId_ = channelId; in Init() 95 AccessibilityUITestAbility::GetInstance()->SetChannelId(channelId); in Init() 96 AccessibilityOperator::AddChannel(channelId, channel); in Init() 97 channelId_ = channelId; in Init() 115 void AccessibleAbilityClientStubImpl::Disconnect(const int channelId) in Disconnect() argument 126 AccessibilityOperator::RemoveChannel(channelId); in Disconnect()
|
D | accessible_ability_client_stub.cpp | 80 int channelId = data.ReadInt32(); in HandleInit() local 82 Init(channel, channelId); in HandleInit() 89 int channelId = data.ReadInt32(); in HandleDisconnect() local 90 Disconnect(channelId); in HandleDisconnect()
|
/base/security/deviceauth/services/group_manager/inc/channel_manager/soft_bus_channel/ |
D | soft_bus_channel.h | 28 void (*closeChannel)(int64_t channelId); 29 int32_t (*sendMsg)(int64_t channelId, const uint8_t *data, uint32_t dataLen); 30 void (*notifyResult)(int64_t channelId);
|
/base/accessibility/frameworks/aafwk/include/ |
D | accessible_ability_client_stub_impl.h | 53 void Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) override; 60 void Disconnect(const int channelId) override; 100 … AccessibleAbilityDeathRecipient(uint32_t& channelId, sptr<IAccessibleAbilityChannel>& channel) in AccessibleAbilityDeathRecipient() argument 101 : recipientChannelId_(channelId), recipientchannel_(channel) {}; in AccessibleAbilityDeathRecipient() 111 void InitInner(const sptr<IAccessibleAbilityChannel> &channel, const int channelId);
|
D | accessible_ability_client_interface.h | 38 virtual void Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) = 0; 45 virtual void Disconnect(const int channelId) = 0;
|
D | accessible_ability_client_proxy.h | 38 virtual void Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId) override; 45 virtual void Disconnect(const int channelId) override;
|
/base/security/deviceauth/services/group_manager/inc/channel_manager/ |
D | channel_manager.h | 33 void CloseChannel(ChannelType channelType, int64_t channelId); 34 int32_t HcSendMsg(ChannelType channelType, int64_t requestId, int64_t channelId, 36 void NotifyBindResult(ChannelType channelType, int64_t channelId);
|
/base/security/deviceauth/services/group_manager/src/session/bind_session/ |
D | bind_session_client.c | 100 static int32_t DoubleCheckChannelId(int64_t channelId, int64_t oldChannelId) in DoubleCheckChannelId() argument 102 if (oldChannelId != channelId) { in DoubleCheckChannelId() 110 static void OnBindChannelOpened(Session *session, int64_t channelId, int64_t requestId) in OnBindChannelOpened() argument 119 int32_t result = DoubleCheckChannelId(channelId, realSession->channelId); in OnBindChannelOpened() 132 CloseChannel(realSession->channelType, realSession->channelId); in OnBindChannelOpened() 143 return OpenChannel(session->channelType, jsonParams, session->reqId, &session->channelId); in PrepareClient()
|
/base/accessibility/frameworks/aafwk/test/unittest/ |
D | accessible_ability_client_stub_impl_test.cpp | 114 int channelId = 0; in InitToSetChannelId() local 117 stub_->Init(channel, channelId); in InitToSetChannelId() 154 int channelId = 0; variable 156 stub_->Init(channel, channelId); 178 int channelId = 0; variable 181 stub_->Init(channel, channelId); 200 int channelId = 0; variable 202 stub_->Disconnect(channelId);
|
D | accessible_ability_client_proxy_test.cpp | 81 int channelId = 0; variable 82 proxy_->Init(channel, channelId); 107 int channelId = 0; variable 108 proxy_->Init(channel, channelId); 132 int channelId = 0; variable 133 proxy_->Disconnect(channelId); 154 int channelId = 0; variable 155 proxy_->Disconnect(channelId);
|
/base/update/updater/services/flashd/host/ |
D | server.cpp | 439 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() argument 445 HChannel hChannel = pSfc->AdminChannel(OP_QUERY, channelId, nullptr); in FetchCommand() 458 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, payload, 1); in FetchCommand() 463 pSfc->EchoClientRaw(channelId, payload, payloadSize); in FetchCommand() 474 WRITE_LOG(LOG_DEBUG, "CMD_KERNEL_CHANNEL_CLOSE channelid:%d", channelId); in FetchCommand() 475 ClearOwnTasks(hSession, channelId); in FetchCommand() 478 sfc->FreeChannel(hChannel->channelId); in FetchCommand() 481 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, payload, 1); in FetchCommand() 489 pdiNew->channelId = channelId; in FetchCommand() 502 ret = DispatchTaskData(hSession, hChannel->channelId, command, payload, payloadSize); in FetchCommand() [all …]
|