blob: e6bcda273844ff805b15c4b050f228ae39d809ae [file] [log] [blame]
Christopher Tated8dde13a2012-11-16 15:58:08 -08001//
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 {
Christopher Tated8dde13a2012-11-16 15:58:08 -080010
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