/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTitleStrip.java | 166 final float density = context.getResources().getDisplayMetrics().density; 167 mScaledTextSpacing = (int) (TEXT_SPACING * density);
|
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetHostView.java | 279 float density = getResources().getDisplayMetrics().density; 281 int xPaddingDips = (int) ((padding.left + padding.right) / density); 282 int yPaddingDips = (int) ((padding.top + padding.bottom) / density);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenuView.java | 58 final float density = context.getResources().getDisplayMetrics().density; 59 mMinCellSize = (int) (MIN_CELL_SIZE * density); 60 mGeneratedItemPadding = (int) (GENERATED_ITEM_PADDING * density);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Graphics.cpp | 349 int density) 355 buffer, isMutable, ninepatch, layoutbounds, density); 361 jbyteArray ninepatch, int density) 363 return createBitmap(env, bitmap, NULL, isMutable, ninepatch, NULL, density); 347 createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, bool isMutable, jbyteArray ninepatch, jintArray layoutbounds, int density) argument 360 createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, jbyteArray ninepatch, int density) argument
|
H A D | Bitmap.cpp | 380 const int density = p->readInt32();
local 429 return GraphicsJNI::createBitmap(env, bitmap, buffer, isMutable, NULL, NULL, density);
434 jboolean isMutable, jint density,
448 p->writeInt32(density);
432 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument
|
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 55 jfieldID density; member in struct:android::__anon1028 382 env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.density, info.density); 469 gPhysicalDisplayInfoClassInfo.density = env->GetFieldID(clazz, "density", "F");
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ViewLayersActivity.java | 111 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
|
H A D | ViewLayersActivity5.java | 130 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
|
H A D | AlphaLayersActivity.java | 56 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | ActionMenuView.java | 60 final float density = context.getResources().getDisplayMetrics().density; 61 mMinCellSize = (int) (MIN_CELL_SIZE * density); 62 mGeneratedItemPadding = (int) (GENERATED_ITEM_PADDING * density);
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayInfo.java | 157 * The logical display density which is the basis for density-independent 344 outMetrics.density = outMetrics.noncompatDensity = 346 outMetrics.scaledDensity = outMetrics.noncompatScaledDensity = outMetrics.density; 395 sb.append(", density ");
|
H A D | HardwareRenderer.java | 1606 private static int dpToPx(int dp, float density) { argument 1607 return (int) (dp * density + 0.5f); 1624 final float density = metrics.density; 1626 mVerticalUnit = dpToPx(PROFILE_DRAW_DP_PER_MS, density); 1627 mHorizontalUnit = dpToPx(PROFILE_DRAW_WIDTH, density); 1628 mHorizontalMargin = dpToPx(PROFILE_DRAW_MARGIN, density); 1629 mThresholdStroke = dpToPx(PROFILE_DRAW_THRESHOLD_STROKE_WIDTH, density);
|
H A D | IWindowManager.aidl | 69 void setForcedDisplayDensity(int displayId, int density);
|
H A D | WindowManagerPolicy.java | 469 public void setInitialDisplaySize(Display display, int width, int height, int density); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | RecentsHorizontalScrollView.java | 58 float densityScale = getResources().getDisplayMetrics().density; 302 float densityScale = getResources().getDisplayMetrics().density;
|
H A D | RecentsVerticalScrollView.java | 59 float densityScale = getResources().getDisplayMetrics().density; 312 float densityScale = getResources().getDisplayMetrics().density;
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 1750 * Get the preferred density of icons for the launcher. This is used when 1753 * @return density in terms of DPI 1757 final int density = res.getDisplayMetrics().densityDpi; 1762 return density; 1765 switch (density) { 1779 // The density is some abnormal value. Return some other 1781 return (int)((density*1.5f)+.5f); 1801 final int density = res.getDisplayMetrics().densityDpi; 1803 switch (density) { 1817 // The density i [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | SlidingChallengeLayout.java | 251 final float density = mDisplayMetrics.density; 254 mDragHandleClosedAbove = (int) (DRAG_HANDLE_CLOSED_ABOVE * density + 0.5f); 255 mDragHandleClosedBelow = (int) (DRAG_HANDLE_CLOSED_BELOW * density + 0.5f); 256 mDragHandleOpenAbove = (int) (DRAG_HANDLE_OPEN_ABOVE * density + 0.5f); 257 mDragHandleOpenBelow = (int) (DRAG_HANDLE_OPEN_BELOW * density + 0.5f);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 106 * draw into. The initial target density is {@link Bitmap#DENSITY_NONE}; 120 * <p>The initial target density of the canvas is the same as the given 121 * bitmap's density. 188 * the canvas' target density is updated to match that of the bitmap. 250 * <p>Returns the target density of the canvas. The default density is 251 * derived from the density of its backing bitmap, or 254 * @return Returns the current target density of the canvas, which is used 265 * <p>Specifies the density for this Canvas' backing bitmap. This modifies 266 * the target density o 276 setDensity(int density) argument 284 setScreenDensity(int density) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 1411 density = dtohs(density); 1425 density = htods(density); 1495 if (density != o.density) { 1496 return density < o.density ? -1 : 1; 1525 if (density != o.density) diff 2999 getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, uint32_t* outSpecFlags, ResTable_config* outConfig) const argument [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | reverb.c | 108 (settings1->density == settings2->density); 124 printf("density: %d\n", settings->density);
|
/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 81 * The effective screen density we have selected for this application. 441 inoutDm.density = inoutDm.noncompatDensity * invertedRatio; 489 int newShortSize = (int)(DEFAULT_NORMAL_SHORT_DIMENSION * dm.density + 0.5f);
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiDevice.java | 135 float dpx = p.x / metrics.density; 136 float dpy = p.y / metrics.density;
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 604 // TODO: Not sure if display density should handled by SF any longer 608 int density = 0; local 610 density = atoi(property); 612 return density; 622 // The density of the device is provided by a build property 623 float density = Density::getBuildDensity() / 160.0f; local 624 if (density == 0) { 625 // the build doesn't provide a density -- this is wrong! 628 density = xdpi / 160.0f; 632 xdpi = ydpi = density [all...] |
/frameworks/base/services/java/com/android/server/display/ |
H A D | LocalDisplayAdapter.java | 152 mInfo.densityDpi = (int)(mPhys.density * 160 + 0.5f);
|