mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-23 06:50:30 +00:00
commit
b271b553bf
@ -79,6 +79,17 @@ public:
|
||||
|
||||
int32_t GetChannelId();
|
||||
|
||||
void OnAbilityConnectDoneSync(const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject,
|
||||
int32_t resultCode)
|
||||
{
|
||||
InnerOnAbilityConnectDone(element, remoteObject, resultCode);
|
||||
}
|
||||
|
||||
void OnAbilityDisconnectDoneSync(const AppExecFwk::ElementName &element, int32_t resultCode)
|
||||
{
|
||||
InnerOnAbilityDisconnectDone(element, resultCode);
|
||||
}
|
||||
|
||||
private:
|
||||
class AccessibleAbilityConnectionDeathRecipient final : public IRemoteObject::DeathRecipient {
|
||||
public:
|
||||
|
@ -1494,7 +1494,7 @@ void AccessibleAbilityManagerService::AddUITestClient(const sptr<IRemoteObject>
|
||||
HILOG_ERROR("connection is null");
|
||||
return;
|
||||
}
|
||||
connection->OnAbilityConnectDone(*elementName, obj, 0);
|
||||
connection->OnAbilityConnectDoneSync(*elementName, obj, 0);
|
||||
}
|
||||
|
||||
bool AccessibleAbilityManagerService::DisableUITestAbility()
|
||||
@ -1545,7 +1545,7 @@ void AccessibleAbilityManagerService::RemoveUITestClient(sptr<AccessibleAbilityC
|
||||
return;
|
||||
}
|
||||
accountData->RemoveInstalledAbility(UI_TEST_BUNDLE_NAME);
|
||||
connection->OnAbilityDisconnectDone(connection->GetElementName(), 0);
|
||||
connection->OnAbilityDisconnectDoneSync(connection->GetElementName(), 0);
|
||||
}
|
||||
|
||||
int32_t AccessibleAbilityManagerService::GetActiveWindow()
|
||||
|
@ -276,5 +276,20 @@ void AccessibleAbilityConnection::OnAccessibilityEvent(AccessibilityEventInfo &e
|
||||
{
|
||||
(void)eventInfo;
|
||||
}
|
||||
|
||||
void AccessibleAbilityConnection::InnerOnAbilityConnectDone(const AppExecFwk::ElementName &element,
|
||||
const sptr<IRemoteObject> &remoteObject, int32_t resultCode)
|
||||
{
|
||||
(void)element;
|
||||
(void)remoteObject;
|
||||
(void)resultCode;
|
||||
}
|
||||
|
||||
void AccessibleAbilityConnection::InnerOnAbilityDisconnectDone(const AppExecFwk::ElementName &element,
|
||||
int32_t resultCode)
|
||||
{
|
||||
(void)element;
|
||||
(void)resultCode;
|
||||
}
|
||||
} // namespace Accessibility
|
||||
} // namespace OHOS
|
Loading…
Reference in New Issue
Block a user