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

1 2 3 4 5 6 7 8 91011>>

  /external/qemu/android/
hw-lcd.c 17 hwLcd_setBootProperty(int density)
21 /* Map density to one of our five bucket values.
22 The TV density is a bit particular (and not actually a bucket
25 if (density != LCD_DENSITY_TVDPI) {
26 if (density < (LCD_DENSITY_LDPI + LCD_DENSITY_MDPI)/2)
27 density = LCD_DENSITY_LDPI;
28 else if (density < (LCD_DENSITY_MDPI + LCD_DENSITY_HDPI)/2)
29 density = LCD_DENSITY_MDPI;
30 else if (density < (LCD_DENSITY_HDPI + LCD_DENSITY_XHDPI)/2)
31 density = LCD_DENSITY_HDPI
    [all...]
hw-lcd.h 21 /* Sets the boot property corresponding to the emulated abstract LCD density */
22 extern void hwLcd_setBootProperty(int density);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
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);
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);
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");
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");
  /frameworks/base/core/java/android/text/
TextPaint.java 32 public float density = 1.0f; field in class:TextPaint
67 density = tp.density;
  /external/icu4c/tools/toolutil/
denseranges.h 27 * @param density Minimum average range density, in 256th. (0x100=100%=perfectly dense.)
31 * @return Minimum number of ranges (at most capacity) that have the desired density,
32 * or 0 if that density cannot be achieved.
36 int32_t density,
  /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...]
  /frameworks/base/core/java/android/util/
DisplayMetrics.java 24 * size, density, and font scaling.
31 * Standard quantized DPI for low-density screens.
36 * Standard quantized DPI for medium-density screens.
41 * This is a secondary density, added for some common screen configurations.
43 * class density -- that is, don't supply specific graphics for this
44 * density, instead allow the platform to scale from other densities
51 * <p>This density was original introduced to correspond with a
52 * 720p TV screen: the density for 1080p televisions is
60 * Standard quantized DPI for high-density screens.
65 * Standard quantized DPI for extra-high-density screens
122 public float density; field in class:DisplayMetrics
    [all...]
  /cts/tests/tests/dpi/src/android/dpi/cts/
ConfigurationTest.java 46 double density = 160.0d * metrics.density; local
47 assertTrue("Screen density must be at least 100 dpi: " + density, density >= 100.0d);
58 assertEquals(metrics.density,
  /sdk/layoutlib_api/src/com/android/ide/common/rendering/api/
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,
  /cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java 39 // according to Android enmulator doc UI -scale confine density should between 0.1 to 3
40 assertTrue((0.1 < outMetrics.density) && (outMetrics.density < 3));
51 // according to Android enmulator doc UI -scale confine density should between 0.1 to 3
52 assertTrue((0.1 < metrics.density) && (metrics.density < 3));
  /frameworks/native/include/ui/
DisplayInfo.h 33 float density; member in struct:android::DisplayInfo
  /external/jmonkeyengine/engine/src/core/com/jme3/audio/
Environment.java 49 private float density = 1.0f; field in class:Environment
86 this.density = source.density;
97 public Environment(float density, float diffusion, float gain, float gainHf,
102 this.density = density;
121 // density = 0;
186 return density;
189 public void setDensity(float density) {
190 this.density = density
    [all...]
  /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...]
  /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...]
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 116 * The pixel density to use for the bitmap. This will always result
117 * in the returned bitmap having a density set for it (see
120 * density does not match {@link #inTargetDensity}, then the bitmap
121 * will be scaled to the target density before being returned.
127 * will fill in the density associated with the resource. The other
128 * functions will leave it as-is and no density will be applied.
139 * The pixel density of the destination this bitmap will be drawn to.
148 * will fill in the density associated the Resources object's
150 * functions will leave it as-is and no scaling for density will be
161 * The pixel density of the actual screen that is being used. This i
343 final int density = value.density; local
495 final int density = opts.inDensity; local
522 final int density = opts.inDensity; local
550 final int density = opts.inDensity; local
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
PlatLogoActivity.java 52 final int p = (int)(8 * metrics.density);
58 final float size = 14 * metrics.density;
63 lp.bottomMargin = (int) (-4*metrics.density);
69 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000);
77 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000);
98 final int p = (int)(32 * metrics.density);
  /frameworks/base/core/tests/coretests/src/android/webkit/
ZoomManagerTest.java 40 private void testInit(float density) {
41 zoomManager.init(density);
42 actualScaleTest(density);
43 defaultScaleTest(density);
46 assertEquals(density, zoomManager.getTextWrapScale());
56 private void testUpdateDefaultZoomDensity(float density) {
57 zoomManager.updateDefaultZoomDensity(density);
58 defaultScaleTest(density);
  /sdk/assetstudio/src/com/android/assetstudiolib/
LauncherIconGenerator.java 38 String density; local
40 density = "web";
42 density = launcherOptions.density.getResourceValue();
50 + shape + "/" + density + "/back.png");
52 + shape + "/" + density + "/" + launcherOptions.style.id + ".png");
54 + shape + "/" + density + "/mask.png");
57 float scaleFactor = GraphicGenerator.getMdpiScaleFactor(launcherOptions.density);
140 * Whether a web graphic should be generated (will ignore normal density
142 * method will use this to decide whether to generate a normal density
    [all...]
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...]
  /cts/tests/tests/view/src/android/view/cts/
DisplayTest.java 55 // The scale is in [0.1, 3], and density is the scale factor.
56 assertTrue(0.1f <= outMetrics.density && outMetrics.density <= 3.0f);
57 assertTrue(0.1f <= outMetrics.scaledDensity && outMetrics.density <= 3.0f);
  /frameworks/base/core/java/android/view/
ViewConfiguration.java 127 * applications that do not provide a Context for determining density/configuration-dependent
148 * applications that do not provide a Context for determining density/configuration-dependent
253 * various parameters of the context, like the dimension of the display or the density
265 final float density = metrics.density; local
268 sizeAndDensity = density * 1.5f;
270 sizeAndDensity = density;
275 mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f);
276 mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f);
277 mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f)
319 final int density = (int) (100.0f * metrics.density); local
    [all...]
  /external/srec/srec/cfront/
spec_anl.c 46 void peakpick(front_freq *freqobj, fftdata *density, int num_freq);
52 void filtbank(front_freq *freqobj, fftdata *density, cepdata *fbo);
214 void peakpick(front_freq *freqobj, fftdata *density, int num_freq)
243 ASSERT(density[last] >= 0);
244 peak = density[last];
249 if (density[i] > peak)
250 peak = density[i];
252 density[i] = peak;
257 peak = density[first];
261 if (density[i] > peak
    [all...]

Completed in 712 milliseconds

1 2 3 4 5 6 7 8 91011>>