/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
ResourceHelperTest.java | 30 * Test ResourceHelper 98 assertNull(ResourceHelper.getIcon(FakeQualifierClass.class)); 108 ResourceHelper.getIcon(qual.getClass())); 114 ResourceHelper.getResourceDeltaKind(IResourceDelta.ADDED)); 116 ResourceHelper.getResourceDeltaKind(IResourceDelta.REMOVED)); 118 ResourceHelper.getResourceDeltaKind(IResourceDelta.CHANGED)); 120 assertNull(ResourceHelper.getResourceDeltaKind(IResourceDelta.ADDED_PHANTOM)); 124 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.ANIMATOR)); 125 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT)); 127 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.STRING)) [all...] |
/packages/apps/Email/src/com/android/email/ |
ResourceHelper.java | 27 public class ResourceHelper { 30 private static ResourceHelper sInstance; 38 private ResourceHelper(Context context) { 52 public static synchronized ResourceHelper getInstance(Context context) { 54 sInstance = new ResourceHelper(context);
|
/packages/apps/Email/tests/src/com/android/email/ |
ResourceHelperTest.java | 25 private ResourceHelper mResourceHelper; 30 mResourceHelper = ResourceHelper.getInstance(getContext());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/manifest/ |
ManifestInfoTest.java | 23 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 54 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, NORMAL))); 56 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, XLARGE))); 68 assertEquals("Theme.Holo", ResourceHelper.styleToTheme(info.getDefaultTheme(null, 70 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, LARGE))); 82 assertEquals("Theme.Holo", ResourceHelper.styleToTheme(info.getDefaultTheme(null, 84 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, NORMAL))); 109 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, XLARGE))); 143 assertEquals("NoBackground", ResourceHelper.styleToTheme(info.getDefaultTheme(null, 164 assertEquals("Theme.Holo", ResourceHelper.styleToTheme(info.getDefaultTheme(null [all...] |
/packages/apps/Email/src/com/android/email/service/ |
AccountService.java | 26 import com.android.email.ResourceHelper; 61 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
CustomBar.java | 26 import com.android.layoutlib.bridge.impl.ResourceHelper; 212 Drawable drawable = ResourceHelper.getDrawable(value, (BridgeContext) mContext); 270 Drawable d = ResourceHelper.getDrawable(backgroundValue, bridgeContext); 291 if (ResourceHelper.parseFloatAttribute("textSize", textSize.getValue(), out, 303 ColorStateList stateList = ResourceHelper.getColorStateList(
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
BridgeResources.java | 27 import com.android.layoutlib.bridge.impl.ResourceHelper; 160 return ResourceHelper.getDrawable(value.getSecond(), mContext); 176 return ResourceHelper.getColor(value.getSecond().getValue()); 196 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), 340 if (ResourceHelper.parseFloatAttribute( 367 if (ResourceHelper.parseFloatAttribute( 395 if (ResourceHelper.parseFloatAttribute( 521 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue,
|
BridgeTypedArray.java | 30 import com.android.layoutlib.bridge.impl.ResourceHelper; 325 ColorStateList colorStateList = ResourceHelper.getColorStateList( 392 int color = ResourceHelper.getColor(value); 454 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true /*requireUnit*/)) { 581 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true /*requireUnit*/)) { 623 if (ResourceHelper.parseFloatAttribute(mNames[index], value, mValue, 782 return ResourceHelper.getDrawable(value, mContext); 844 return ResourceHelper.parseFloatAttribute(mNames[index], s, outValue,
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ThemeMenuAction.java | 24 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 99 currentName = ResourceHelper.styleToTheme(currentTheme); 112 ResourceHelper.styleToTheme(preferred), 216 if (ResourceHelper.isProjectStyle(theme)) { 284 String title = ResourceHelper.styleToTheme(theme);
|
ActivityMenuListener.java | 23 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 106 String layoutName = ResourceHelper.getLayoutName(chooser.getEditedFile());
|
Configuration.java | 41 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 361 return ResourceHelper.isProjectStyle(theme); 619 String themeName = ResourceHelper.styleToTheme(theme); [all...] |
ConfigurationChooser.java | 61 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 440 theme = ResourceHelper.styleToTheme(theme); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
AaptQuickFix.java | 28 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 127 if (ResourceHelper.canCreateResource(resource)) { 188 if (ResourceHelper.canCreateResource(resource)) { 365 ResourceHelper.createResource(mProject, type, name, value);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/ |
ResourceNameValidator.java | 209 boolean isFileType = ResourceHelper.isFileBasedResourceType(type); 238 boolean isFileType = ResourceHelper.isFileBasedResourceType(type);
|
ResourceHelper.java | 120 public class ResourceHelper {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
ResourcePreviewHelper.java | 29 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 131 RGB color = ResourceHelper.resolveColor(resources, value);
|
ResourceChooser.java | 35 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 491 if (ResourceHelper.isValueBasedResourceType(mResourceType)) { 663 Pair<IFile, IRegion> resource = ResourceHelper.createResource(mProject, type, name, 692 Pair<IFile, IRegion> resource = ResourceHelper.createResource(mProject, type, name, value); 813 mNewButton.setEnabled(!isSystem && ResourceHelper.canCreateResourceType(mResourceType)); [all...] |
ConfigurationSelector.java | 44 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 685 return ResourceHelper.getIcon(((ResourceQualifier)element).getClass()); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderDrawable.java | 79 Drawable d = ResourceHelper.getDrawable(drawableResource, context);
|
ResourceHelper.java | 55 public final class ResourceHelper { 147 int color = ResourceHelper.getColor(value); 340 * This object is only valid until the next call on to {@link ResourceHelper}.
|
RenderSessionImpl.java | 414 Drawable d = ResourceHelper.getDrawable(mWindowBackground, context); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
ResourceManager.java | 27 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 353 ResourceHelper.getResourceDeltaKind(kind), context);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
PreviewIconFactory.java | 44 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 457 return ResourceHelper.resolveColor(resources, textColor);
|
RenderPreview.java | 51 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 654 ResourceHelper.styleToTheme(theme), 655 ResourceHelper.isProjectStyle(theme)); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
XmlPropertyEditor.java | 49 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper; 179 RGB rgb = ResourceHelper.resolveColor(resolver, resValue);
|