/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
ConfigurableTexts.java | 48 final float density = res.getDisplayMetrics().density; local 50 final int sp = (int)(px / fontScale / density);
|
/frameworks/support/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);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
EdgeTypePreference.java | 61 final float density = getContext().getResources().getDisplayMetrics().density; local 62 preview.setTextSize(DEFAULT_FONT_SIZE * density);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TypedValueTest.java | 18 metrics.density = 0.5f; 65 expectedValue.density = 4; 75 assertThat(expectedValue.density, equalTo(actualValue.density));
|
/frameworks/base/libs/androidfw/tests/data/basic/ |
R.h | 44 density = 0x7f030002, member in struct:com::android::string
|
/external/ImageMagick/coders/ |
cals.c | 175 density, 204 density=0; 222 (void) sscanf(header+8,"%lu",&density); 274 (void) FormatLocaleString(message,MagickPathExtent,"%lu",density); 275 (void) CloneString(&read_info->density,message); 451 density, 542 density=200; 543 if (image_info->density != (char *) NULL) 548 (void) ParseGeometry(image_info->density,&geometry_info); 549 density=(size_t) floor(geometry_info.rho+0.5) 171 density, local 444 density, local [all...] |
/external/eigen/bench/ |
sparse_dense_product.cpp | 10 #ifndef DENSITY 11 #define DENSITY 0.01 56 float density = DENSITY; local 63 for (float density = DENSITY; density>=MINDENSITY; density*=0.5) 65 //fillMatrix(density, rows, cols, sm1); 71 std::cout << "Eigen Dense\t" << density*100 << "%\n" [all...] |
sparse_lu.cpp | 15 #ifndef DENSITY 16 #define DENSITY 0.01 76 float density = DENSITY; local 84 //for (float density = DENSITY; density>=MINDENSITY; density*=0.5) 85 // float density = 0.5; 88 fillMatrix(density, rows, cols, sm1) [all...] |
/external/eigen/test/ |
spqr_support.cpp | 21 double density = (std::max)(8./(rows*cols), 0.01); local 25 initSparse<Scalar>(density, dA, A,ForceNonZeroDiag);
|
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProviderInfo.java | 263 * provide a desired density such as {@link android.util.DisplayMetrics#DENSITY_LOW} 264 * {@link android.util.DisplayMetrics#DENSITY_MEDIUM}, etc. If no density is 265 * provided, the density of the current display will be used. 272 * @param density The optional desired density as per 276 public final Drawable loadIcon(@NonNull Context context, int density) { 277 return loadDrawable(context, density, providerInfo.getIconResource(), true); 282 * A client can optionally provide a desired density such as 284 * {@link android.util.DisplayMetrics#DENSITY_MEDIUM}, etc. If no density is 285 * provided, the density of the current display will be used [all...] |
/frameworks/base/core/java/android/content/res/ |
CompatResources.java | 50 public Drawable getDrawableForDensity(@DrawableRes int id, int density) 52 return getDrawableForDensity(id, density, getTheme());
|
/frameworks/base/core/java/android/text/style/ |
AbsoluteSizeSpan.java | 85 ds.setTextSize(mSize * ds.density); 94 ds.setTextSize(mSize * ds.density);
|
/frameworks/base/core/java/android/view/ |
ViewConfiguration.java | 148 * applications that do not provide a Context for determining density/configuration-dependent 174 * applications that do not provide a Context for determining density/configuration-dependent 335 * various parameters of the context, like the dimension of the display or the density 347 final float density = metrics.density; local 350 sizeAndDensity = density * 1.5f; 352 sizeAndDensity = density; 427 * density of the display. 433 final int density = (int) (100.0f * metrics.density); local [all...] |
/frameworks/base/tools/aapt/tests/ |
ResourceFilter_test.cpp | 28 // such as language or density. 35 config.density = 320; 50 config.density = 320; 73 config.density = 320; 168 config.density = 160; 176 expectedConfig.density = 160; 184 config.density = 160; 189 config.density = 480; 197 expectedConfig.density = 160;
|
/frameworks/base/tools/split-select/ |
Grouper.cpp | 40 if (split.config.density != 0) { 42 key.config.density = 0; 43 key.config.sdkVersion = 0; // Ignore density so we can support anydpi.
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
PagerTabStrip.java | 91 final float density = context.getResources().getDisplayMetrics().density; local 92 mIndicatorHeight = (int) (INDICATOR_HEIGHT * density + 0.5f); 93 mMinPaddingBottom = (int) (MIN_PADDING_BOTTOM * density + 0.5f); 94 mMinTextSpacing = (int) (MIN_TEXT_SPACING * density); 95 mTabPadding = (int) (TAB_PADDING * density + 0.5f); 96 mFullUnderlineHeight = (int) (FULL_UNDERLINE_HEIGHT * density + 0.5f); 97 mMinStripHeight = (int) (MIN_STRIP_HEIGHT * density + 0.5f);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ShadowCardStack.java | 50 float density = getResources().getDisplayMetrics().density; local 54 final float X = X_SHIFT_DP * density; 55 final float Y = Y_SHIFT_DP * density; 56 final float Z = Z_LIFT_DP * density;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
StatusBar.java | 24 import com.android.resources.Density; 56 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi), 64 public StatusBar(BridgeContext context, Density density, boolean isRtl, boolean rtlEnabled, 82 + Config.getWifiIconType(simulatedPlatformVersion), density); 83 loadIcon(2, "stat_sys_battery_100.png", density); 89 protected void loadIcon(int index, String iconName, Density density) { 91 super.loadIcon(index, iconName, density); 98 IconLoader iconLoader = new IconLoader(iconName, Density.XHIGH [all...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 77 * size post scaling (for density / sample size) is smaller.</p> 208 * The pixel density to use for the bitmap. This will always result 209 * in the returned bitmap having a density set for it (see 212 * density does not match {@link #inTargetDensity}, then the bitmap 213 * will be scaled to the target density before being returned. 219 * will fill in the density associated with the resource. The other 220 * functions will leave it as-is and no density will be applied. 231 * The pixel density of the destination this bitmap will be drawn to. 240 * will fill in the density associated the Resources object's 242 * functions will leave it as-is and no scaling for density will b 526 final int density = value.density; local 660 final int density = opts.inDensity; local [all...] |
/frameworks/base/libs/hwui/ |
FrameInfoVisualizer.cpp | 61 static int dpToPx(int dp, float density) { 62 return (int) (dp * density + 0.5f); 74 void FrameInfoVisualizer::setDensity(float density) { 75 if (CC_UNLIKELY(mDensity != density)) { 76 mDensity = density; 77 mVerticalUnit = dpToPx(PROFILE_DRAW_DP_PER_MS, density); 78 mThresholdStroke = dpToPx(PROFILE_DRAW_THRESHOLD_STROKE_WIDTH, density);
|
/frameworks/base/tools/aapt2/split/ |
TableSplitter.cpp | 40 without_density.density = 0; 51 if (config.density == 0) { 55 config.density; 67 // Check if the entry has a density. 69 if (config_value->config.density == 0 && !entry.second) { 83 // We do not care if the value is claimed, since density values can be 93 target_density.density = density_value_iter->second; 125 * leaving only the preferred density behind. 137 // For each preferred density, find the value that is the best. 140 target_density.density = preferred_density [all...] |
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ |
Utils.java | 81 float density = ctx.getResources().getDisplayMetrics().density; local 82 return Math.round((float) dp * density);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
BetaDistributionImpl.java | 56 /** Normalizing factor used in density computations. 126 * Return the probability density for a particular point. 128 * @param x The point at which the density should be computed. 133 public double density(Double x) { method in class:BetaDistributionImpl 134 return density(x.doubleValue()); 138 * Return the probability density for a particular point. 140 * @param x The point at which the density should be computed. 145 public double density(double x) { method in class:BetaDistributionImpl
|
GammaDistributionImpl.java | 198 * Returns the probability density for a particular point. 200 * @param x The point at which the density should be computed. 204 public double density(double x) { method in class:GammaDistributionImpl 210 * Return the probability density for a particular point. 212 * @param x The point at which the density should be computed. 217 public double density(Double x) { method in class:GammaDistributionImpl 218 return density(x.doubleValue());
|
NormalDistributionImpl.java | 151 * Return the probability density for a particular point. 153 * @param x The point at which the density should be computed. 158 public double density(Double x) { method in class:NormalDistributionImpl 159 return density(x.doubleValue()); 163 * Returns the probability density for a particular point. 165 * @param x The point at which the density should be computed. 170 public double density(double x) { method in class:NormalDistributionImpl
|