Searched defs:density (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/core/java/android/text/
H A DTextPaint.java30 public float density = 1.0f; field in class:TextPaint
55 density = tp.density;
/frameworks/base/include/ui/
H A DDisplayInfo.h35 float density; member in struct:android::DisplayInfo
/frameworks/base/tools/localize/
H A DConfiguration.h13 string density; member in struct:Configuration
/frameworks/base/core/java/android/util/
H A DDisplayMetrics.java26 * size, density, and font scaling.
33 * Standard quantized DPI for low-density screens.
38 * Standard quantized DPI for medium-density screens.
43 * Standard quantized DPI for high-density screens.
48 * The reference density used throughout the system.
53 * The device's density.
68 * The logical density of the display. This is a scaling factor for the
72 * this density value will be 1; on a 120 dpi screen it would be .75; etc.
77 * example, a 240x320 screen will have a density of 1 even if its width is
79 * 320x480 but the screen size remained 1.5"x2" then the density woul
84 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/base/core/jni/
H A Dandroid_view_Display.cpp38 jfieldID density; member in struct:android::offsets_t
63 env->SetFloatField(clazz, offsets.density, info.density);
121 offsets.density = env->GetFieldID(clazz, "mDensity", "F");
H A Dandroid_util_AssetManager.cpp105 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density);
537 jint touchscreen, jint density,
557 config.density = (uint16_t)density;
1007 config.density = 0;
1095 dest[STYLE_DENSITY] = config.density;
1187 config.density = 0;
1226 dest[STYLE_DENSITY] = config.density;
1307 config.density = 0;
1332 dest[STYLE_DENSITY] = config.density;
534 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 screenLayout, jint sdkVersion) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridgeAssetManager.java60 int orientation, int touchscreen, int density, int keyboard,
59 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int screenLayout, int version) argument
H A DBridge.java321 int screenWidth, int screenHeight, int density, float xdpi, float ydpi,
328 density, xdpi, ydpi, themeName, isProjectTheme,
338 int density, float xdpi, float ydpi,
363 metrics.densityDpi = density;
364 metrics.density = density / (float) DisplayMetrics.DENSITY_DEFAULT;
365 metrics.scaledDensity = metrics.density;
320 computeLayout(IXmlPullParser layoutDescription, Object projectKey, int screenWidth, int screenHeight, int density, float xdpi, float ydpi, String themeName, boolean isProjectTheme, Map<String, Map<String, IResourceValue>> projectResources, Map<String, Map<String, IResourceValue>> frameworkResources, IProjectCallback customViewLoader, ILayoutLog logger) argument
336 computeLayout(IXmlPullParser layoutDescription, Object projectKey, int screenWidth, int screenHeight, boolean renderFullSize, int density, float xdpi, float ydpi, String themeName, boolean isProjectTheme, Map<String, Map<String, IResourceValue>> projectResources, Map<String, Map<String, IResourceValue>> frameworkResources, IProjectCallback customViewLoader, ILayoutLog logger) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java50 // These are scaled to match the target density.
58 * Create drawable from raw nine-patch data, not dealing with density.
60 * to ensure that the drawable has correctly set its target density.
68 * Create drawable from raw nine-patch data, setting initial target density
78 * Create drawable from existing nine-patch, not dealing with density.
80 * to ensure that the drawable has correctly set its target density.
88 * Create drawable from existing nine-patch, setting initial target density
113 * Set the density scale at which this drawable will be rendered. This
114 * method assumes the drawable will be rendered at the same density as the
117 * @param canvas The Canvas from which the density scal
149 setTargetDensity(int density) argument
[all...]
H A DBitmapDrawable.java71 // These are scaled to match the target density.
76 * Create an empty drawable, not dealing with density.
78 * that the drawable has correctly set its target density.
86 * Create an empty drawable, setting initial target density based on
95 * Create drawable from a bitmap, not dealing with density.
97 * that the drawable has correctly set its target density.
105 * Create drawable from a bitmap, setting initial target density based on
116 * that the drawable has correctly set its target density.
140 * that the drawable has correctly set its target density.
184 * Set the density scal
220 setTargetDensity(int density) argument
[all...]
/frameworks/base/include/private/ui/
H A DSharedBufferStack.h336 float density; member in struct:android::display_cblk_t
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp340 const int density = p->readInt32(); local
378 return GraphicsJNI::createBitmap(env, bitmap, isMutable, NULL, density);
383 jboolean isMutable, jint density,
397 p->writeInt32(density);
381 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument
H A DGraphics.cpp354 jbyteArray ninepatch, int density)
362 (jint)bitmap, isMutable, ninepatch, density);
353 createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, jbyteArray ninepatch, int density) argument
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java600 int orientation, int touchscreen, int density, int keyboard,
599 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int screenLayout, int majorVersion) argument
/frameworks/base/core/java/android/webkit/
H A DBrowserFrame.java717 private float density() { method in class:BrowserFrame
718 return mContext.getResources().getDisplayMetrics().density;
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java31 * Indicates that the bitmap was created for an unknown pixel density.
57 * density when running old apps.
60 public static void setDefaultDensity(int density) { argument
61 sDefaultDensity = density;
81 int density) {
90 if (density >= 0) {
91 mDensity = density;
96 * <p>Returns the density for this bitmap.</p>
98 * <p>The default density is the same density a
80 Bitmap(int nativeBitmap, boolean isMutable, byte[] ninePatchChunk, int density) argument
132 setDensity(int density) argument
1034 nativeWriteToParcel(int nativeBitmap, boolean isMutable, int density, Parcel p) argument
[all...]
H A DCanvas.java63 * draw into. The initial target density is {@link Bitmap#DENSITY_NONE};
76 * <p>The initial target density of the canvas is the same as the given
77 * bitmap's density.
107 * <p>The initial target density of the canvas is the same as the initial
108 * density of bitmaps as per {@link Bitmap#getDensity() Bitmap.getDensity()}.
135 * updates the canvas's target density to match that of the bitmap.
192 * <p>Returns the target density of the canvas. The default density is
193 * derived from the density of its backing bitmap, or
196 * @return Returns the current target density o
218 setDensity(int density) argument
226 setScreenDensity(int density) argument
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.h64 String8 density; member in struct:AaptGroupEntry
/frameworks/base/include/private/opengles/
H A Dgl_context.h251 GLfixed density; member in struct:android::gl::fog_t
/frameworks/base/include/utils/
H A DResourceTypes.h839 uint16_t density; member in struct:android::ResTable_config::__anon137::__anon138
958 density = dtohs(density);
969 density = htods(density);
1019 if (density != o.density) diffs |= CONFIG_DENSITY;
1078 // density is never 'more specific'
1185 if (density != o.density) {
[all...]
/frameworks/base/libs/utils/
H A DResourceTypes.cpp2241 "orien:%d touch:%d density:%d key:%d inp:%d nav:%d w:%d h:%d\n",
2249 params->density,
3558 "orien:%d=%d touch:%d=%d density:%d=%d key:%d=%d inp:%d=%d nav:%d=%d w:%d=%d h:%d=%d\n",
3574 thisConfig.density,
3575 config ? config->density : 0,
3866 "orien:%d touch:%d density:%d key:%d inp:%d nav:%d w:%d h:%d\n",
3875 thisConfig.density,
4038 char density[16]; local
4039 uint16_t dval = dtohs(type->config.density);
4041 strcpy(density, "de
[all...]

Completed in 507 milliseconds