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

1 2 3 4 5

  /external/qemu/android/
hw-lcd.c 17 hwLcd_setBootProperty(int density)
21 /* map density to one of our three values for now */
22 if (density < (LCD_DENSITY_MIN + LCD_DENSITY_DEFAULT)/2)
23 density = LCD_DENSITY_MIN;
24 else if (density < (LCD_DENSITY_DEFAULT + LCD_DENSITY_MAX)/2)
25 density = LCD_DENSITY_DEFAULT;
27 density = LCD_DENSITY_MAX;
29 snprintf(temp, sizeof temp, "%d", density);
hw-lcd.h 19 /* Sets the boot property corresponding to the emulated abstract LCD density */
20 extern void hwLcd_setBootProperty(int density);
  /frameworks/base/core/java/android/text/
TextPaint.java 30 public float density = 1.0f; field in class:TextPaint
55 density = tp.density;
  /frameworks/base/core/java/android/view/
ViewConfiguration.java 177 * various parameters of the context, like the dimension of the display or the density
187 final float density = metrics.density; local
189 mEdgeSlop = (int) (density * EDGE_SLOP + 0.5f);
190 mFadingEdgeLength = (int) (density * FADING_EDGE_LENGTH + 0.5f);
191 mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f);
192 mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f);
193 mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f);
194 mTouchSlop = (int) (density * TOUCH_SLOP + 0.5f);
195 mPagingTouchSlop = (int) (density * PAGING_TOUCH_SLOP + 0.5f)
212 final int density = (int) (100.0f * metrics.density); local
    [all...]
Display.java 131 outMetrics.density = mDensity;
133 outMetrics.scaledDensity= outMetrics.density;
  /frameworks/base/core/java/android/util/
DisplayMetrics.java 26 * size, density, and font scaling.
33 * Standard quantized DPI for low-density screens.
38 * Standard quantized DPI for medium-density screens.
43 * Standard quantized DPI for high-density screens.
48 * The reference density used throughout the system.
53 * The device's density.
68 * The logical density of the display. This is a scaling factor for the
69 * Density Independent Pixel unit, where one DIP is one pixel on an
72 * this density value will be 1; on a 120 dpi screen it would be .75; etc.
77 * example, a 240x320 screen will have a density of 1 even if its width is
84 public float density; field in class:DisplayMetrics
    [all...]
TypedValue.java 142 * If {@link #density} is equal to this value, then the density should be
143 * treated as the system's default density value: {@link DisplayMetrics#DENSITY_DEFAULT}.
148 * If {@link #density} is equal to this value, then there is no density
177 * If the Value came from a resource, this holds the corresponding pixel density.
179 public int density; field in class:TypedValue
222 * supplies display density and scaling information.
246 * supplies display density and scaling information.
273 * supplies display density and scaling information
    [all...]
  /sdk/layoutlib_utils/src/com/android/layoutlib/utils/
DensityBasedResourceValue.java 23 private Density mDensity;
25 public DensityBasedResourceValue(String type, String name, String value, Density density,
28 mDensity = density;
31 public Density getDensity() {
  /cts/tests/tests/dpi/src/android/dpi/cts/
ConfigurationTest.java 36 private enum Density {
47 Density(int low, int high) {
52 public static Density findDensity(int value) {
53 Density density = INVALID_LOW; local
54 for (Density d : EnumSet.range(Density.INVALID_LOW, Density.INVALID_HIGH)) {
56 density = d;
60 return density;
70 private final Density density; field in class:ConfigurationTest.ActiveScreenConfiguration
    [all...]
  /frameworks/base/include/ui/
DisplayInfo.h 35 float density; member in struct:android::DisplayInfo
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/configurations/
PixelDensityQualifier.java 30 * Resource Qualifier for Screen Pixel Density.
35 public static final String NAME = "Pixel Density";
37 private Density mValue = Density.MEDIUM;
42 public static enum Density {
43 HIGH("hdpi", "High Density", IDensityBasedResourceValue.Density.HIGH), //$NON-NLS-1$
44 MEDIUM("mdpi", "Medium Density", IDensityBasedResourceValue.Density.MEDIUM), //$NON-NLS-1$
45 LOW("ldpi", "Low Density", IDensityBasedResourceValue.Density.LOW), //$NON-NLS-1
80 int density = Integer.parseInt(v); local
181 Density density = Density.getEnum(value); local
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java 64 // according to Android enmulator doc UI -scale confine density should between 0.1 to 3
65 assertTrue((0.1 < outMetrics.density) && (outMetrics.density < 3));
76 // according to Android enmulator doc UI -scale confine density should between 0.1 to 3
77 assertTrue((0.1 < metrics.density) && (metrics.density < 3));
TypedValueTest.java 70 dm.density = 1.1f;
130 dm.density = 1.1f;
199 dm.density = 1.1f;
206 assertEquals(10 * dm.density, TypedValue
289 dm.density = 1.1f;
310 dm.density = 1.1f;
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 82 * The pixel density to use for the bitmap. This will always result
83 * in the returned bitmap having a density set for it (see
86 * density does not match {@link #inTargetDensity}, then the bitmap
87 * will be scaled to the target density before being returned.
93 * will fill in the density associated with the resource. The other
94 * functions will leave it as-is and no density will be applied.
105 * The pixel density of the destination this bitmap will be drawn to.
114 * will fill in the density associated the Resources object's
116 * functions will leave it as-is and no scaling for density will be
127 * The pixel density of the actual screen that is being used. This i
311 final int density = value.density; local
470 final int density = opts.inDensity; local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory.java 81 * The pixel density to use for the bitmap. This will always result
82 * in the returned bitmap having a density set for it (see
85 * density does not match {@link #inTargetDensity}, then the bitmap
86 * will be scaled to the target density before being returned.
92 * will fill in the density associated with the resource. The other
93 * functions will leave it as-is and no density will be applied.
104 * The pixel density of the destination this bitmap will be drawn to.
113 * will fill in the density associated the Resources object's
115 * functions will leave it as-is and no scaling for density will be
126 * The pixel density of the actual screen that is being used. This i
310 final int density = value.density; local
471 final int density = opts.inDensity; 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...]
  /cts/tests/tests/view/src/android/view/cts/
DisplayTest.java 100 // The scale is in [0.1, 3], and density is the scale factor.
101 assertTrue(0.1f <= outMetrics.density && outMetrics.density <= 3.0f);
102 assertTrue(0.1f <= outMetrics.scaledDensity && outMetrics.density <= 3.0f);
  /frameworks/base/core/jni/
android_view_Display.cpp 38 jfieldID density; member in struct:android::offsets_t
63 env->SetFloatField(clazz, offsets.density, info.density);
121 offsets.density = env->GetFieldID(clazz, "mDensity", "F");
  /frameworks/base/core/java/android/text/style/
AbsoluteSizeSpan.java 75 ds.setTextSize(mSize * ds.density);
84 ds.setTextSize(mSize * ds.density);
  /frameworks/base/tools/localize/
Configuration.cpp 18 n = density.compare(that.density);
Configuration.h 13 string density; member in struct:Configuration
  /sdk/layoutlib_api/src/com/android/layoutlib/api/
ILayoutBridge.java 75 * @param density the density factor for the screen.
97 int density, float xdpi, float ydpi,
110 * @param density the density factor for the screen.
132 int screenWidth, int screenHeight, int density, float xdpi, float ydpi,
  /packages/apps/Settings/src/com/android/settings/
Display.java 70 mDisplayMetrics.density = metrics.density;
99 mDisplayMetrics.scaledDensity = mDisplayMetrics.density *
  /frameworks/base/core/java/com/android/internal/widget/
DialogTitle.java 62 (int) (20 * getResources().getDisplayMetrics().density));
  /packages/apps/Email/src/com/android/email/activity/
AccountFolderListItem.java 82 float paddingScale = getContext().getResources().getDisplayMetrics().density;

Completed in 491 milliseconds

1 2 3 4 5