Home
last modified time | relevance | path

Searched refs:resourceName (Results 1 – 25 of 85) sorted by relevance

1234

/external/messageformat/java/com/ibm/icu/impl/
DICUData.java28 public static boolean exists(final String resourceName) { in exists() argument
33 return ICUData.class.getResource(resourceName); in exists()
37 i = ICUData.class.getResource(resourceName); in exists()
42 …private static InputStream getStream(final Class<?> root, final String resourceName, boolean requi… in getStream() argument
48 return root.getResourceAsStream(resourceName); in getStream()
52 i = root.getResourceAsStream(resourceName); in getStream()
56 …ssingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resour… in getStream()
61 …private static InputStream getStream(final ClassLoader loader, final String resourceName, boolean … in getStream() argument
66 return loader.getResourceAsStream(resourceName); in getStream()
70 i = loader.getResourceAsStream(resourceName); in getStream()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUData.java92 public static boolean exists(final String resourceName) { in exists() argument
97 return ICUData.class.getResource(resourceName); in exists()
101 i = ICUData.class.getResource(resourceName); in exists()
106 …private static InputStream getStream(final Class<?> root, final String resourceName, boolean requi… in getStream() argument
111 return root.getResourceAsStream(resourceName); in getStream()
115 i = root.getResourceAsStream(resourceName); in getStream()
119 …ssingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resour… in getStream()
121 checkStreamForBinaryData(i, resourceName); in getStream()
128 …static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required… in getStream() argument
133 return loader.getResourceAsStream(resourceName); in getStream()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUData.java90 public static boolean exists(final String resourceName) { in exists() argument
95 return ICUData.class.getResource(resourceName); in exists()
99 i = ICUData.class.getResource(resourceName); in exists()
104 …private static InputStream getStream(final Class<?> root, final String resourceName, boolean requi… in getStream() argument
109 return root.getResourceAsStream(resourceName); in getStream()
113 i = root.getResourceAsStream(resourceName); in getStream()
117 …ssingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resour… in getStream()
119 checkStreamForBinaryData(i, resourceName); in getStream()
126 …static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required… in getStream() argument
131 return loader.getResourceAsStream(resourceName); in getStream()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DResourceExtractor.java50 public Integer getResourceId(String resourceName) { in getResourceId() argument
51 if (resourceName.contains("android:")) { // namespace needed for platform files in getResourceId()
52 return getResourceId(resourceName, true); in getResourceId()
54 return getResourceId(resourceName, false); in getResourceId()
63 public Integer getResourceId(String resourceName, boolean isSystemResource) { in getResourceId() argument
64 if (resourceName == null ) { in getResourceId()
67 if (resourceName.equals("@null")) { in getResourceId()
71 if (resourceName.startsWith("@+id")) { in getResourceId()
72 resourceName = resourceName.substring(2); in getResourceId()
73 } else if (resourceName.startsWith("@+android:id")) { in getResourceId()
[all …]
DIntegerResourceLoader.java15 String resourceName = resourceExtractor.getResourceName(resourceId); in getValue() local
16 if (resourceName == null) { in getValue()
19 Integer value = integerResolver.getValue(resourceName); in getValue()
21 …throw new IllegalArgumentException("Got resource name " + resourceName + " from id " + resourceIdD… in getValue()
27 public int getValue( String resourceName, boolean isSystem ) { in getValue() argument
28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem); in getValue()
29 if (resourceName == null) { in getValue()
30 … throw new IllegalArgumentException("No such resource (" + isSystem + "): " + resourceName); in getValue()
DColorResourceLoader.java32 String resourceName = resourceExtractor.getResourceName(colorId); in getValue() local
33 if (resourceName == null) { in getValue()
37 Integer colorResolverValue = colorResolver.getValue(resourceName); in getValue()
DStringResourceLoader.java16 public String getValue(String resourceName, boolean isSystem) { in getValue() argument
17 return getValue(resourceExtractor.getResourceId(resourceName, isSystem)); in getValue()
DDimenResourceLoader.java19 public float getValue(String resourceName, boolean isSystem) { in getValue() argument
20 return getValue(resourceExtractor.getResourceId(resourceName, isSystem)); in getValue()
DRawResourceLoader.java20 String resourceName = resourceFileName.substring("/raw".length()); in getValue() local
36 if (fileBaseName.equals(resourceName)) { in getValue()
DXTagXmlResourceLoader.java40 String resourceName = toResourceName( xmlFile ); in processResourceXml() local
41 if ( xPathXmlFiles.contains( resourceName ) ) in processResourceXml()
DDrawableResourceLoader.java134 String resourceName = resourceExtractor.getResourceName(resourceId); in getDrawableIds() local
135 Document document = documents.get(resourceName); in getDrawableIds()
141 if (resourceName.startsWith("android:")) { in getDrawableIds()
/external/icu/android_icu4j/src/main/java/android/icu/impl/data/
DResourceReader.java38 private String resourceName; field in ResourceReader
59 public ResourceReader(String resourceName, String encoding) in ResourceReader() argument
61 this(ICUData.class, "data/" + resourceName, encoding); in ResourceReader()
70 public ResourceReader(String resourceName) { in ResourceReader() argument
71 this(ICUData.class, "data/" + resourceName); in ResourceReader()
84 public ResourceReader(Class<?> rootClass, String resourceName, String encoding) in ResourceReader() argument
87 this.resourceName = resourceName; in ResourceReader()
99 public ResourceReader(InputStream is, String resourceName, String encoding) { in ResourceReader() argument
101 this.resourceName = resourceName; in ResourceReader()
123 public ResourceReader(InputStream is, String resourceName) { in ResourceReader() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/data/
DResourceReader.java36 private String resourceName; field in ResourceReader
57 public ResourceReader(String resourceName, String encoding) in ResourceReader() argument
59 this(ICUData.class, "data/" + resourceName, encoding); in ResourceReader()
68 public ResourceReader(String resourceName) { in ResourceReader() argument
69 this(ICUData.class, "data/" + resourceName); in ResourceReader()
82 public ResourceReader(Class<?> rootClass, String resourceName, String encoding) in ResourceReader() argument
85 this.resourceName = resourceName; in ResourceReader()
97 public ResourceReader(InputStream is, String resourceName, String encoding) { in ResourceReader() argument
99 this.resourceName = resourceName; in ResourceReader()
121 public ResourceReader(InputStream is, String resourceName) { in ResourceReader() argument
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/exceptions/
DJSilverBadSyntaxException.java24 private final String resourceName; field in JSilverBadSyntaxException
48 public JSilverBadSyntaxException(String message, String lineContent, String resourceName, in JSilverBadSyntaxException() argument
50 super(makeMessage(message, lineContent, resourceName, line, column), cause); in JSilverBadSyntaxException()
51 this.resourceName = resourceName; in JSilverBadSyntaxException()
56 private static String makeMessage(String message, String lineContent, String resourceName, in makeMessage() argument
59 if (resourceName != null) { in makeMessage()
60 result.append(" resource=").append(resourceName); in makeMessage()
78 return resourceName; in getResourceName()
DJSilverAutoEscapingException.java37 private static String createMessage(String message, String resourceName, int line, int column) { in createMessage() argument
39 if (resourceName != null) { in createMessage()
40 result.append(" resource=").append(resourceName); in createMessage()
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java155 private final String resourceName; field in ClassPath.ResourceInfo
158 static ResourceInfo of(String resourceName, ClassLoader loader) { in of() argument
159 if (resourceName.endsWith(CLASS_FILE_NAME_EXTENSION)) { in of()
160 return new ClassInfo(resourceName, loader); in of()
162 return new ResourceInfo(resourceName, loader); in of()
166 ResourceInfo(String resourceName, ClassLoader loader) { in ResourceInfo() argument
167 this.resourceName = checkNotNull(resourceName); in ResourceInfo()
173 return checkNotNull(loader.getResource(resourceName), in url()
174 "Failed to load resource: %s", resourceName); in url()
179 return resourceName; in getResourceName()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/autoescape/
DAutoEscapeContext.java113 private String resourceName; field in AutoEscapeContext
135 public AutoEscapeContext(EscapeMode mode, String resourceName) { in AutoEscapeContext() argument
136 this.resourceName = resourceName; in AutoEscapeContext()
147 autoEscapeContext.resourceName = resourceName; in cloneCurrentEscapeContext()
168 return resourceName; in getResourceName()
241 "Attempting to start HTML parser in unsupported mode" + mode, resourceName); in createHtmlParser()
257 + mode, resourceName); in createHtmlParser()
272 throw new JSilverAutoEscapingException("Error in HtmlParser: " + e, resourceName); in parseData()
287 throw new JSilverAutoEscapingException("Error during insertText(): " + e, resourceName, in insertText()
379 + state.toString(), resourceName, htmlParser.getLineNumber(), htmlParser.getColumnNumber()); in getCurrentState()
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_HttpServer.java222 String resourceName = ""; in run() local
232 resourceName = line.substring(start, end); in run()
265 if (resourceName.equals(CHUNKEDTEST)) { in run()
267 } else if (resourceName.equals(CONTENTTEST)) { in run()
269 } else if (resourceName.equals(AUTHTEST)) { in run()
271 } else if (resourceName.startsWith(REDIRECTTEST)) { in run()
272 redirectTest(resourceName); in run()
274 && resourceName.equals(PORTREDIRTEST)) { in run()
276 } else if (resourceName.equals(OTHERTEST)) { in run()
278 } else if (resourceName.equals(HEADERSTEST)) { in run()
[all …]
/external/guava/guava/src/com/google/common/io/
DResources.java192 public static URL getResource(String resourceName) { in getResource() argument
196 URL url = loader.getResource(resourceName); in getResource()
197 checkArgument(url != null, "resource %s not found.", resourceName); in getResource()
207 public static URL getResource(Class<?> contextClass, String resourceName) { in getResource() argument
208 URL url = contextClass.getResource(resourceName); in getResource()
210 resourceName, contextClass.getName()); in getResource()
/external/svox/pico/lib/
Dpicorsrc.c172 picorsrc_resource_name_t resourceName[PICO_MAX_NUM_RSRC_PER_VOICE]; member
259 static pico_status_t findResource(picorsrc_ResourceManager this, picoos_char * resourceName, picors… in findResource() argument
265 while (NULL != r && (0 != picoos_strcmp(r->name,resourceName))) { in findResource()
272 static picoos_uint8 isResourceLoaded(picorsrc_ResourceManager this, picoos_char * resourceName) { in isResourceLoaded() argument
275 if (PICO_OK == findResource(this, resourceName,&res)){ in isResourceLoaded()
815 picoos_char * voiceName, picoos_char * resourceName) in picorsrc_addResourceToVoiceDefinition() argument
827 if (picoos_strlcpy(vdef->resourceName[vdef->numResources++], resourceName, in picorsrc_addResourceToVoiceDefinition()
829 PICODBG_DEBUG(("vdef added resource '%s' to voice '%s'",resourceName,voiceName)); in picorsrc_addResourceToVoiceDefinition()
832 PICODBG_ERROR(("illegal name (%s)",resourceName)); in picorsrc_addResourceToVoiceDefinition()
833 …oos_emRaiseException(this->common->em,PICO_EXC_NAME_ILLEGAL,NULL,(picoos_char *)"%s",resourceName); in picorsrc_addResourceToVoiceDefinition()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DOutputPropertiesFactory.java346 final String resourceName, in loadPropertiesFile() argument
369 .getResourceAsStream(resourceName); in loadPropertiesFile()
377 .getResourceAsStream(resourceName); in loadPropertiesFile()
394 new Object[] { resourceName }), in loadPropertiesFile()
411 new Object[] { resourceName }), in loadPropertiesFile()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.core.resources.compatibility_3.4.0.v20090505.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/glide/testutil/src/main/java/com/bumptech/glide/testutil/
DTestUtil.java15 public static byte[] resourceToBytes(Class testClass, String resourceName) throws IOException { in resourceToBytes() argument
16 return isToBytes(TestResourceUtil.openResource(testClass, resourceName)); in resourceToBytes()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DReplaceSelectedJavadoc.java92 public static ReplaceSelectedJavadoc createFromResource(String resourceName) throws IOException { in createFromResource() argument
94 InputStream is = classLoader.getResourceAsStream(resourceName); in createFromResource()
96 throw new FileNotFoundException("Unknown resource: " + resourceName); in createFromResource()
/external/apache-xml/src/main/java/org/apache/xml/utils/res/
DXResourceBundle.java67 String resourceName = className + suffix; in loadResourceBundle() local
68 return (XResourceBundle) ResourceBundle.getBundle(resourceName, locale); in loadResourceBundle()

1234