1885b47fbSopenharmony_ci/* 2885b47fbSopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd. 3885b47fbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4885b47fbSopenharmony_ci * you may not use this file except in compliance with the License. 5885b47fbSopenharmony_ci * You may obtain a copy of the License at 6885b47fbSopenharmony_ci * 7885b47fbSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8885b47fbSopenharmony_ci * 9885b47fbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10885b47fbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11885b47fbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12885b47fbSopenharmony_ci * See the License for the specific language governing permissions and 13885b47fbSopenharmony_ci * limitations under the License. 14885b47fbSopenharmony_ci */ 15885b47fbSopenharmony_ci 16885b47fbSopenharmony_ci#include "accessibility_config.h" 17885b47fbSopenharmony_ci#include "accessibility_config_impl.h" 18885b47fbSopenharmony_ci#include "hilog_wrapper.h" 19885b47fbSopenharmony_ci 20885b47fbSopenharmony_cinamespace OHOS { 21885b47fbSopenharmony_cinamespace AccessibilityConfig { 22885b47fbSopenharmony_ci#define CHECK_IMPL_PTR(ret_expr) \ 23885b47fbSopenharmony_ci if (!pImpl_) { \ 24885b47fbSopenharmony_ci HILOG_ERROR("pImpl_ is nullptr"); \ 25885b47fbSopenharmony_ci return ret_expr; \ 26885b47fbSopenharmony_ci } 27885b47fbSopenharmony_ci 28885b47fbSopenharmony_ciACCESSIBILITY_DEFINE_SINGLETON(AccessibilityConfig) 29885b47fbSopenharmony_ci 30885b47fbSopenharmony_ciAccessibilityConfig::AccessibilityConfig() : pImpl_(std::make_unique<Impl>()) 31885b47fbSopenharmony_ci{ 32885b47fbSopenharmony_ci if (!pImpl_) { 33885b47fbSopenharmony_ci HILOG_ERROR("Create AccessibilityConfigImpl Failed"); 34885b47fbSopenharmony_ci } 35885b47fbSopenharmony_ci} 36885b47fbSopenharmony_ci 37885b47fbSopenharmony_ciAccessibilityConfig::~AccessibilityConfig() 38885b47fbSopenharmony_ci{ 39885b47fbSopenharmony_ci} 40885b47fbSopenharmony_ci 41885b47fbSopenharmony_cibool AccessibilityConfig::InitializeContext() 42885b47fbSopenharmony_ci{ 43885b47fbSopenharmony_ci CHECK_IMPL_PTR(false) 44885b47fbSopenharmony_ci return pImpl_->InitializeContext(); 45885b47fbSopenharmony_ci} 46885b47fbSopenharmony_ci 47885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SubscribeConfigObserver(const CONFIG_ID id, 48885b47fbSopenharmony_ci const std::shared_ptr<AccessibilityConfigObserver> &observer, const bool retFlag) 49885b47fbSopenharmony_ci{ 50885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 51885b47fbSopenharmony_ci return pImpl_->SubscribeConfigObserver(id, observer, retFlag); 52885b47fbSopenharmony_ci} 53885b47fbSopenharmony_ci 54885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::UnsubscribeConfigObserver(const CONFIG_ID id, 55885b47fbSopenharmony_ci const std::shared_ptr<AccessibilityConfigObserver> &observer) 56885b47fbSopenharmony_ci{ 57885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 58885b47fbSopenharmony_ci return pImpl_->UnsubscribeConfigObserver(id, observer); 59885b47fbSopenharmony_ci} 60885b47fbSopenharmony_ci 61885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SubscribeEnableAbilityListsObserver( 62885b47fbSopenharmony_ci const std::shared_ptr<AccessibilityEnableAbilityListsObserver> &observer) 63885b47fbSopenharmony_ci{ 64885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 65885b47fbSopenharmony_ci return pImpl_->SubscribeEnableAbilityListsObserver(observer); 66885b47fbSopenharmony_ci} 67885b47fbSopenharmony_ci 68885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::UnsubscribeEnableAbilityListsObserver( 69885b47fbSopenharmony_ci const std::shared_ptr<AccessibilityEnableAbilityListsObserver> &observer) 70885b47fbSopenharmony_ci{ 71885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 72885b47fbSopenharmony_ci return pImpl_->UnsubscribeEnableAbilityListsObserver(observer); 73885b47fbSopenharmony_ci} 74885b47fbSopenharmony_ci 75885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::EnableAbility(const std::string &name, const uint32_t capabilities) 76885b47fbSopenharmony_ci{ 77885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 78885b47fbSopenharmony_ci return pImpl_->EnableAbility(name, capabilities); 79885b47fbSopenharmony_ci} 80885b47fbSopenharmony_ci 81885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::DisableAbility(const std::string &name) 82885b47fbSopenharmony_ci{ 83885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 84885b47fbSopenharmony_ci return pImpl_->DisableAbility(name); 85885b47fbSopenharmony_ci} 86885b47fbSopenharmony_ci 87885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetScreenMagnificationState(const bool state) 88885b47fbSopenharmony_ci{ 89885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 90885b47fbSopenharmony_ci return pImpl_->SetScreenMagnificationState(state); 91885b47fbSopenharmony_ci} 92885b47fbSopenharmony_ci 93885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetShortKeyState(const bool state) 94885b47fbSopenharmony_ci{ 95885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 96885b47fbSopenharmony_ci return pImpl_->SetShortKeyState(state); 97885b47fbSopenharmony_ci} 98885b47fbSopenharmony_ci 99885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetMouseKeyState(const bool state) 100885b47fbSopenharmony_ci{ 101885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 102885b47fbSopenharmony_ci return pImpl_->SetMouseKeyState(state); 103885b47fbSopenharmony_ci} 104885b47fbSopenharmony_ci 105885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetCaptionsState(const bool state) 106885b47fbSopenharmony_ci{ 107885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 108885b47fbSopenharmony_ci return pImpl_->SetCaptionsState(state); 109885b47fbSopenharmony_ci} 110885b47fbSopenharmony_ci 111885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetCaptionsProperty(const CaptionProperty &caption) 112885b47fbSopenharmony_ci{ 113885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 114885b47fbSopenharmony_ci return pImpl_->SetCaptionsProperty(caption); 115885b47fbSopenharmony_ci} 116885b47fbSopenharmony_ci 117885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetMouseAutoClick(const int32_t time) 118885b47fbSopenharmony_ci{ 119885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 120885b47fbSopenharmony_ci return pImpl_->SetMouseAutoClick(time); 121885b47fbSopenharmony_ci} 122885b47fbSopenharmony_ci 123885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetShortkeyTarget(const std::string &name) 124885b47fbSopenharmony_ci{ 125885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 126885b47fbSopenharmony_ci return pImpl_->SetShortkeyTarget(name); 127885b47fbSopenharmony_ci} 128885b47fbSopenharmony_ci 129885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetShortkeyMultiTarget(const std::vector<std::string> &name) 130885b47fbSopenharmony_ci{ 131885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 132885b47fbSopenharmony_ci return pImpl_->SetShortkeyMultiTarget(name); 133885b47fbSopenharmony_ci} 134885b47fbSopenharmony_ci 135885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetHighContrastTextState(bool state) 136885b47fbSopenharmony_ci{ 137885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 138885b47fbSopenharmony_ci return pImpl_->SetHighContrastTextState(state); 139885b47fbSopenharmony_ci} 140885b47fbSopenharmony_ci 141885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetInvertColorState(const bool state) 142885b47fbSopenharmony_ci{ 143885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 144885b47fbSopenharmony_ci return pImpl_->SetInvertColorState(state); 145885b47fbSopenharmony_ci} 146885b47fbSopenharmony_ci 147885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetDaltonizationState(bool state) 148885b47fbSopenharmony_ci{ 149885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 150885b47fbSopenharmony_ci return pImpl_->SetDaltonizationState(state); 151885b47fbSopenharmony_ci} 152885b47fbSopenharmony_ci 153885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetDaltonizationColorFilter(const DALTONIZATION_TYPE type) 154885b47fbSopenharmony_ci{ 155885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 156885b47fbSopenharmony_ci return pImpl_->SetDaltonizationColorFilter(type); 157885b47fbSopenharmony_ci} 158885b47fbSopenharmony_ci 159885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetContentTimeout(const uint32_t timer) 160885b47fbSopenharmony_ci{ 161885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 162885b47fbSopenharmony_ci return pImpl_->SetContentTimeout(timer); 163885b47fbSopenharmony_ci} 164885b47fbSopenharmony_ci 165885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetAnimationOffState(const bool state) 166885b47fbSopenharmony_ci{ 167885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 168885b47fbSopenharmony_ci return pImpl_->SetAnimationOffState(state); 169885b47fbSopenharmony_ci} 170885b47fbSopenharmony_ci 171885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetBrightnessDiscount(const float brightness) 172885b47fbSopenharmony_ci{ 173885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 174885b47fbSopenharmony_ci return pImpl_->SetBrightnessDiscount(brightness); 175885b47fbSopenharmony_ci} 176885b47fbSopenharmony_ci 177885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetAudioMonoState(const bool state) 178885b47fbSopenharmony_ci{ 179885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 180885b47fbSopenharmony_ci return pImpl_->SetAudioMonoState(state); 181885b47fbSopenharmony_ci} 182885b47fbSopenharmony_ci 183885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetAudioBalance(const float balance) 184885b47fbSopenharmony_ci{ 185885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 186885b47fbSopenharmony_ci return pImpl_->SetAudioBalance(balance); 187885b47fbSopenharmony_ci} 188885b47fbSopenharmony_ci 189885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetClickResponseTime(const CLICK_RESPONSE_TIME time) 190885b47fbSopenharmony_ci{ 191885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 192885b47fbSopenharmony_ci return pImpl_->SetClickResponseTime(time); 193885b47fbSopenharmony_ci} 194885b47fbSopenharmony_ci 195885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetIgnoreRepeatClickState(const bool state) 196885b47fbSopenharmony_ci{ 197885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 198885b47fbSopenharmony_ci return pImpl_->SetIgnoreRepeatClickState(state); 199885b47fbSopenharmony_ci} 200885b47fbSopenharmony_ci 201885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::SetIgnoreRepeatClickTime(const IGNORE_REPEAT_CLICK_TIME time) 202885b47fbSopenharmony_ci{ 203885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 204885b47fbSopenharmony_ci return pImpl_->SetIgnoreRepeatClickTime(time); 205885b47fbSopenharmony_ci} 206885b47fbSopenharmony_ci 207885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetScreenMagnificationState(bool &state) const 208885b47fbSopenharmony_ci{ 209885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 210885b47fbSopenharmony_ci return pImpl_->GetScreenMagnificationState(state); 211885b47fbSopenharmony_ci} 212885b47fbSopenharmony_ci 213885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetShortKeyState(bool &state) const 214885b47fbSopenharmony_ci{ 215885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 216885b47fbSopenharmony_ci return pImpl_->GetShortKeyState(state); 217885b47fbSopenharmony_ci} 218885b47fbSopenharmony_ci 219885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetMouseKeyState(bool &state) const 220885b47fbSopenharmony_ci{ 221885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 222885b47fbSopenharmony_ci return pImpl_->GetMouseKeyState(state); 223885b47fbSopenharmony_ci} 224885b47fbSopenharmony_ci 225885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetCaptionsState(bool &state) const 226885b47fbSopenharmony_ci{ 227885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 228885b47fbSopenharmony_ci return pImpl_->GetCaptionsState(state); 229885b47fbSopenharmony_ci} 230885b47fbSopenharmony_ci 231885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetCaptionsProperty(CaptionProperty &caption) const 232885b47fbSopenharmony_ci{ 233885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 234885b47fbSopenharmony_ci return pImpl_->GetCaptionsProperty(caption); 235885b47fbSopenharmony_ci} 236885b47fbSopenharmony_ci 237885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetMouseAutoClick(int32_t &time) const 238885b47fbSopenharmony_ci{ 239885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 240885b47fbSopenharmony_ci return pImpl_->GetMouseAutoClick(time); 241885b47fbSopenharmony_ci} 242885b47fbSopenharmony_ci 243885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetShortkeyTarget(std::string &name) const 244885b47fbSopenharmony_ci{ 245885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 246885b47fbSopenharmony_ci return pImpl_->GetShortkeyTarget(name); 247885b47fbSopenharmony_ci} 248885b47fbSopenharmony_ci 249885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetShortkeyMultiTarget(std::vector<std::string> &name) const 250885b47fbSopenharmony_ci{ 251885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 252885b47fbSopenharmony_ci return pImpl_->GetShortkeyMultiTarget(name); 253885b47fbSopenharmony_ci} 254885b47fbSopenharmony_ci 255885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetInvertColorState(bool &state) const 256885b47fbSopenharmony_ci{ 257885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 258885b47fbSopenharmony_ci return pImpl_->GetInvertColorState(state); 259885b47fbSopenharmony_ci} 260885b47fbSopenharmony_ci 261885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetHighContrastTextState(bool &state) const 262885b47fbSopenharmony_ci{ 263885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 264885b47fbSopenharmony_ci return pImpl_->GetHighContrastTextState(state); 265885b47fbSopenharmony_ci} 266885b47fbSopenharmony_ci 267885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetDaltonizationState(bool &state) const 268885b47fbSopenharmony_ci{ 269885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 270885b47fbSopenharmony_ci return pImpl_->GetDaltonizationState(state); 271885b47fbSopenharmony_ci} 272885b47fbSopenharmony_ci 273885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetDaltonizationColorFilter(DALTONIZATION_TYPE &type) const 274885b47fbSopenharmony_ci{ 275885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 276885b47fbSopenharmony_ci return pImpl_->GetDaltonizationColorFilter(type); 277885b47fbSopenharmony_ci} 278885b47fbSopenharmony_ci 279885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetContentTimeout(uint32_t &timer) const 280885b47fbSopenharmony_ci{ 281885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 282885b47fbSopenharmony_ci return pImpl_->GetContentTimeout(timer); 283885b47fbSopenharmony_ci} 284885b47fbSopenharmony_ci 285885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetAnimationOffState(bool &state) const 286885b47fbSopenharmony_ci{ 287885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 288885b47fbSopenharmony_ci return pImpl_->GetAnimationOffState(state); 289885b47fbSopenharmony_ci} 290885b47fbSopenharmony_ci 291885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetBrightnessDiscount(float &brightness) const 292885b47fbSopenharmony_ci{ 293885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 294885b47fbSopenharmony_ci return pImpl_->GetBrightnessDiscount(brightness); 295885b47fbSopenharmony_ci} 296885b47fbSopenharmony_ci 297885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetAudioMonoState(bool &state) const 298885b47fbSopenharmony_ci{ 299885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 300885b47fbSopenharmony_ci return pImpl_->GetAudioMonoState(state); 301885b47fbSopenharmony_ci} 302885b47fbSopenharmony_ci 303885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetAudioBalance(float &balance) const 304885b47fbSopenharmony_ci{ 305885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 306885b47fbSopenharmony_ci return pImpl_->GetAudioBalance(balance); 307885b47fbSopenharmony_ci} 308885b47fbSopenharmony_ci 309885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetClickResponseTime(CLICK_RESPONSE_TIME &time) const 310885b47fbSopenharmony_ci{ 311885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 312885b47fbSopenharmony_ci return pImpl_->GetClickResponseTime(time); 313885b47fbSopenharmony_ci} 314885b47fbSopenharmony_ci 315885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetIgnoreRepeatClickState(bool &state) const 316885b47fbSopenharmony_ci{ 317885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 318885b47fbSopenharmony_ci return pImpl_->GetIgnoreRepeatClickState(state); 319885b47fbSopenharmony_ci} 320885b47fbSopenharmony_ci 321885b47fbSopenharmony_ciAccessibility::RetError AccessibilityConfig::GetIgnoreRepeatClickTime(IGNORE_REPEAT_CLICK_TIME &time) const 322885b47fbSopenharmony_ci{ 323885b47fbSopenharmony_ci CHECK_IMPL_PTR(Accessibility::RET_ERR_NULLPTR) 324885b47fbSopenharmony_ci return pImpl_->GetIgnoreRepeatClickTime(time); 325885b47fbSopenharmony_ci} 326885b47fbSopenharmony_ci} // Accessibility 327885b47fbSopenharmony_ci} // OHOS