/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/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 * Standard quantized DPI for extra-high-density screens. 53 * The reference density used throughout the system. 58 * The device's density. 73 * The logical density of the display. This is a scaling factor for the 74 * Density Independent Pixel unit, where one DIP is one pixel on an 77 * this density value will be 1; on a 120 dpi screen it would be .75; etc 89 public float density; field in class:DisplayMetrics [all...] |
/frameworks/base/core/java/android/view/ |
ViewConfiguration.java | 191 * various parameters of the context, like the dimension of the display or the density 201 final float density = metrics.density; local 203 mEdgeSlop = (int) (density * EDGE_SLOP + 0.5f); 204 mFadingEdgeLength = (int) (density * FADING_EDGE_LENGTH + 0.5f); 205 mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f); 206 mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f); 207 mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f); 208 mTouchSlop = (int) (density * TOUCH_SLOP + 0.5f); 209 mPagingTouchSlop = (int) (density * PAGING_TOUCH_SLOP + 0.5f) 229 final int density = (int) (100.0f * metrics.density); local [all...] |
Display.java | 132 outMetrics.density = mDensity; 134 outMetrics.scaledDensity= outMetrics.density;
|
/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 | 20 import com.android.sdklib.resources.Density; 29 * Resource Qualifier for Screen Pixel Density. 34 public static final String NAME = "Pixel Density"; 36 private Density mValue = Density.MEDIUM; 42 public PixelDensityQualifier(Density value) { 46 public Density getValue() { 72 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));
|
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 85 * The pixel density to use for the bitmap. This will always result 86 * in the returned bitmap having a density set for it (see 89 * density does not match {@link #inTargetDensity}, then the bitmap 90 * will be scaled to the target density before being returned. 96 * will fill in the density associated with the resource. The other 97 * functions will leave it as-is and no density will be applied. 108 * The pixel density of the destination this bitmap will be drawn to. 117 * will fill in the density associated the Resources object's 119 * functions will leave it as-is and no scaling for density will be 130 * The pixel density of the actual screen that is being used. This i 314 final int density = value.density; local 471 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);
|
/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/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/sdkmanager/libs/sdklib/src/com/android/sdklib/resources/ |
Density.java | 21 * Density enum. 23 * as well as other places needing to know the density values. 25 public enum Density implements ResourceEnum { 26 HIGH("hdpi", "High Density", 240), //$NON-NLS-1$ 27 MEDIUM("mdpi", "Medium Density", 160), //$NON-NLS-1$ 28 LOW("ldpi", "Low Density", 120), //$NON-NLS-1$ 29 NODPI("nodpi", "No Density", 0); //$NON-NLS-1$ 37 private Density(String value, String displayValue, int density) { 40 mDensity = density; [all...] |
/frameworks/base/include/media/ |
EffectEnvironmentalReverbApi.h | 60 int16_t density; member in struct:s_reverb_settings
|
/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,
|
/frameworks/base/media/java/android/media/audiofx/ |
EnvironmentalReverb.java | 105 * Density. Parameter ID for OnParameterChangeListener 375 * Sets the echo density in the late reverberation decay. 406 * Controls the modal density of the late reverberation decay. 408 * A lower density creates a hollow sound that is useful for simulating small reverberation 410 * @param density density specified using a permille scale. The valid range is [0, 1000]. 417 public void setDensity(short density) 419 byte[] param = shortToByteArray(density); 424 * Gets the density level. 425 * @return the density level. See {@link #setDiffusion(short)} for units 519 public short density; field in class:EnvironmentalReverb.Settings [all...] |
/packages/apps/Settings/src/com/android/settings/ |
Display.java | 70 mDisplayMetrics.density = metrics.density; 99 mDisplayMetrics.scaledDensity = mDisplayMetrics.density *
|