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

1234567

/frameworks/base/tools/layoutlib/bridge/
H A Dupdate_nav_icons.sh38 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"
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DIconLoader.java34 IconLoader(String iconName, Density density, int platformVersion, LayoutDirection direction) { argument
36 mDesiredDensity = density;
56 * Should only be called after {@link #getIcon()}. Returns the density of the icon, if found by
73 * If a match is found, mCurrentDensity will be set to the icon's density.
76 // First check for the desired density.
82 // Didn't find in the desired density. Search in all.
83 for (Density density : Density.values()) {
84 if (density == mDesiredDensity) {
85 // Skip the desired density since it's already been checked.
88 stream = getIcon(resourceDir, density);
101 getIcon(String resourceDir, Density density) argument
[all...]
H A DNavigationBar.java63 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, argument
84 loadIcon(back, "ic_sysbar_back.png", density, isRtl);
86 loadIcon(3, "ic_sysbar_home.png", density, isRtl);
88 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl);
110 size *= context.getMetrics().density;
144 sw /= metrics.density;
H A DStatusBar.java64 public StatusBar(BridgeContext context, Density density, boolean isRtl, boolean rtlEnabled, argument
82 + Config.getWifiIconType(simulatedPlatformVersion), density);
83 loadIcon(2, "stat_sys_battery_100.png", density);
89 protected void loadIcon(int index, String iconName, Density density) { argument
91 super.loadIcon(index, iconName, density);
/frameworks/support/v4/ics-mr1/android/support/v4/content/res/
H A DResourcesCompatIcsMr1.java25 public static Drawable getDrawableForDensity(Resources res, int id, int density) argument
27 return res.getDrawableForDensity(id, density);
/frameworks/base/core/java/android/content/pm/
H A DLauncherActivityInfo.java102 * @param density The preferred density of the icon, zero for default density. Use
103 * density DPI values from {@link DisplayMetrics}.
108 public Drawable getIcon(int density) { argument
110 Drawable icon = getDrawableForDensity(iconRes, density);
111 // Get the default density icon
121 * @param density The preferred density of the icon, zero for default density
127 getOriginalIcon(int density) argument
145 getDrawableForDensity(int iconRes, int density) argument
200 getBadgedIcon(int density) argument
[all...]
/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 * Intermediate density fo
168 public float density; field in class:DisplayMetrics
[all...]
/frameworks/base/core/java/android/text/
H A DTextPaint.java35 public float density = 1.0f; field in class:TextPaint
71 density = tp.density;
/frameworks/support/v4/java/android/support/v4/content/res/
H A DResourcesCompat.java62 * the given screen density in DPI and styled for the specified theme.
64 * Prior to API level 15, the theme and density will not be applied and
73 * @param density The desired screen density indicated by the resource as
82 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) argument
86 return ResourcesCompatApi21.getDrawableForDensity(res, id, density, theme);
88 return ResourcesCompatIcsMr1.getDrawableForDensity(res, id, density);
/frameworks/support/v4/api21/android/support/v4/content/res/
H A DResourcesCompatApi21.java30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) argument
32 return res.getDrawableForDensity(id, density, theme);
/frameworks/native/include/ui/
H A DDisplayInfo.h34 float density; member in struct:android::DisplayInfo
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DSpTexts.java44 final float density = res.getDisplayMetrics().density;
46 final int sp = (int)(px / fontScale / density);
/frameworks/support/v4/java/android/support/v4/widget/
H A DCircleImageView.java53 final float density = getContext().getResources().getDisplayMetrics().density;
54 final int diameter = (int) (radius * density * 2);
55 final int shadowYOffset = (int) (density * Y_OFFSET);
56 final int shadowXOffset = (int) (density * X_OFFSET);
58 mShadowRadius = (int) (density * SHADOW_RADIUS);
63 ViewCompat.setElevation(this, SHADOW_ELEVATION * density);
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java54 " wm density [reset|DENSITY]\n" +
62 "wm density: override display density.\n" +
88 } else if (op.equals("density")) {
174 int density;
179 System.out.println("Physical density: " + initialDensity);
181 System.out.println("Override density: " + baseDensity);
187 density = -1;
190 density = Integer.parseInt(densityStr);
195 if (density < 7
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java76 * size post scaling (for density / sample size) is smaller.</p>
172 * The pixel density to use for the bitmap. This will always result
173 * in the returned bitmap having a density set for it (see
176 * density does not match {@link #inTargetDensity}, then the bitmap
177 * will be scaled to the target density before being returned.
183 * will fill in the density associated with the resource. The other
184 * functions will leave it as-is and no density will be applied.
195 * The pixel density of the destination this bitmap will be drawn to.
204 * will fill in the density associated the Resources object's
206 * functions will leave it as-is and no scaling for density wil
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceFrameLayout.java57 float density = context.getResources().getDisplayMetrics().density;
58 int defaultBorderTop = (int) (density * DEFAULT_BORDER_TOP + 0.5f);
59 int defaultBottomPadding = (int) (density * DEFAULT_BORDER_BOTTOM + 0.5f);
60 int defaultLeftPadding = (int) (density * DEFAULT_BORDER_LEFT + 0.5f);
61 int defaultRightPadding = (int) (density * DEFAULT_BORDER_RIGHT + 0.5f);
/frameworks/base/libs/androidfw/tests/data/basic/
H A DR.h40 density = 0x7f030002, // default enumerator in enum:base::R::string::__anon996
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java55 Density density = Density.MEDIUM;
58 density = Density.getEnum(opts.inDensity);
75 density);
91 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density);
/frameworks/base/core/java/android/view/
H A DViewConfiguration.java134 * 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
275 * various parameters of the context, like the dimension of the display or the density
287 final float density = metrics.density;
290 sizeAndDensity = density * 1.5f;
292 sizeAndDensity = density;
297 mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f);
359 * density of the display.
365 final int density
[all...]
/frameworks/base/core/java/android/app/
H A DIActivityContainer.aidl29 void setSurface(in Surface surface, int width, int height, int density);
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetProviderInfo.java260 * provide a desired density such as {@link android.util.DisplayMetrics#DENSITY_LOW}
261 * {@link android.util.DisplayMetrics#DENSITY_MEDIUM}, etc. If no density is
262 * provided, the density of the current display will be used.
269 * @param density The optional desired density as per
273 public final Drawable loadIcon(@NonNull Context context, int density) { argument
274 return loadDrawable(context, density, providerInfo.getIconResource(), true);
279 * A client can optionally provide a desired density such as
281 * {@link android.util.DisplayMetrics#DENSITY_MEDIUM}, etc. If no density is
282 * provided, the density o
293 loadPreviewImage(@onNull Context context, int density) argument
364 loadDrawable(Context context, int density, int resourceId, boolean loadDefaultIcon) argument
[all...]
/frameworks/base/core/java/android/text/style/
H A DAbsoluteSizeSpan.java85 ds.setTextSize(mSize * ds.density);
94 ds.setTextSize(mSize * ds.density);
/frameworks/base/tools/aapt/tests/
H A DResourceFilter_test.cpp28 // 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/
H A DGrouper.cpp40 if (split.config.density != 0) {
42 key.config.density = 0;
43 key.config.sdkVersion = 0; // Ignore density so we can support anydpi.
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTabStrip.java90 final float density = context.getResources().getDisplayMetrics().density;
91 mIndicatorHeight = (int) (INDICATOR_HEIGHT * density + 0.5f);
92 mMinPaddingBottom = (int) (MIN_PADDING_BOTTOM * density + 0.5f);
93 mMinTextSpacing = (int) (MIN_TEXT_SPACING * density);
94 mTabPadding = (int) (TAB_PADDING * density + 0.5f);
95 mFullUnderlineHeight = (int) (FULL_UNDERLINE_HEIGHT * density + 0.5f);
96 mMinStripHeight = (int) (MIN_STRIP_HEIGHT * density + 0.5f);

Completed in 9859 milliseconds

1234567