Searched refs:LookupKey (Results 1 - 25 of 50) sorted by relevance

12

/external/chromium_org/third_party/libaddressinput/src/cpp/src/
H A Dlookup_key.h30 // A LookupKey maps between an AddressData struct and the key string used to
32 class LookupKey { class in namespace:i18n::addressinput
35 // the length through arraysize(LookupKey::kHierarchy).
38 LookupKey();
39 ~LookupKey();
52 void FromLookupKey(const LookupKey& parent, const std::string& child_node);
69 DISALLOW_COPY_AND_ASSIGN(LookupKey);
H A Dlookup_key.cc73 const AddressField LookupKey::kHierarchy[] = {
80 LookupKey::LookupKey() { function in class:i18n::addressinput::LookupKey
83 LookupKey::~LookupKey() {
86 void LookupKey::FromAddress(const AddressData& address) {
109 void LookupKey::FromLookupKey(const LookupKey& parent,
120 std::string LookupKey::ToKeyString(size_t max_depth) const {
140 const std::string& LookupKey
[all...]
H A Daddress_normalizer.cc47 LookupKey parent_key;
52 LookupKey lookup_key;
53 for (size_t depth = 1; depth < arraysize(LookupKey::kHierarchy); ++depth) {
54 AddressField field = LookupKey::kHierarchy[depth];
H A Dondemand_supply_task.h31 class LookupKey;
35 // retrieve the set of Rule objects corresponding to a LookupKey and call a
41 OndemandSupplyTask(const LookupKey& lookup_key,
59 const LookupKey& lookup_key_;
H A Dvalidation_task.h30 class LookupKey;
58 const LookupKey& lookup_key,
93 const scoped_ptr<LookupKey> lookup_key_;
H A Daddress_input_helper.cc48 const size_t kHierarchyDepth = arraysize(LookupKey::kHierarchy);
87 AddressField field = LookupKey::kHierarchy[depth];
120 LookupKey lookup_key;
154 const LookupKey& lookup_key,
174 LookupKey child_key;
H A Dondemand_supply_task.cc38 const LookupKey& lookup_key,
85 assert(depth < arraysize(LookupKey::kHierarchy));
97 if (LookupKey::kHierarchy[depth] == COUNTRY) {
H A Dvalidation_task.cc56 lookup_key_(new LookupKey) {
73 const LookupKey& lookup_key,
158 for (size_t depth = 1; depth < arraysize(LookupKey::kHierarchy); ++depth) {
159 AddressField field = LookupKey::kHierarchy[depth];
203 for (size_t depth = arraysize(LookupKey::kHierarchy) - 1;
H A Dondemand_supplier.cc42 void OndemandSupplier::Supply(const LookupKey& lookup_key,
/external/chromium_org/third_party/libaddressinput/src/java/test/com/android/i18n/addressinput/
H A DLookupKeyTest.java19 import com.android.i18n.addressinput.LookupKey.KeyType;
27 * Unit tests for the LookupKey class.
49 LookupKey key = new LookupKey.Builder(KeyType.DATA).build();
52 LookupKey key2 = new LookupKey.Builder(key.toString()).build();
57 LookupKey key = new LookupKey.Builder(US_KEY).build();
60 LookupKey key2 = new LookupKey
[all...]
H A DFormControllerTest.java19 import com.android.i18n.addressinput.LookupKey.KeyType;
64 LookupKey usCaMtvKey = new LookupKey.Builder(KeyType.DATA)
66 LookupKey usKey = usCaMtvKey.getKeyForUpperLevelField(
68 LookupKey usCaKey = usCaMtvKey.getKeyForUpperLevelField(
101 LookupKey badKey = new LookupKey.Builder(KeyType.DATA)
103 LookupKey usKey = badKey.getKeyForUpperLevelField(AddressField.COUNTRY);
109 LookupKey usFirstStateKey =
110 new LookupKey
[all...]
H A DCacheDataTest.java89 final LookupKey key = new LookupKey.Builder(CANADA_KEY).build();
127 final LookupKey key = new LookupKey.Builder(TW_KEY).build();
166 final LookupKey key = new LookupKey.Builder(EXAMPLE_LOCAL_US_KEY).build();
190 final LookupKey key = new LookupKey.Builder(CALIFORNIA_KEY).build();
233 final LookupKey key = new LookupKey
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/include/libaddressinput/
H A Dsupplier.h23 class LookupKey;
27 // metadata needed to validate an address, as described by a LookupKey.
31 typedef i18n::addressinput::Callback<const LookupKey&,
40 virtual void Supply(const LookupKey& lookup_key,
44 // that corresponds to a particular LookupKey.
47 const Rule* rule[4]; // Cf. LookupKey::kHierarchy.
H A Daddress_input_helper.h25 class LookupKey;
55 const AddressData& address, const LookupKey& lookup_key,
H A Dondemand_supplier.h29 class LookupKey;
41 // every new LookupKey (ie. every LookupKey that isn't on canonical form and
54 virtual void Supply(const LookupKey& lookup_key, const Callback& supplied);
H A Dpreload_supplier.h32 class LookupKey;
62 virtual void Supply(const LookupKey& lookup_key,
68 const Rule* GetRule(const LookupKey& lookup_key) const;
86 bool GetRuleHierarchy(const LookupKey& lookup_key,
/external/chromium_org/third_party/libaddressinput/src/cpp/test/
H A Dlookup_key_test.cc27 using i18n::addressinput::LookupKey;
29 const size_t kMaxDepth = arraysize(LookupKey::kHierarchy) - 1;
33 LookupKey lookup_key;
41 LookupKey lookup_key;
51 LookupKey lookup_key;
62 LookupKey lookup_key;
74 LookupKey lookup_key;
86 LookupKey lookup_key;
98 LookupKey lookup_key;
112 LookupKey lookup_ke
[all...]
H A Dpreload_supplier_test.cc36 using i18n::addressinput::LookupKey;
65 LookupKey us_key;
76 LookupKey ca_key;
88 LookupKey zw_key;
99 LookupKey unknown_key;
110 LookupKey precise_key;
H A Dsupplier_test.cc56 using i18n::addressinput::LookupKey;
68 virtual void Supply(const LookupKey& lookup_key,
76 virtual void Supply(const LookupKey& lookup_key,
93 virtual void Supply(const LookupKey& lookup_key,
130 const Rule* rule_[arraysize(LookupKey::kHierarchy)];
135 const LookupKey& lookup_key,
143 LookupKey lookup_key_;
283 // the same LookupKey returns the same pointers again (and doesn't create any
286 const Rule* rule[arraysize(LookupKey::kHierarchy)];
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
H A DFormController.java19 import com.android.i18n.addressinput.LookupKey.KeyType;
20 import com.android.i18n.addressinput.LookupKey.ScriptType;
38 private static final LookupKey ROOT_KEY = FormController.getDataKeyForRoot();
63 LookupKey defaultCountryKey = getDataKeyFor(address);
87 private static LookupKey getDataKeyForRoot() {
89 return new LookupKey.Builder(KeyType.DATA).setAddressData(address).build();
92 LookupKey getDataKeyFor(AddressData address) {
93 return new LookupKey.Builder(KeyType.DATA).setAddressData(address).build();
131 private void requestDataRecursively(final LookupKey key,
154 LookupKey nextKe
[all...]
H A DClientData.java19 import com.android.i18n.addressinput.LookupKey.KeyType;
161 LookupKey key = new LookupKey.Builder(KeyType.DATA).setAddressData(data).build();
195 if (LookupKey.hasValidKeyPrefix(key)) {
196 LookupKey lookupKey = new LookupKey.Builder(key).build();
213 public void requestData(LookupKey key, DataLoadListener listener) {
227 new LookupKey.Builder(key).build(),
285 new LookupKey.Builder(subKey).build(),
H A DLookupKey.java35 final class LookupKey { class
108 private LookupKey(Builder builder) { method in class:LookupKey
126 LookupKey getKeyForUpperLevelField(AddressField field) {
168 LookupKey key = getKeyForUpperLevelField(field);
184 LookupKey getParentKey() {
258 return ((LookupKey) obj).toString().equals(mKeyString);
301 Builder(LookupKey oldKey) {
314 * Builds the {@link LookupKey} with the input key string. Input string has to represent
432 LookupKey build() {
433 return new LookupKey(thi
[all...]
H A DCacheData.java78 private final HashMap<LookupKey, HashSet<CacheListener>> mTemporaryListenerStore =
79 new HashMap<LookupKey, HashSet<CacheListener>>();
265 void fetchDynamicData(final LookupKey key, JSONObject existingJso,
342 void getFromRegionDataConstants(final LookupKey key) {
379 LookupKey lookupKey = new LookupKey.Builder(key).build();
389 private void addListenerToTempStore(LookupKey key, CacheListener listener) {
/external/chromium_org/third_party/leveldatabase/src/db/
H A Ddbformat.h189 class LookupKey { class in namespace:leveldb
193 LookupKey(const Slice& user_key, SequenceNumber sequence);
195 ~LookupKey();
220 LookupKey(const LookupKey&);
221 void operator=(const LookupKey&);
224 inline LookupKey::~LookupKey() {
H A Dmemtable.h64 bool Get(const LookupKey& key, std::string* value, Status* s);

Completed in 500 milliseconds

12