Home
last modified time | relevance | path

Searched refs:prefix_count (Results 1 – 8 of 8) sorted by relevance

/external/chromium/chrome/browser/safe_browsing/
Dprotocol_parser.cc336 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 …]
Dprotocol_parser_unittest.cc36 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 …]
Dsafe_browsing_util.h153 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()
Dsafe_browsing_util.cc75 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()
Dfilter_false_positive_perftest.cc230 int prefix_count = 0; in CalculateBloomFilterFalsePositives() local
252 prefix_count += GeneratePrefixHits(url, bloom_filter, &prefixes); in CalculateBloomFilterFalsePositives()
278 << ", prefix compares: " << prefix_count in CalculateBloomFilterFalsePositives()
Dsafe_browsing_database.cc738 const int count = entry->prefix_count(); in InsertAdd()
808 const int count = entry->prefix_count(); in InsertSub()
/external/e2fsprogs/intl/
Dvasnprintf.c267 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()
/external/bluetooth/glib/glib/gnulib/
Dvasnprintf.c381 unsigned int prefix_count; in vasnprintf() local
707 prefix_count = 0; in vasnprintf()
712 prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; in vasnprintf()
718 prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; in vasnprintf()
740 switch (prefix_count) \ in vasnprintf()
760 switch (prefix_count) \ in vasnprintf()