Searched refs:density (Results 1 - 25 of 120) sorted by relevance

12345

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DNavigationBar.java29 public NavigationBar(Context context, Density density, int orientation) throws XmlPullParserException { argument
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);
H A DStatusBar.java33 public StatusBar(Context context, Density density) throws XmlPullParserException { argument
34 super(context, density, LinearLayout.HORIZONTAL, "/bars/status_bar.xml", "status_bar.xml");
44 loadIcon(1, "stat_sys_wifi_signal_4_fully.png", density);
H A DFakeActionBar.java31 public FakeActionBar(Context context, Density density, String label, String icon) argument
33 super(context, density, LinearLayout.HORIZONTAL, "/bars/action_bar.xml", "action_bar.xml");
H A DTitleBar.java31 public TitleBar(Context context, Density density, String label) argument
33 super(context, density, LinearLayout.HORIZONTAL, "/bars/title_bar.xml", "title_bar.xml");
H A DCustomBar.java63 protected CustomBar(Context context, Density density, int orientation, String layoutPath, argument
91 // current density
92 Density density = densityInOut[0];
95 pathOut[0] = "/bars/" + density.getResourceValue() + "/" + iconName;
100 if (d != density) {
113 protected void loadIcon(int index, String iconName, Density density) { argument
119 Density[] densityInOut = new Density[] { density };
122 density = densityInOut[0];
129 bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
/frameworks/base/core/java/android/text/
H A DTextPaint.java32 public float density = 1.0f; field in class:TextPaint
67 density = tp.density;
/frameworks/base/core/java/android/util/
H A DDisplayMetrics.java24 * 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 screen
131 public float density; field in class:DisplayMetrics
[all...]
H A DTypedValue.java142 * If {@link #density} is equal to this value, then the density should be
143 * treated as the system's default density value: {@link DisplayMetrics#DENSITY_DEFAULT}.
148 * If {@link #density} is equal to this value, then there is no density
177 * If the Value came from a resource, this holds the corresponding pixel density.
179 public int density; field in class:TypedValue
222 * supplies display density and scaling information.
246 * supplies display density and scaling information.
273 * supplies display density an
[all...]
/frameworks/native/include/ui/
H A DDisplayInfo.h33 float density; member in struct:android::DisplayInfo
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java52 final int density = opts.inDensity;
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;
102 density = Density.getEnum(opts.inDensity);
116 density);
130 bm = Bitmap_Delegate.createBitmap(is, true, density);
[all...]
H A DBitmap_Delegate.java89 * @param density the density associated with the bitmap
94 public static Bitmap createBitmap(File input, boolean isMutable, Density density) argument
99 return createBitmap(delegate, isMutable, density.getDpiValue());
107 * @param density the density associated with the bitmap
112 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) argument
117 return createBitmap(delegate, isMutable, density.getDpiValue());
125 * @param density the density associate
130 createBitmap(BufferedImage image, boolean isMutable, Density density) argument
433 nativeWriteToParcel(int nativeBitmap, boolean isMutable, int density, Parcel p) argument
549 createBitmap(Bitmap_Delegate delegate, boolean isMutable, int density) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java117 * 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 o
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java52 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/
H A DZoomManagerTest.java40 private void testInit(float density) { argument
41 zoomManager.init(density);
42 actualScaleTest(density);
43 defaultScaleTest(density);
46 assertEquals(density, zoomManager.getTextWrapScale());
56 private void testUpdateDefaultZoomDensity(float density) { argument
57 zoomManager.updateDefaultZoomDensity(density);
58 defaultScaleTest(density);
/frameworks/base/core/java/android/view/
H A DViewConfiguration.java127 * applications that do not provide a Context for determining density/configuration-dependent
148 * applications that do not provide a Context for determining density/configuration-dependent
253 * various parameters of the context, like the dimension of the display or the density
265 final float density = metrics.density;
268 sizeAndDensity = density * 1.5f;
270 sizeAndDensity = density;
275 mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f);
276 mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f);
277 mScrollbarSize = (int) (density * SCROLL_BAR_SIZ
[all...]
H A DSurfaceControl.java396 public float density; field in class:SurfaceControl.PhysicalDisplayInfo
418 && density == other.density
433 density = other.density;
443 + "density " + density + ", " + xDpi + " x " + yDpi + " dpi, secure " + secure
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java52 " wm density [reset|DENSITY]\n" +
57 "wm density: override display density.\n" +
75 } else if (op.equals("density")) {
133 int density;
138 System.out.println("Physical density: " + initialDensity);
140 System.out.println("Override density: " + baseDensity);
146 density = -1;
149 density = Integer.parseInt(densityStr);
154 if (density < 7
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceFrameLayout.java53 float density = context.getResources().getDisplayMetrics().density;
54 int defaultBorderTop = (int) (density * DEFAULT_BORDER_TOP + 0.5f);
55 int defaultBottomPadding = (int) (density * DEFAULT_BORDER_BOTTOM + 0.5f);
56 int defaultLeftPadding = (int) (density * DEFAULT_BORDER_LEFT + 0.5f);
57 int defaultRightPadding = (int) (density * DEFAULT_BORDER_RIGHT + 0.5f);
/frameworks/base/core/java/android/text/style/
H A DAbsoluteSizeSpan.java75 ds.setTextSize(mSize * ds.density);
84 ds.setTextSize(mSize * ds.density);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java109 metrics.density = metrics.noncompatDensity =
112 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density;
255 // clear the stored ViewConfiguration since the map is per density and not per context.
332 Density density = hardwareConfig.getDensity();
333 if (density == null) {
334 density = Density.MEDIUM;
337 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue();
338 config.screenHeightDp = hardwareConfig.getScreenHeight() / density.getDpiValue();
344 config.densityDpi = density.getDpiValue();
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTabStrip.java87 final float density = context.getResources().getDisplayMetrics().density;
88 mIndicatorHeight = (int) (INDICATOR_HEIGHT * density + 0.5f);
89 mMinPaddingBottom = (int) (MIN_PADDING_BOTTOM * density + 0.5f);
90 mMinTextSpacing = (int) (MIN_TEXT_SPACING * density);
91 mTabPadding = (int) (TAB_PADDING * density + 0.5f);
92 mFullUnderlineHeight = (int) (FULL_UNDERLINE_HEIGHT * density + 0.5f);
93 mMinStripHeight = (int) (MIN_STRIP_HEIGHT * density + 0.5f);
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DTextTest.java89 Font.Style.NORMAL, 8.0f / metrics.density));
91 Font.Style.NORMAL, 8.0f / metrics.density));
/frameworks/base/media/java/android/media/audiofx/
H A DEnvironmentalReverb.java375 * Sets the echo density in the late reverberation decay.
406 * Controls the modal density of the late reverberation decay.
408 * A lower density creates a hollow sound that is useful for simulating small reverberation
410 * @param density density specified using a permille scale. The valid range is [0, 1000].
417 public void setDensity(short density) argument
419 byte[] param = shortToByteArray(density);
424 * Gets the density level.
425 * @return the density level. See {@link #setDiffusion(short)} for units.
519 public short density; field in class:EnvironmentalReverb.Settings
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardWidgetFrame.java108 float density = res.getDisplayMetrics().density;
109 int padding = (int) (res.getDisplayMetrics().density * 8);
112 mFrameStrokeAdjustment = 2 + (int) (2 * density);
486 float density = getResources().getDisplayMetrics().density;
488 int width = (int) (content.getMeasuredWidth() / density);
489 int height = (int) (content.getMeasuredHeight() / density);
/frameworks/base/native/android/
H A Dconfiguration.cpp71 return config->density;
159 void AConfiguration_setDensity(AConfiguration* config, int32_t density) { argument
160 config->density = density;

Completed in 892 milliseconds

12345