Adam Lesinski | 282e181 | 2014-01-23 18:17:42 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2012 The Android Open Source Project |
| 3 | // |
| 4 | // Manage a resource ID cache. |
| 5 | |
| 6 | #ifndef RESOURCE_ID_CACHE_H |
| 7 | #define RESOURCE_ID_CACHE_H |
| 8 | |
| 9 | namespace android { |
Adam Lesinski | 282e181 | 2014-01-23 18:17:42 -0800 | [diff] [blame] | 10 | |
| 11 | class ResourceIdCache { |
| 12 | public: |
| 13 | static uint32_t lookup(const android::String16& package, |
| 14 | const android::String16& type, |
| 15 | const android::String16& name, |
| 16 | bool onlyPublic); |
| 17 | |
| 18 | static uint32_t store(const android::String16& package, |
| 19 | const android::String16& type, |
| 20 | const android::String16& name, |
| 21 | bool onlyPublic, |
| 22 | uint32_t resId); |
| 23 | |
| 24 | static void dump(void); |
| 25 | }; |
| 26 | |
| 27 | } |
| 28 | |
| 29 | #endif |