OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RegionData
(Results
1 - 15
of
15
) sorted by null
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
region_data.cc
24
RegionData
::
RegionData
(const std::string& region_code)
30
RegionData
::~
RegionData
() {
31
for (std::vector<const
RegionData
*>::const_iterator it = sub_regions_.begin();
37
RegionData
*
RegionData
::AddSubRegion(const std::string& key,
39
RegionData
* sub_region = new
RegionData
(key, name, this);
44
RegionData
::RegionData(const std::string& key
[
all
...]
region_data_builder.cc
46
RegionData
* parent_region,
75
RegionData
* region = parent_region->AddSubRegion(*key_it, name);
91
RegionData
* BuildRegion(const std::map<std::string, const Rule*>& rules,
107
RegionData
* region = new
RegionData
(region_code);
147
const
RegionData
& RegionDataBuilder::Build(
/external/chromium_org/third_party/libaddressinput/src/cpp/include/libaddressinput/
region_data.h
30
class
RegionData
{
32
// Creates a top-level
RegionData
object. Use AddSubRegion() to add data below
34
explicit
RegionData
(const std::string& region_code);
36
~
RegionData
();
38
// Creates a sub-level
RegionData
object, with this object as its parent and
40
RegionData
* AddSubRegion(const std::string& key, const std::string& name);
49
const
RegionData
& parent() const {
56
const std::vector<const
RegionData
*>& sub_regions() const {
62
RegionData
(const std::string& key,
64
RegionData
* parent)
[
all
...]
region_data_builder.h
27
class
RegionData
;
63
const
RegionData
& Build(const std::string& region_code,
68
typedef std::map<std::string, const
RegionData
*> LanguageRegionMap;
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
RegionData.java
22
class
RegionData
{
28
* Create a new
RegionData
object.
30
private
RegionData
() {
36
* @param data A populated instance of
RegionData
38
private
RegionData
(
RegionData
data) {
83
* A builder class to facilitate the creation of
RegionData
objects.
86
RegionData
mData = new
RegionData
();
88
RegionData
build()
[
all
...]
AddressUiComponent.java
38
private List<
RegionData
> mCandidatesList = new ArrayList<
RegionData
>();
68
void initializeCandidatesList(List<
RegionData
> candidatesList) {
125
List<
RegionData
> getCandidatesList() {
129
void setCandidatesList(List<
RegionData
> candidatesList) {
FormController.java
143
List<
RegionData
> subregions = getRegionData(key);
152
for (
RegionData
subregion : subregions) {
208
* Gets a list of {@link
RegionData
} for sub-regions for a given key. For example, sub regions
211
* <p> TODO: It seems more straight forward to return a list of pairs instead of
RegionData
.
212
* Actually, we can remove
RegionData
since it does not contain anything more than key/value
215
* @return A list of sub-regions, each sub-region represented by a {@link
RegionData
}.
217
List<
RegionData
> getRegionData(LookupKey key) {
223
List<
RegionData
> results = new ArrayList<
RegionData
>();
231
RegionData
rd = new RegionData.Builder(
[
all
...]
AddressWidget.java
175
private List<
RegionData
> mCurrentRegions;
185
public void setSpinnerList(List<
RegionData
> list, String defaultKey) {
188
for (
RegionData
item : list) {
211
for (
RegionData
data : mCurrentRegions) {
322
List<
RegionData
> adminAreaList = getRegionData(AddressField.COUNTRY);
326
List<
RegionData
> localityList = getRegionData(AddressField.ADMIN_AREA);
371
ArrayList<
RegionData
> countries = new ArrayList<
RegionData
>();
372
for (
RegionData
regionData
: mFormController.getRegionData(new LookupKey.Builder
[
all
...]
/external/chromium_org/third_party/libaddressinput/src/java/test/com/android/i18n/addressinput/
RegionDataTest.java
22
* Small unit tests for the
RegionData
class.
26
RegionData
data = new
RegionData
.Builder().setKey("CA").setName("California").build();
38
RegionData
data = new
RegionData
.Builder().setKey("CA").build();
44
RegionData
data = new
RegionData
.Builder().setKey("CA").setName(" ").build();
FormControllerTest.java
105
List<
RegionData
> rdata = controller.getRegionData(usKey);
139
List<
RegionData
> rdata = controller.getRegionData(usKey);
/external/chromium_org/third_party/libaddressinput/src/cpp/test/
region_data_test.cc
24
using i18n::addressinput::
RegionData
;
28
RegionData
region(kEmpty);
34
RegionData
region(kEmpty);
40
RegionData
region(kEmpty);
region_data_builder_test.cc
35
using i18n::addressinput::
RegionData
;
67
const
RegionData
& tree = builder_.Build("US", "en-US", &best_language_);
73
const
RegionData
& tree = builder_.Build("CN", "zh-Hans", &best_language_);
80
const
RegionData
& tree = builder_.Build("CH", "de-CH", &best_language_);
89
const
RegionData
& tree = builder_.Build("ZW", "en-ZW", &best_language_);
95
const
RegionData
& tree = builder_.Build("US", "en-US", &best_language_);
105
const
RegionData
& tree = builder_.Build("KR", "ko-Latn", &best_language_);
116
const
RegionData
& tree = builder_.Build("KR", "ko-KR", &best_language_);
/external/chromium_org/third_party/libaddressinput/chromium/
input_suggester.cc
25
using ::i18n::addressinput::
RegionData
;
47
Suggestion(const
RegionData
* region_to_suggest,
60
const
RegionData
* region_to_suggest;
95
const std::set<const
RegionData
*>& regions_match_key,
96
const std::set<const
RegionData
*>& regions_match_name) {
125
// Suggestion objects based on the given
RegionData
objects. Advance either
128
for (std::set<const
RegionData
*>::const_iterator
133
const
RegionData
* key_region =
135
const
RegionData
* name_region =
205
std::set<const
RegionData
*> keys
[
all
...]
input_suggester.h
23
class
RegionData
;
122
std::map<const ::i18n::addressinput::
RegionData
*, SubRegionData> sub_regions_;
trie.cc
16
class
RegionData
;
78
template class Trie<const ::i18n::addressinput::
RegionData
*>;
Completed in 5818 milliseconds