/frameworks/base/tools/aapt2/configuration/ |
ConfigurationParser_test.cpp | 53 <screen-density-group label="large"> 54 <screen-density>xhdpi</screen-density> 55 <screen-density>xxhdpi</screen-density> 56 <screen-density>xxxhdpi</screen-density> 57 </screen-density-group> 58 <screen-density-group label="alldpi"> 59 <screen-density>ldpi</screen-density [all...] |
/frameworks/layoutlib/bridge/ |
update_nav_icons.sh | 38 for density in $DENSITIES 40 destination="$BARS/v$CURRENT_API/$density/" 42 cp -v "$FB/packages/SystemUI/res/drawable-$density/$icon" "$destination" 45 for density in $DENSITIES 47 destination="$BARS/v$CURRENT_API/ldrtl-$density/" 49 cp -v "$FB/packages/SystemUI/res/drawable-ldrtl-$density/$icon" "$destination"
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
DpUtil.java | 25 return px / context.getResources().getDisplayMetrics().density; 29 return dp * context.getResources().getDisplayMetrics().density;
|
/frameworks/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 | 20 import com.android.resources.Density; 44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, 46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion, 50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, 70 loadIcon(back, "ic_sysbar_back.png", density, isRtl); 72 loadIcon(3, "ic_sysbar_home.png", density, isRtl); 74 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl); 96 size *= context.getMetrics().density; [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
ChiSquaredDistribution.java | 48 * Return the probability density for a particular point. 49 * @param x The point at which the density should be computed. 52 double density(Double x); method in interface:ChiSquaredDistribution
|
ExponentialDistribution.java | 48 * Return the probability density for a particular point. 49 * @param x The point at which the density should be computed. 52 double density(Double x); method in interface:ExponentialDistribution
|
GammaDistribution.java | 62 * Return the probability density for a particular point. 63 * @param x The point at which the density should be computed. 66 double density(Double x); method in interface:GammaDistribution
|
HasDensity.java | 23 * <p>Interface that signals that a distribution can compute the probability density function 25 * @param <P> the type of the point at which density is to be computed, this 29 * interface will be extended to include a <code>density(double)<code> method.</p> 38 * Compute the probability density function. 39 * @param x point for which the probability density is requested 40 * @return probability density at point x 41 * @throws MathException if probability density cannot be computed at specifed point 43 double density(P x) throws MathException; method in interface:HasDensity
|
NormalDistribution.java | 60 * Return the probability density for a particular point. 61 * @param x The point at which the density should be computed. 64 double density(Double x); method in interface:NormalDistribution
|
BetaDistribution.java | 22 * Computes the cumulative, inverse cumulative and density functions for the beta distribuiton. 58 * Return the probability density for a particular point. 59 * @param x The point at which the density should be computed. 61 * @exception MathException if probability density cannot be computed 63 double density(Double x) throws MathException; method in interface:BetaDistribution
|
/external/icu/icu4c/source/tools/toolutil/ |
denseranges.h | 29 * @param density Minimum average range density, in 256th. (0x100=100%=perfectly dense.) 33 * @return Minimum number of ranges (at most capacity) that have the desired density, 34 * or 0 if that density cannot be achieved. 38 int32_t density,
|
/packages/apps/Settings/src/com/android/settings/display/ |
ScreenZoomPreference.java | 28 * Preference for changing the density of the display on which the preference 41 final DisplayDensityUtils density = new DisplayDensityUtils(context); local 42 final int defaultIndex = density.getCurrentIndex(); 47 final String[] entries = density.getEntries(); 48 final int currentIndex = density.getCurrentIndex();
|
/external/robolectric/v1/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 * Intermediate density for screens that sit between {@link #DENSITY_HIGH} (240dpi) an 203 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
|
/external/ImageMagick/MagickCore/ |
prepress.c | 72 % GetImageTotalInkDensity() returns the total ink density for a CMYK image. 73 % Total Ink Density (TID) is determined by adding the CMYK values in the 123 density; 139 density=(double) GetPixelRed(image,p)+GetPixelGreen(image,p)+ 141 if (density > total_ink_density) 146 if (density > total_ink_density) 147 total_ink_density=density; 121 density; local
|
/frameworks/base/core/java/android/text/ |
TextPaint.java | 36 public float density = 1.0f; field in class:TextPaint 72 density = tp.density; 89 && density == other.density
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
Utils.java | 30 float density = ctx.getResources().getDisplayMetrics().density; local 31 return Math.round((float) dp * density);
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
WidgetUtils.java | 48 float density = res.getDisplayMetrics().density; local 49 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); 86 float density = res.getDisplayMetrics().density; local 87 float ratio = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height);
|
/frameworks/native/libs/ui/include/ui/ |
DisplayInfo.h | 33 float density{0};
|
/external/ImageMagick/Magick++/demo/ |
zoom.cpp | 7 // Usage: zoom [-density resolution] [-filter algorithm] [-geometry geometry] 20 << " [-density resolution] [-filter algorithm] [-geometry geometry]" 52 Point density; local 60 if (command.compare("-density") == 0) 64 density=Geometry(argv[argv_index]); 155 if (density.isValid()) 156 image.density(density); 157 density=image.density(); [all...] |
/frameworks/base/core/java/android/content/pm/ |
LauncherActivityInfo.java | 96 * @param density The preferred density of the icon, zero for default density. Use 97 * density DPI values from {@link DisplayMetrics}. 102 public Drawable getIcon(int density) { 106 // Get the preferred density icon from the app's resources 107 if (density != 0 && iconRes != 0) { 111 icon = resources.getDrawableForDensity(iconRes, density); 115 // Get the default density icon 166 * @param density Optional density for the icon, or 0 to use the default density. Us [all...] |