/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | IconLoader.java | 34 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 D | NavigationBar.java | 29 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, argument 49 loadIcon(back, "ic_sysbar_back.png", density, isRtl); 51 loadIcon(2, "ic_sysbar_home.png", density, isRtl); 53 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl);
|
H A D | StatusBar.java | 44 public StatusBar(Context context, Density density, int direction, boolean RtlEnabled, argument 61 + Config.getWifiIconType(simulatedPlatformVersion), density); 62 loadIcon(2, "stat_sys_battery_100.png", density); 68 protected void loadIcon(int index, String iconName, Density density) { argument 70 super.loadIcon(index, iconName, density);
|
/frameworks/base/core/java/android/text/ |
H A D | TextPaint.java | 32 public float density = 1.0f; field in class:TextPaint 67 density = tp.density;
|
/frameworks/support/v4/ics-mr1/android/support/v4/content/res/ |
H A D | ResourcesCompatIcsMr1.java | 25 public static Drawable getDrawableForDensity(Resources res, int id, int density) argument 27 return res.getDrawableForDensity(id, density);
|
/frameworks/base/core/java/android/util/ |
H A D | 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 fo 152 public float density; field in class:DisplayMetrics [all...] |
/frameworks/support/v4/java/android/support/v4/content/res/ |
H A D | ResourcesCompat.java | 62 * 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 D | ResourcesCompatApi21.java | 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) argument 32 return res.getDrawableForDensity(id, density, theme);
|
/frameworks/base/libs/hwui/tests/ |
H A D | TestContext.h | 24 #define dp(x) ((x) * gDisplay.density)
|
/frameworks/base/core/java/android/content/pm/ |
H A D | LauncherActivityInfo.java | 100 * @param density The preferred density of the icon, zero for default density. Use 101 * density DPI values from {@link DisplayMetrics}. 106 public Drawable getIcon(int density) { argument 107 // TODO: Use density 148 * @param density Optional density for the icon, or 0 to use the default density. Use 153 public Drawable getBadgedIcon(int density) { argument [all...] |
/frameworks/native/include/ui/ |
H A D | DisplayInfo.h | 34 float density; member in struct:android::DisplayInfo
|
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
H A D | Wm.java | 52 " 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/support/v4/java/android/support/v4/widget/ |
H A D | CircleImageView.java | 53 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/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 76 * 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 D | PreferenceFrameLayout.java | 57 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/core/java/android/view/ |
H A D | ViewConfiguration.java | 134 * 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 270 * various parameters of the context, like the dimension of the display or the density 282 final float density = metrics.density; 285 sizeAndDensity = density * 1.5f; 287 sizeAndDensity = density; 292 mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f); 354 * density of the display. 360 final int density [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | Config_test.cpp | 45 static ResTable_config buildDensityConfig(int density) { argument 48 config.density = uint16_t(density); 56 deviceConfig.density = ResTable_config::DENSITY_XHIGH;
|
/frameworks/base/libs/androidfw/tests/data/basic/ |
H A D | R.h | 40 density = 0x7f030002, // default enumerator in enum:base::R::string::__anon954
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 55 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/app/ |
H A D | IActivityContainer.aidl | 29 void setSurface(in Surface surface, int width, int height, int density);
|
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetProviderInfo.java | 260 * 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 D | AbsoluteSizeSpan.java | 75 ds.setTextSize(mSize * ds.density); 84 ds.setTextSize(mSize * ds.density);
|
/frameworks/base/libs/hwui/ |
H A D | DrawProfiler.cpp | 55 static int dpToPx(int dp, float density) { argument 56 return (int) (dp * density + 0.5f); 78 void DrawProfiler::setDensity(float density) { argument 79 if (CC_UNLIKELY(mDensity != density)) { 80 mDensity = density; 81 mVerticalUnit = dpToPx(PROFILE_DRAW_DP_PER_MS, density); 82 mHorizontalUnit = dpToPx(PROFILE_DRAW_WIDTH, density); 83 mThresholdStroke = dpToPx(PROFILE_DRAW_THRESHOLD_STROKE_WIDTH, density);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | DrawFrameTask.h | 64 void setDensity(float density) { mDensity = density; } argument
|
/frameworks/base/tools/aapt/tests/ |
H A D | 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;
|