/sdk/layoutlib_api/src/com/android/resources/ |
D | Density.java | 25 public enum Density implements ResourceEnum { enum 41 private Density(String value, String displayValue, int density, int since) { in Density() method in Density 53 public static Density getEnum(String value) { in getEnum() 54 for (Density orient : values()) { in getEnum() 68 public static Density getEnum(int value) { in getEnum() 69 for (Density d : values()) { in getEnum() 109 public static int getIndex(Density value) { in getIndex() 111 for (Density input : values()) { in getIndex() 122 public static Density getByIndex(int index) { in getByIndex() 124 for (Density value : values()) { in getByIndex()
|
/sdk/sdk_common/src/com/android/ide/common/resources/configuration/ |
D | DensityQualifier.java | 19 import com.android.resources.Density; 33 private Density mValue = Density.MEDIUM; 39 public DensityQualifier(Density value) { in DensityQualifier() 43 public Density getValue() { in getValue() 69 Density density = Density.getEnum(value); in checkAndSet() 78 density = Density.getEnum(Integer.parseInt(v)); in checkAndSet()
|
D | FolderConfiguration.java | 20 import com.android.resources.Density; 472 Density density = ((DensityQualifier) densityQ).getValue(); in updateScreenWidthAndHeight() 473 if (density == Density.NODPI) { in updateScreenWidthAndHeight() 490 int dp1 = (int) Math.ceil(size1 * Density.DEFAULT_DENSITY / density.getDpiValue()); in updateScreenWidthAndHeight() 491 int dp2 = (int) Math.ceil(size2 * Density.DEFAULT_DENSITY / density.getDpiValue()); in updateScreenWidthAndHeight()
|
/sdk/layoutlib_api/src/com/android/layoutlib/api/ |
D | IDensityBasedResourceValue.java | 34 public static enum Density { enum 43 Density(int value) { in Density() method in IDensityBasedResourceValue.Density 56 public static Density getEnum(int value) { in getEnum() 57 for (Density d : values()) { in getEnum() 72 Density getDensity(); in getDensity()
|
/sdk/assetstudio/src/com/android/assetstudiolib/ |
D | GraphicGenerator.java | 19 import com.android.resources.Density; 58 public Density density = Density.XHIGH; 150 Density[] densityValues = Density.values(); in generate() 152 Arrays.sort(densityValues, new Comparator<Density>() { in generate() 154 public int compare(Density d1, Density d2) { in generate() 159 for (Density density : densityValues) { in generate() 163 if (density == Density.TV || density == Density.XXHIGH) { in generate() 192 public static float getMdpiScaleFactor(Density density) { in getMdpiScaleFactor() 193 return density.getDpiValue() / (float) Density.MEDIUM.getDpiValue(); in getMdpiScaleFactor()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | InputDensityDialog.java | 18 import com.android.resources.Density; 41 private static int sDpi = Density.DEFAULT_DENSITY; 63 for (Density density : Density.values()) { in createDialogArea() 64 if (density == Density.NODPI) { in createDialogArea() 80 private static String getLabel(Density density) { in getLabel() 99 for (Density density : Density.values()) { in close()
|
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/ |
D | DensityBasedResourceValue.java | 25 private com.android.resources.Density mDensity; 28 com.android.resources.Density density, boolean isFramework) { in DensityBasedResourceValue() 37 public com.android.resources.Density getResourceDensity() { in getResourceDensity() 46 public Density getDensity() { in getDensity() 47 return Density.getEnum(mDensity.getDpiValue()); in getDensity()
|
D | DrawableParams.java | 19 import com.android.resources.Density; 60 Density density, float xdpi, float ydpi, in DrawableParams()
|
D | RenderParams.java | 19 import com.android.resources.Density; 34 private final Density mDensity; 82 Density density, float xdpi, float ydpi, in RenderParams() 181 public Density getDensity() { in getDensity()
|
D | SessionParams.java | 19 import com.android.resources.Density; 91 Density density, float xdpi, float ydpi, in SessionParams()
|
/sdk/sdk_common/tests/src/com/android/ide/common/resources/configuration/ |
D | PixelDensityQualifierTest.java | 19 import com.android.resources.Density; 45 assertEquals(Density.LOW, config.getDensityQualifier().getValue()); in testCheckAndSet() 58 DensityQualifier ldpi = new DensityQualifier(Density.LOW); in testIsBetterMatchThan() 59 DensityQualifier mdpi = new DensityQualifier(Density.MEDIUM); in testIsBetterMatchThan() 60 DensityQualifier hdpi = new DensityQualifier(Density.HIGH); in testIsBetterMatchThan() 61 DensityQualifier xhdpi = new DensityQualifier(Density.XHIGH); in testIsBetterMatchThan()
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/ |
D | Screen.java | 19 import com.android.resources.Density; 28 private Density mPixelDensity; 54 public Density getPixelDensity() { in getPixelDensity() 58 public void setPixelDensity(Density pDensity) { in setPixelDensity()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | ConfigurationMatcher.java | 39 import com.android.resources.Density; 723 mDensitySort.put(Density.HIGH.getDpiValue(), 1); in PhoneConfigComparator() 724 mDensitySort.put(Density.MEDIUM.getDpiValue(), 2); in PhoneConfigComparator() 725 mDensitySort.put(Density.XHIGH.getDpiValue(), 3); in PhoneConfigComparator() 726 mDensitySort.put(Density.LOW.getDpiValue(), 4); in PhoneConfigComparator() 743 int dpi1 = Density.DEFAULT_DENSITY; in compare() 744 int dpi2 = Density.DEFAULT_DENSITY; in compare() 748 Density value = dpiQualifier1.getValue(); in compare() 749 dpi1 = value != null ? value.getDpiValue() : Density.DEFAULT_DENSITY; in compare() 755 Density value = dpiQualifier2.getValue(); in compare() [all …]
|
D | Configuration.java | 37 import com.android.resources.Density; 759 public Density getDensity() { in getDensity() 764 Density d = qual.getValue(); in getDensity() 765 if (d != Density.NODPI) { in getDensity() 772 return Density.MEDIUM; in getDensity()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/ |
D | completion1-expected-completion5.txt | 2 50dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
|
D | completionvalues1-expected-completion66.txt | 2 17dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
|
D | completion1-expected-completion4.txt | 2 50dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
|
D | completionvalues1-expected-completion67.txt | 2 17dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
|
D | completionvalues1-expected-completion24.txt | 2 17dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | ViewMetadataRepository.java | 38 import com.android.resources.Density; 778 public static Margins getInsets(String fqcn, Density density, String theme) { in getInsets() 782 if (density == Density.HIGH) { in getInsets() 790 } else if (density == Density.MEDIUM) { in getInsets() 798 } else if (density == Density.LOW) { in getInsets() 808 if (density == Density.HIGH) { in getInsets() 816 } else if (density == Density.MEDIUM) { in getInsets() 824 } else if (density == Density.LOW) { in getInsets() 834 if (density == Density.HIGH) { in getInsets() 839 } else if (density == Density.MEDIUM) { in getInsets()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | ConfigurationTest.java | 24 import com.android.resources.Density; 99 assertEquals(Density.MEDIUM, configuration.getDensity()); in test()
|
/sdk/layoutlib_api/sample/src/com/example/android/render/ |
D | Main.java | 27 import com.android.resources.Density; 94 Density.MEDIUM, in main()
|
D | RenderServiceFactory.java | 46 import com.android.resources.Density; 112 Density density, in createConfig() 136 int wdp = (width * Density.DEFAULT_DENSITY) / density.getDpiValue(); in createConfig() 137 int hdp = (height * Density.DEFAULT_DENSITY) / density.getDpiValue(); in createConfig()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
D | UiElementPullParserTest.java | 27 import com.android.resources.Density; 172 Density.MEDIUM, // density (default from ConfigurationComposite) in testParser() 173 Density.MEDIUM.getDpiValue(), // xdpi (default from ConfigurationComposite) in testParser()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
D | UiElementPullParser.java | 47 import com.android.resources.Density; 81 private final Density mDensity; 122 Density density, float xdpi, IProject project) { in UiElementPullParser() 631 f *= (float)mDensity.getDpiValue() / Density.DEFAULT_DENSITY; in stringToPixel()
|