1 /* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef IDMAP2_TESTS_R_H_ 18 #define IDMAP2_TESTS_R_H_ 19 20 #include <string> 21 22 #include "idmap2/ResourceUtils.h" 23 24 namespace android::idmap2 { 25 26 // clang-format off 27 namespace R::target { 28 namespace integer { // NOLINT(runtime/indentation_namespace) 29 constexpr ResourceId int1 = 0x7f010000; 30 } 31 namespace string { // NOLINT(runtime/indentation_namespace) 32 constexpr ResourceId not_overlayable = 0x7f020003; 33 constexpr ResourceId other = 0x7f020004; 34 constexpr ResourceId policy_actor = 0x7f020005; 35 constexpr ResourceId policy_config_signature = 0x7f020006; 36 constexpr ResourceId policy_odm = 0x7f020007; 37 constexpr ResourceId policy_oem = 0x7f020008; 38 constexpr ResourceId policy_product = 0x7f020009; 39 constexpr ResourceId policy_public = 0x7f02000a; 40 constexpr ResourceId policy_signature = 0x7f02000b; 41 constexpr ResourceId policy_system = 0x7f02000c; 42 constexpr ResourceId policy_system_vendor = 0x7f02000d; 43 constexpr ResourceId str1 = 0x7f02000e; 44 constexpr ResourceId str3 = 0x7f020010; 45 constexpr ResourceId str4 = 0x7f020011; 46 } // namespace string 47 } // namespace R::target 48 49 namespace R::overlay { 50 namespace integer { // NOLINT(runtime/indentation_namespace) 51 constexpr ResourceId int1 = 0x7f010000; 52 constexpr ResourceId not_in_target = 0x7f010001; 53 } 54 namespace string { // NOLINT(runtime/indentation_namespace) 55 constexpr ResourceId not_overlayable = 0x7f020000; 56 constexpr ResourceId other = 0x7f020001; 57 constexpr ResourceId policy_actor = 0x7f020002; 58 constexpr ResourceId policy_config_signature = 0x7f020003; 59 constexpr ResourceId policy_odm = 0x7f020004; 60 constexpr ResourceId policy_oem = 0x7f020005; 61 constexpr ResourceId policy_product = 0x7f020006; 62 constexpr ResourceId policy_public = 0x7f020007; 63 constexpr ResourceId policy_signature = 0x7f020008; 64 constexpr ResourceId policy_system = 0x7f020009; 65 constexpr ResourceId policy_system_vendor = 0x7f02000a; 66 constexpr ResourceId str1 = 0x7f02000b; 67 constexpr ResourceId str3 = 0x7f02000c; 68 constexpr ResourceId str4 = 0x7f02000d; 69 } // namespace string 70 } // namespace R::overlay 71 // clang-format on 72 73 } // namespace android::idmap2 74 75 #endif // IDMAP2_TESTS_R_H_ 76