/frameworks/base/core/java/android/app/ |
H A D | ActivityView.java | 458 void setSurface(Surface surface, int width, int height, int density) argument 460 mIActivityContainer.setSurface(surface, width, height, density);
|
H A D | ApplicationPackageManager.java | 1200 public Drawable getUserBadgeForDensity(UserHandle user, int density) { argument 1202 density); 1206 public Drawable getUserBadgeForDensityNoBackground(UserHandle user, int density) { argument 1208 com.android.internal.R.drawable.ic_corp_badge_no_background, density); 1211 private Drawable getDrawableForDensity(int drawableId, int density) { argument 1212 if (density <= 0) { 1213 density = mContext.getResources().getDisplayMetrics().densityDpi; 1215 return Resources.getSystem().getDrawableForDensity(drawableId, density); 1218 private Drawable getManagedProfileIconForDensity(UserHandle user, int drawableId, int density) { argument 1220 return getDrawableForDensity(drawableId, density); [all...] |
/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/content/pm/ |
H A D | LauncherActivityInfo.java | 97 * @param density The preferred density of the icon, zero for default density. Use 98 * density DPI values from {@link DisplayMetrics}. 103 public Drawable getIcon(int density) { argument 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 165 * @param density Optiona 170 getBadgedIcon(int density) argument [all...] |
H A D | PackageManager.java | 4487 * badged where the badge should be applied as well as the density of the 4499 * @param badgeDensity The optional desired density for the badge as per 4501 * the density of the display is used. 4532 * badged where the badge should be applied as well as the density of the 4545 * @param badgeDensity The optional desired density for the badge as per 4547 * the density of the display is used. 4560 * @param density The optional desired density for the badge as per 4562 * the density of the current display is used. 4566 public abstract Drawable getUserBadgeForDensity(UserHandle user, int density); argument 4582 getUserBadgeForDensityNoBackground(UserHandle user, int density) argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 208 * @param densityDpi the density bucket for which to load the resource 756 int orientation, int touchscreen, int density, int keyboard, 789 private native final int loadResourceValue(int ident, short density, TypedValue outValue, argument 755 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int majorVersion) argument
|
H A D | Resources.java | 713 * would not correctly retrieve the final configuration density when 715 * This means that if the density configuration of the alias resource 716 * is different than the actual resource, the density of the returned 775 * given screen density in DPI. This will set the drawable's density to be 776 * the device's density multiplied by the ratio of actual drawable density 777 * to requested density. This allows the drawable to be scaled up to the 791 * @param density the desired screen density indicate 800 getDrawableForDensity(@rawableRes int id, int density) argument 819 getDrawableForDensity(@rawableRes int id, int density, @Nullable Theme theme) argument 1302 getValueForDensity(@nyRes int id, int density, TypedValue outValue, boolean resolveRefs) argument [all...] |
H A D | ResourcesImpl.java | 159 + "x" + mMetrics.heightPixels + " " + mMetrics.density); 193 void getValueForDensity(@AnyRes int id, int density, TypedValue outValue, argument 195 boolean found = mAssets.getResourceValue(id, density, outValue, resolveRefs); 383 mMetrics.density = 386 mMetrics.scaledDensity = mMetrics.density * mConfiguration.fontScale; 457 int density = config.densityDpi; 458 if (density == Configuration.DENSITY_DPI_UNDEFINED) { 459 density = mMetrics.noncompatDensityDpi; 462 mDisplayAdjustments.getCompatibilityInfo().applyToConfiguration(density, mTmpConfig); 586 // pollute the cache with drawables loaded from a foreign density [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextPaint.java | 35 public float density = 1.0f; field in class:TextPaint 71 density = tp.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 181 public float density; field in class:DisplayMetrics [all...] |
H A D | TypedValue.java | 156 * If {@link #density} is equal to this value, then the density should be 157 * treated as the system's default density value: {@link DisplayMetrics#DENSITY_DEFAULT}. 162 * If {@link #density} is equal to this value, then there is no density 194 * If the Value came from a resource, this holds the corresponding pixel density. 196 public int density; field in class:TypedValue 239 * supplies display density and scaling information. 263 * supplies display density and scaling information. 290 * supplies display density an [all...] |
/frameworks/base/core/java/android/view/ |
H A D | DisplayListCanvas.java | 94 mDensity = 0; // disable bitmap density scaling 106 public void setDensity(int density) { argument 107 // drop silently, since DisplayListCanvas doesn't perform density scaling
|
H A D | SurfaceControl.java | 536 public float density; field in class:SurfaceControl.PhysicalDisplayInfo 561 && density == other.density 579 density = other.density; 592 + "density " + density + ", " + xDpi + " x " + yDpi + " dpi, secure " + secure
|
H A D | WindowManagerPolicy.java | 564 public void setInitialDisplaySize(Display display, int width, int height, int density); argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 961 const int density = p->readInt32(); local 1071 getPremulBitmapCreateFlags(isMutable), NULL, NULL, density); 1076 jboolean isMutable, jint density, 1095 p->writeInt32(density); 1074 Bitmap_writeToParcel(JNIEnv* env, jobject, jlong bitmapHandle, jboolean isMutable, jint density, jobject parcel) argument
|
H A D | BitmapFactory.cpp | 268 const int density = env->GetIntField(options, gOptions_densityFieldID); local 271 if (density != 0 && targetDensity != 0 && density != screenDensity) { 272 scale = (float) targetDensity / density; 323 // Scale is necessary due to density differences.
|
H A D | Graphics.cpp | 411 int density) { 420 bitmap->width(), bitmap->height(), density, isMutable, isPremultiplied, 409 createBitmap(JNIEnv* env, android::Bitmap* bitmap, int bitmapCreateFlags, jbyteArray ninePatchChunk, jobject ninePatchInsets, int density) argument
|
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 126 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); 674 jint touchscreen, jint density, 701 config.density = (uint16_t)density; 882 jshort density, 899 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config); 1239 config.density = 0; 1317 dest[STYLE_DENSITY] = config.density; 1471 config.density = 0; 1572 dest[STYLE_DENSITY] = config.density; 671 android_content_AssetManager_setConfiguration(JNIEnv* env, jobject clazz, jint mcc, jint mnc, jstring locale, jint orientation, jint touchscreen, jint density, jint keyboard, jint keyboardHidden, jint navigation, jint screenWidth, jint screenHeight, jint smallestScreenWidthDp, jint screenWidthDp, jint screenHeightDp, jint screenLayout, jint uiMode, jint sdkVersion) argument 880 android_content_AssetManager_loadResourceValue(JNIEnv* env, jobject clazz, jint ident, jshort density, jobject outValue, jboolean resolve) argument [all...] |
H A D | android_view_SurfaceControl.cpp | 55 jfieldID density; member in struct:android::__anon948 424 env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.density, info.density); 740 gPhysicalDisplayInfoClassInfo.density = GetFieldIDOrDie(env, clazz, "density", "F");
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 40 * Indicates that the bitmap was created for an unknown pixel density. 90 * density when running old apps. 93 public static void setDefaultDensity(int density) { argument 94 sDefaultDensity = density; 111 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, argument 126 if (density >= 0) { 127 mDensity = density; 159 * <p>Returns the density for this bitmap.</p> 161 * <p>The default density is the same density a 198 setDensity(int density) argument 1724 nativeWriteToParcel(long nativeBitmap, boolean isMutable, int density, Parcel p) argument [all...] |
H A D | Canvas.java | 105 * draw into. The initial target density is {@link Bitmap#DENSITY_NONE}; 124 * <p>The initial target density of the canvas is the same as the given 125 * bitmap's density. 181 * the canvas' target density is updated to match that of the bitmap. 248 * <p>Returns the target density of the canvas. The default density is 249 * derived from the density of its backing bitmap, or 252 * @return Returns the current target density of the canvas, which is used 263 * <p>Specifies the density for this Canvas' backing bitmap. This modifies 264 * the target density o 274 setDensity(int density) argument 282 setScreenDensity(int density) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 96 // These are scaled to match the target density. 107 * Create an empty drawable, not dealing with density. 109 * instead to specify a bitmap to draw with and ensure the correct density is set. 117 * Create an empty drawable, setting initial target density based on 131 * Create drawable from a bitmap, not dealing with density. 133 * that the drawable has correctly set its target density. 141 * Create drawable from a bitmap, setting initial target density based on 152 * that the drawable has correctly set its target density. 177 * that the drawable has correctly set its target density. 233 * Set the density scal 266 setTargetDensity(int density) argument [all...] |
H A D | LayerDrawable.java | 180 // The density may have changed since the last update. This will 182 final int density = Drawable.resolveDensity(r, 0); 183 state.setDensity(density); 193 layer.setDensity(density); 211 final int density = Drawable.resolveDensity(t.getResources(), 0); 212 state.setDensity(density); 225 layer.setDensity(density); 1817 ChildDrawable(int density) { argument 1818 mDensity = density;
|
H A D | NinePatchDrawable.java | 71 /** Temporary rect used for density scaling. */ 85 // These are scaled to match the target density. 94 * Create drawable from raw nine-patch data, not dealing with density. 97 * to ensure that the drawable has correctly set its target density. 105 * Create drawable from raw nine-patch data, setting initial target density 114 * Create drawable from raw nine-patch data, setting initial target density 126 * Create drawable from existing nine-patch, not dealing with density. 130 * density. 138 * Create drawable from existing nine-patch, setting initial target density 146 * Set the density scal 179 setTargetDensity(int density) argument [all...] |
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 992 uint16_t density; member in struct:android::ResTable_config::__anon984::__anon985 1621 uint16_t density = 0,
|