/sdk/layoutlib_api/src/com/android/layoutlib/api/ |
IDensityBasedResourceValue.java | 22 * Represents an Android Resources that has a density info attached to it. 29 * Density. 31 * @deprecated use {@link com.android.resources.Density}. 34 public static enum Density { 43 Density(int value) { 52 * Returns the enum matching the given density value 53 * @param value The density value. 54 * @return the enum for the density value or null if no match was found. 56 public static Density getEnum(int value) { 57 for (Density d : values()) [all...] |
/sdk/layoutlib_api/src/com/android/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 XXHIGH("xxhdpi", "XX-High Density", 480, 16), //$NON-NLS-1$ 27 XHIGH("xhdpi", "X-High Density", 320, 8), //$NON-NLS-1$ 28 HIGH("hdpi", "High Density", 240, 4), //$NON-NLS-1$ 29 TV("tvdpi", "TV Density", 213, 13), //$NON-NLS-1$ 30 MEDIUM("mdpi", "Medium Density", 160, 4), //$NON-NLS-1$ 31 LOW("ldpi", "Low Density", 120, 4), //$NON-NLS-1$ 32 NODPI("nodpi", "No Density", 0, 4); //$NON-NLS-1 [all...] |
/sdk/sdk_common/src/com/android/ide/common/resources/configuration/ |
DensityQualifier.java | 19 import com.android.resources.Density; 26 * Resource Qualifier for Screen Pixel Density. 31 public static final String NAME = "Density"; 33 private Density mValue = Density.MEDIUM; 39 public DensityQualifier(Density value) { 43 public Density getValue() { 69 Density density = Density.getEnum(value) local [all...] |
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/ |
DensityBasedResourceValue.java | 25 private com.android.resources.Density mDensity; 28 com.android.resources.Density density, boolean isFramework) { 30 mDensity = density; 34 * Returns the density for which this resource is configured. 35 * @return the density. 37 public com.android.resources.Density getResourceDensity() { 46 public Density getDensity() { 47 return Density.getEnum(mDensity.getDpiValue()); 54 + " (density:" + mDensity +", framework:" + isFramework() + ")]" [all...] |
DrawableParams.java | 19 import com.android.resources.Density; 37 * @param density the density factor for the screen. 60 Density density, float xdpi, float ydpi, 65 super(projectKey, screenWidth, screenHeight, density, xdpi, ydpi,
|
RenderParams.java | 19 import com.android.resources.Density; 34 private final Density mDensity; 60 * @param density the density factor for the screen. 82 Density density, float xdpi, float ydpi, 90 mDensity = density; 181 public Density getDensity() {
|
SessionParams.java | 19 import com.android.resources.Density; 67 * @param density the density factor for the screen. 91 Density density, float xdpi, float ydpi, 96 super(projectKey, screenWidth, screenHeight, density, xdpi, ydpi,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
FakeActionBar.java | 19 import com.android.resources.Density; 31 public FakeActionBar(Context context, Density density, String label, String icon) 33 super(context, density, LinearLayout.HORIZONTAL, "/bars/action_bar.xml", "action_bar.xml");
|
NavigationBar.java | 19 import com.android.resources.Density; 29 public NavigationBar(Context context, Density density, int orientation) throws XmlPullParserException { 30 super(context, density, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml"); 45 loadIcon(back, "ic_sysbar_back.png", density); 46 loadIcon(2, "ic_sysbar_home.png", density); 47 loadIcon(recent, "ic_sysbar_recent.png", density);
|
TitleBar.java | 19 import com.android.resources.Density; 31 public TitleBar(Context context, Density density, String label) 33 super(context, density, LinearLayout.HORIZONTAL, "/bars/title_bar.xml", "title_bar.xml");
|
StatusBar.java | 19 import com.android.resources.Density; 33 public StatusBar(Context context, Density density) throws XmlPullParserException { 34 super(context, density, LinearLayout.HORIZONTAL, "/bars/status_bar.xml", "status_bar.xml"); 44 loadIcon(1, "stat_sys_wifi_signal_4_fully.png", density);
|
CustomBar.java | 27 import com.android.resources.Density; 63 protected CustomBar(Context context, Density density, int orientation, String layoutPath, 89 private InputStream getIcon(String iconName, Density[] densityInOut, String[] pathOut, 91 // current density 92 Density density = densityInOut[0]; local 95 pathOut[0] = "/bars/" + density.getResourceValue() + "/" + iconName; 99 for (Density d : Density.values()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
InputDensityDialog.java | 18 import com.android.resources.Density; 38 * Density value being chosen - static to keep most recently chosen value 41 private static int sDpi = Density.DEFAULT_DENSITY; 54 lblWhatIsThe.setText("What is the screen density the current px value works with?"); 63 for (Density density : Density.values()) { 64 if (density == Density.NODPI) { 67 if (density.getDpiValue() == sDpi) [all...] |
/sdk/assetstudio/src/com/android/assetstudiolib/ |
GraphicGenerator.java | 19 import com.android.resources.Density; 57 /** The density to generate the icon with */ 58 public Density density = Density.XHIGH; field in class:GraphicGenerator.Options 126 * density, but is also sometimes modified by options. For example, in some 130 return "res/drawable-" + options.density.getResourceValue(); //$NON-NLS-1$ 140 * density name will be used) 150 Density[] densityValues = Density.values() [all...] |
/sdk/sdk_common/tests/src/com/android/ide/common/resources/configuration/ |
PixelDensityQualifierTest.java | 19 import com.android.resources.Density; 45 assertEquals(Density.LOW, config.getDensityQualifier().getValue()); 58 DensityQualifier ldpi = new DensityQualifier(Density.LOW); 59 DensityQualifier mdpi = new DensityQualifier(Density.MEDIUM); 60 DensityQualifier hdpi = new DensityQualifier(Density.HIGH); 61 DensityQualifier xhdpi = new DensityQualifier(Density.XHIGH);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BitmapFactory_Delegate.java | 22 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; 100 Density density = Density.MEDIUM local [all...] |
Bitmap_Delegate.java | 22 import com.android.resources.Density; 88 * @param density the density associated with the bitmap 93 public static Bitmap createBitmap(File input, boolean isMutable, Density density) 98 return createBitmap(delegate, isMutable, density.getDpiValue()); 106 * @param density the density associated with the bitmap 111 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) [all...] |
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/ |
Screen.java | 19 import com.android.resources.Density; 28 private Density mPixelDensity; 54 public Density getPixelDensity() { 58 public void setPixelDensity(Density pDensity) {
|
/frameworks/av/media/libeffects/lvm/lib/Reverb/lib/ |
LVREV.h | 113 LVM_UINT16 Density; /* Echo density, 0 to 100 for minimum to maximum density */
|
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
LVREV_SetControlParameters.c | 93 if (pNewParams->Density > LVREV_MAX_DENSITY)
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ConfigurationTest.java | 24 import com.android.resources.Density; 99 assertEquals(Density.MEDIUM, configuration.getDensity());
|
/sdk/layoutlib_api/sample/src/com/example/android/render/ |
Main.java | 27 import com.android.resources.Density; 94 Density.MEDIUM,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 31 import com.android.resources.Density; 109 metrics.density = metrics.noncompatDensity = 112 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; 255 // clear the stored ViewConfiguration since the map is per density and not per context. 332 Density density = hardwareConfig.getDensity(); local 333 if (density == null) { 334 density = Density.MEDIUM; 337 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue() [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 27 import com.android.resources.Density; 172 Density.MEDIUM, // density (default from ConfigurationComposite) 173 Density.MEDIUM.getDpiValue(), // xdpi (default from ConfigurationComposite)
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ConfigurationMatcher.java | 39 import com.android.resources.Density; 464 // lets look for a high density device 722 // put the sort order for the density. 723 mDensitySort.put(Density.HIGH.getDpiValue(), 1); 724 mDensitySort.put(Density.MEDIUM.getDpiValue(), 2); 725 mDensitySort.put(Density.XHIGH.getDpiValue(), 3); 726 mDensitySort.put(Density.LOW.getDpiValue(), 4); 743 int dpi1 = Density.DEFAULT_DENSITY; 744 int dpi2 = Density.DEFAULT_DENSITY; 748 Density value = dpiQualifier1.getValue() [all...] |