Searched refs:prefix_count (Results 1 – 7 of 7) sorted by relevance
/external/chromium/chrome/browser/safe_browsing/ |
D | protocol_parser.cc | 336 int prefix_count; in ParseAddChunk() local 343 prefix_count = remaining / hash_len; in ParseAddChunk() 346 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseAddChunk() 348 if (!ReadPrefixes(&chunk_data, &remaining, chunk_host.entry, prefix_count)) in ParseAddChunk() 354 ReadHostAndPrefixCount(&chunk_data, &remaining, &host, &prefix_count); in ParseAddChunk() 357 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseAddChunk() 360 prefix_count)) in ParseAddChunk() 374 int prefix_count; in ParseSubChunk() local 384 prefix_count = remaining / (sizeof(int32) + hash_len); in ParseSubChunk() 385 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseSubChunk() [all …]
|
D | protocol_parser_unittest.cc | 36 EXPECT_EQ(entry->prefix_count(), 0); in TEST() 42 EXPECT_EQ(entry->prefix_count(), 3); in TEST() 51 EXPECT_EQ(entry->prefix_count(), 2); in TEST() 89 EXPECT_EQ(entry->prefix_count(), 2); in TEST() 120 EXPECT_EQ(entry->prefix_count(), 0); in TEST() 126 EXPECT_EQ(entry->prefix_count(), 3); in TEST() 135 EXPECT_EQ(entry->prefix_count(), 2); in TEST() 147 EXPECT_EQ(entry->prefix_count(), 2); in TEST() 181 EXPECT_EQ(host0.entry->prefix_count(), 255); in TEST() 185 EXPECT_EQ(host1.entry->prefix_count(), 5); in TEST() [all …]
|
D | safe_browsing_util.h | 153 static SBEntry* Create(Type type, int prefix_count); 162 int prefix_count() const { return data_.prefix_count; } in prefix_count() function 224 int prefix_count; member 235 static int Size(Type type, int prefix_count); 242 void set_prefix_count(int count) { data_.prefix_count = count; } in set_prefix_count()
|
D | safe_browsing_util.cc | 75 SBEntry* SBEntry::Create(Type type, int prefix_count) { in Create() argument 76 int size = Size(type, prefix_count); in Create() 80 rv->set_prefix_count(prefix_count); in Create() 106 return Size(type(), prefix_count()); in Size() 110 int SBEntry::Size(Type type, int prefix_count) { in Size() argument 111 return sizeof(Data) + prefix_count * PrefixSize(type); in Size()
|
D | filter_false_positive_perftest.cc | 230 int prefix_count = 0; in CalculateBloomFilterFalsePositives() local 252 prefix_count += GeneratePrefixHits(url, bloom_filter, &prefixes); in CalculateBloomFilterFalsePositives() 278 << ", prefix compares: " << prefix_count in CalculateBloomFilterFalsePositives()
|
D | safe_browsing_database.cc | 738 const int count = entry->prefix_count(); in InsertAdd() 808 const int count = entry->prefix_count(); in InsertSub()
|
/external/e2fsprogs/intl/ |
D | vasnprintf.c | 267 unsigned int prefix_count; in VASNPRINTF() local 566 prefix_count = 0; in VASNPRINTF() 571 prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF() 577 prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF() 599 switch (prefix_count) \ in VASNPRINTF() 619 switch (prefix_count) \ in VASNPRINTF()
|