/sdk/layoutlib_api/src/com/android/layoutlib/api/ |
IDensityBasedResourceValue.java | 20 * Represents an Android Resources that has a density info attached to it. 24 public static enum Density { 34 Density(int value) { 43 * Returns the enum matching the given density value 44 * @param value The density value. 45 * @return the enum for the density value or null if no match was found. 47 public static Density getEnum(int value) { 48 for (Density d : values()) { 59 * Returns the density associated to the resource. 61 Density getDensity() [all...] |
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/resources/ |
Density.java | 21 * Density enum. 23 * as well as other places needing to know the density values. 25 public enum Density implements ResourceEnum { 26 HIGH("hdpi", "High Density", 240), //$NON-NLS-1$ 27 MEDIUM("mdpi", "Medium Density", 160), //$NON-NLS-1$ 28 LOW("ldpi", "Low Density", 120), //$NON-NLS-1$ 29 NODPI("nodpi", "No Density", 0); //$NON-NLS-1$ 37 private Density(String value, String displayValue, int density) { 40 mDensity = density; [all...] |
/sdk/layoutlib_utils/src/com/android/layoutlib/utils/ |
DensityBasedResourceValue.java | 23 private Density mDensity; 25 public DensityBasedResourceValue(String type, String name, String value, Density density, 28 mDensity = density; 31 public Density getDensity() {
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
TitleBar.java | 19 import com.android.resources.Density; 30 public TitleBar(Context context, Density density, String label) 32 super(context, density, "/bars/title_bar.xml");
|
PhoneSystemBar.java | 19 import com.android.resources.Density; 32 public PhoneSystemBar(Context context, Density density) throws XmlPullParserException { 33 super(context, density, "/bars/phone_system_bar.xml"); 42 loadIcon(1, "stat_sys_wifi_signal_4_fully.png", density);
|
CustomBar.java | 26 import com.android.resources.Density; 63 protected CustomBar(Context context, Density density, String layoutPath) 88 private InputStream getIcon(String iconName, Density[] densityInOut, String[] pathOut, 90 // current density 91 Density density = densityInOut[0]; local 94 pathOut[0] = "/bars/" + density.getResourceValue() + "/" + iconName; 98 for (Density d : Density.values()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/configurations/ |
PixelDensityQualifier.java | 20 import com.android.sdklib.resources.Density; 29 * Resource Qualifier for Screen Pixel Density. 34 public static final String NAME = "Pixel Density"; 36 private Density mValue = Density.MEDIUM; 42 public PixelDensityQualifier(Density value) { 46 public Density getValue() { 72 Density density = Density.getEnum(value) local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/configurations/ |
PixelDensityQualifierTest.java | 21 import com.android.sdklib.resources.Density; 47 assertEquals(Density.LOW, config.getPixelDensityQualifier().getValue());
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/export/ |
ProjectConfig.java | 24 import com.android.sdklib.resources.Density; 54 new String[] { Density.HIGH.getResourceValue(), 55 Density.HIGH.getResourceValue() + "," + Density.NODPI.getResourceValue() }, 56 new String[] { Density.MEDIUM.getResourceValue(), 57 Density.MEDIUM.getResourceValue() + "," + 58 Density.NODPI.getResourceValue() }, 59 new String[] { Density.MEDIUM.getResourceValue(), 60 Density.MEDIUM.getResourceValue() + "," + Density.NODPI.getResourceValue() } [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BitmapFactory_Delegate.java | 23 import com.android.resources.Density; 52 final int density = opts.inDensity; local 53 if (density == 0) { 57 bm.setDensity(density); 59 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { 67 float scale = targetDensity / (float)density; 97 Density density = Density.MEDIUM local [all...] |
Bitmap_Delegate.java | 22 import com.android.resources.Density; 87 * @param density the density associated with the bitmap 92 public static Bitmap createBitmap(File input, boolean isMutable, Density density) 97 return createBitmap(delegate, isMutable, density.getDpiValue()); 105 * @param density the density associated with the bitmap 110 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) [all...] |
/frameworks/base/media/libeffects/lvm/lib/Reverb/lib/ |
LVREV.h | 113 LVM_UINT16 Density; /* Echo density, 0 to 100 for minimum to maximum density */
|
/frameworks/base/media/libeffects/lvm/lib/Reverb/src/ |
LVREV_SetControlParameters.c | 93 if (pNewParams->Density > LVREV_MAX_DENSITY)
|
LVREV_ApplyNewSettings.c | 288 (pPrivate->NewParams.Density != pPrivate->CurrentParams.Density)) 481 if( (pPrivate->NewParams.Density != pPrivate->CurrentParams.Density) || 485 LVM_INT32 b = pPrivate->NewParams.Density * LVREV_B_8_on_1000;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
SingleResourceFile.java | 22 import com.android.layoutlib.api.IDensityBasedResourceValue.Density; 72 // test if there's a density qualifier associated with the resource 83 Density.getEnum(qualifier.getValue().getDpiValue()),
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 27 import com.android.sdklib.resources.Density; 173 Density.MEDIUM.getDpiValue(), // density (default from ConfigurationComposite) 174 Density.MEDIUM.getDpiValue(), // xdpi (default from ConfigurationComposite)
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ResourceHelper.java | 28 import com.android.resources.Density; 178 Density density = Density.MEDIUM; local 180 density = 190 new FileInputStream(file), density, value.isFramework(), 239 density); 267 private static Drawable getNinePatchDrawable(InputStream inputStream, Density density, 291 density); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
LayoutDeviceHandler.java | 32 import com.android.sdklib.resources.Density; 146 Density.getEnum(mStringAccumulator.toString()));
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParser.java | 26 import com.android.layoutlib.api.IDensityBasedResourceValue.Density; 499 f *= (float)mDensityValue / Density.DEFAULT_DENSITY;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/layoutRendering/ |
ApiDemosRenderingTest.java | 42 import com.android.sdklib.resources.Density; 202 160, //density 244 config.addQualifier(new PixelDensityQualifier(Density.MEDIUM));
|
/prebuilt/common/tools-common/ |
tools-common-prebuilt.jar | |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ |
NewProjectWizard.java | 29 import com.android.sdklib.resources.Density; 139 SdkConstants.FD_DRAWABLE + "-" + Density.HIGH.getResourceValue() + AndroidConstants.WS_SEP; //$NON-NLS-1$ 141 SdkConstants.FD_DRAWABLE + "-" + Density.MEDIUM.getResourceValue() + AndroidConstants.WS_SEP; //$NON-NLS-1$ 143 SdkConstants.FD_DRAWABLE + "-" + Density.LOW.getResourceValue() + AndroidConstants.WS_SEP; //$NON-NLS-1$ [all...] |
/frameworks/base/media/libeffects/lvm/wrapper/Reverb/ |
EffectReverb.cpp | 814 params.Density = 100; 830 pContext->SavedDiffusion = params.Density*10; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ConfigurationComposite.java | 45 import com.android.sdklib.resources.Density; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
ConfigurationSelector.java | 39 import com.android.sdklib.resources.Density; 181 * Implementation of {@link VerifyListener} for the Pixel Density qualifier. 214 * For instance {@link Density#NODPI} is a valid qualifier for a resource configuration but [all...] |