Christopher Tate | d8dde13a | 2012-11-16 15:58:08 -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 { |
| 10 | class android::String16; |
| 11 | |
| 12 | class ResourceIdCache { |
| 13 | public: |
| 14 | static uint32_t lookup(const android::String16& package, |
| 15 | const android::String16& type, |
| 16 | const android::String16& name, |
| 17 | bool onlyPublic); |
| 18 | |
| 19 | static uint32_t store(const android::String16& package, |
| 20 | const android::String16& type, |
| 21 | const android::String16& name, |
| 22 | bool onlyPublic, |
| 23 | uint32_t resId); |
| 24 | |
| 25 | static void dump(void); |
| 26 | }; |
| 27 | |
| 28 | } |
| 29 | |
| 30 | #endif |