/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/common/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 XHIGH("xhdpi", "X-High Density", 320, 8), //$NON-NLS-1$ 27 HIGH("hdpi", "High Density", 240, 4), //$NON-NLS-1$ 28 TV("tvdpi", "TV Density", 213, 13), //$NON-NLS-1$ 29 MEDIUM("mdpi", "Medium Density", 160, 4), //$NON-NLS-1$ 30 LOW("ldpi", "Low Density", 120, 4), //$NON-NLS-1$ 31 NODPI("nodpi", "No Density", 0, 4); //$NON-NLS-1$ 40 private Density(String value, String displayValue, int density, int since) [all...] |
/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", "title_bar.xml");
|
FakeActionBar.java | 19 import com.android.resources.Density; 30 public FakeActionBar(Context context, Density density, String label, String icon) 32 super(context, density, "/bars/action_bar.xml", "action_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", "phone_system_bar.xml"); 43 loadIcon(1, "stat_sys_wifi_signal_4_fully.png", density);
|
TabletSystemBar.java | 19 import com.android.resources.Density; 31 public TabletSystemBar(Context context, Density density) throws XmlPullParserException { 32 super(context, density, "/bars/tablet_system_bar.xml", "tablet_system_bar.xml"); 39 loadIcon(0, "ic_sysbar_back_default.png", density); 40 loadIcon(1, "ic_sysbar_home_default.png", density); 41 loadIcon(2, "ic_sysbar_recent_default.png", density); 43 loadIcon(4, "stat_sys_wifi_signal_4_fully.png", density);
|
CustomBar.java | 27 import com.android.resources.Density; 63 protected CustomBar(Context context, Density density, String layoutPath, String name) 85 private InputStream getIcon(String iconName, Density[] densityInOut, String[] pathOut, 87 // current density 88 Density density = densityInOut[0]; local 91 pathOut[0] = "/bars/" + density.getResourceValue() + "/" + iconName; 95 for (Density d : Density.values()) [all...] |
/sdk/ide_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,
|
/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; 56 /** The density to generate the icon with */ 57 public Density density = Density.XHIGH; field in class:GraphicGenerator.Options 127 * density, but is also sometimes modified by options. For example, in some 131 return "res/drawable-" + options.density.getResourceValue(); //$NON-NLS-1$ 141 * density name will be used) 151 Density[] densityValues = Density.values() [all...] |
/sdk/ide_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...] |
/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/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 | 30 import com.android.resources.Density; 105 metrics.density = metrics.noncompatDensity = 108 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; 251 // clear the stored ViewConfiguration since the map is per density and not per context. 326 Density density = mParams.getDensity(); local 327 if (density == null) { 328 density = Density.MEDIUM; 331 config.screenWidthDp = mParams.getScreenWidth() / density.getDpiValue() [all...] |
ResourceHelper.java | 28 import com.android.resources.Density; 175 Density density = Density.MEDIUM; local 177 density = 187 new FileInputStream(file), density, value.isFramework(), 234 density); 262 private static Drawable getNinePatchDrawable(InputStream inputStream, Density density, 286 density); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 26 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/gre/ |
ViewMetadataRepository.java | 36 import com.android.resources.Density; 758 * current theme or density if there's no chance that valid insets will be returned 764 * theme and the given screen density. 767 * @param density the screen density 772 public static Margins getInsets(String fqcn, Density density, String theme) { 776 if (density == Density.HIGH) { 784 } else if (density == Density.MEDIUM) [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
DisplayHardware.cpp | 171 class Density { 174 int density = 0; local 176 density = atoi(property); 178 return density; 188 // The density of the device is provided by a build property 189 mDensity = Density::getBuildDensity() / 160.0f; 192 // the build doesn't provide a density -- this is wrong! 198 if (Density::getEmuDensity()) { 200 mDpiX = mDpiY = mDensity = Density::getEmuDensity();
|