ResourceIdCache.h revision 91447d88f2bdf9c2bf8d1a53570efef6172fba74
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 9namespace android { 10 11class ResourceIdCache { 12public: 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 30