Home
last modified time | relevance | path

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

1234

/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUData.java94 public static boolean exists(final String resourceName) { in exists() argument
100 return ICUData.class.getResource(resourceName); in exists()
104 i = ICUData.class.getResource(resourceName); in exists()
109 …private static InputStream getStream(final Class<?> root, final String resourceName, boolean requi… in getStream() argument
115 return root.getResourceAsStream(resourceName); in getStream()
119 i = root.getResourceAsStream(resourceName); in getStream()
123 …ssingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resour… in getStream()
125 checkStreamForBinaryData(i, resourceName); in getStream()
132 …static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required… in getStream() argument
138 return loader.getResourceAsStream(resourceName); in getStream()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUData.java92 public static boolean exists(final String resourceName) { in exists() argument
98 return ICUData.class.getResource(resourceName); in exists()
102 i = ICUData.class.getResource(resourceName); in exists()
107 …private static InputStream getStream(final Class<?> root, final String resourceName, boolean requi… in getStream() argument
113 return root.getResourceAsStream(resourceName); in getStream()
117 i = root.getResourceAsStream(resourceName); in getStream()
121 …ssingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resour… in getStream()
123 checkStreamForBinaryData(i, resourceName); in getStream()
130 …static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required… in getStream() argument
136 return loader.getResourceAsStream(resourceName); in getStream()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/data/
DResourceReader.java40 private String resourceName; field in ResourceReader
61 public ResourceReader(String resourceName, String encoding) in ResourceReader() argument
63 this(ICUData.class, "data/" + resourceName, encoding); in ResourceReader()
72 public ResourceReader(String resourceName) { in ResourceReader() argument
73 this(ICUData.class, "data/" + resourceName); in ResourceReader()
86 public ResourceReader(Class<?> rootClass, String resourceName, String encoding) in ResourceReader() argument
89 this.resourceName = resourceName; in ResourceReader()
101 public ResourceReader(InputStream is, String resourceName, String encoding) { in ResourceReader() argument
103 this.resourceName = resourceName; in ResourceReader()
125 public ResourceReader(InputStream is, String resourceName) { in ResourceReader() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/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/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/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DResourceEntry.java33 private final String resourceName; field in ResourceEntry
43 String resourceName; in fromBundle() local
51 resourceName = bundle.getString(KEY_RESOURCE_NAME); in fromBundle()
53 return new ResourceEntry(packageName, resourceName, resourceId); in fromBundle()
56 public ResourceEntry(String packageName, String resourceName, int resourceId) { in ResourceEntry() argument
58 this.resourceName = resourceName; in ResourceEntry()
67 return this.resourceName; in getResourceName()
82 result.putString(KEY_RESOURCE_NAME, resourceName); in toBundle()
DPartnerConfig.java153 private final String resourceName; field in PartnerConfig
161 return resourceName; in getResourceName()
164 PartnerConfig(@PartnerConfigKey String resourceName, ResourceType type) { in PartnerConfig() argument
165 this.resourceName = resourceName; in PartnerConfig()
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/
DResources.java43 static File getResourceAsTempFile(String resourceName) throws IOException { in getResourceAsTempFile() argument
44 checkArgument(!Strings.isNullOrEmpty(resourceName), "resourceName"); in getResourceAsTempFile()
46 File file = File.createTempFile(resourceName, ".tmp"); in getResourceAsTempFile()
49 getResourceAsTempFile(resourceName, file, os); in getResourceAsTempFile()
57 static void getResourceAsTempFile(String resourceName, File file, OutputStream outputStream) in getResourceAsTempFile() argument
61 InputStream is = getResourceAsStream(resourceName); in getResourceAsTempFile()
69 private static InputStream getResourceAsStream(String resourceName) throws FileNotFoundException { in getResourceAsStream() argument
70 InputStream is = Resources.class.getResourceAsStream(resourceName); in getResourceAsStream()
73 "Cannot find resource '" + resourceName + "' on the class path."); in getResourceAsStream()
/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/skqp/src/gpu/
DGrGpuResource.cpp79 const SkString& resourceName, in dumpMemoryStatisticsPriv() argument
86 traceMemoryDump->dumpNumericValue(resourceName.c_str(), "size", "bytes", size); in dumpMemoryStatisticsPriv()
87 traceMemoryDump->dumpStringValue(resourceName.c_str(), "type", type); in dumpMemoryStatisticsPriv()
88 traceMemoryDump->dumpStringValue(resourceName.c_str(), "category", tag); in dumpMemoryStatisticsPriv()
90 traceMemoryDump->dumpNumericValue(resourceName.c_str(), "purgeable_size", "bytes", size); in dumpMemoryStatisticsPriv()
93 this->setMemoryBacking(traceMemoryDump, resourceName); in dumpMemoryStatisticsPriv()
109 SkString resourceName("skia/gpu_resources/resource_"); in getResourceName() local
110 resourceName.appendU32(this->uniqueID().asUInt()); in getResourceName()
111 return resourceName; in getResourceName()
/external/skia/src/gpu/
DGrGpuResource.cpp79 const SkString& resourceName, in dumpMemoryStatisticsPriv() argument
86 traceMemoryDump->dumpNumericValue(resourceName.c_str(), "size", "bytes", size); in dumpMemoryStatisticsPriv()
87 traceMemoryDump->dumpStringValue(resourceName.c_str(), "type", type); in dumpMemoryStatisticsPriv()
88 traceMemoryDump->dumpStringValue(resourceName.c_str(), "category", tag); in dumpMemoryStatisticsPriv()
90 traceMemoryDump->dumpNumericValue(resourceName.c_str(), "purgeable_size", "bytes", size); in dumpMemoryStatisticsPriv()
93 this->setMemoryBacking(traceMemoryDump, resourceName); in dumpMemoryStatisticsPriv()
109 SkString resourceName("skia/gpu_resources/resource_"); in getResourceName() local
110 resourceName.appendU32(this->uniqueID().asUInt()); in getResourceName()
111 return resourceName; in getResourceName()
/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/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResourceRemapper.java79 String resourceName = resourceType + "/" + field.getName(); in remapRClass() local
80 Integer value = resIds.get(resourceName); in remapRClass()
88 resIds.put(resourceName, remappedValue); in remapRClass()
92 resIds.put(resourceName, field.getInt(null)); in remapRClass()
96 resIds.put(resourceName, remappedValue); in remapRClass()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DAbstractLexicalPreservingTest.java48 protected String considerExample(String resourceName) throws IOException { in considerExample() argument
49 String code = readExample(resourceName); in considerExample()
54 protected String readExample(String resourceName) throws IOException { in readExample() argument
55 …return readResource("com/github/javaparser/lexical_preservation_samples/" + resourceName + ".java.… in readExample()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java32 public static String readResource(String resourceName) throws IOException { in readResource() argument
33 if (resourceName.startsWith("/")) { in readResource()
34 resourceName = resourceName.substring(1); in readResource()
36 …nputStream resourceAsStream = TestUtils.class.getClassLoader().getResourceAsStream(resourceName)) { in readResource()
38 fail("not found: " + resourceName); in readResource()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNotification.java132 private CharSequence findText(View view, String resourceName) { in findText() argument
133 TextView textView = (TextView) findView(view, resourceName); in findText()
137 private View findView(View view, String resourceName) { in findView() argument
138 View subView = view.findViewById(getInternalResourceId(resourceName)); in findView()
143 …throw new IllegalArgumentException("no id." + resourceName + " found in view:\n" + buf.toString()); in findView()
/external/cldr/tools/c/genldml/
DfilterRB.pl45 "--resource-name=s" => \$resourceName
51 usage() unless defined $resourceName;
65 if($line =~ /$resourceName/){
/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/skia/src/gpu/gl/
DGrGLTextureRenderTarget.cpp46 SkString resourceName = this->getResourceName(); in dumpMemoryStatistics()
47 resourceName.append("/texture_renderbuffer"); in dumpMemoryStatistics()
48 this->dumpMemoryStatisticsPriv(traceMemoryDump, resourceName, "RenderTarget", in dumpMemoryStatistics()
DGrGLTexture.cpp147 SkString resourceName = this->getResourceName(); in dumpMemoryStatistics() local
148 resourceName.append("/texture"); in dumpMemoryStatistics()
153 this->dumpMemoryStatisticsPriv(traceMemoryDump, resourceName, "Texture", in dumpMemoryStatistics()
158 traceMemoryDump->setMemoryBacking(resourceName.c_str(), "gl_texture", texture_id.c_str()); in dumpMemoryStatistics()
/external/skqp/src/gpu/gl/
DGrGLTextureRenderTarget.cpp46 SkString resourceName = this->getResourceName(); in dumpMemoryStatistics()
47 resourceName.append("/texture_renderbuffer"); in dumpMemoryStatistics()
48 this->dumpMemoryStatisticsPriv(traceMemoryDump, resourceName, "RenderTarget", in dumpMemoryStatistics()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DConfigMerger.java84 final String resourceName = Join.join("/", packageParts); in getConfigProperties() local
85 try (InputStream resourceAsStream = getResourceAsStream(resourceName)) { in getConfigProperties()
137 InputStream getResourceAsStream(String resourceName) { in getResourceAsStream() argument
138 return getClass().getClassLoader().getResourceAsStream(resourceName); in getResourceAsStream()

1234