/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/ |
D | ResNameTest.java | 12 …assertThat(ResName.qualifyResourceName("some.package:type/name", null, null)).isEqualTo("some.pack… in shouldQualify() 13 …assertThat(ResName.qualifyResourceName("some.package:type/name", "default.package", "deftype")).is… in shouldQualify() 14 …assertThat(ResName.qualifyResourceName("*android:type/name", "default.package", "deftype")).isEqua… in shouldQualify() 15 …assertThat(ResName.qualifyResourceName("some.package:name", "default.package", "deftype")).isEqual… in shouldQualify() 16 …assertThat(ResName.qualifyResourceName("type/name", "default.package", "deftype")).isEqualTo("defa… in shouldQualify() 17 …assertThat(ResName.qualifyResourceName("name", "default.package", "deftype")).isEqualTo("default.p… in shouldQualify() 18 assertThat(ResName.qualifyResourceName("someRawString", "default.package", null)).isNull(); in shouldQualify() 22 assertThat(ResName.qualifyResName("some.package:type/name", "default_package", "default_type")) in shouldQualifyResNameFromString() 23 .isEqualTo(new ResName("some.package", "type", "name")); in shouldQualifyResNameFromString() 24 assertThat(ResName.qualifyResName("some.package:name", "default_package", "default_type")) in shouldQualifyResNameFromString() [all …]
|
D | ResourceParserTest.java | 27 …TypedResource value = resourceTable.getValue(new ResName("org.robolectric", "drawable", "rainbow")… in shouldLoadDrawableXmlResources() 36 …TypedResource value = resourceTable.getValue(new ResName("org.robolectric", "drawable", "an_image"… in shouldLoadDrawableBitmapResources() 45 …TypedResource value = resourceTable.getValue(new ResName("org.robolectric", "drawable", "example_i… in shouldLoadDrawableBitmapResourcesDefinedByItemTag() 54 …TypedResource value = resourceTable.getValue(new ResName("org.robolectric", "id", "id_declared_in_… in shouldLoadIdResourcesDefinedByItemTag() 66 new ResName("org.robolectric", "id", "id_with_string_value"), config); in whenIdItemsHaveStringContent_shouldLoadIdResourcesDefinedByItemTag()
|
D | ResourceTableFactoryTest.java | 29 …assertThat(appResourceTable.getResourceId(new ResName("org.robolectric:mipmap/mipmap_reference")))… in shouldHandleMipmapReferences() 34 …assertThat(appResourceTable.getResourceId(new ResName("org.robolectric:id/burritos"))).isEqualTo(R… in shouldHandleStyleable() 35 …assertThat(appResourceTable.getResourceId(new ResName("org.robolectric:styleable/TitleBar_textStyl… in shouldHandleStyleable() 40 …assertThat(systemResourceTable.getResourceId(new ResName("android:id/text1"))).isEqualTo(android.R… in shouldPrefixAllSystemResourcesWithAndroid()
|
D | ResBundleTest.java | 21 private ResName resName; 25 resName = new ResName("a:b/c"); in setUp() 176 bundle.put(new ResName("org.robolectric", "string", "resource_name"), firstValue); in shouldNotOverwriteValuesWithMatchingQualifiers() 177 bundle.put(new ResName("org.robolectric", "string", "resource_name"), secondValue); in shouldNotOverwriteValuesWithMatchingQualifiers() 179 …assertThat(bundle.get(new ResName("org.robolectric", "string", "resource_name"), from("")).getData… in shouldNotOverwriteValuesWithMatchingQualifiers()
|
D | DrawableResourceLoaderNoRunnerTest.java | 74 …assertThat(resourceTable.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_… in shouldFindDrawableResourcesWorkWithUnixJarFilePath() 97 …assertThat(resourceTable.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_… in shouldFindDrawableResourcesWorkWithUnixFilePath() 120 …assertThat(resourceTable.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_… in shouldFindDrawableResourcesWorkWithWindowsJarFilePath() 143 …assertThat(resourceTable.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_… in shouldFindDrawableResourcesWorkWithWindowsFilePath()
|
D | StyleResourceLoaderTest.java | 28 …TypedResource typedResource = resourceTable.getValue(new ResName("android", "style", "Theme_Holo")… in testStyleDataIsLoadedCorrectly() 33 assertThat(styleData.getAttrValue(new ResName("android", "attr", "colorForeground")).value) in testStyleDataIsLoadedCorrectly()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | PackageResourceTable.java | 17 private final BiMap<Integer, ResName> resourceTable = HashBiMap.create(); 38 public Integer getResourceId(ResName resName) { in getResourceId() 46 .get(new ResName(resName.packageName, resName.type, underscorize(resName.name))); in getResourceId() 52 public ResName getResName(int resourceId) { in getResName() 57 public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue() 66 @Override public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml() 75 @Override public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue() 89 private FileTypedResource getFileResource(ResName resName, ResTable_config config) { in getFileResource() 112 ResName resName = new ResName(packageName, type, name); in addResource() 120 ResName existingEntry = resourceTable.put(resId, resName); in addResource() [all …]
|
D | AttributeResource.java | 15 public final @Nonnull ResName resName; 21 …public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextP… in AttributeResource() 25 …public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextP… in AttributeResource() 39 public @Nonnull ResName getResourceReference() { in getResourceReference() 41 … return ResName.qualifyResName(deref(trimmedValue).replace("+", ""), contextPackageName, "style"); in getResourceReference() 48 public ResName getStyleReference() { in getStyleReference() 50 return ResName.qualifyResName(value.substring(1), contextPackageName, "attr"); in getStyleReference() 74 …public static @Nonnull ResName getResourceReference(String value, String defPackage, String defTyp… in getResourceReference() 76 return ResName.qualifyResName(deref(value).replace("+", ""), defPackage, defType); in getResourceReference() 87 public static ResName getStyleReference(String value, String defPackage, String defType) { in getStyleReference() [all …]
|
D | ResName.java | 8 public class ResName { class 22 public ResName(@Nonnull String packageName, @Nonnull String type, @Nonnull String name) { in ResName() method in ResName 30 public ResName(@Nonnull String fullyQualifiedName) { in ResName() method in ResName 47 … ResName resName = qualifyResName(possiblyQualifiedResourceName, defaultPackageName, defaultType); in qualifyResourceName() 51 …public static ResName qualifyResName(@Nonnull String possiblyQualifiedResourceName, ResName defaul… in qualifyResName() 55 …public static ResName qualifyResName(@Nonnull String possiblyQualifiedResourceName, String default… in qualifyResName() 85 return new ResName( in qualifyResName() 109 …public static ResName qualifyFromFilePath(@Nonnull final String packageName, @Nonnull final String… in qualifyFromFilePath() 114 return new ResName(packageName, type, name); in qualifyFromFilePath() 122 ResName resName = (ResName) o; in equals() [all …]
|
D | ResourceTable.java | 10 Integer getResourceId(ResName resName); in getResourceId() 12 ResName getResName(int resourceId); in getResName() 16 TypedResource getValue(@Nonnull ResName resName, ResTable_config config); in getValue() 18 XmlBlock getXml(ResName resName, ResTable_config config); in getXml() 20 InputStream getRawValue(ResName resName, ResTable_config config); in getRawValue() 29 void visit(ResName key, Iterable<TypedResource> values); in visit()
|
D | RoutingResourceTable.java | 24 ResName resName = getResName(resId); in getRawValue() 28 @Override public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue() 33 ResName resName = pickFor(resId).getResName(resId); in getValue() 37 @Override public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml() 41 @Override public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue() 46 public Integer getResourceId(ResName resName) { in getResourceId() 51 public ResName getResName(int resourceId) { in getResName() 76 private PackageResourceTable pickFor(ResName resName) { in pickFor()
|
D | StyleResolver.java | 13 private final ResName myResName; 17 Style theme, ResName myResName, ResTable_config config) { in StyleResolver() 26 @Override public AttributeResource getAttrValue(ResName resName) { in getAttrValue() 86 ResName styleRef = ResName.qualifyResName(parent, style.getPackageName(), "style"); in getParent() 115 private ResName dereferenceResName(ResName res) { in dereferenceResName() 116 ResName styleRef = res; in dereferenceResName() 140 private ResName dereferenceAttr(AttributeResource attr) { in dereferenceAttr()
|
D | ResBundle.java | 13 public void put(ResName resName, TypedResource value) { in put() 17 public TypedResource get(ResName resName, ResTable_config config) { in get() 22 for (final Map.Entry<ResName, List<TypedResource>> entry : valuesMap.map.entrySet()) { in receive() 28 private final Map<ResName, List<TypedResource>> map = new HashMap<>(); 30 public TypedResource pick(ResName resName, ResTable_config toMatch) { in pick() 54 public void put(ResName resName, TypedResource value) { in put()
|
D | StyleData.java | 14 private final Map<ResName, AttributeResource> items = new LinkedHashMap<>(); 34 private void add(ResName attrName, AttributeResource attribute) { in add() 39 @Override public AttributeResource getAttrValue(ResName resName) { in getAttrValue() 57 for (ResName resName : items.keySet()) { in grep()
|
D | ResBunch.java | 11 public void put(ResName resName, TypedResource value) { in put() 25 public TypedResource get(@Nonnull ResName resName, ResTable_config config) { in get()
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/ |
D | StyleDataTest.java | 13 private final ResName androidSearchViewStyle = new ResName("android", "attr", "searchViewStyle"); 14 …private final ResName myLibSearchViewStyle = new ResName("library.resource", "attr", "searchViewSt… 15 private final ResName myAppSearchViewStyle = new ResName("my.app", "attr", "searchViewStyle");
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/ |
D | NullResourceTable.java | 11 public Integer getResourceId(ResName resName) { in getResourceId() 17 public ResName getResName(int resourceId) { in getResName() 30 public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue() 37 public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml() 42 public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/ |
D | ResourceScriptStmt.cpp | 48 OS << "Accelerators (" << ResName << "): \n"; in log() 61 return OS << "Bitmap (" << ResName << "): " << BitmapLoc << "\n"; in log() 65 return OS << "Cursor (" << ResName << "): " << CursorLoc << "\n"; in log() 69 return OS << "Icon (" << ResName << "): " << IconLoc << "\n"; in log() 73 return OS << "HTML (" << ResName << "): " << HTMLLoc << "\n"; in log() 114 OS << "Menu (" << ResName << "):\n"; in log() 163 OS << "Dialog" << (IsExtended ? "Ex" : "") << " (" << ResName << "): loc: (" in log() 243 OS << "VersionInfo (" << ResName << "):\n"; in log() 249 OS << "User-defined (type: " << Type << ", name: " << ResName << "): "; in log()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLegacyAssetManager.java | 69 import org.robolectric.res.ResName; 161 ResName resName = attribute.getResourceReference(); in convertAndFill() 240 public TypedResource getAttrTypeData(ResName resName) { in getAttrTypeData() 316 …Integer resourceId = resourceTable.getResourceId(ResName.qualifyResName(name, defPackage, defType)… in getResourceIdentifier() 358 ResName resName = resourceTable.getResName(ident); in getThemeValue() 363 ResName attrResName = attrValue.getStyleReference(); in getThemeValue() 483 final ResName resName = qualifyFromNonAssetFileName(fileName); in openNonAsset() 515 private ResName qualifyFromNonAssetFileName(String fileName) { in qualifyFromNonAssetFileName() 520 return ResName.qualifyFromFilePath("android", fileName.replaceFirst("jar:", "")); in qualifyFromNonAssetFileName() 522 return ResName.qualifyFromFilePath(RuntimeEnvironment.application.getPackageName(), fileName); in qualifyFromNonAssetFileName() [all …]
|
D | LegacyManifestParser.java | 66 import org.robolectric.res.ResName; 152 ResName.qualifyResName( in createPackage() 159 ResName.qualifyResName(androidManifest.getLabelRef(), androidManifest.getPackageName()); in createPackage() 164 .getResourceId(new ResName(fullyQualifiedName)); in createPackage() 199 ResName.qualifyResName(themeRef.replace("@", ""), pkg.packageName, "style")); in createPackage() 206 ResName.qualifyResName( in createPackage() 427 ResName descResName = in createPermissionInfo() 436 ResName labelResName = in createPermissionInfo() 457 ResName descResName = in createPermissionGroupInfo() 466 ResName labelResName = in createPermissionGroupInfo()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/ |
D | AttributeSetBuilderImpl.java | 28 import org.robolectric.res.ResName; 74 void parseValue(Integer attrId, ResName attrResName, AttributeResource attribute, in parseValue() 129 public void parseValue(Integer attrId, ResName attrResName, AttributeResource attribute, in parseValue() 134 private void arscParse(Integer attrId, ResName attrResName, AttributeResource attribute, in arscParse() 187 Integer resourceId = resourceTable.getResourceId(new ResName(packageName, type, name)); in getIdentifier() 190 new ResName(packageName, type, name.replace('.', '_'))); in getIdentifier() 196 public void parseValue(Integer attrId, ResName attrResName, AttributeResource attribute, in parseValue() 283 ResName attrResName = null; in build() 291 attrResName = ResName.qualifyResName(attrNameStr, packageName, "attr"); in build() 304 ResName resRef = AttributeResource.getResourceReference(value, packageName, null); in build() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | ResourceTableFactoryIntegrationTest.java | 13 import org.robolectric.res.ResName; 23 .getResourceId(new ResName("android", "attr", "buttonGravity"))).isGreaterThan(0); in shouldIncludeStyleableAttributesThatDoNotHaveACorrespondingEntryInAttrClass()
|
D | ResourceLoaderTest.java | 25 import org.robolectric.res.ResName; 95 ResName internalResource = new ResName("android", "string", "badPin"); in shouldMakeInternalResourcesAvailable()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/ |
D | MetaData.java | 6 import org.robolectric.res.ResName; 40 ResName resName = ResName.qualifyResName(value.substring(1), packageName, null); in init()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | XmlResourceParserImpl.java | 15 import org.robolectric.res.ResName; 325 …return "@" + ResName.qualifyResourceName(value.trim().substring(1).replace("+", ""), packageName, … in qualify() 327 return "?" + ResName.qualifyResourceName(value.trim().substring(1), packageName, "attr"); in qualify() 781 …ResName styleReference = AttributeResource.getStyleReference(possiblyQualifiedResourceName, defaul… in getResourceId() 790 …ResName resourceReference = AttributeResource.getResourceReference(possiblyQualifiedResourceName, … in getResourceId() 798 …ResName resName = ResName.qualifyResName(possiblyQualifiedResourceName, defaultPackageName, defaul… in getResourceId()
|