HomeSort by relevance Sort by last modified time
    Searched refs:areaCodeMap (Results 1 - 4 of 4) sorted by null

  /external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
AreaCodeMap.java 38 public class AreaCodeMap implements Externalizable {
40 private static final Logger LOGGER = Logger.getLogger(AreaCodeMap.class.getName());
50 * Creates an empty {@link AreaCodeMap}. The default constructor is necessary for implementing
54 public AreaCodeMap() {}
61 SortedMap<Integer, String> areaCodeMap) throws IOException {
62 mapStorage.readFromSortedMap(areaCodeMap);
86 AreaCodeMapStorageStrategy getSmallerMapStorage(SortedMap<Integer, String> areaCodeMap) {
89 int sizeOfFlyweightMapStorage = getSizeOfAreaCodeMapStorage(flyweightMapStorage, areaCodeMap);
92 int sizeOfDefaultMapStorage = getSizeOfAreaCodeMapStorage(defaultMapStorage, areaCodeMap);
103 * Creates an {@link AreaCodeMap} initialized with {@code sortedAreaCodeMap}. Note that th
    [all...]
FlyweightMapStorage.java 70 public void readFromSortedMap(SortedMap<Integer, String> areaCodeMap) {
72 numOfEntries = areaCodeMap.size();
73 prefixSizeInBytes = getOptimalNumberOfBytesForValue(areaCodeMap.lastKey());
79 for (Entry<Integer, String> entry : areaCodeMap.entrySet()) {
86 createDescriptionPool(descriptionsSet, areaCodeMap);
93 SortedMap<Integer, String> areaCodeMap) {
103 String description = areaCodeMap.get(prefix);
  /external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/
FlyweightMapStorageTest.java 36 private static final SortedMap<Integer, String> areaCodeMap;
45 areaCodeMap = Collections.unmodifiableSortedMap(tmpMap);
53 mapStorage.readFromSortedMap(areaCodeMap);
AreaCodeMapTest.java 31 * Unittests for AreaCodeMap.java
36 private final AreaCodeMap areaCodeMapForUS = new AreaCodeMap();
37 private final AreaCodeMap areaCodeMapForIT = new AreaCodeMap();
86 new AreaCodeMap().getSmallerMapStorage(createDefaultStorageMapCandidate());
92 new AreaCodeMap().getSmallerMapStorage(createFlyweightStorageMapCandidate());
161 private static AreaCodeMap createNewAreaCodeMap(AreaCodeMap areaCodeMap) throws IOException
    [all...]

Completed in 464 milliseconds