HomeSort by relevance Sort by last modified time
    Searched refs:resourceName (Results 1 - 25 of 863) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/icu/android_icu4j/src/main/java/android/icu/impl/
ICUData.java 94 public static boolean exists(final String resourceName) {
100 return ICUData.class.getResource(resourceName);
104 i = ICUData.class.getResource(resourceName);
109 private static InputStream getStream(final Class<?> root, final String resourceName, boolean required) {
115 return root.getResourceAsStream(resourceName);
119 i = root.getResourceAsStream(resourceName);
123 throw new MissingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resourceName);
125 checkStreamForBinaryData(i, resourceName);
132 static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required)
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
ICUData.java 92 public static boolean exists(final String resourceName) {
98 return ICUData.class.getResource(resourceName);
102 i = ICUData.class.getResource(resourceName);
107 private static InputStream getStream(final Class<?> root, final String resourceName, boolean required) {
113 return root.getResourceAsStream(resourceName);
117 i = root.getResourceAsStream(resourceName);
121 throw new MissingResourceException("could not locate data " +resourceName, root.getPackage().getName(), resourceName);
123 checkStreamForBinaryData(i, resourceName);
130 static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required)
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/data/
ResourceReader.java 40 private String resourceName;
54 * @param resourceName the name of the text file located in this
61 public ResourceReader(String resourceName, String encoding)
63 this(ICUData.class, "data/" + resourceName, encoding);
69 * @param resourceName the name of the text file located in this
72 public ResourceReader(String resourceName) {
73 this(ICUData.class, "data/" + resourceName);
79 * @param resourceName the name of the text file located in the
86 public ResourceReader(Class<?> rootClass, String resourceName, String encoding)
89 this.resourceName = resourceName
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/data/
ResourceReader.java 38 private String resourceName;
52 * @param resourceName the name of the text file located in this
59 public ResourceReader(String resourceName, String encoding)
61 this(ICUData.class, "data/" + resourceName, encoding);
67 * @param resourceName the name of the text file located in this
70 public ResourceReader(String resourceName) {
71 this(ICUData.class, "data/" + resourceName);
77 * @param resourceName the name of the text file located in the
84 public ResourceReader(Class<?> rootClass, String resourceName, String encoding)
87 this.resourceName = resourceName
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
ResourceExtractor.java 50 public Integer getResourceId(String resourceName) {
51 if (resourceName.contains("android:")) { // namespace needed for platform files
52 return getResourceId(resourceName, true);
54 return getResourceId(resourceName, false);
63 public Integer getResourceId(String resourceName, boolean isSystemResource) {
64 if (resourceName == null ) {
67 if (resourceName.equals("@null")) {
71 if (resourceName.startsWith("@+id")) {
72 resourceName = resourceName.substring(2)
    [all...]
IntegerResourceLoader.java 15 String resourceName = resourceExtractor.getResourceName(resourceId);
16 if (resourceName == null) {
19 Integer value = integerResolver.getValue(resourceName);
21 throw new IllegalArgumentException("Got resource name " + resourceName + " from id " + resourceIdDebugString
27 public int getValue( String resourceName, boolean isSystem ) {
28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem);
29 if (resourceName == null) {
30 throw new IllegalArgumentException("No such resource (" + isSystem + "): " + resourceName);
DimenResourceLoader.java 19 public float getValue(String resourceName, boolean isSystem) {
20 return getValue(resourceExtractor.getResourceId(resourceName, isSystem));
StringResourceLoader.java 16 public String getValue(String resourceName, boolean isSystem) {
17 return getValue(resourceExtractor.getResourceId(resourceName, isSystem));
  /external/jsilver/src/com/google/clearsilver/jsilver/exceptions/
JSilverBadSyntaxException.java 24 private final String resourceName;
40 * @param resourceName name of a file where error occurred (can be null)
41 * @param line number of a line in {@code resourceName} where error occurred (ignored if set to
43 * @param column number of a column in {@code resourceName} where error occurred (ignored if set
48 public JSilverBadSyntaxException(String message, String lineContent, String resourceName,
50 super(makeMessage(message, lineContent, resourceName, line, column), cause);
51 this.resourceName = resourceName;
56 private static String makeMessage(String message, String lineContent, String resourceName,
59 if (resourceName != null)
    [all...]
JSilverAutoEscapingException.java 37 private static String createMessage(String message, String resourceName, int line, int column) {
39 if (resourceName != null) {
40 result.append(" resource=").append(resourceName);
  /tools/apksig/src/test/java/com/android/apksig/internal/util/
Resources.java 41 public static byte[] toByteArray(Class<?> cls, String resourceName) throws IOException {
42 try (InputStream in = cls.getResourceAsStream(resourceName)) {
44 throw new IllegalArgumentException("Resource not found: " + resourceName);
51 Class <?> cls, String resourceName) throws IOException, CertificateException {
52 try (InputStream in = cls.getResourceAsStream(resourceName)) {
54 throw new IllegalArgumentException("Resource not found: " + resourceName);
62 Class <?> cls, String resourceName) throws IOException, CertificateException {
64 try (InputStream in = cls.getResourceAsStream(resourceName)) {
66 throw new IllegalArgumentException("Resource not found: " + resourceName);
77 public static PrivateKey toPrivateKey(Class <?> cls, String resourceName)
    [all...]
  /frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
ResourceExpr.java 53 String resourceName, List<Expr> args) {
62 mResourceId = resourceName;
173 final String resourceName = mPackage + "R." + getResourceObject() + "." + mResourceId;
174 if ("anim".equals(mResourceType)) return "android.view.animation.AnimationUtils.loadAnimation(" + context + ", " + resourceName + ")";
175 if ("animator".equals(mResourceType)) return "android.animation.AnimatorInflater.loadAnimator(" + context + ", " + resourceName + ")";
176 if ("bool".equals(mResourceType)) return resources + ".getBoolean(" + resourceName + ")";
177 if ("color".equals(mResourceType)) return "android.databinding.DynamicUtil.getColorFromResource(" + viewName + ", " + resourceName + ")";
178 if ("colorStateList".equals(mResourceType)) return "android.databinding.DynamicUtil.getColorStateListFromResource(" + viewName + ", " + resourceName + ")";
179 if ("dimen".equals(mResourceType)) return resources + ".getDimension(" + resourceName + ")";
180 if ("dimenOffset".equals(mResourceType)) return resources + ".getDimensionPixelOffset(" + resourceName + ")"
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
Intent_ShortcutIconResourceTest.java 42 String resourceName = mContext.getResources().getResourceName(
52 String resourceName = mContext.getResources().getResourceName(
58 assertEquals(resourceName, mShortcutIconResource.resourceName);
74 assertEquals(mShortcutIconResource.resourceName, target.resourceName);
  /external/glide/testutil/src/main/java/com/bumptech/glide/testutil/
TestUtil.java 15 public static byte[] resourceToBytes(Class testClass, String resourceName) throws IOException {
16 return isToBytes(TestResourceUtil.openResource(testClass, resourceName));
  /external/skia/src/gpu/
GrGpuResource.cpp 81 const SkString& resourceName,
88 traceMemoryDump->dumpNumericValue(resourceName.c_str(), "size", "bytes", size);
89 traceMemoryDump->dumpStringValue(resourceName.c_str(), "type", type);
90 traceMemoryDump->dumpStringValue(resourceName.c_str(), "category", tag);
92 traceMemoryDump->dumpNumericValue(resourceName.c_str(), "purgeable_size", "bytes", size);
95 this->setMemoryBacking(traceMemoryDump, resourceName);
100 SkString resourceName("skia/gpu_resources/resource_");
101 resourceName.appendU32(this->uniqueID().asUInt());
102 return resourceName;
  /external/guava/guava/src/com/google/common/io/
Resources.java 179 * Returns a {@code URL} pointing to {@code resourceName} if the resource is
192 public static URL getResource(String resourceName) {
196 URL url = loader.getResource(resourceName);
197 checkArgument(url != null, "resource %s not found.", resourceName);
202 * Given a {@code resourceName} that is relative to {@code contextClass},
207 public static URL getResource(Class<?> contextClass, String resourceName) {
208 URL url = contextClass.getResource(resourceName);
210 resourceName, contextClass.getName());
  /prebuilts/misc/common/android-support-test/espresso/
espresso_idling_resource_release_no_deps.jar 
  /frameworks/base/libs/hwui/pipeline/skia/
SkiaMemoryTracer.cpp 35 const char* SkiaMemoryTracer::mapName(const char* resourceName) {
37 if (SkStrContains(resourceName, resource.first)) {
78 const char* resourceName = mapName(mCurrentElement.c_str());
83 resourceName = categoryResult->second.units;
85 resourceName = "Other";
91 if (resourceName == nullptr) {
97 auto result = mResults.find(resourceName);
111 mResults.insert({resourceName, mCurrentValues});
  /external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
AbstractLexicalPreservingTest.java 48 protected String considerExample(String resourceName) throws IOException {
49 String code = readExample(resourceName);
54 protected String readExample(String resourceName) throws IOException {
55 return readResource("com/github/javaparser/lexical_preservation_samples/" + resourceName + ".java.txt");
  /packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
BaseCustomization.java 75 public final Optional<Boolean> getBooleanResource(Context context, String resourceName) {
76 if (resourceName.isEmpty()) {
84 : res.getIdentifier(resourceName, RES_TYPE_BOOLEAN, packageName);
86 Log.d(TAG, "Boolean resource " + resourceName + " has " + resId);
  /external/skia/src/gpu/gl/
GrGLTextureRenderTarget.cpp 45 SkString resourceName = this->getResourceName();
46 resourceName.append("/texture_renderbuffer");
47 this->dumpMemoryStatisticsPriv(traceMemoryDump, resourceName, "RenderTarget",
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
ResIdSubject.java 69 String resourceName = "<" + resIdToString(getSubject()) + ">";
72 return customName + " " + resourceName;
74 return resourceName;
  /external/guava/guava/src/com/google/common/reflect/
ClassPath.java 155 private final String resourceName;
158 static ResourceInfo of(String resourceName, ClassLoader loader) {
159 if (resourceName.endsWith(CLASS_FILE_NAME_EXTENSION)) {
160 return new ClassInfo(resourceName, loader);
162 return new ResourceInfo(resourceName, loader);
166 ResourceInfo(String resourceName, ClassLoader loader) {
167 this.resourceName = checkNotNull(resourceName);
173 return checkNotNull(loader.getResource(resourceName),
174 "Failed to load resource: %s", resourceName);
    [all...]
  /external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
ResourceRemapper.java 79 String resourceName = resourceType + "/" + field.getName();
80 Integer value = resIds.get(resourceName);
88 resIds.put(resourceName, remappedValue);
92 resIds.put(resourceName, field.getInt(null));
96 resIds.put(resourceName, remappedValue);
  /external/jsilver/src/com/google/clearsilver/jsilver/autoescape/
AutoEscapeContext.java 113 private String resourceName;
129 * Create a new context in the state represented by mode. If a non-null resourceName is provided,
133 * @param resourceName Name of the resource being auto escaped.
135 public AutoEscapeContext(EscapeMode mode, String resourceName) {
136 this.resourceName = resourceName;
147 autoEscapeContext.resourceName = resourceName;
168 return resourceName;
241 "Attempting to start HTML parser in unsupported mode" + mode, resourceName);
    [all...]

Completed in 1544 milliseconds

1 2 3 4 5 6 7 8 91011>>