• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 STATS_TYPES_H
17 #define STATS_TYPES_H
18 
19 namespace OHOS {
20 namespace PowerMgr {
21 /**
22  * Audio State
23  */
24 enum class AudioState : int32_t {
25     AUDIO_STATE_INVALID = -1,
26     AUDIO_STATE_NEW,
27     AUDIO_STATE_PREPARED,
28     AUDIO_STATE_RUNNING,
29     AUDIO_STATE_STOPPED,
30     AUDIO_STATE_RELEASED,
31     AUDIO_STATE_PAUSED
32 };
33 
34 /**
35  * Runnninglock State
36  */
37 enum class RunningLockState : int32_t {
38     RUNNINGLOCK_STATE_DISABLE = 0,
39     RUNNINGLOCK_STATE_ENABLE,
40     RUNNINGLOCK_STATE_PROXIED,
41     RUNNINGLOCK_STATE_UNPROXIED_RESTORE,
42 };
43 } // namespace PowerMgr
44 } // namespace OHOS
45 
46 #endif // STATS_TYPES_H