OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:BlobCache
(Results
1 - 5
of
5
) sorted by null
/frameworks/native/include/utils/
BlobCache.h
29
// A
BlobCache
is an in-memory cache for binary key/value pairs. A
BlobCache
36
class
BlobCache
: public RefBase, public Flattenable {
43
BlobCache
(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize);
51
// values specified to the
BlobCache
constructor), then the key/value pair
92
// loaded into a
BlobCache
object using the unflatten method. The contents
93
// of the
BlobCache
object will not be modified.
103
// the
BlobCache
will be evicted from the cache. If an error occurs while
104
// unflattening the serialized cache contents then the
BlobCache
will be
114
BlobCache
(const BlobCache&)
[
all
...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/
BlobCacheTest.java
19
import com.android.gallery3d.common.
BlobCache
;
38
assertEquals(0,
BlobCache
.readInt(buf, 0));
39
assertEquals(0,
BlobCache
.readLong(buf, 0));
41
assertEquals(1,
BlobCache
.readInt(buf, 0));
42
assertEquals(1,
BlobCache
.readLong(buf, 0));
44
assertEquals(0x7f000001,
BlobCache
.readInt(buf, 0));
45
assertEquals(0x7f000001,
BlobCache
.readLong(buf, 0));
46
assertEquals(0x007f0000,
BlobCache
.readInt(buf, 1));
47
assertEquals(0x007f0000,
BlobCache
.readLong(buf, 1));
51
assertEquals(0x80000000,
BlobCache
.readInt(buf, 0))
[
all
...]
/frameworks/native/libs/utils/
BlobCache.cpp
17
#define LOG_TAG "
BlobCache
"
23
#include <utils/
BlobCache
.h>
29
//
BlobCache
::Header::mMagicNumber value
32
//
BlobCache
::Header::mBlobCacheVersion value
35
//
BlobCache
::Header::mDeviceVersion value
38
BlobCache
::
BlobCache
(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize):
54
void
BlobCache
::set(const void* key, size_t keySize, const void* value,
133
size_t
BlobCache
::get(const void* key, size_t keySize, void* value,
166
size_t
BlobCache
::getFlattenedSize() const
[
all
...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BlobCache.java
54
// Below are the interface for
BlobCache
. The instance of this class does not
57
// public
BlobCache
(String path, int maxEntries, int maxBytes, boolean reset) throws IOException;
80
public class
BlobCache
implements Closeable {
81
private static final String TAG = "
BlobCache
";
133
public
BlobCache
(String path, int maxEntries, int maxBytes, boolean reset)
138
public
BlobCache
(String path, int maxEntries, int maxBytes, boolean reset,
158
// by the
BlobCache
constructor.
/packages/apps/Mms/src/com/android/mms/util/
BlobCache.java
54
// Below are the interface for
BlobCache
. The instance of this class does not
57
// public
BlobCache
(String path, int maxEntries, int maxBytes, boolean reset) throws IOException;
79
public class
BlobCache
implements Closeable {
80
private static final String TAG = "
BlobCache
";
132
public
BlobCache
(String path, int maxEntries, int maxBytes, boolean reset)
137
public
BlobCache
(String path, int maxEntries, int maxBytes, boolean reset,
157
// by the
BlobCache
constructor.
Completed in 424 milliseconds