/external/chromium_org/chrome/browser/chromeos/drive/ |
file_cache_metadata_unittest.cc | 48 FileCacheEntry cache_entry; local 49 ASSERT_TRUE(metadata_->GetCacheEntry(test_resource_id, &cache_entry)); 50 EXPECT_EQ(test_md5, cache_entry.md5()); 51 EXPECT_TRUE(cache_entry.is_present()); 54 EXPECT_FALSE(metadata_->GetCacheEntry("not_found_resource_id", &cache_entry)); 66 ASSERT_TRUE(metadata_->GetCacheEntry(test_resource_id, &cache_entry)); 67 EXPECT_EQ(test_md5, cache_entry.md5()); 68 EXPECT_TRUE(cache_entry.is_pinned()); 80 ASSERT_TRUE(metadata_->GetCacheEntry(test_resource_id, &cache_entry)); 81 EXPECT_EQ(test_md5, cache_entry.md5()) [all...] |
sync_client_unittest.cc | 218 FileCacheEntry cache_entry; local 220 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry)); 221 EXPECT_TRUE(cache_entry.is_present()); 223 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["bar"], &cache_entry)); 224 EXPECT_TRUE(cache_entry.is_present()); 226 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["baz"], &cache_entry)); 227 EXPECT_TRUE(cache_entry.is_present()); 230 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["dirty"], &cache_entry)); 231 EXPECT_FALSE(cache_entry.is_dirty()); 238 FileCacheEntry cache_entry; local 250 FileCacheEntry cache_entry; local 264 FileCacheEntry cache_entry; local 318 FileCacheEntry cache_entry; local [all...] |
file_cache.cc | 53 FileCacheEntry cache_entry; local 54 cache_entry.set_md5(md5); 55 cache_entry.set_is_present(true); 58 cache_map->insert(std::make_pair(resource_id, cache_entry)); 77 FileCacheEntry* cache_entry, 79 DCHECK(cache_entry); 81 callback.Run(success, *cache_entry); 137 FileCacheEntry* cache_entry = new FileCacheEntry; local 144 cache_entry), 146 &RunGetCacheEntryCallback, callback, base::Owned(cache_entry))); 236 FileCacheEntry cache_entry; local 287 FileCacheEntry cache_entry; local 310 FileCacheEntry cache_entry; local 380 FileCacheEntry cache_entry; local 402 FileCacheEntry cache_entry; local 439 FileCacheEntry cache_entry; local 565 FileCacheEntry cache_entry; local 595 FileCacheEntry cache_entry; local [all...] |
remove_stale_cache_files_unittest.cc | 72 FileCacheEntry cache_entry; local 73 EXPECT_TRUE(cache_->GetCacheEntry(resource_id, &cache_entry)); 83 EXPECT_FALSE(cache_->GetCacheEntry(resource_id, &cache_entry)); 119 FileCacheEntry cache_entry; local 120 EXPECT_FALSE(cache_->GetCacheEntry(resource_id_1, &cache_entry)); 121 EXPECT_TRUE(cache_->GetCacheEntry(resource_id_2, &cache_entry));
|
sync_client.cc | 50 const FileCacheEntry& cache_entry) { 54 if (cache_entry.is_pinned() && !cache_entry.is_present()) 57 if (cache_entry.is_dirty()) 225 const FileCacheEntry& cache_entry) { 228 if (cache_entry.is_pinned() && cache_entry.is_present()) { 234 cache_entry)); 240 const FileCacheEntry& cache_entry, 256 if (entry->file_specific_info().md5() != cache_entry.md5() & [all...] |
sync_client.h | 107 const FileCacheEntry& cache_entry); 111 const FileCacheEntry& cache_entry, 119 const FileCacheEntry& cache_entry);
|
resource_metadata_storage_unittest.cc | 171 FileCacheEntry cache_entry; local 172 if (it->GetCacheEntry(&cache_entry)) 173 found_cache_entries[entry.resource_id()] = cache_entry; 219 FileCacheEntry cache_entry; local 221 cache_entry.set_md5("aA"); 222 entries["entry1"] = cache_entry; 223 cache_entry.set_md5("bB"); 224 entries["entry2"] = cache_entry; 225 cache_entry.set_md5("cC"); 226 entries["entry3"] = cache_entry; 295 FileCacheEntry cache_entry; local 437 FileCacheEntry cache_entry; local [all...] |
file_cache_unittest.cc | 43 const FileCacheEntry& cache_entry) { 45 out_cache_entries->push_back(cache_entry); 144 FileCacheEntry cache_entry; local 145 EXPECT_TRUE(GetCacheEntryFromOriginThread(resource_id, &cache_entry)); 146 EXPECT_EQ(md5, cache_entry.md5()); 167 FileCacheEntry cache_entry; local 168 if (!GetCacheEntryFromOriginThread(resource_id, &cache_entry)) { 252 FileCacheEntry cache_entry; local 253 EXPECT_TRUE(GetCacheEntryFromOriginThread(resource_id, &cache_entry)); 254 EXPECT_EQ(md5, cache_entry.md5()) 310 FileCacheEntry cache_entry; local 345 FileCacheEntry cache_entry; local 876 FileCacheEntry cache_entry; local [all...] |
file_cache_metadata.h | 86 const FileCacheEntry& cache_entry);
|
file_cache.h | 29 // |cache_entry| is the obtained cache entry. On failure, |cache_state| is 31 typedef base::Callback<void(bool success, const FileCacheEntry& cache_entry)> 36 const FileCacheEntry& cache_entry)>
|
file_cache_metadata.cc | 137 const FileCacheEntry& cache_entry) { 142 const bool ok = cache_entry.SerializeToString(&serialized);
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
compiled_file_system.py | 67 cache_entry = self._file_object_store.Get(path).Get() 68 if (cache_entry is not None) and (version == cache_entry.version): 69 return cache_entry._cache_data 83 cache_entry = self._list_object_store.Get(path).Get() 84 if (cache_entry is not None) and (version == cache_entry.version): 85 return cache_entry._cache_data 91 cache_entry = self._file_object_store.Get(path).Get() 92 if cache_entry is not None [all...] |
/external/chromium_org/net/disk_cache/ |
backend_impl.cc | 485 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); local 486 if (cache_entry) { 487 if (ENTRY_NORMAL == cache_entry->entry()->Data()->state) { 488 UpdateRank(cache_entry, cache_type() == net::SHADER_CACHE); 490 cache_entry->Release(); 503 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); local 504 if (cache_entry && ENTRY_NORMAL != cache_entry->entry()->Data()->state) { 506 cache_entry->Release(); 507 cache_entry = NULL 747 EntryImpl* cache_entry = NULL; local 1544 scoped_refptr<EntryImpl> cache_entry, parent_entry; local [all...] |
disk_cache_perftest.cc | 64 disk_cache::Entry* cache_entry; local 66 int rv = cache->CreateEntry(entry.key, &cache_entry, cb.callback()); 69 int ret = cache_entry->WriteData( 77 ret = cache_entry->WriteData( 84 cache_entry->Close(); 113 disk_cache::Entry* cache_entry; local 115 int rv = cache->OpenEntry(entries[i].key, &cache_entry, cb.callback()); 118 int ret = cache_entry->ReadData( 126 ret = cache_entry->ReadData( 133 cache_entry->Close() [all...] |
mem_backend_impl.cc | 218 MemEntryImpl* cache_entry = new MemEntryImpl(this); 219 if (!cache_entry->CreateEntry(key, net_log_)) { 224 rankings_.Insert(cache_entry); 225 entries_[key] = cache_entry; 227 *entry = cache_entry;
|
/external/chromium/net/disk_cache/ |
disk_cache_perftest.cc | 68 disk_cache::Entry* cache_entry; local 70 int rv = cache->CreateEntry(entry.key, &cache_entry, &cb); 73 int ret = cache_entry->WriteData(0, 0, buffer1, kSize1, &callback, false); 79 ret = cache_entry->WriteData(1, 0, buffer2, entry.data_len, &callback, 85 cache_entry->Close(); 116 disk_cache::Entry* cache_entry; local 118 int rv = cache->OpenEntry(entries[i].key, &cache_entry, &cb); 121 int ret = cache_entry->ReadData(0, 0, buffer1, kSize1, &callback); 127 ret = cache_entry->ReadData(1, 0, buffer2, entries[i].data_len, &callback); 132 cache_entry->Close() [all...] |
backend_impl.cc | 675 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); local 676 if (!cache_entry) { 681 if (ENTRY_NORMAL != cache_entry->entry()->Data()->state) { 683 cache_entry->Release(); 688 eviction_.OnOpenEntry(cache_entry); 694 return cache_entry; 754 scoped_refptr<EntryImpl> cache_entry( 758 if (!cache_entry->CreateEntry(node_address, key, hash)) { 766 cache_entry->BeginLogging(net_log_, true); 769 open_entries_[entry_address.value()] = cache_entry; 898 EntryImpl* cache_entry = NULL; local 1575 scoped_refptr<EntryImpl> cache_entry, parent_entry; local [all...] |
mem_backend_impl.cc | 210 MemEntryImpl* cache_entry = new MemEntryImpl(this); 211 if (!cache_entry->CreateEntry(key, net_log_)) { 216 rankings_.Insert(cache_entry); 217 entries_[key] = cache_entry; 219 *entry = cache_entry;
|
/external/chromium_org/net/disk_cache/v3/ |
backend_impl_v3.cc | 518 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); local 519 if (cache_entry && ENTRY_NORMAL != cache_entry->entry()->Data()->state) { 521 cache_entry->Release(); 522 cache_entry = NULL; 530 if (!cache_entry) { 539 eviction_.OnOpenEntry(cache_entry); 543 cache_entry->entry()->address().value()); 550 return cache_entry; 609 scoped_refptr<EntryImpl> cache_entry( 790 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); local [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
update_operation_unittest.cc | 95 FileCacheEntry cache_entry; local 98 google_apis::test_util::CreateCopyResultCallback(&success, &cache_entry)); 101 EXPECT_FALSE(cache_entry.is_dirty()); 171 FileCacheEntry cache_entry; local 174 google_apis::test_util::CreateCopyResultCallback(&success, &cache_entry)); 177 EXPECT_FALSE(cache_entry.is_dirty()); 206 google_apis::test_util::CreateCopyResultCallback(&success, &cache_entry)); 209 EXPECT_FALSE(cache_entry.is_dirty());
|
get_file_for_saving_operation_unittest.cc | 94 FileCacheEntry cache_entry; local 97 google_apis::test_util::CreateCopyResultCallback(&success, &cache_entry)); 100 EXPECT_TRUE(cache_entry.is_present()); 101 EXPECT_TRUE(cache_entry.is_dirty());
|
copy_operation_unittest.cc | 60 FileCacheEntry cache_entry; local 64 google_apis::test_util::CreateCopyResultCallback(&found, &cache_entry)); 67 EXPECT_TRUE(cache_entry.is_present()); 68 EXPECT_TRUE(cache_entry.is_dirty());
|
/external/chromium_org/ppapi/proxy/ |
flash_resource.cc | 125 LocalTimeZoneOffsetEntry cache_entry; local 126 cache_entry.expiration = now + expiration_delta; 127 cache_entry.offset = 0.0; 137 &cache_entry.offset); 139 cache_entry.offset = 0.0; 141 cache_entry.offset = PPGetLocalTimeZoneOffset(PPTimeToTime(t)); 144 cache.Put(t_minute_base, cache_entry); 145 return cache_entry.offset;
|
/frameworks/base/core/java/com/android/internal/database/ |
SortCursor.java | 117 int cache_entry = newPosition % ROWCACHESIZE; local 119 if (mRowNumCache[cache_entry] == newPosition) { 120 int which = mCursorCache[cache_entry]; 126 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]); 127 mLastCacheHit = cache_entry; 173 mRowNumCache[cache_entry] = newPosition; 174 mCursorCache[cache_entry] = smallestIdx; 177 mCurRowNumCache[cache_entry][i] = mCursors[i].getPosition();
|
/packages/apps/Music/src/com/android/music/ |
SortCursor.java | 117 int cache_entry = newPosition % ROWCACHESIZE; local 119 if (mRowNumCache[cache_entry] == newPosition) { 120 int which = mCursorCache[cache_entry]; 126 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]); 127 mLastCacheHit = cache_entry; 173 mRowNumCache[cache_entry] = newPosition; 174 mCursorCache[cache_entry] = smallestIdx; 177 mCurRowNumCache[cache_entry][i] = mCursors[i].getPosition();
|