/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/ |
SlidingTabStrip.java | 65 final float density = getResources().getDisplayMetrics().density; local 79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); 83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); 88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/ |
SlidingTabStrip.java | 65 final float density = getResources().getDisplayMetrics().density; local 79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); 83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); 88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/ |
SlidingTabStrip.java | 65 final float density = getResources().getDisplayMetrics().density; local 79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); 83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); 88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/ |
SlidingTabStrip.java | 65 final float density = getResources().getDisplayMetrics().density; local 79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); 83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); 88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
SlidingTabStrip.java | 65 final float density = getResources().getDisplayMetrics().density; local 79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); 83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); 88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
|
/external/eigen/bench/ |
BenchSparseUtil.h | 14 #ifndef DENSITY 15 #define DENSITY 0.01 27 void fillMatrix(float density, int rows, int cols, EigenSparseMatrix& dst) 29 dst.reserve(double(rows)*cols*density); 34 Scalar v = (internal::random<float>(0,1) < density) ? internal::random<Scalar>() : 0;
|
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/ |
Utils.java | 79 float density = ctx.getResources().getDisplayMetrics().density; local 80 return Math.round((float) dp * density);
|
/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);
|
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
CardPresenter.java | 40 float density = context.getResources().getDisplayMetrics().density; local 41 int height = (int) (IMAGE_HEIGHT_DP * density + 0.5f);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
IntegerDistribution.java | 32 * @param x the value at which the probability density function is evaluated. 33 * @return the value of the probability density function at x 67 * probability under (the density of) X, then <code>m - 1</code> is
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
GlideBitmapDrawable.java | 39 final int density = res.getDisplayMetrics().densityDpi; local 40 targetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density;
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_fog.c | 111 d = ctx->Fog.Density; 116 d = ctx->Fog.Density*ctx->Fog.Density;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ResourcesTest.java | 127 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1f)); 130 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1.5f)); 133 assertThat(anotherActivity.getResources().getDisplayMetrics().density, equalTo(1.5f));
|
/frameworks/base/docs/html/training/multiscreen/ |
index.jd | 79 pixel densities (using density-independent pixels and providing 80 bitmaps appropriate for each density).</dd> 84 that adapts to several screen size/density combinations
|
/frameworks/base/tools/aapt/ |
ResourceFilter.cpp | 44 // Ignore any densities. Those are best handled in --preferred-density 46 fprintf(stderr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().string()); 47 entry.first.density = 0;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 27 import com.android.resources.Density; 112 metrics.density = metrics.noncompatDensity = 115 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; 267 // clear the stored ViewConfiguration since the map is per density and not per context. 348 Density density = hardwareConfig.getDensity(); local 349 if (density == null) { 350 density = Density.MEDIUM; 353 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue() [all...] |
/packages/apps/Camera2/ |
version.mk | 20 # d - asset density (exactly 1 digit). Current valid values are: 27 # For the client jar, the version code is agnostic to the target architecture and density: Mmbbbt00 29 # NOTE: arch needs to be more significant than density because x86 devices support running ARM
|
/packages/apps/Settings/src/com/android/settings/ |
Display.java | 70 mDisplayMetrics.density = metrics.density; 99 mDisplayMetrics.scaledDensity = mDisplayMetrics.density *
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
BogusMoveEventDetector.java | 41 // 1) is large tablet, or 2) is small tablet and the screen density is less than hdpi. 42 // Though it seems odd to use screen density as criteria of the quality of the touch 43 // screen, the small table that has a less density screen than hdpi most likely has been
|
/frameworks/base/libs/androidfw/tests/ |
Split_test.cpp | 172 baseConfig.density = ResTable_config::DENSITY_XHIGH; 180 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "hdpi")); 184 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "xhdpi")); 188 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "xhdpi")); 190 baseConfig.density = ResTable_config::DENSITY_XXHIGH; 193 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "xxhdpi"));
|
/development/apps/Development/src/com/android/development/ |
ConfigurationViewer.java | 56 + "density=" + m.density + "\n"
|
/external/ceres-solver/data/nist/ |
Thurber.dat | 14 predictor variable is the natural log of the density.
26 1 Predictor Variable (x = log[density])
|
/external/eigen/test/ |
sparse_solver.h | 153 double density = (std::max)(8./(size*size), 0.01); local 158 initSparse<Scalar>(density, dM, M, ForceNonZeroDiag); 199 double density = (std::max)(8./(size*rhsCols), 0.1); local 203 initSparse<Scalar>(density, dB, B, ForceNonZeroDiag); 267 double density = (std::max)(8./(size*size), 0.01); local 272 initSparse<Scalar>(density, dA, A, ForceNonZeroDiag); 296 double density = (std::max)(8./(size*rhsCols), 0.1); local 297 initSparse<Scalar>(density, dB, B, ForceNonZeroDiag);
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
icon_design_launcher.jd | 45 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#icon-sets">Providing Density-Specific 48 medium-, high-, and extra-high-density screens. This ensures that your icons will display properly 189 launcher icon dimensions corresponding to a given generalized screen density are shown in the 193 finished launcher icon dimensions for each generalized screen density.</p> 201 <small style="font-weight: normal">(Low density screen)</small> 205 <small style="font-weight: normal">(Medium density screen)</small> 209 <small style="font-weight: normal">(High density screen)</small> 213 <small style="font-weight: normal">(Extra-high density screen)</small>
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
TextTest.java | 89 Font.Style.NORMAL, 8.0f / metrics.density)); 91 Font.Style.NORMAL, 8.0f / metrics.density));
|