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

1 2 3 4 5

  /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,
  /frameworks/base/core/java/android/text/
TextPaint.java 32 public float density = 1.0f; field in class:TextPaint
67 density = tp.density;
  /frameworks/native/include/ui/
DisplayInfo.h 35 float density; member in struct:android::DisplayInfo
  /frameworks/native/include/private/gui/
SharedBufferStack.h 38 float density; member in struct:android::display_cblk_t
  /cts/tests/src/android/widget/cts/
WidgetTestUtils.java 98 * Compare the expected pixels with actual, scaling for the target context density
103 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density,
107 /** Converts dips into pixels using the {@link Context}'s density. */
109 float density = context.getResources().getDisplayMetrics().density; local
110 return Math.round(density * dip);
114 * Retrieve a bitmap that can be used for comparison on any density
125 * Retrieve a dithered bitmap that can be used for comparison on any density
  /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
113 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...]
  /frameworks/base/core/jni/
android_view_Display.cpp 43 jfieldID density; member in struct:android::offsets_t
60 info.density = 160;
72 env->SetFloatField(clazz, offsets.density, info.density);
140 offsets.density = env->GetFieldID(clazz, "mDensity", "F");
  /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/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() {
69 Density density = Density.getEnum(value) local
    [all...]
  /system/media/audio_effects/include/audio_effects/
effect_environmentalreverb.h 60 int16_t density; member in struct:s_reverb_settings
  /development/samples/Support4Demos/src/com/example/android/supportv4/app/
SharingReceiverSupport.java 48 final float density = getResources().getDisplayMetrics().density; local
49 final int iconSize = (int) (ICON_SIZE * density + 0.5f);
  /frameworks/base/core/java/android/preference/
PreferenceFrameLayout.java 53 float density = context.getResources().getDisplayMetrics().density; local
54 int defaultBorderTop = (int) (density * DEFAULT_BORDER_TOP + 0.5f);
55 int defaultBottomPadding = (int) (density * DEFAULT_BORDER_BOTTOM + 0.5f);
56 int defaultLeftPadding = (int) (density * DEFAULT_BORDER_LEFT + 0.5f);
57 int defaultRightPadding = (int) (density * DEFAULT_BORDER_RIGHT + 0.5f);
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
adfs_fs.h 14 __u8 density; member in struct:adfs_discrecord
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/
adfs_fs.h 14 __u8 density; member in struct:adfs_discrecord
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/
adfs_fs.h 14 __u8 density; member in struct:adfs_discrecord
  /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/graphics/java/android/graphics/
BitmapFactory.java 115 * The pixel density to use for the bitmap. This will always result
116 * in the returned bitmap having a density set for it (see
119 * density does not match {@link #inTargetDensity}, then the bitmap
120 * will be scaled to the target density before being returned.
126 * will fill in the density associated with the resource. The other
127 * functions will leave it as-is and no density will be applied.
138 * The pixel density of the destination this bitmap will be drawn to.
147 * will fill in the density associated the Resources object's
149 * functions will leave it as-is and no scaling for density will be
160 * The pixel density of the actual screen that is being used. This i
341 final int density = value.density; local
493 final int density = opts.inDensity; local
520 final int density = opts.inDensity; local
548 final int density = opts.inDensity; local
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java 72 final float density = metrics.density; local
73 final float blurPx = 5 * density;
123 // Ensure the bitmap has a density.
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
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...]
  /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/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...]
LauncherIconGenerator.java 38 String density; local
40 density = "web";
42 density = launcherOptions.density.getResourceValue();
46 + shape + "/" + density + "/back.png");
48 + shape + "/" + density + "/" + launcherOptions.style.id + ".png");
50 + shape + "/" + density + "/mask.png");
52 float scaleFactor = GraphicGenerator.getMdpiScaleFactor(launcherOptions.density);
129 * Whether a web graphic should be generated (will ignore normal density
131 * method will use this to decide whether to generate a normal density
    [all...]
  /external/webrtc/src/modules/audio_processing/ns/
ns_core.h 68 float density[SIMULT* HALF_ANAL_BLOCKL]; member in struct:NSinst_t_

Completed in 379 milliseconds

1 2 3 4 5