/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | RenameResourceXmlTextActionTest.java | 19 import com.android.resources.ResourceType; 34 checkWord(" @string/nam^e ", getUrl(ResourceType.STRING, "name")); in test_Simple() 35 checkWord("@string/nam^e ", getUrl(ResourceType.STRING, "name")); in test_Simple() 36 checkWord("\"^@string/name ", getUrl(ResourceType.STRING, "name")); in test_Simple() 37 checkWord("^@string/name ", getUrl(ResourceType.STRING, "name")); in test_Simple() 38 checkWord("\n^@string/name ", getUrl(ResourceType.STRING, "name")); in test_Simple() 39 checkWord("\n^@string/name(", getUrl(ResourceType.STRING, "name")); in test_Simple() 40 checkWord("\n^@string/name;", getUrl(ResourceType.STRING, "name")); in test_Simple() 41 checkWord("\n^@string/name5", getUrl(ResourceType.STRING, "name5")); in test_Simple() 42 checkWord("\n@string/name5^", getUrl(ResourceType.STRING, "name5")); in test_Simple() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
D | ResourceHelperTest.java | 22 import com.android.resources.ResourceType; 124 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.ANIMATOR)); in testIsFileBasedResourceType() 125 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT)); in testIsFileBasedResourceType() 127 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.STRING)); in testIsFileBasedResourceType() 128 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.DIMEN)); in testIsFileBasedResourceType() 129 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.ID)); in testIsFileBasedResourceType() 132 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.DRAWABLE)); in testIsFileBasedResourceType() 133 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.COLOR)); in testIsFileBasedResourceType() 137 assertTrue(ResourceHelper.isValueBasedResourceType(ResourceType.STRING)); in testIsValueBasedResourceType() 138 assertTrue(ResourceHelper.isValueBasedResourceType(ResourceType.DIMEN)); in testIsValueBasedResourceType() [all …]
|
D | ResourceNameValidatorTest.java | 20 import com.android.resources.ResourceType; 48 ResourceType.STRING).isValid("foo") != null); in testValidator() 71 ResourceType.ID); in testIds() 85 ResourceType.ID); in testUniqueOrExists()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
D | DynamicIdMap.java | 19 import com.android.resources.ResourceType; 28 …private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<Pair<ResourceType… 29 …private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<Resour… 50 public Integer getId(ResourceType type, String name) { in getId() 61 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument 72 public Pair<ResourceType, String> resolveId(int id) { in resolveId()
|
D | ProjectResources.java | 31 import com.android.resources.ResourceType; 61 private Map<ResourceType, Map<String, Integer>> mResourceValueMap; 63 private Map<Integer, Pair<ResourceType, String>> mResIdValueToNameMap; 95 public Map<ResourceType, Map<String, ResourceValue>> getConfiguredResources( in getConfiguredResources() 99 Map<ResourceType, Map<String, ResourceValue>> resultMap = in getConfiguredResources() 100 new EnumMap<ResourceType, Map<String, ResourceValue>>(ResourceType.class); in getConfiguredResources() 122 Map<ResourceType, Map<String, ResourceValue>> libMap = in getConfiguredResources() 127 for (Entry<ResourceType, Map<String, ResourceValue>> libEntry : in getConfiguredResources() 149 Map<ResourceType, Map<String, ResourceValue>> thisProjectMap = in getConfiguredResources() 153 for (Entry<ResourceType, Map<String, ResourceValue>> entry : thisProjectMap.entrySet()) { in getConfiguredResources() [all …]
|
D | CompiledResourcesMonitor.java | 30 import com.android.resources.ResourceType; 221 Map<ResourceType, Map<String, Integer>> resourceValueMap = in loadAndParseRClass() 222 new EnumMap<ResourceType, Map<String, Integer>>(ResourceType.class); in loadAndParseRClass() 223 Map<Integer, Pair<ResourceType, String>> genericValueToNameMap = in loadAndParseRClass() 224 new HashMap<Integer, Pair<ResourceType, String>>(); in loadAndParseRClass() 255 Map<Integer, Pair<ResourceType, String>> genericValueToNameMap, in parseClass() argument 256 Map<IntArrayWrapper, String> styleableValueToNameMap, Map<ResourceType, in parseClass() argument 261 ResourceType resType = ResourceType.getEnum(resTypeName); in parseClass()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
D | ResourceContentProvider.java | 22 import com.android.resources.ResourceType; 72 if (parentElement instanceof ResourceType) { in getChildren() 74 (ResourceType)parentElement).toArray(); in getChildren() 91 if (element instanceof ResourceType) { in hasChildren() 92 return mResources.hasResourcesOfType((ResourceType)element); in hasChildren() 104 List<ResourceType> types = mResources.getAvailableResourceTypes(); in getElements()
|
D | ReferenceChooserDialog.java | 25 import com.android.resources.ResourceType; 120 ResourceType resourceType = (ResourceType)treeSelection.getFirstSegment(); in computeResult() 204 ResourceType type = null; in handleSelection() 207 if (segment instanceof ResourceType) { in handleSelection() 208 type = (ResourceType) segment; in handleSelection() 273 ResourceType type = getSelectedResourceType(); in updateNewResButton() 276 mNewResButton.setEnabled(type == ResourceType.STRING); in updateNewResButton() 292 ResourceType type = getSelectedResourceType(); in widgetSelected() 295 if (type == ResourceType.STRING) { in widgetSelected() 321 private ResourceType getSelectedResourceType() { in getSelectedResourceType() [all …]
|
D | ResourcePreviewHelper.java | 30 import com.android.resources.ResourceType; 94 public void updatePreview(ResourceType type, String resource) { in updatePreview() 95 boolean showPreview = type == ResourceType.DRAWABLE || type == ResourceType.COLOR; in updatePreview() 127 if (type == ResourceType.COLOR) { in updatePreview() 137 assert type == ResourceType.DRAWABLE; in updatePreview()
|
D | ResourceLabelProvider.java | 21 import com.android.resources.ResourceType; 115 if (element instanceof ResourceType) { in getColumnText() 116 return ((ResourceType)element).getDisplayName(); in getColumnText()
|
D | ResourceChooser.java | 42 import com.android.resources.ResourceType; 98 private ResourceType mResourceType; 151 @NonNull ResourceType type, in ResourceChooser() 183 @NonNull ResourceType type) { in create() 193 if (type == ResourceType.STRING) { in create() 196 } else if (type == ResourceType.DIMEN || type == ResourceType.INTEGER) { in create() 216 @NonNull ResourceType type, in create() 464 if (mResourceType == ResourceType.DRAWABLE) { in createNewResButtons() 474 if (mResourceType == ResourceType.STRING) { in createNewResButtons() 478 } else if (mResourceType == ResourceType.DRAWABLE) { in createNewResButtons() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
D | ReferenceAttributeDescriptor.java | 27 import com.android.resources.ResourceType; 42 private ResourceType mResourceType; 52 ResourceType.DRAWABLE, 80 public ReferenceAttributeDescriptor(ResourceType resourceType, in ReferenceAttributeDescriptor() 89 public ResourceType getResourceType() { in getResourceType()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/ |
D | UiResourceAttributeNode.java | 45 import com.android.resources.ResourceType; 85 private ResourceType mType; 94 public UiResourceAttributeNode(ResourceType type, in UiResourceAttributeNode() 310 Collection<ResourceType> resTypes = (repository != null) ? in computeResourceStringMatches() 312 EnumSet.allOf(ResourceType.class); in computeResourceStringMatches() 331 results.add(ANDROID_THEME_PREFIX + ResourceType.ATTR.getName() + '/'); in computeResourceStringMatches() 332 if (resTypes.contains(ResourceType.ATTR) in computeResourceStringMatches() 333 || resTypes.contains(ResourceType.STYLE)) { in computeResourceStringMatches() 334 results.add(PREFIX_THEME_REF + ResourceType.ATTR.getName() + '/'); in computeResourceStringMatches() 338 ResourceType.ATTR)) { in computeResourceStringMatches() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | RenameResourceWizard.java | 22 import com.android.resources.ResourceType; 41 private ResourceType mType; 53 @NonNull ResourceType type, in RenameResourceWizard() 86 @NonNull ResourceType type, in renameResource() 126 @NonNull ResourceType type, in show()
|
D | RenameResourceProcessor.java | 24 import com.android.resources.ResourceType; 43 private ResourceType mType; 60 @NonNull ResourceType type, in RenameResourceProcessor() 106 public ResourceType getType() { in getType()
|
D | RenameResourcePage.java | 22 import com.android.resources.ResourceType; 46 private ResourceType mType; 55 public RenameResourcePage(ResourceType type, String initial, boolean canClear) { in RenameResourcePage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | ConfigurationClient.java | 24 import com.android.resources.ResourceType; 90 Map<ResourceType, Map<String, ResourceValue>> getConfiguredProjectResources(); in getConfiguredProjectResources() 99 Map<ResourceType, Map<String, ResourceValue>> getConfiguredFrameworkResources(); in getConfiguredFrameworkResources()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/ |
D | ResourceNameValidator.java | 29 import com.android.resources.ResourceType; 208 ResourceType type) { in create() 211 type == ResourceType.DRAWABLE).unique(); in create() 226 @NonNull ResourceType type) { in create() 240 type == ResourceType.DRAWABLE); in create()
|
D | ResourceHelper.java | 70 import com.android.resources.ResourceType; 193 public static boolean isValueBasedResourceType(ResourceType type) { in isValueBasedResourceType() 217 public static boolean isFileBasedResourceType(ResourceType type) { in isFileBasedResourceType() 222 if (type == ResourceType.ID) { in isFileBasedResourceType() 255 ResourceType type = parsed.type; in canCreateResource() 279 public static boolean canCreateResourceType(ResourceType type) { in canCreateResourceType() 296 private static Pair<IFile,IRegion> createFileResource(IProject project, ResourceType type, in createFileResource() 328 public static Pair<IFile,IRegion> createResource(IProject project, ResourceType type, in createResource() 343 boolean createEmptyTag = type == ResourceType.ID; in createResource()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/layoutRendering/ |
D | ApiDemosRenderingTest.java | 58 import com.android.resources.ResourceType; 109 private Map<Integer, Pair<ResourceType, String>> mResourceMap = 110 new HashMap<Integer, Pair<ResourceType, String>>(); 129 public Integer getResourceId(ResourceType type, String name) { in getResourceId() 136 public Pair<ResourceType, String> resolveResourceId(int id) { in resolveResourceId() 237 Map<ResourceType, Map<String, ResourceValue>> configuredFramework = in testSample() 239 Map<ResourceType, Map<String, ResourceValue>> configuredProject = in testSample()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/descriptors/ |
D | ThemeAttributeDescriptor.java | 26 import com.android.resources.ResourceType; 55 return new UiResourceAttributeNode(ResourceType.STYLE, this, uiParent); in createUiNode()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
D | ResourceValueCompleter.java | 33 import com.android.resources.ResourceType; 146 for (ResourceType type : repository.getAvailableResourceTypes()) { in addMatches() 153 if (type != ResourceType.ATTR) { in addMatches() 159 if (type == ResourceType.ID && prefix.startsWith(NEW_ID_PREFIX)) { in addMatches()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/color/ |
D | ColorDescriptors.java | 30 import com.android.resources.ResourceType; 78 ResourceType.COLOR, ATTR_COLOR, in updateDescriptors()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/ |
D | AttributeInfo.java | 40 import com.android.resources.ResourceType; 260 ResourceType type = ResourceType.getEnum(typeName); in isValid() 273 return projectResources.hasResourceItem(ResourceType.ATTR, in isValid()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/ |
D | AnimationContentAssist.java | 34 import com.android.resources.ResourceType; 85 String base = '@' + ANDROID_PKG + ':' + ResourceType.ANIM.getName() + '/'; in computeAttributeValues() 86 for (ResourceItem item : repository.getResourceItemsOfType(ResourceType.ANIM)) { in computeAttributeValues()
|