HomeSort by relevance Sort by last modified time
    Searched refs:Density (Results 1 - 25 of 40) sorted by null

1 2

  /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), //$NON-NLS-1$
27 HIGH("hdpi", "High Density", 240), //$NON-NLS-1$
28 TV("tvdpi", "TV Density", 213), //$NON-NLS-1$
29 MEDIUM("mdpi", "Medium Density", 160), //$NON-NLS-1$
30 LOW("ldpi", "Low Density", 120), //$NON-NLS-1$
31 NODPI("nodpi", "No Density", 0); //$NON-NLS-1$
39 private Density(String value, String displayValue, int density)
    [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() {
64 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() {
45 public Density getDensity() {
46 return Density.getEnum(mDensity.getDpiValue());
53 + " (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/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;
97 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/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)
  /sdk/layoutlib_api/sample/src/com/example/android/render/
Main.java 27 import com.android.resources.Density;
94 Density.MEDIUM,
RenderServiceFactory.java 46 import com.android.resources.Density;
97 * @param density
112 Density density,
136 int wdp = (width * Density.DEFAULT_DENSITY) / density.getDpiValue();
137 int hdp = (height * Density.DEFAULT_DENSITY) / density.getDpiValue();
146 config.addQualifier(new DensityQualifier(density));
  /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;
174 Density.MEDIUM, // density (default from ConfigurationComposite)
175 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;
754 * current theme or density if there's no chance that valid insets will be returned
760 * theme and the given screen density.
763 * @param density the screen density
768 public static Margins getInsets(String fqcn, Density density, String theme) {
772 if (density == Density.HIGH) {
780 } else if (density == Density.MEDIUM)
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
UiElementPullParser.java 37 import com.android.resources.Density;
72 private final Density mDensity;
107 * @param density the density factor for the screen.
113 Density density, float xdpi, IProject project) {
118 mDensity = density;
593 f *= (float)mDensity.getDpiValue() / Density.DEFAULT_DENSITY;

Completed in 511 milliseconds

1 2