Lines Matching defs:state

46 RetError AccessibilitySettings::SetScreenMagnificationState(const bool state)
48 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
50 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetScreenMagnificationState:" + std::to_string(state));
59 RetError ret = accountData->GetConfig()->SetScreenMagnificationState(state);
65 RetError AccessibilitySettings::SetShortKeyState(const bool state)
67 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
69 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetShortKeyState:" + std::to_string(state));
79 handler_->PostTask([this, &syncPromise, state]() {
87 RetError ret = accountData->GetConfig()->SetShortKeyState(state);
95 RetError AccessibilitySettings::SetMouseKeyState(const bool state)
97 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
105 RetError ret = accountData->GetConfig()->SetMouseKeyState(state);
193 RetError AccessibilitySettings::SetHighContrastTextState(const bool state)
195 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
197 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetHighContrastTextState:" + std::to_string(state));
206 RetError ret = accountData->GetConfig()->SetHighContrastTextState(state);
211 RetError AccessibilitySettings::SetDaltonizationState(const bool state)
213 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
215 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetDaltonizationState:" + std::to_string(state));
224 RetError ret = accountData->GetConfig()->SetDaltonizationState(state);
229 RetError AccessibilitySettings::SetInvertColorState(const bool state)
231 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
233 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetInvertColorState:" + std::to_string(state));
242 RetError ret = accountData->GetConfig()->SetInvertColorState(state);
247 RetError AccessibilitySettings::SetAnimationOffState(const bool state)
249 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
257 RetError ret = accountData->GetConfig()->SetAnimationOffState(state);
261 if (state) {
272 RetError AccessibilitySettings::SetAudioMonoState(const bool state)
274 HILOG_INFO("state = [%{public}s]", state ? "True" : "False");
276 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetAudioMonoState:" + std::to_string(state));
285 RetError ret = accountData->GetConfig()->SetAudioMonoState(state);
433 RetError AccessibilitySettings::SetIgnoreRepeatClickState(const bool state)
435 HILOG_INFO("ignore repeat click state = [%{public}s]", state ? "True" : "False");
437 HITRACE_METER_NAME(HITRACE_TAG_ACCESSIBILITY_MANAGER, "SetIgnoreRepeatClickState:" + std::to_string(state));
447 handler_->PostTask([this, &syncPromise, state]() {
455 RetError ret = accountData->GetConfig()->SetIgnoreRepeatClickState(state);
585 RetError AccessibilitySettings::GetScreenMagnificationState(bool &state)
595 handler_->PostTask([this, &syncPromise, &state]() {
604 state = accountData->GetConfig()->GetScreenMagnificationState();
610 RetError AccessibilitySettings::GetShortKeyState(bool &state)
620 handler_->PostTask([this, &syncPromise, &state]() {
629 state = accountData->GetConfig()->GetShortKeyState();
635 RetError AccessibilitySettings::GetMouseKeyState(bool &state)
645 handler_->PostTask([this, &syncPromise, &state]() {
654 state = accountData->GetConfig()->GetMouseKeyState();
723 RetError AccessibilitySettings::GetHighContrastTextState(bool &state)
728 handler_->PostTask([this, &syncPromise, &state]() {
737 state = accountData->GetConfig()->GetHighContrastTextState();
744 RetError AccessibilitySettings::GetDaltonizationState(bool &state)
749 handler_->PostTask([this, &syncPromise, &state]() {
758 state = accountData->GetConfig()->GetDaltonizationState();
765 RetError AccessibilitySettings::GetInvertColorState(bool &state)
770 handler_->PostTask([this, &syncPromise, &state]() {
779 state = accountData->GetConfig()->GetInvertColorState();
786 RetError AccessibilitySettings::GetAnimationOffState(bool &state)
791 handler_->PostTask([this, &syncPromise, &state]() {
800 state = accountData->GetConfig()->GetAnimationOffState();
807 RetError AccessibilitySettings::GetAudioMonoState(bool &state)
812 handler_->PostTask([this, &syncPromise, &state]() {
821 state = accountData->GetConfig()->GetAudioMonoState();
933 RetError AccessibilitySettings::GetIgnoreRepeatClickState(bool &state)
938 handler_->PostTask([this, &syncPromise, &state]() {
947 state = accountData->GetConfig()->GetIgnoreRepeatClickState();
986 uint32_t state = accountData->GetConfig()->GetConfigState();
989 callback->OnConfigStateChanged(state);
1226 RetError AccessibilitySettings::SetCaptionState(const bool state)
1235 RetError ret = accountData->GetConfig()->SetCaptionState(state);
1240 RetError AccessibilitySettings::GetCaptionState(bool &state)
1250 handler_->PostTask([this, &syncPromise, &state]() {
1259 state = accountData->GetConfig()->GetCaptionState();