Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 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 | |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 17 | #ifndef IDMAP2_TESTS_R_H_ |
| 18 | #define IDMAP2_TESTS_R_H_ |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 19 | |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 20 | #include <string> |
| 21 | |
| 22 | #include "idmap2/ResourceUtils.h" |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 23 | |
| 24 | namespace android::idmap2 { |
| 25 | |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 26 | // clang-format off |
| 27 | namespace R::target { |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 28 | namespace integer { // NOLINT(runtime/indentation_namespace) |
Jeremy Meyer | a761f33 | 2022-10-21 17:42:14 +0000 | [diff] [blame] | 29 | constexpr ResourceId int1 = 0x7f020000; |
| 30 | } |
| 31 | namespace drawable { |
| 32 | constexpr ResourceId dr1 = 0x7f010000; |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 33 | } |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 34 | namespace string { // NOLINT(runtime/indentation_namespace) |
Jeremy Meyer | a761f33 | 2022-10-21 17:42:14 +0000 | [diff] [blame] | 35 | constexpr ResourceId not_overlayable = 0x7f030003; |
| 36 | constexpr ResourceId other = 0x7f030004; |
| 37 | constexpr ResourceId policy_actor = 0x7f030005; |
| 38 | constexpr ResourceId policy_config_signature = 0x7f030006; |
| 39 | constexpr ResourceId policy_odm = 0x7f030007; |
| 40 | constexpr ResourceId policy_oem = 0x7f030008; |
| 41 | constexpr ResourceId policy_product = 0x7f030009; |
| 42 | constexpr ResourceId policy_public = 0x7f03000a; |
| 43 | constexpr ResourceId policy_signature = 0x7f03000b; |
| 44 | constexpr ResourceId policy_system = 0x7f03000c; |
| 45 | constexpr ResourceId policy_system_vendor = 0x7f03000d; |
| 46 | constexpr ResourceId str1 = 0x7f03000e; |
| 47 | constexpr ResourceId str2 = 0x7f03000f; |
| 48 | constexpr ResourceId str3 = 0x7f030010; |
| 49 | constexpr ResourceId str4 = 0x7f030011; |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 50 | } // namespace string |
| 51 | } // namespace R::target |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 52 | |
| 53 | namespace R::overlay { |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 54 | namespace integer { // NOLINT(runtime/indentation_namespace) |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 55 | constexpr ResourceId int1 = 0x7f010000; |
Ryan Mitchell | 30dc2e0 | 2020-12-02 11:43:18 -0800 | [diff] [blame] | 56 | constexpr ResourceId not_in_target = 0x7f010001; |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 57 | } |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 58 | namespace string { // NOLINT(runtime/indentation_namespace) |
Ryan Mitchell | 30dc2e0 | 2020-12-02 11:43:18 -0800 | [diff] [blame] | 59 | constexpr ResourceId not_overlayable = 0x7f020000; |
| 60 | constexpr ResourceId other = 0x7f020001; |
| 61 | constexpr ResourceId policy_actor = 0x7f020002; |
| 62 | constexpr ResourceId policy_config_signature = 0x7f020003; |
| 63 | constexpr ResourceId policy_odm = 0x7f020004; |
| 64 | constexpr ResourceId policy_oem = 0x7f020005; |
| 65 | constexpr ResourceId policy_product = 0x7f020006; |
| 66 | constexpr ResourceId policy_public = 0x7f020007; |
| 67 | constexpr ResourceId policy_signature = 0x7f020008; |
| 68 | constexpr ResourceId policy_system = 0x7f020009; |
| 69 | constexpr ResourceId policy_system_vendor = 0x7f02000a; |
| 70 | constexpr ResourceId str1 = 0x7f02000b; |
| 71 | constexpr ResourceId str3 = 0x7f02000c; |
| 72 | constexpr ResourceId str4 = 0x7f02000d; |
Mårten Kongstad | 1195a6b | 2021-05-11 12:57:01 +0000 | [diff] [blame] | 73 | } // namespace string |
| 74 | } // namespace R::overlay |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 75 | // clang-format on |
| 76 | |
| 77 | } // namespace android::idmap2 |
| 78 | |
Mårten Kongstad | c4799eb | 2020-06-04 20:48:11 +0200 | [diff] [blame] | 79 | #endif // IDMAP2_TESTS_R_H_ |