Home | History | Annotate | Download | only in media

Lines Matching refs:record

42     private LongSparseArray<Record> mIndexMap;
65 // Look up the record for the given key.
66 Record record = null;
68 record = mIndexMap.get(key);
70 if (record != null) {
72 if (record.timestamp < timestamp) {
73 Log.i(TAG, "File has been updated to " + timestamp + " since the last time " + record.timestamp
78 RandomAccessFile chunkFile = getChunkFile(record.chunk);
80 byte[] data = new byte[record.size];
81 chunkFile.seek(record.offset);
93 Record record = null;
95 record = mIndexMap.get(key);
97 if (record == null) {
100 if (record.timestamp < timestamp) {
103 if (record.size == 0)
109 // Check to see if the record already exists.
110 Record record = null;
112 record = mIndexMap.get(key);
114 if (record != null && data.length <= record.sizeOnDisk) {
116 int currentChunk = record.chunk;
118 RandomAccessFile chunkFile = getChunkFile(record.chunk);
120 chunkFile.seek(record.offset);
123 mIndexMap.put(key, new Record(currentChunk, record.offset, data.length, record.sizeOnDisk, timestamp));
148 mIndexMap.put(key, new Record(chunk, offset, data.length, data.length, timestamp));
255 mIndexMap = new LongSparseArray<Record>(numEntries);
264 mIndexMap.append(key, new Record(chunk, offset, size, sizeOnDisk, timestamp));
280 mIndexMap = new LongSparseArray<Record>();
310 final Record record = mIndexMap.valueAt(i);
312 dataOutput.writeShort(record.chunk);
313 dataOutput.writeInt(record.offset);
314 dataOutput.writeInt(record.size);
315 dataOutput.writeInt(record.sizeOnDisk);
316 dataOutput.writeLong(record.timestamp);
352 private static final class Record {
353 public Record(int chunk, int offset, int size, int sizeOnDisk, long timestamp) {