/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; 30 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, 32 super(context, density, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml"); 48 loadIcon(back, "ic_sysbar_back.png", density, isRtl); 49 loadIcon(2, "ic_sysbar_home.png", density, isRtl); 50 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl);
|
StatusBar.java | 19 import com.android.resources.Density; 33 public StatusBar(Context context, Density density, int direction, boolean RtlEnabled) 37 super(context, density, LinearLayout.HORIZONTAL, "/bars/status_bar.xml", "status_bar.xml"); 47 loadIcon(1, "stat_sys_wifi_signal_4_fully.png", density); 48 loadIcon(2, "stat_sys_battery_charge_anim100.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 139 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; 55 final int density = opts.inDensity; local 56 if (density == 0) { 60 bm.setDensity(density); 62 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { 70 float scale = targetDensity / (float)density; 103 Density density = Density.MEDIUM local [all...] |
/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...] |
/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...] |
eigen2_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|MakeLowerTriangular, &zeroCoords, &nonzeroCoords); 62 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords); 67 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords); 81 initSPD(density, refMat2, m2); 122 //initSPD(density, refMat2, m2) [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/android/view/ |
ViewConfiguration.java | 134 * applications that do not provide a Context for determining density/configuration-dependent 155 * applications that do not provide a Context for determining density/configuration-dependent 260 * various parameters of the context, like the dimension of the display or the density 272 final float density = metrics.density; local 275 sizeAndDensity = density * 1.5f; 277 sizeAndDensity = density; 282 mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f); 283 mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f); 284 mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f) 326 final int density = (int) (100.0f * metrics.density); local [all...] |
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
Wm.java | 52 " wm density [reset|DENSITY]\n" + 57 "wm density: override display density.\n" + 75 } else if (op.equals("density")) { 133 int density; local 138 System.out.println("Physical density: " + initialDensity); 140 System.out.println("Override density: " + baseDensity); 146 density = -1; 149 density = Integer.parseInt(densityStr) 174 int density; local [all...] |