Searched refs:density (Results 26 - 50 of 120) sorted by relevance

12345

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DRotationActivity.java39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
H A DViewLayersActivity3.java58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DListActivity.java120 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DTransparentListActivity.java114 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DViewLayersActivity2.java61 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DViewLayersActivity4.java65 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DDisplayListLayersActivity.java79 return (int) (getResources().getDisplayMetrics().density * size + 0.5f);
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java31 * Indicates that the bitmap was created for an unknown pixel density.
74 * density when running old apps.
77 public static void setDefaultDensity(int density) { argument
78 sDefaultDensity = density;
99 int density) {
100 this(nativeBitmap, buffer, isMutable, ninePatchChunk, null, density);
112 int[] layoutBounds, int density) {
125 if (density >= 0) {
126 mDensity = density;
131 * <p>Returns the density fo
98 Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, int density) argument
111 Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, int[] layoutBounds, int density) argument
167 setDensity(int density) argument
1435 nativeWriteToParcel(int nativeBitmap, boolean isMutable, int density, Parcel p) argument
[all...]
/frameworks/wilhelm/src/itf/
H A DIEnvironmentalReverb.c580 SLpermille density)
584 if (!(0 <= density && density <= 1000)) {
589 thiz->mProperties.density = density;
597 REVERB_PARAM_DENSITY, &density);
625 REVERB_PARAM_DENSITY, &thiz->mProperties.density);
629 *pDensity = thiz->mProperties.density;
669 if (!(0 <= properties.density && properties.density <
579 IEnvironmentalReverb_SetDensity(SLEnvironmentalReverbItf self, SLpermille density) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java175 Density density = Density.MEDIUM;
177 density =
187 new FileInputStream(file), density, value.isFramework(),
234 density);
262 private static Drawable getNinePatchDrawable(InputStream inputStream, Density density, argument
286 density);
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java228 final float density = getResources().getDisplayMetrics().density;
229 mTapThreshold = (int) (TAP_THRESHOLD * density + 0.5f);
230 mMaximumTapVelocity = (int) (MAXIMUM_TAP_VELOCITY * density + 0.5f);
231 mMaximumMinorVelocity = (int) (MAXIMUM_MINOR_VELOCITY * density + 0.5f);
232 mMaximumMajorVelocity = (int) (MAXIMUM_MAJOR_VELOCITY * density + 0.5f);
233 mMaximumAcceleration = (int) (MAXIMUM_ACCELERATION * density + 0.5f);
234 mVelocityUnits = (int) (VELOCITY_UNITS * density + 0.5f);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DIntruderAlertView.java72 float densityScale = getResources().getDisplayMetrics().density;
127 float densityScale = getResources().getDisplayMetrics().density;
H A DNotificationRowLayout.java101 float densityScale = getResources().getDisplayMetrics().density;
220 float densityScale = getResources().getDisplayMetrics().density;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java95 // Need to scale text size by density... but we won't do it
100 float density = c.getResources().getDisplayMetrics().density;
101 if (density < 1) {
104 textSize = (int)(10*density);
/frameworks/base/core/java/android/webkit/
H A DZoomManager.java67 // The default scale limits, which are dependent on the display density.
141 * based on the display density, but can be changed at any time via the
148 * The logical density of the display. This is a scaling factor for the
150 * approximately 160 dpi screen (see android.util.DisplayMetrics.density)
229 * Initialize both the default and actual zoom scale to the given density.
231 * @param density The logical density of the display. This is a scaling factor
233 * approximately 160 dpi screen (see android.util.DisplayMetrics.density).
235 public void init(float density) { argument
236 assert density >
254 updateDefaultZoomDensity(float density) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java74 final float density = res.getDisplayMetrics().density;
75 mMaxIconSize = (int) (MAX_ICON_SIZE * density + 0.5f);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java72 final float density = metrics.density;
73 final float blurPx = 5 * density;
123 // Ensure the bitmap has a density.
/frameworks/base/core/java/android/content/res/
H A DResources.java665 * would not correctly retrieve the final configuration density when
667 * This means that if the density configuration of the alias resource
668 * is different than the actual resource, the density of the returned
706 * given screen density in DPI. This will set the drawable's density to be
707 * the device's density multiplied by the ratio of actual drawable density
708 * to requested density. This allows the drawable to be scaled up to the
717 * @param density the desired screen density indicate
723 getDrawableForDensity(int id, int density) argument
1135 getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) argument
[all...]
H A DAssetManager.java193 int density,
197 int block = loadResourceValue(ident, (short) density, outValue, resolveRefs);
659 int orientation, int touchscreen, int density, int keyboard,
692 private native final int loadResourceValue(int ident, short density, TypedValue outValue, argument
192 getResourceValue(int ident, int density, TypedValue outValue, boolean resolveRefs) argument
658 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
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java72 // These are scaled to match the target density.
77 * Create an empty drawable, not dealing with density.
79 * instead to specify a bitmap to draw with and ensure the correct density is set.
87 * Create an empty drawable, setting initial target density based on
100 * Create drawable from a bitmap, not dealing with density.
102 * that the drawable has correctly set its target density.
110 * Create drawable from a bitmap, setting initial target density based on
121 * that the drawable has correctly set its target density.
146 * that the drawable has correctly set its target density.
200 * Set the density scal
233 setTargetDensity(int density) argument
[all...]
H A DNinePatchDrawable.java65 // These are scaled to match the target density.
73 * Create drawable from raw nine-patch data, not dealing with density.
75 * to ensure that the drawable has correctly set its target density.
83 * Create drawable from raw nine-patch data, setting initial target density
93 * Create drawable from raw nine-patch data, setting initial target density
105 * Create drawable from existing nine-patch, not dealing with density.
107 * to ensure that the drawable has correctly set its target density.
115 * Create drawable from existing nine-patch, setting initial target density
141 * Set the density scale at which this drawable will be rendered. This
142 * method assumes the drawable will be rendered at the same density a
174 setTargetDensity(int density) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DGraphicsJNI.h57 int density = -1);
60 jbyteArray ninepatch, int density = -1);
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp249 // density
252 *value = config.density;
330 return config.density;
575 // density
585 //printf("not density: %s\n", part.string());
691 this->density = den;
734 s += density;
828 if (this->density != "") {
832 s += density;
1149 if (out) out->density
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp98 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density);
509 jint touchscreen, jint density,
532 config.density = (uint16_t)density;
684 jshort density,
701 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config);
998 config.density = 0;
1093 dest[STYLE_DENSITY] = config.density;
1191 config.density = 0;
1236 dest[STYLE_DENSITY] = config.density;
506 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
682 android_content_AssetManager_loadResourceValue(JNIEnv* env, jobject clazz, jint ident, jshort density, jobject outValue, jboolean resolve) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaEnvReverbTest.java272 //Test case 1.4: test diffusion and density
286 short density = mReverb.getDensity();
287 assertTrue(msg +": got incorrect density",
288 ((float)density > (float)(500 / RATIO_TOLERANCE)) &&
289 ((float)density < (float)(500 * RATIO_TOLERANCE)));

Completed in 2601 milliseconds

12345