• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 PRIVACY_SERVICE_IPC_INTERFACE_CODE_H
17 #define PRIVACY_SERVICE_IPC_INTERFACE_CODE_H
18 
19 namespace OHOS {
20 namespace Security {
21 namespace AccessToken {
22 /* SAID:3505 */
23 enum class PrivacyInterfaceCode {
24     ADD_PERMISSION_USED_RECORD = 0x0000,
25     START_USING_PERMISSION,
26     START_USING_PERMISSION_CALLBACK,
27     STOP_USING_PERMISSION,
28     DELETE_PERMISSION_USED_RECORDS,
29     GET_PERMISSION_USED_RECORDS,
30     GET_PERMISSION_USED_RECORDS_ASYNC,
31     REGISTER_PERM_ACTIVE_STATUS_CHANGE_CALLBACK,
32     UNREGISTER_PERM_ACTIVE_STATUS_CHANGE_CALLBACK,
33     IS_ALLOWED_USING_PERMISSION,
34 #ifdef SECURITY_COMPONENT_ENHANCE_ENABLE
35     REGISTER_SEC_COMP_ENHANCE,
36     DEPOSIT_SEC_COMP_ENHANCE,
37     RECOVER_SEC_COMP_ENHANCE
38 #endif
39 };
40 } // namespace AccessToken
41 } // namespace Security
42 } // namespace OHOS
43 
44 #endif // PRIVACY_SERVICE_IPC_INTERFACE_CODE_H
45