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