1 /* 2 * Copyright (C) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed On an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 // LCOV_EXCL_START 16 #include "accessibility_notification_helper.h" 17 #include "visibility.h" 18 #include "time_service_client.h" 19 20 extern "C" { PublishIgnoreRepeatClickReminder()21API_EXPORT int32_t PublishIgnoreRepeatClickReminder() 22 { 23 return OHOS::Accessibility::IgnoreRepeatClickNotification::PublishIgnoreRepeatClickReminder(); 24 } CancelNotification()25API_EXPORT void CancelNotification() 26 { 27 return OHOS::Accessibility::IgnoreRepeatClickNotification::CancelNotification(); 28 } RegisterTimers(uint64_t beginTime)29API_EXPORT int32_t RegisterTimers(uint64_t beginTime) 30 { 31 return OHOS::Accessibility::IgnoreRepeatClickNotification::RegisterTimers(beginTime); 32 } DestoryTimers()33API_EXPORT void DestoryTimers() 34 { 35 return OHOS::Accessibility::IgnoreRepeatClickNotification::DestoryTimers(); 36 } GetWallTimeMs()37API_EXPORT int64_t GetWallTimeMs() 38 { 39 if (OHOS::MiscServices::TimeServiceClient::GetInstance()) { 40 return OHOS::MiscServices::TimeServiceClient::GetInstance()->GetWallTimeMs(); 41 } 42 return 0; 43 } 44 } 45 // LCOV_EXCL_STOP