/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,
|
/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;
|
/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 131 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); 59 assertEquals(metrics.density,
|
/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...] |
/packages/apps/DeskClock/src/com/android/alarmclock/ |
WidgetUtils.java | 58 float density = res.getDisplayMetrics().density; local 59 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); 62 if (minHeight > 0 && (density * minHeight) 88 float density = res.getDisplayMetrics().density; local 93 float ratio = ((density * minHeight) - lblBox) 125 float density = res.getDisplayMetrics().density; local 131 return ((density * height) > neededSize) [all...] |
/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...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 117 * The pixel density to use for the bitmap. This will always result 118 * in the returned bitmap having a density set for it (see 121 * density does not match {@link #inTargetDensity}, then the bitmap 122 * will be scaled to the target density before being returned. 128 * will fill in the density associated with the resource. The other 129 * functions will leave it as-is and no density will be applied. 140 * The pixel density of the destination this bitmap will be drawn to. 149 * will fill in the density associated the Resources object's 151 * functions will leave it as-is and no scaling for density will be 162 * The pixel density of the actual screen that is being used. This i 344 final int density = value.density; local 496 final int density = opts.inDensity; local 523 final int density = opts.inDensity; local 551 final int density = opts.inDensity; local [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...] |
sparse_transpose.cpp | 10 #ifndef DENSITY 11 #define DENSITY 0.01 40 float density = DENSITY; local 45 for (float density = DENSITY; density>=MINDENSITY; density*=0.5) 47 fillMatrix(density, rows, cols, sm1);
|
/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...] |
/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);
|