2014-01-23 18:17:42 -08:00
|
|
|
//
|
|
|
|
// Copyright 2012 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Manage a resource ID cache.
|
|
|
|
|
|
|
|
#ifndef RESOURCE_ID_CACHE_H
|
|
|
|
#define RESOURCE_ID_CACHE_H
|
|
|
|
|
2014-01-29 18:20:45 -08:00
|
|
|
#include <utils/String16.h>
|
|
|
|
|
2014-01-23 18:17:42 -08:00
|
|
|
namespace android {
|
|
|
|
|
|
|
|
class ResourceIdCache {
|
|
|
|
public:
|
2014-01-29 18:20:45 -08:00
|
|
|
static uint32_t lookup(const String16& package,
|
|
|
|
const String16& type,
|
|
|
|
const String16& name,
|
2014-01-23 18:17:42 -08:00
|
|
|
bool onlyPublic);
|
|
|
|
|
2014-01-29 18:20:45 -08:00
|
|
|
static uint32_t store(const String16& package,
|
|
|
|
const String16& type,
|
|
|
|
const String16& name,
|
2014-01-23 18:17:42 -08:00
|
|
|
bool onlyPublic,
|
|
|
|
uint32_t resId);
|
|
|
|
|
|
|
|
static void dump(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|