1 /* 2 * Copyright (c) 2023 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 16 #ifndef RESSCHED_SCHED_CONTROLLER_OBSERVER_INCLUDE_MMIEVENT_OBSERVER_H 17 #define RESSCHED_SCHED_CONTROLLER_OBSERVER_INCLUDE_MMIEVENT_OBSERVER_H 18 19 #include <string> 20 21 #include "mmi_event_observer.h" 22 23 namespace OHOS { 24 namespace ResourceSchedule { 25 class MmiObserver : public MMI::MMIEventObserver { 26 public: 27 /** 28 * @brief Called back when mmi state changed, sync bundlename to nap. 29 * 30 * @param pid the pid. 31 * @param uid the uid. 32 * @param bundleName the bundleName. 33 * @param syncStatus the sync status. 34 */ 35 void SyncBundleName(int32_t pid, int32_t uid, std::string bundleName, int32_t syncStatus) override; 36 }; 37 } // namespace ResourceSchedule 38 } // namespace OHOS 39 #endif // RESSCHED_SCHED_CONTROLLER_OBSERVER_INCLUDE_MMIEVENT_OBSERVER_H 40