/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | PackageResourceTable.java | 38 public Integer getResourceId(ResName resName) { in getResourceId() argument 39 Integer id = resourceTable.inverse().get(resName); in getResourceId() 40 if (id == null && resName != null && resName.name.contains(".")) { in getResourceId() 46 .get(new ResName(resName.packageName, resName.type, underscorize(resName.name))); in getResourceId() 57 public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue() argument 58 return resources.get(resName, config); in getValue() 66 @Override public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml() argument 67 FileTypedResource fileTypedResource = getFileResource(resName, config); in getXml() 71 return XmlBlock.create(fileTypedResource.getFsFile(), resName.packageName); in getXml() 75 @Override public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue() argument [all …]
|
D | RoutingResourceTable.java | 24 ResName resName = getResName(resId); in getRawValue() local 25 return resName != null ? getRawValue(resName, config) : null; in getRawValue() 28 @Override public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue() argument 29 return pickFor(resName).getValue(resName, config); in getValue() 33 ResName resName = pickFor(resId).getResName(resId); in getValue() local 34 return resName != null ? getValue(resName, config) : null; in getValue() 37 @Override public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml() argument 38 return pickFor(resName).getXml(resName, config); in getXml() 41 @Override public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue() argument 42 return pickFor(resName).getRawValue(resName, config); in getRawValue() [all …]
|
D | ResBundle.java | 13 public void put(ResName resName, TypedResource value) { in put() argument 14 valuesMap.put(resName, value); in put() 17 public TypedResource get(ResName resName, ResTable_config config) { in get() argument 18 return valuesMap.pick(resName, config); in get() 30 public TypedResource pick(ResName resName, ResTable_config toMatch) { in pick() argument 31 List<TypedResource> values = map.get(resName); in pick() 47 resName.getFullyQualifiedName(), in pick() 54 public void put(ResName resName, TypedResource value) { in put() argument 55 if (!map.containsKey(resName)) { in put() 56 map.put(resName, new ArrayList<>()); in put() [all …]
|
D | AttributeResource.java | 15 public final @Nonnull ResName resName; field in AttributeResource 21 …public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextP… in AttributeResource() argument 22 this(resName, value, contextPackageName, null); in AttributeResource() 25 …public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextP… in AttributeResource() argument 27 …if (!resName.type.equals("attr")) throw new IllegalStateException("\"" + resName.getFullyQualified… in AttributeResource() 29 this.resName = resName; in AttributeResource() 64 "name='" + resName + '\'' + in toString()
|
D | StyleData.java | 22 add(attributeResource.resName, attributeResource); in StyleData() 39 @Override public AttributeResource getAttrValue(ResName resName) { in getAttrValue() argument 40 AttributeResource attributeResource = items.get(resName); in getAttrValue() 46 …if (attributeResource == null && !"android".equals(resName.packageName) && !"android".equals(packa… in getAttrValue() 47 attributeResource = items.get(resName.withPackageName(packageName)); in getAttrValue() 49 … attributeResource = new AttributeResource(resName, attributeResource.value, resName.packageName); in getAttrValue() 57 for (ResName resName : items.keySet()) { in grep() 58 if (pattern.matcher(resName.getFullyQualifiedName()).find()) { in grep()
|
D | ResBunch.java | 11 public void put(ResName resName, TypedResource value) { in put() argument 12 ResBundle bundle = getBundle(resName.type); in put() 13 bundle.put(resName, value); in put() 25 public TypedResource get(@Nonnull ResName resName, ResTable_config config) { in get() argument 26 ResBundle bundle = getBundle(resName.type); in get() 27 return bundle.get(resName, config); in get()
|
D | ResName.java | 47 … ResName resName = qualifyResName(possiblyQualifiedResourceName, defaultPackageName, defaultType); in qualifyResourceName() local 48 return resName != null ? resName.getFullyQualifiedName() : null; in qualifyResourceName() 122 ResName resName = (ResName) o; in equals() 124 if (hashCode() != resName.hashCode()) return false; in equals() 126 if (!packageName.equals(resName.packageName)) return false; in equals() 127 if (!type.equals(resName.type)) return false; in equals() 128 if (!name.equals(resName.name)) return false; in equals()
|
D | ResourceTable.java | 10 Integer getResourceId(ResName resName); in getResourceId() argument 16 TypedResource getValue(@Nonnull ResName resName, ResTable_config config); in getValue() argument 18 XmlBlock getXml(ResName resName, ResTable_config config); in getXml() argument 20 InputStream getRawValue(ResName resName, ResTable_config config); in getRawValue() argument
|
D | StyleResolver.java | 26 @Override public AttributeResource getAttrValue(ResName resName) { in getAttrValue() argument 28 AttributeResource value = style.getAttrValue(resName); in getAttrValue() 42 AttributeResource value = style.getAttrValue(resName); in getAttrValue() 48 AttributeResource value = theme.getAttrValue(resName); in getAttrValue()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/ |
D | ResBundleTest.java | 21 private ResName resName; field in ResBundleTest 25 resName = new ResName("a:b/c"); in setUp() 31 resMap.put(resName, val1); in closestMatchIsPicked() 33 resMap.put(resName, val2); in closestMatchIsPicked() 35 TypedResource v = resMap.pick(resName, from("v18")); in closestMatchIsPicked() 42 resMap.put(resName, val1); in firstValIsPickedWhenNoMatch() 44 resMap.put(resName, val2); in firstValIsPickedWhenNoMatch() 46 TypedResource v = resMap.pick(resName, from("en-v18")); in firstValIsPickedWhenNoMatch() 53 resMap.put(resName, val1); in bestValIsPickedForSdkVersion() 55 resMap.put(resName, val2); in bestValIsPickedForSdkVersion() [all …]
|
D | ResNameTest.java | 51 ResName resName = new ResName("org.robolectric.example", "style", name); in hierarchicalNameHandlesWhiteSpace() local 52 assertThat(resName.name).isEqualTo("TextAppearance.AppCompat.Widget.ActionMode.Subtitle"); in hierarchicalNameHandlesWhiteSpace() 53 assertThat(resName.type).isEqualTo("style"); in hierarchicalNameHandlesWhiteSpace() 54 assertThat(resName.packageName).isEqualTo("org.robolectric.example"); in hierarchicalNameHandlesWhiteSpace() 62 ResName resName = new ResName("org.robolectric.example", "style", name); in simpleNameHandlesWhiteSpace() local 63 assertThat(resName.name).isEqualTo("Subtitle"); in simpleNameHandlesWhiteSpace() 64 assertThat(resName.type).isEqualTo("style"); in simpleNameHandlesWhiteSpace() 65 assertThat(resName.packageName).isEqualTo("org.robolectric.example"); in simpleNameHandlesWhiteSpace() 73 ResName resName = new ResName(name); in fullyQualifiedNameHandlesWhiteSpace() local 74 assertThat(resName.name).isEqualTo("TextAppearance.AppCompat.Widget.ActionMode.Subtitle"); in fullyQualifiedNameHandlesWhiteSpace() [all …]
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/ |
D | NullResourceTable.java | 11 public Integer getResourceId(ResName resName) { in getResourceId() argument 12 System.out.println("getResourceId(" + resName + ")"); in getResourceId() 30 public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue() argument 31 System.out.println("getValue(" + resName + ", \"" + config + "\")"); in getValue() 37 public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml() argument 38 throw new UnsupportedOperationException("getXml " + resName); in getXml() 42 public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue() argument 43 throw new UnsupportedOperationException("getRawValue " + resName); in getRawValue()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLegacyAssetManager.java | 161 ResName resName = attribute.getResourceReference(); in convertAndFill() local 165 resourceId = resourceTable.getResourceId(resName); in convertAndFill() 169 throw new Resources.NotFoundException("unknown resource " + resName); in convertAndFill() 180 TypedResource dereferencedRef = resourceTable.getValue(resName, config); in convertAndFill() 182 Logger.strict("couldn't resolve %s from %s", resName.getFullyQualifiedName(), attribute); in convertAndFill() 192 …attribute = new AttributeResource(attribute.resName, dereferencedRef.asString(), resName.packageNa… in convertAndFill() 210 TypedResource attrTypeData = getAttrTypeData(attribute.resName); in convertAndFill() 240 public TypedResource getAttrTypeData(ResName resName) { in getAttrTypeData() argument 241 return resourceTable.getValue(resName, config); in getAttrTypeData() 358 ResName resName = resourceTable.getResName(ident); in getThemeValue() local [all …]
|
D | ShadowArscResourcesImpl.java | 148 ResName resName = resourceTable.getResName(id); in newNotFoundException() local 149 if (resName == null) { in newNotFoundException() 152 return new Resources.NotFoundException(resName.getFullyQualifiedName()); in newNotFoundException()
|
D | ShadowLegacyResourcesImpl.java | 118 ResName resName = resourceTable.getResName(id); in newNotFoundException() local 119 if (resName == null) { in newNotFoundException() 122 return new Resources.NotFoundException(resName.getFullyQualifiedName()); in newNotFoundException()
|
/external/icu/icu4c/source/tools/genrb/ |
D | genrb.cpp | 744 char *resName; in make_res_filename() local 759 basename = dirname = resName = 0; in make_res_filename() 780 resName = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(dirname) in make_res_filename() 784 if(resName == 0) { in make_res_filename() 789 uprv_strcpy(resName, dirname); in make_res_filename() 793 uprv_strcat(resName, packageName); in make_res_filename() 794 uprv_strcat(resName, "_"); in make_res_filename() 797 uprv_strcat(resName, basename); in make_res_filename() 803 resName = (char*) uprv_malloc(sizeof(char) * (dirlen + pkgLen + basenamelen + 8)); in make_res_filename() 805 if (resName == NULL) { in make_res_filename() [all …]
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/ |
D | MetaData.java | 40 ResName resName = ResName.qualifyResName(value.substring(1), packageName, null); in init() local 45 valueMap.put(entry.getKey(), resourceTable.getResourceId(resName)); in init() 49 TypedResource<?> typedRes = resourceTable.getValue(resName, new ResTable_config()); in init() 52 throw new RoboNotFoundException(resName.getFullyQualifiedName()); in init()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | XMLFileReader.java | 121 public XMLFileReader readCLDRResource(String resName, int handlers, boolean validating) { in readCLDRResource() argument 123 return read(resName, CldrUtility.getInputStream(resName), handlers, validating); in readCLDRResource() 135 …public XMLFileReader read(String resName, Class<?> callingClass, int handlers, boolean validating)… in read() argument 137 … return read(resName, CldrUtility.getInputStream(callingClass, resName), handlers, validating); in read()
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/ |
D | XLIFF2ICUConverter.java | 825 String resName = getAttributeValue(node, RESNAME); in parseResourceString() local 838 currentSource.name = currentTarget.name = resName; in parseResourceString() 860 String resName = getAttributeValue(node, RESNAME); in parseResourceInt() local 872 currentSource.name = currentTarget.name = resName; in parseResourceInt() 894 String resName = getAttributeValue(node, RESNAME); in parseResourceAlias() local 906 currentSource.name = currentTarget.name = resName; in parseResourceAlias() 1005 String resName = getAttributeValue(node, RESNAME); in parseBinUnit() local 1008 currentTarget.name = currentSource.name = resName; in parseBinUnit() 1040 String resName = getAttributeValue(node, RESNAME); in parseArray() local 1041 currentSource.name = currentTarget.name = resName; in parseArray() [all …]
|
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | SandboxClassLoader.java | 99 private InputStream getClassBytesAsStreamPreferringLocalUrls(String resName) { in getClassBytesAsStreamPreferringLocalUrls() argument 100 InputStream fromUrlsClassLoader = urls.getResourceAsStream(resName); in getClassBytesAsStreamPreferringLocalUrls() 104 return super.getResourceAsStream(resName); in getClassBytesAsStreamPreferringLocalUrls()
|
/external/cldr/tools/java/org/unicode/cldr/icu/ |
D | ResourceSplitter.java | 217 private void generateTargetIfNeeded(String resName, String dirPath) { in generateTargetIfNeeded() argument 219 String fileName = resName + ".txt"; in generateTargetIfNeeded() 221 log.log("Generating alias target '" + resName + "' in '" + dirPath + "'"); in generateTargetIfNeeded() 224 res.name = resName; in generateTargetIfNeeded()
|
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/ |
D | SkiaImageDecoder.java | 70 String resName = segments.get(1); in decode() local 71 id = res.getIdentifier(resName, "drawable", packageName); in decode()
|
D | SkiaImageRegionDecoder.java | 79 String resName = segments.get(1); in init() local 80 id = res.getIdentifier(resName, "drawable", packageName); in init()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/ |
D | ICUResourceBundleCollationTest.java | 159 …private void getFunctionalEquivalentTestCases(String path, ClassLoader cl, String resName, String … in getFunctionalEquivalentTestCases() argument 174 …ULocale equivLocale = ICUResourceBundle.getFunctionalEquivalent(path, cl, resName, keyword, inLoca… in getFunctionalEquivalentTestCases()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ICUResourceBundleCollationTest.java | 162 …private void getFunctionalEquivalentTestCases(String path, ClassLoader cl, String resName, String … in getFunctionalEquivalentTestCases() argument 177 …ULocale equivLocale = ICUResourceBundle.getFunctionalEquivalent(path, cl, resName, keyword, inLoca… in getFunctionalEquivalentTestCases()
|