/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestCheckDisplayCollisions.java | 19 import org.unicode.cldr.util.XMLSource; 46 XMLSource rootSource = new SimpleXMLSource("root"); in testInheritance() 49 XMLSource enSource = new SimpleXMLSource("en"); in testInheritance() 52 XMLSource frSource = new SimpleXMLSource("fr"); in testInheritance() 68 XMLSource frCaSource = new SimpleXMLSource("fr_CA"); in testInheritance() 116 final XMLSource rootSource = new SimpleXMLSource("root"); in mustCollide() 119 final XMLSource enSource = new SimpleXMLSource("en"); in mustCollide() 122 final XMLSource source = new SimpleXMLSource(testLocale); in mustCollide() 200 XMLSource rootSource = new SimpleXMLSource("root"); in TestDotPixel14031() 203 XMLSource localeSource = new SimpleXMLSource("de"); in TestDotPixel14031()
|
D | TestExampleDependencies.java | 24 import org.unicode.cldr.util.XMLSource; 131 XMLSource topSource = factory.makeSource(localeId); in makeRecordingCldrFile() 132 List<XMLSource> parents = getParentSources(factory, localeId); in makeRecordingCldrFile() 133 XMLSource[] a = new XMLSource[parents.size()]; in makeRecordingCldrFile() 337 … XMLSource topSource = factory.makeSource(localeId).cloneAsThawed(); // make top one modifiable in makeMutableResolved() 338 List<XMLSource> parents = getParentSources(factory, localeId); in makeMutableResolved() 339 XMLSource[] a = new XMLSource[parents.size()]; in makeMutableResolved() 352 private static List<XMLSource> getParentSources(Factory factory, String localeId) { in getParentSources() 353 List<XMLSource> parents = new ArrayList<>(); in getParentSources()
|
D | TestFactory.java | 13 import org.unicode.cldr.util.XMLSource; 19 XMLSource mySource = new SimpleXMLSource("root"); 27 …org.unicode.cldr.util.XMLSource.ResolvingSource rs = makeResolvingSource(localeID, DraftStatus.unc… in addFile()
|
D | TestXMLSource.java | 12 import org.unicode.cldr.util.XMLSource; 18 public static class DummyXMLSource extends XMLSource { 22 public XMLSource freeze() { in freeze() 75 XMLSource source = new DummyXMLSource(); in TestGetPathsWithValue()
|
D | TestCheckWidths.java | 14 import org.unicode.cldr.util.XMLSource; 23 XMLSource xmlSource = new DummyXMLSource(); in TestBasic()
|
D | TestCheckNumbers.java | 15 import org.unicode.cldr.util.XMLSource; 43 XMLSource xmlSource = new DummyXMLSource(); in checkSingularity()
|
D | TestDateOrder.java | 10 import org.unicode.cldr.util.XMLSource; 21 XMLSource source = new SimpleXMLSource("xx"); in TestDateImportance()
|
D | TestAliases.java | 18 import org.unicode.cldr.util.XMLSource; 37 if (!XMLSource.Alias.stripLastElement(pair[0]).equals(pair[1])) { in testAlias()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | XMLSource.java | 43 public abstract class XMLSource implements Freezable<XMLSource>, Iterable<String> { class 110 public void putAll(XMLSource otherSource, int conflict_resolution) { in putAll() 198 public void valueChanged(String xpath, XMLSource source); in valueChanged() 485 ((XMLSource.ResolvingSource) this).getFullPathAtDPathCache = null; in clearCache() 486 ((XMLSource.ResolvingSource) this).getSourceLocaleIDCache = null; in clearCache() 649 public XMLSource getUnresolving() { in getUnresolving() 657 public XMLSource cloneAsThawed() { in cloneAsThawed() 659 XMLSource result = (XMLSource) super.clone(); in cloneAsThawed() 719 public static class ResolvingSource extends XMLSource implements Listener { 720 private XMLSource currentSource; [all …]
|
D | RecordingCLDRFile.java | 17 public RecordingCLDRFile(XMLSource dataSource) { in RecordingCLDRFile() 21 public RecordingCLDRFile(XMLSource dataSource, XMLSource... resolvingParents) { in RecordingCLDRFile()
|
D | Factory.java | 13 import org.unicode.cldr.util.XMLSource.ResolvingSource; 133 public static XMLSource makeResolvingSource(List<XMLSource> sources) { in makeResolvingSource() 144 public final XMLSource makeSource(String localeID) { in makeSource() 156 List<XMLSource> sourceList = new ArrayList<>(); in makeResolvingSource() 167 XMLSource source = file.dataSource; in makeResolvingSource()
|
D | XMLNormalizingLoader.java | 43 private static LoadingCache<XMLSourceCacheKey, XMLSource> cache = CacheBuilder.newBuilder() 47 new CacheLoader<XMLSourceCacheKey, XMLSource>() { 49 public XMLSource load(XMLSourceCacheKey key) { 116 …public static XMLSource getFrozenInstance(String localeId, List<File> dirs, DraftStatus minimalDra… in getFrozenInstance() 121 private static XMLSource makeXMLSource(XMLSourceCacheKey key) { in makeXMLSource() 122 XMLSource source = null; in makeXMLSource() 132 List<XMLSource> list = new ArrayList<>(); in makeXMLSource() 138 XMLSource singleSource = cache.getUnchecked(singleKey); in makeXMLSource() 144 XMLSource other = list.get(i); in makeXMLSource() 152 public static XMLSource loadXMLFile(File f, String localeId, DraftStatus minimalDraftStatus) { in loadXMLFile() [all …]
|
D | SimpleXMLSource.java | 18 public class SimpleXMLSource extends XMLSource { 95 public XMLSource freeze() { in freeze() 101 public XMLSource cloneAsThawed() { in cloneAsThawed()
|
D | CLDRFile.java | 49 import org.unicode.cldr.util.XMLSource.ResolvingSource; 140 XMLSource dataSource; // TODO(jchye): make private 194 public CLDRFile(XMLSource dataSource) { in CLDRFile() 211 this.dataSource = XMLSource.getFrozenInstance(localeId, dirs, minimalDraftStatus); in CLDRFile() 216 public CLDRFile(XMLSource dataSource, XMLSource... resolvingParents) { in CLDRFile() 217 List<XMLSource> sourceList = new ArrayList<>(); in CLDRFile() 228 …LDRFile loadFromFile(File f, String localeName, DraftStatus minimalDraftStatus, XMLSource source) { in loadFromFile() 262 …adFromFiles(List<File> dirs, String localeName, DraftStatus minimalDraftStatus, XMLSource source) { in loadFromFiles() 319 XMLSource source) { in load() 754 if (result == XMLSource.CODE_FALLBACK_ID && dataSource.isResolving()) { in getSourceLocaleIdExtended() [all …]
|
D | SimpleFactory.java | 17 import org.unicode.cldr.util.XMLSource.ResolvingSource; 636 XMLSource source = new SimpleXMLSource(localeName); in makeSupplemental() 696 XMLSource source = new SimpleXMLSource(localeName); in makeFile()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | TestCache.java | 16 import org.unicode.cldr.util.XMLSource; 29 public class TestCache implements XMLSource.Listener { 167 public void valueChanged(String xpath, XMLSource source) { in valueChanged()
|
D | CheckCoverage.java | 22 import org.unicode.cldr.util.XMLSource; 85 if (!source.equals(XMLSource.CODE_FALLBACK_ID) in handleCheck()
|
D | CheckLogicalGroupings.java | 19 import org.unicode.cldr.util.XMLSource; 92 return !source.equals(XMLSource.ROOT_ID) && !source.equals(XMLSource.CODE_FALLBACK_ID); in isHereOrNonRoot()
|
D | CasingInfo.java | 30 import org.unicode.cldr.util.XMLSource; 205 XMLSource source = new SimpleXMLSource(localeID); in createCasingXml()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CLDRFileTransformer.java | 19 import org.unicode.cldr.util.XMLSource; 182 XMLSource dataSource = new SimpleXMLSource(localeTransform.getOutputLocale()); in transform() 190 XMLSource outputSource = new SimpleXMLSource(localeTransform.toString()); in transform()
|
D | GetChanges.java | 24 import org.unicode.cldr.util.XMLSource; 90 …final Set<String> ROOT_OR_CODE_FALLBACK = ImmutableSet.of(XMLSource.CODE_FALLBACK_ID, XMLSource.RO…
|
D | CLDRFilePseudolocalizer.java | 16 import org.unicode.cldr.util.XMLSource; 379 XMLSource outputSource = new SimpleXMLSource(outputLocale); in generate() 406 private void addTerritory(XMLSource outputSource, String territory) { in addTerritory()
|
D | GenerateChangeChart.java | 29 import org.unicode.cldr.util.XMLSource; 84 if (source.equals(XMLSource.CODE_FALLBACK_ID) in main() 85 || source.equals(XMLSource.ROOT_ID) in main()
|
D | GenerateProductionData.java | 33 import org.unicode.cldr.util.XMLSource; 331 || (!Objects.equals(XMLSource.ROOT_ID, localeWhereFound.value) in copyFilesAndReturnIsEmpty() 332 … && !Objects.equals(XMLSource.CODE_FALLBACK_ID, localeWhereFound.value)))) { in copyFilesAndReturnIsEmpty()
|
D | FilterFactory.java | 29 import org.unicode.cldr.util.XMLSource; 176 if (!sourceLocale.equals(XMLSource.CODE_FALLBACK_ID)) { in removeRedundantPaths()
|