blob: 3acdee1bedfc72941c2daa0130bb997c105349bb [file] [log] [blame]
Adam Lesinski282e1812014-01-23 18:17:42 -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
Adam Lesinskide898ff2014-01-29 18:20:45 -08009#include <utils/String16.h>
10
Adam Lesinski282e1812014-01-23 18:17:42 -080011namespace android {
Adam Lesinski282e1812014-01-23 18:17:42 -080012
13class ResourceIdCache {
14public:
Adam Lesinskide898ff2014-01-29 18:20:45 -080015 static uint32_t lookup(const String16& package,
16 const String16& type,
17 const String16& name,
Adam Lesinski282e1812014-01-23 18:17:42 -080018 bool onlyPublic);
19
Adam Lesinskide898ff2014-01-29 18:20:45 -080020 static uint32_t store(const String16& package,
21 const String16& type,
22 const String16& name,
Adam Lesinski282e1812014-01-23 18:17:42 -080023 bool onlyPublic,
24 uint32_t resId);
25
26 static void dump(void);
27};
28
29}
30
31#endif