Home
last modified time | relevance | path

Searched refs:density (Results 1 – 25 of 32) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DInputDensityDialog.java63 for (Density density : Density.values()) { in createDialogArea()
64 if (density == Density.NODPI) { in createDialogArea()
67 if (density.getDpiValue() == sDpi) { in createDialogArea()
70 s.add(getLabel(density)); in createDialogArea()
80 private static String getLabel(Density density) { in getLabel() argument
81 return String.format("%1$s (%2$d)", density.getShortDisplayValue(), density.getDpiValue()); in getLabel()
99 for (Density density : Density.values()) { in close()
100 if (description.equals(getLabel(density))) { in close()
101 sDpi = density.getDpiValue(); in close()
/sdk/assetstudio/src/com/android/assetstudiolib/
DGraphicGenerator.java58 public Density density = Density.XHIGH; field in GraphicGenerator.Options
130 return "res/drawable-" + options.density.getResourceValue(); //$NON-NLS-1$ in getIconFolder()
159 for (Density density : densityValues) { in generate()
160 if (!density.isValidValueForDevice()) { in generate()
163 if (density == Density.TV || density == Density.XXHIGH) { in generate()
168 options.density = density; in generate()
173 mapCategory = options.density.getResourceValue(); in generate()
192 public static float getMdpiScaleFactor(Density density) { in getMdpiScaleFactor() argument
193 return density.getDpiValue() / (float) Density.MEDIUM.getDpiValue(); in getMdpiScaleFactor()
DLauncherIconGenerator.java38 String density; in generate() local
40 density = "web"; in generate()
42 density = launcherOptions.density.getResourceValue(); in generate()
50 + shape + "/" + density + "/back.png"); in generate()
52 + shape + "/" + density + "/" + launcherOptions.style.id + ".png"); in generate()
54 + shape + "/" + density + "/mask.png"); in generate()
57 float scaleFactor = GraphicGenerator.getMdpiScaleFactor(launcherOptions.density); in generate()
DNotificationIconGenerator.java54 final float scaleFactor = GraphicGenerator.getMdpiScaleFactor(options.density); in generate()
69 notificationOptions.density.getResourceValue() in generate()
DMenuIconGenerator.java41 float scaleFactor = GraphicGenerator.getMdpiScaleFactor(options.density); in generate()
DActionBarIconGenerator.java42 final float scaleFactor = GraphicGenerator.getMdpiScaleFactor(options.density); in generate()
/sdk/sdk_common/src/com/android/ide/common/resources/configuration/
DDensityQualifier.java69 Density density = Density.getEnum(value); in checkAndSet() local
70 if (density == null) { in checkAndSet()
78 density = Density.getEnum(Integer.parseInt(v)); in checkAndSet()
86 if (density != null) { in checkAndSet()
88 qualifier.mValue = density; in checkAndSet()
DFolderConfiguration.java472 Density density = ((DensityQualifier) densityQ).getValue(); in updateScreenWidthAndHeight() local
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/ide/common/rendering/api/
DDrawableParams.java60 Density density, float xdpi, float ydpi, in DrawableParams() argument
65 super(projectKey, screenWidth, screenHeight, density, xdpi, ydpi, in DrawableParams()
DDensityBasedResourceValue.java28 com.android.resources.Density density, boolean isFramework) { in DensityBasedResourceValue() argument
30 mDensity = density; in DensityBasedResourceValue()
DSessionParams.java91 Density density, float xdpi, float ydpi, in SessionParams() argument
96 super(projectKey, screenWidth, screenHeight, density, xdpi, ydpi, in SessionParams()
DRenderParams.java82 Density density, float xdpi, float ydpi, in RenderParams() argument
90 mDensity = density; in RenderParams()
/sdk/layoutlib_api/src/com/android/resources/
DDensity.java41 private Density(String value, String displayValue, int density, int since) { in Density() argument
44 mDensity = density; in Density()
/sdk/layoutlib_api/src/com/android/layoutlib/api/
DILayoutBridge.java114 int density, float xdpi, float ydpi, in computeLayout() argument
150 int screenWidth, int screenHeight, int density, float xdpi, float ydpi, in computeLayout() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcompletion1-expected-completion5.txt2 50dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
Dcompletionvalues1-expected-completion66.txt2 17dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
Dcompletion1-expected-completion4.txt2 50dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
Dcompletionvalues1-expected-completion67.txt2 17dp : <b>Density-independent Pixels</b> - an abstract unit that is based on the physical density o…
Dcompletionvalues1-expected-completion24.txt2 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/
DViewMetadataRepository.java778 public static Margins getInsets(String fqcn, Density density, String theme) { in getInsets() argument
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/templates/activities/MasterDetailFlow/root/res/values-sw600dp/
Drefs.xml.ftl5 of at least 600 density-independent pixels (dips).
/sdk/layoutlib_api/sample/src/com/example/android/render/
DRenderServiceFactory.java112 Density density, in createConfig() argument
136 int wdp = (width * Density.DEFAULT_DENSITY) / density.getDpiValue(); in createConfig()
137 int hdp = (height * Density.DEFAULT_DENSITY) / density.getDpiValue(); in createConfig()
146 config.addQualifier(new DensityQualifier(density)); in createConfig()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/
DAdtPrefs.java436 public void setMonitorDensity(float density) { in setMonitorDensity() argument
437 mMonitorDensity = density; in setMonitorDensity()
441 store.setValue(PREFS_MONITOR_DENSITY, density); in setMonitorDensity()
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/
DSettingsController.java208 public void setMonitorDensity(int density) { in setMonitorDensity() argument
210 ISettingsPage.KEY_MONITOR_DENSITY, Integer.toString(density)); in setMonitorDensity()
/sdk/testapps/customViewTest/libWithCustomView/src/com/android/tests/libwithcustom/
DLabelView.java87 mTextPaint.setTextSize(16 * getResources().getDisplayMetrics().density); in initLabelView()

12