/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...] |
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));
|
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...] |
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...] |
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_system_unittest.cc | 668 FileCacheEntry cache_entry; local 669 EXPECT_TRUE(cache_->GetCacheEntry(entry->resource_id(), &cache_entry)); 670 EXPECT_TRUE(cache_entry.is_pinned()); 671 EXPECT_TRUE(cache_entry.is_present()); 680 EXPECT_TRUE(cache_->GetCacheEntry(entry->resource_id(), &cache_entry)); 681 EXPECT_FALSE(cache_entry.is_pinned()); 714 FileCacheEntry cache_entry; local 715 EXPECT_FALSE(cache_->GetCacheEntry(entry->resource_id(), &cache_entry)); 765 FileCacheEntry cache_entry; local 766 EXPECT_TRUE(cache_->GetCacheEntry(file_resource_id, &cache_entry)); [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
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());
|
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());
|
download_operation.cc | 74 FileCacheEntry cache_entry; local 75 if (!cache->GetCacheEntry(entry->resource_id(), &cache_entry)) 80 if (!cache_entry.is_dirty() && 81 entry->file_specific_info().md5() != cache_entry.md5()) 94 if (cache_entry.is_dirty()) {
|
download_operation_unittest.cc | 148 FileCacheEntry cache_entry; local 153 &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...] |
/external/chromium_org/net/disk_cache/ |
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...] |
/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();
|
/external/chromium_org/chrome/browser/signin/ |
oauth2_token_service.cc | 428 const CacheEntry* cache_entry = GetCacheEntry(scopes); local 434 cache_entry->access_token, 435 cache_entry->expiration_date)); 488 const CacheEntry* cache_entry = GetCacheEntry(scopes); local 489 return cache_entry && cache_entry->access_token.length();
|
/external/chromium_org/net/cert/ |
x509_certificate.cc | 128 Entry cache_entry; local 129 cache_entry.cert_handle = *cert_handle; 130 cache_entry.ref_count = 0; 131 CertMap::value_type cache_value(fingerprint, cache_entry);
|
/external/chromium_org/chrome/browser/extensions/api/identity/ |
identity_api.cc | 208 IdentityTokenCacheValue cache_entry = id_api->GetCachedToken( local 211 cache_entry.status(); 246 CompleteFunctionWithResult(cache_entry.token()); 252 issue_advice_ = cache_entry.issue_advice(); 261 CompleteFunctionWithResult(cache_entry.token());
|
/external/chromium_org/v8/src/ |
profile-generator.cc | 79 HashMap::Entry* cache_entry = names_.Lookup(str, hash, true); local 80 if (cache_entry->value == NULL) { 82 cache_entry->value = str; 86 return reinterpret_cast<const char*>(cache_entry->value);
|
/external/chromium/net/base/ |
host_resolver_impl.cc | 1019 const HostCache::Entry* cache_entry = cache_->Lookup local [all...] |
/external/chromium_org/chrome/browser/predictors/ |
resource_prefetch_predictor.cc | 900 PrefetchDataMap::iterator cache_entry = data_map->find(key); local 901 if (cache_entry == data_map->end()) { 907 cache_entry = data_map->insert(std::make_pair( 909 cache_entry->second.last_visit = base::Time::Now(); 922 cache_entry->second.resources.push_back(row_to_add); 926 ResourceRows& old_resources = cache_entry->second.resources; 927 cache_entry->second.last_visit = base::Time::Now(); [all...] |
/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...] |