/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 | 24 /* Sets the boot property corresponding to the emulated abstract LCD density */ 25 extern void hwLcd_setBootProperty(int density);
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
LauncherActivityInfoCompat.java | 31 public abstract Drawable getIcon(int density); 34 public abstract Drawable getBadgedIcon(int density);
|
LauncherActivityInfoCompatVL.java | 45 public Drawable getIcon(int density) { 46 return mLauncherActivityInfo.getIcon(density); 57 public Drawable getBadgedIcon(int density) { 58 return mLauncherActivityInfo.getBadgedIcon(density);
|
LauncherActivityInfoCompatV16.java | 55 public Drawable getIcon(int density) { 66 d = resources.getDrawableForDensity(mActivityInfo.getIconResource(), density); 74 d = resources.getDrawableForDensity(android.R.mipmap.sym_def_app_icon, density); 96 public Drawable getBadgedIcon(int density) { 97 return getIcon(density);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
IconLoader.java | 19 import com.android.resources.Density; 27 private final Density mDesiredDensity; 31 private Density mCurrentDensity; 34 IconLoader(String iconName, Density density, int platformVersion, LayoutDirection direction) { 36 mDesiredDensity = density; 56 * Should only be called after {@link #getIcon()}. Returns the density of the icon, if found by 59 public Density getDensity() { 73 * If a match is found, mCurrentDensity will be set to the icon's density. 76 // First check for the desired density [all...] |
NavigationBar.java | 19 import com.android.resources.Density; 29 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, 49 loadIcon(back, "ic_sysbar_back.png", density, isRtl); 51 loadIcon(2, "ic_sysbar_home.png", density, isRtl); 53 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl);
|
/frameworks/base/core/java/android/text/ |
TextPaint.java | 32 public float density = 1.0f; field in class:TextPaint 67 density = tp.density;
|
/external/chromium_org/third_party/icu/source/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,
|
/external/icu/icu4c/source/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,
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowViewConfiguration.java | 75 float density = metrics.density; local 77 edgeSlop = (int) (density * EDGE_SLOP + 0.5f); 78 fadingEdgeLength = (int) (density * FADING_EDGE_LENGTH + 0.5f); 79 minimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f); 80 maximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f); 81 scrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f); 82 touchSlop = (int) (density * TOUCH_SLOP + 0.5f); 83 pagingTouchSlop = (int) (density * PAGING_TOUCH_SLOP + 0.5f); 84 doubleTapSlop = (int) (density * DOUBLE_TAP_SLOP + 0.5f) [all...] |
ShadowDisplay.java | 19 private float density = 1.5f; field in class:ShadowDisplay 35 outMetrics.density = density; 70 return density; 73 public void setDensity(float density) { 74 this.density = density;
|
/frameworks/support/v4/ics-mr1/android/support/v4/content/res/ |
ResourcesCompatIcsMr1.java | 25 public static Drawable getDrawableForDensity(Resources res, int id, int density) 27 return res.getDrawableForDensity(id, 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 * Intermediate density for screens that sit between {@link #DENSITY_HIGH} (240dpi) an 152 public float density; field in class:DisplayMetrics [all...] |
/cts/tools/utils/ |
rm_dup_holo_imgs.py | 42 for density in densities: 43 portDir = getDirName(density, sw, False) 44 landDir = getDirName(density, sw, True) 61 def getDirName(density, sw, land): 67 return name + density
|
/frameworks/support/v4/java/android/support/v4/content/res/ |
ResourcesCompat.java | 62 * the given screen density in DPI and styled for the specified theme. 64 * Prior to API level 15, the theme and density will not be applied and 73 * @param density The desired screen density indicated by the resource as 82 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) 86 return ResourcesCompatApi21.getDrawableForDensity(res, id, density, theme); 88 return ResourcesCompatIcsMr1.getDrawableForDensity(res, id, density);
|
/frameworks/support/v4/api21/android/support/v4/content/res/ |
ResourcesCompatApi21.java | 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) 32 return res.getDrawableForDensity(id, density, theme);
|
/cts/tests/tests/util/src/android/util/cts/ |
DisplayMetricsTest.java | 39 // according to Android emulator doc UI -scale confine density should between 0.1 to 4 40 assertTrue((0.1 <= outMetrics.density) && (outMetrics.density <= 4)); 51 // according to Android emulator doc UI -scale confine density should between 0.1 to 4 52 assertTrue((0.1 <= metrics.density) && (metrics.density <= 4));
|
/frameworks/base/libs/hwui/tests/ |
TestContext.h | 24 #define dp(x) ((x) * gDisplay.density)
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
WidgetUtils.java | 59 float density = res.getDisplayMetrics().density; local 60 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); 63 if (minHeight > 0 && (density * minHeight) 89 float density = res.getDisplayMetrics().density; local 94 float ratio = ((density * minHeight) - lblBox) 126 float density = res.getDisplayMetrics().density; local 132 return ((density * height) > neededSize) [all...] |
/cts/tests/tests/dpi/src/android/dpi/cts/ |
ConfigurationTest.java | 52 double density = 160.0d * metrics.density; local 53 assertTrue("Screen density must be at least 100 dpi: " + density, density >= 100.0d); 68 assertEquals(metrics.density,
|
/external/eigen/test/eigen2/ |
sparse.h | 38 * and a ratio of \a density non zero entries. 45 initSparse(double density, 52 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density)); 57 Scalar v = (ei_random<double>(0,1) < density) ? ei_random<Scalar>() : Scalar(0); 88 initSparse(double density, 95 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density)); 100 Scalar v = (ei_random<double>(0,1) < density) ? ei_random<Scalar>() : Scalar(0); 131 initSparse(double density, 137 sparseVec.reserve(int(refVec.size()*density)); 141 Scalar v = (ei_random<double>(0,1) < density) ? ei_random<Scalar>() : Scalar(0) [all...] |
/external/eigen/bench/ |
sparse_trisolver.cpp | 11 #ifndef DENSITY 12 #define DENSITY 0.01 40 void fillMatrix(float density, int rows, int cols, EigenSparseTriMatrix& dst) 42 dst.startFill(rows*cols*density); 47 Scalar v = (internal::random<float>(0,1) < density) ? internal::random<Scalar>() : 0; 60 float density = DENSITY; local 70 for (float density = DENSITY; density>=MINDENSITY; density*=0.5 [all...] |
/external/eigen/test/ |
sparse_solvers.cpp | 13 initSPD(double density, 18 initSparse(density,refMat,sparseMat); 22 initSparse(density,aux,sparseMat,ForceNonZeroDiag); 35 double density = (std::max)(8./(rows*cols), 0.01); local 52 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonzeroCoords); 57 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords); 71 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonzeroCoords); 76 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords); 84 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular); 85 initSparse<Scalar>(density, refMatB, matB) [all...] |