Searched refs:lookup_key (Results 1 - 25 of 32) sorted by relevance

12

/external/chromium_org/third_party/libaddressinput/src/cpp/test/
H A Dlookup_key_test.cc15 #include "lookup_key.h"
33 LookupKey lookup_key; local
34 lookup_key.FromAddress(address);
35 EXPECT_EQ("data/ZZ", lookup_key.ToKeyString(kMaxDepth));
41 LookupKey lookup_key; local
42 lookup_key.FromAddress(address);
43 EXPECT_EQ(0, lookup_key.GetDepth());
44 EXPECT_EQ("data/111", lookup_key.ToKeyString(kMaxDepth));
51 LookupKey lookup_key; local
52 lookup_key
62 LookupKey lookup_key; local
74 LookupKey lookup_key; local
86 LookupKey lookup_key; local
98 LookupKey lookup_key; local
112 LookupKey lookup_key; local
124 LookupKey lookup_key; local
136 LookupKey lookup_key; local
149 LookupKey lookup_key; local
157 LookupKey lookup_key; local
166 LookupKey lookup_key; local
[all...]
H A Dsupplier_test.cc31 #include "lookup_key.h"
68 virtual void Supply(const LookupKey& lookup_key,
76 virtual void Supply(const LookupKey& lookup_key, argument
78 ondemand_supplier_.Supply(lookup_key, supplied);
93 virtual void Supply(const LookupKey& lookup_key, argument
95 const std::string& region_code = lookup_key.GetRegionCode();
99 preload_supplier_.Supply(lookup_key, supplied);
135 const LookupKey& lookup_key,
138 ASSERT_EQ(&lookup_key_, &lookup_key);
134 Supplied(bool success, const LookupKey& lookup_key, const Supplier::RuleHierarchy& hierarchy) argument
H A Dondemand_supply_task_test.cc31 #include "lookup_key.h"
80 const LookupKey& lookup_key,
83 ASSERT_EQ(&lookup_key_, &lookup_key);
79 Supplied(bool success, const LookupKey& lookup_key, const Supplier::RuleHierarchy& hierarchy) argument
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
H A Dondemand_supplier.cc22 #include "lookup_key.h"
42 void OndemandSupplier::Supply(const LookupKey& lookup_key, argument
45 new OndemandSupplyTask(lookup_key, &rule_cache_, supplied);
47 if (RegionDataConstants::IsSupported(lookup_key.GetRegionCode())) {
49 lookup_key.GetDepth(),
50 RegionDataConstants::GetMaxLookupKeyDepth(lookup_key.GetRegionCode()));
53 const std::string& key = lookup_key.ToKeyString(depth);
H A Daddress_input_helper.cc30 #include "lookup_key.h"
120 LookupKey lookup_key; local
121 lookup_key.FromAddress(lookup_key_address);
122 const Rule* region_rule = supplier_->GetRule(lookup_key);
142 CheckChildrenForPostCodeMatches(*address, lookup_key, NULL, hierarchy);
154 const LookupKey& lookup_key,
158 const Rule* rule = supplier_->GetRule(lookup_key);
165 hierarchy[lookup_key.GetDepth()].push_back(Node());
166 Node* node = &hierarchy[lookup_key.GetDepth()].back();
175 child_key.FromLookupKey(lookup_key, *child_i
152 CheckChildrenForPostCodeMatches( const AddressData& address, const LookupKey& lookup_key, const Node* parent, std::vector<Node>* hierarchy) const argument
[all...]
H A Daddress_normalizer.cc26 #include "lookup_key.h"
52 LookupKey lookup_key; local
63 lookup_key.FromLookupKey(parent_key, *key_it);
64 const Rule* rule = supplier_->GetRule(lookup_key);
H A Dpreload_supplier.cc35 #include "lookup_key.h"
267 LookupKey lookup_key; local
268 lookup_key.FromAddress(address);
269 return lookup_key.ToKeyString(0); // Zero depth = COUNTRY level.
288 void PreloadSupplier::Supply(const LookupKey& lookup_key, argument
291 bool success = GetRuleHierarchy(lookup_key, &hierarchy);
292 supplied(success, lookup_key, hierarchy);
295 const Rule* PreloadSupplier::GetRule(const LookupKey& lookup_key) const {
296 assert(IsLoaded(lookup_key.GetRegionCode()));
298 if (!GetRuleHierarchy(lookup_key,
342 GetRuleHierarchy(const LookupKey& lookup_key, RuleHierarchy* hierarchy) const argument
[all...]
H A Dregion_data_builder.cc29 #include "lookup_key.h"
52 LookupKey lookup_key; local
55 lookup_key.FromLookupKey(parent_key, *key_it);
57 lookup_key.ToKeyString(kLookupKeysMaxDepth);
81 lookup_key,
97 LookupKey lookup_key; local
98 lookup_key.FromAddress(address);
101 rules.find(lookup_key.ToKeyString(kLookupKeysMaxDepth));
117 lookup_key,
H A Dondemand_supply_task.cc30 #include "lookup_key.h"
38 const LookupKey& lookup_key,
43 lookup_key_(lookup_key),
37 OndemandSupplyTask( const LookupKey& lookup_key, std::map<std::string, const Rule*>* rules, const Supplier::Callback& supplied) argument
H A Dondemand_supply_task.h41 OndemandSupplyTask(const LookupKey& lookup_key,
H A Dvalidation_task.h58 const LookupKey& lookup_key,
H A Dvalidation_task.cc35 #include "lookup_key.h"
73 const LookupKey& lookup_key,
75 assert(&lookup_key == lookup_key_.get()); // Sanity check.
72 Validate(bool success, const LookupKey& lookup_key, const Supplier::RuleHierarchy& hierarchy) argument
/external/chromium_org/third_party/libaddressinput/src/cpp/include/libaddressinput/
H A Dsupplier.h36 // Aggregates the metadata needed for |lookup_key| into a RuleHierarchy
40 virtual void Supply(const LookupKey& lookup_key,
H A Dpreload_supplier.h59 // Collects the metadata needed for |lookup_key| from the cache, then calls
62 virtual void Supply(const LookupKey& lookup_key,
66 // the |lookup_key|. Can return NULL if the |lookup_key| does not correspond
68 const Rule* GetRule(const LookupKey& lookup_key) const;
86 bool GetRuleHierarchy(const LookupKey& lookup_key,
H A Daddress_input_helper.h55 const AddressData& address, const LookupKey& lookup_key,
H A Dondemand_supplier.h53 // Loads the metadata needed for |lookup_key|, then calls |supplied|.
54 virtual void Supply(const LookupKey& lookup_key, const Callback& supplied);
/external/chromium_org/extensions/browser/api/declarative/
H A Drules_registry.cc150 RulesDictionaryKey lookup_key(extension_id, *i);
151 rules_.erase(lookup_key);
193 RulesDictionaryKey lookup_key(extension_id, *i);
194 RulesDictionary::iterator entry = rules_.find(lookup_key);
/external/chromium_org/third_party/libaddressinput/
H A Dlibaddressinput_util.target.darwin-arm.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.darwin-arm64.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.darwin-mips.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.darwin-mips64.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.darwin-x86.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.darwin-x86_64.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.linux-arm.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \
H A Dlibaddressinput_util.target.linux-arm64.mk36 third_party/libaddressinput/src/cpp/src/lookup_key.cc \

Completed in 1791 milliseconds

12