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

1 2 3 4 5 6 7 8 91011

  /frameworks/base/tools/aapt2/
Resource.cpp 25 StringPiece16 toString(ResourceType type) {
27 case ResourceType::kAnim: return u"anim";
28 case ResourceType::kAnimator: return u"animator";
29 case ResourceType::kArray: return u"array";
30 case ResourceType::kAttr: return u"attr";
31 case ResourceType::kAttrPrivate: return u"^attr-private";
32 case ResourceType::kBool: return u"bool";
33 case ResourceType::kColor: return u"color";
34 case ResourceType::kDimen: return u"dimen";
35 case ResourceType::kDrawable: return u"drawable"
    [all...]
Resource_test.cpp 24 const ResourceType* type = parseResourceType(u"anim");
26 EXPECT_EQ(*type, ResourceType::kAnim);
30 EXPECT_EQ(*type, ResourceType::kAnimator);
34 EXPECT_EQ(*type, ResourceType::kArray);
38 EXPECT_EQ(*type, ResourceType::kAttr);
42 EXPECT_EQ(*type, ResourceType::kAttrPrivate);
46 EXPECT_EQ(*type, ResourceType::kBool);
50 EXPECT_EQ(*type, ResourceType::kColor);
54 EXPECT_EQ(*type, ResourceType::kDimen);
58 EXPECT_EQ(*type, ResourceType::kDrawable)
    [all...]
ResourceUtils_test.cpp 51 EXPECT_EQ(ResourceNameRef(u"android", ResourceType::kColor, u"foo"), actual);
55 EXPECT_EQ(ResourceNameRef({}, ResourceType::kColor, u"foo"), actual);
59 EXPECT_EQ(ResourceNameRef(u"android", ResourceType::kColor, u"foo"), actual);
66 ResourceNameRef expected({}, ResourceType::kColor, u"foo");
77 ResourceNameRef expected(u"android", ResourceType::kColor, u"foo");
89 ResourceNameRef expected(u"android", ResourceType::kColor, u"foo");
101 ResourceNameRef expected(u"android", ResourceType::kId, u"foo");
113 ResourceNameRef expected(u"android", ResourceType::kId, u"foo");
153 const ResourceName kAndroidStyleFooName(u"android", ResourceType::kStyle, u"foo");
154 const ResourceName kStyleFooName({}, ResourceType::kStyle, u"foo")
    [all...]
Resource.h 37 enum class ResourceType {
63 StringPiece16 toString(ResourceType type);
66 * Returns a pointer to a valid ResourceType, or nullptr if
69 const ResourceType* parseResourceType(const StringPiece16& str);
77 ResourceType type;
80 ResourceName() : type(ResourceType::kRaw) {}
81 ResourceName(const StringPiece16& p, ResourceType t, const StringPiece16& e);
95 ResourceType type;
102 ResourceNameRef(const StringPiece16& p, ResourceType t, const StringPiece16& e);
244 // ResourceType implementation
    [all...]
  /external/ImageMagick/MagickCore/
resource_.h 38 } ResourceType;
46 AcquireMagickResource(const ResourceType,const MagickSizeType),
50 SetMagickResourceLimit(const ResourceType,const MagickSizeType);
53 GetMagickResource(const ResourceType),
54 GetMagickResourceLimit(const ResourceType);
57 RelinquishMagickResource(const ResourceType,const MagickSizeType);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DynamicIdMap.java 19 import com.android.resources.ResourceType;
28 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<Pair<ResourceType, String>, Integer>();
29 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<ResourceType, String>>();
50 public Integer getId(ResourceType type, String name) {
61 public Integer getId(Pair<ResourceType, String> resource) {
72 public Pair<ResourceType, String> resolveId(int id) {
ProjectResources.java 31 import com.android.resources.ResourceType;
60 /** Map of (name, id) for resources of type {@link ResourceType#ID} coming from R.java */
61 private Map<ResourceType, Map<String, Integer>> mResourceValueMap;
63 private Map<Integer, Pair<ResourceType, String>> mResIdValueToNameMap;
91 * @return a map with guaranteed to contain an entry for each {@link ResourceType}
95 public Map<ResourceType, Map<String, ResourceValue>> getConfiguredResources(
99 Map<ResourceType, Map<String, ResourceValue>> resultMap =
100 new EnumMap<ResourceType, Map<String, ResourceValue>>(ResourceType.class);
122 Map<ResourceType, Map<String, ResourceValue>> libMap
    [all...]
CompiledResourcesMonitor.java 30 import com.android.resources.ResourceType;
52 * {@link ResourceType#ID}.
221 Map<ResourceType, Map<String, Integer>> resourceValueMap =
222 new EnumMap<ResourceType, Map<String, Integer>>(ResourceType.class);
223 Map<Integer, Pair<ResourceType, String>> genericValueToNameMap =
224 new HashMap<Integer, Pair<ResourceType, String>>();
255 Map<Integer, Pair<ResourceType, String>> genericValueToNameMap,
256 Map<IntArrayWrapper, String> styleableValueToNameMap, Map<ResourceType,
261 ResourceType resType = ResourceType.getEnum(resTypeName)
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
ResourceHelperTest.java 22 import com.android.resources.ResourceType;
124 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.ANIMATOR));
125 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT));
127 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.STRING));
128 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.DIMEN));
129 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.ID));
132 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.DRAWABLE));
133 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.COLOR));
137 assertTrue(ResourceHelper.isValueBasedResourceType(ResourceType.STRING));
138 assertTrue(ResourceHelper.isValueBasedResourceType(ResourceType.DIMEN))
    [all...]
ResourceNameValidatorTest.java 20 import com.android.resources.ResourceType;
48 ResourceType.STRING).isValid("foo") != null);
71 ResourceType.ID);
85 ResourceType.ID);
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/
RenameResourceXmlTextActionTest.java 19 import com.android.resources.ResourceType;
34 checkWord(" @string/nam^e ", getUrl(ResourceType.STRING, "name"));
35 checkWord("@string/nam^e ", getUrl(ResourceType.STRING, "name"));
36 checkWord("\"^@string/name ", getUrl(ResourceType.STRING, "name"));
37 checkWord("^@string/name ", getUrl(ResourceType.STRING, "name"));
38 checkWord("\n^@string/name ", getUrl(ResourceType.STRING, "name"));
39 checkWord("\n^@string/name(", getUrl(ResourceType.STRING, "name"));
40 checkWord("\n^@string/name;", getUrl(ResourceType.STRING, "name"));
41 checkWord("\n^@string/name5", getUrl(ResourceType.STRING, "name5"));
42 checkWord("\n@string/name5^", getUrl(ResourceType.STRING, "name5"))
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DynamicIdMap.java 19 import com.android.resources.ResourceType;
30 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<>();
31 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<>();
53 public Integer getId(ResourceType type, String name) {
65 public Integer getId(Pair<ResourceType, String> resource) {
76 public Pair<ResourceType, String> resolveId(int id) {
  /external/glide/library/src/main/java/com/bumptech/glide/
GenericTranscodeRequest.java 30 * @param <ResourceType> The type of resource to be decoded from the the data.
32 public class GenericTranscodeRequest<ModelType, DataType, ResourceType>
33 extends GenericRequestBuilder<ModelType, DataType, ResourceType, ResourceType> implements DownloadOptions {
36 private final Class<ResourceType> resourceClass;
46 Class<ResourceType> transcodeClass, GenericRequestBuilder<ModelType, ?, ?, ?> other,
47 ModelLoader<ModelType, DataType> modelLoader, Class<DataType> dataClass, Class<ResourceType> resourceClass,
49 super(build(other.glide, modelLoader, dataClass, resourceClass, UnitTranscoder.<ResourceType>get()),
58 ModelLoader<ModelType, DataType> modelLoader, Class<DataType> dataClass, Class<ResourceType> resourceClass,
61 UnitTranscoder.<ResourceType>get()), resourceClass, glide, requestTracker, lifecycle)
    [all...]
GenericRequestBuilder.java 46 * @param <ResourceType> The type of the resource that will be loaded.
49 public class GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> implements Cloneable {
56 private ChildLoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider;
77 private Transformation<ResourceType> transformation = UnitTransformation.get();
80 GenericRequestBuilder(LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider,
92 LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider,
101 ? new ChildLoadProvider<ModelType, DataType, ResourceType, TranscodeType>(loadProvider) : null;
126 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> thumbnail(
158 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> thumbnail(
176 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> sizeMultiplier
    [all...]
  /frameworks/base/libs/hwui/
ResourceCache.h 38 enum ResourceType {
45 ResourceReference(ResourceType type) {
46 refCount = 0; destroyed = false; resourceType = type;
51 ResourceType resourceType;
82 void incrementRefcount(void* resource, ResourceType resourceType);
83 void incrementRefcountLocked(void* resource, ResourceType resourceType);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
ResourceContentProvider.java 22 import com.android.resources.ResourceType;
35 * <li>{@link ResourceType}. This represents the list of existing Resource Type present
72 if (parentElement instanceof ResourceType) {
74 (ResourceType)parentElement).toArray();
91 if (element instanceof ResourceType) {
92 return mResources.hasResourcesOfType((ResourceType)element);
104 List<ResourceType> types = mResources.getAvailableResourceTypes();
ReferenceChooserDialog.java 25 import com.android.resources.ResourceType;
120 ResourceType resourceType = (ResourceType)treeSelection.getFirstSegment();
123 mCurrentResource = resourceItem.getXmlString(resourceType, false /* system */);
204 ResourceType type = null;
207 if (segment instanceof ResourceType) {
208 type = (ResourceType) segment;
273 ResourceType type = getSelectedResourceType();
276 mNewResButton.setEnabled(type == ResourceType.STRING)
    [all...]
ResourceLabelProvider.java 21 import com.android.resources.ResourceType;
34 * <li>{@link ResourceType}. This represents the list of existing Resource Type present
115 if (element instanceof ResourceType) {
116 return ((ResourceType)element).getDisplayName();
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
ReferenceAttributeDescriptor.java 27 import com.android.resources.ResourceType;
39 * The {@link ResourceType} that this reference attribute can accept. It can be null,
42 private ResourceType mResourceType;
52 ResourceType.DRAWABLE,
72 * {@link ResourceType}.
73 * @param resourceType The specific {@link ResourceType} that this reference attribute supports.
80 public ReferenceAttributeDescriptor(ResourceType resourceType,
83 mResourceType = resourceType;
    [all...]
  /frameworks/base/tools/aapt2/link/
PrivateAttributeMover_test.cpp 43 ResourceTableType* type = package->findType(ResourceType::kAttr);
49 type = package->findType(ResourceType::kAttrPrivate);
70 ResourceTableType* type = package->findType(ResourceType::kAttr);
74 type = package->findType(ResourceType::kAttrPrivate);
PrivateAttributeMover.cpp 58 ResourceTableType* type = package->findType(ResourceType::kAttr);
68 ResourceTableType* privAttrType = package->findOrCreateType(ResourceType::kAttrPrivate);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
ConfigurationClient.java 24 import com.android.resources.ResourceType;
90 Map<ResourceType, Map<String, ResourceValue>> getConfiguredProjectResources();
99 Map<ResourceType, Map<String, ResourceValue>> getConfiguredFrameworkResources();
  /external/skia/src/gpu/
GrIndexBuffer.h 20 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType();
GrVertexBuffer.h 19 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType();
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/descriptors/
ThemeAttributeDescriptor.java 26 import com.android.resources.ResourceType;
55 return new UiResourceAttributeNode(ResourceType.STYLE, this, uiParent);

Completed in 1997 milliseconds

1 2 3 4 5 6 7 8 91011