/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | ImmersiveModeConfirmation.java | 284 float density = metrics.density; 304 cling.setTranslationY(-OFFSET_DP * density);
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | PagerTitleStrip.java | 160 final float density = context.getResources().getDisplayMetrics().density; 161 mScaledTextSpacing = (int) (TEXT_SPACING * density);
|
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetHostView.java | 297 float density = getResources().getDisplayMetrics().density; 299 int xPaddingDips = (int) ((padding.left + padding.right) / density); 300 int yPaddingDips = (int) ((padding.top + padding.bottom) / density);
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayListCanvas.java | 86 mDensity = 0; // disable bitmap density scaling 95 public void setDensity(int density) { argument 96 // drop silently, since DisplayListCanvas doesn't perform density scaling
|
H A D | IWindowManager.aidl | 81 void setForcedDisplayDensityForUser(int displayId, int density, int userId);
|
H A D | NotificationHeaderView.java | 318 r.bottom = (int) (32 * getResources().getDisplayMetrics().density); 330 float size = 48 * getResources().getDisplayMetrics().density;
|
/frameworks/base/core/java/android/widget/ |
H A D | ActionMenuView.java | 79 final float density = context.getResources().getDisplayMetrics().density; 80 mMinCellSize = (int) (MIN_CELL_SIZE * density); 81 mGeneratedItemPadding = (int) (GENERATED_ITEM_PADDING * density);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ButtonBarLayout.java | 126 + PEEK_BUTTON_DP * getResources().getDisplayMetrics().density;
|
/frameworks/base/tests/Assist/src/com/android/test/assist/ |
H A D | AssistInteractionSession.java | 90 mDensity = mScrim.getResources().getDisplayMetrics().density;
|
/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));
|
/frameworks/base/tools/aapt/ |
H A D | ResourceFilter.cpp | 44 // Ignore any densities. Those are best handled in --preferred-density 46 fprintf(stderr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().string()); 47 entry.first.density = 0;
|
H A D | AaptAssets.cpp | 1322 fprintf(stderr, "Error parsing preferred density: %s\n", 1326 preferredDensity = preferredConfig.density; 1339 printf("Applying preferred density filter: %s\n", 1401 // Get the preferred density if there is one. We do not match exactly for density. 1402 // If our preferred density is hdpi but we only have mdpi and xhdpi resources, we 1423 if (config.density != 0 && config.density != preferredDensity) { 1427 uint32_t bestDensity = config.density; 1437 // See if there is a better density resourc [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionMenuView.java | 81 final float density = context.getResources().getDisplayMetrics().density; 82 mMinCellSize = (int) (MIN_CELL_SIZE * density); 83 mGeneratedItemPadding = (int) (GENERATED_ITEM_PADDING * density);
|
H A D | ButtonBarLayout.java | 132 + (int) (PEEK_BUTTON_DP * getResources().getDisplayMetrics().density);
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesManagerTest.java | 47 mDisplayMetrics.density = 1.0f; 51 mDisplayMetrics.noncompatDensity = mDisplayMetrics.density; 239 // resources2 should be based on the Activity's override config, so the density should
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | AutoScrollHelper.java | 212 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f); 213 final int minVelocity = (int) (DEFAULT_MINIMUM_VELOCITY_DIPS * metrics.density + 0.5f);
|
/frameworks/base/core/java/android/content/res/ |
H A D | TypedArray.java | 932 * Version of {@link #getDrawable(int)} that accepts an override density. 936 public Drawable getDrawableForDensity(@StyleableRes int index, int density) { argument 948 if (density > 0) { 949 // If the density is overridden, the value in the TypedArray will not reflect this. 950 // Do a separate lookup of the resourceId with the density override. 951 mResources.getValueForDensity(value.resourceId, density, value, true); 953 return mResources.loadDrawable(value, value.resourceId, density, mTheme); 1257 outValue.density = data[index+AssetManager.STYLE_DENSITY];
|
H A D | CompatibilityInfo.java | 88 * The effective screen density we have selected for this application. 455 inoutDm.density = inoutDm.noncompatDensity * invertedRatio; 502 int newShortSize = (int)(DEFAULT_NORMAL_SHORT_DIMENSION * dm.density + 0.5f);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 88 * draw into. The initial target density is {@link Bitmap#DENSITY_NONE}; 107 * <p>The initial target density of the canvas is the same as the given 108 * bitmap's density. 163 * the canvas' target density is updated to match that of the bitmap. 242 * <p>Returns the target density of the canvas. The default density is 243 * derived from the density of its backing bitmap, or 246 * @return Returns the current target density of the canvas, which is used 257 * <p>Specifies the density for this Canvas' backing bitmap. This modifies 258 * the target density o 268 setDensity(int density) argument 276 setScreenDensity(int density) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AdaptiveIconDrawable.java | 217 // The density may have changed since the last update. This will 419 final int density = Drawable.resolveDensity(t.getResources(), 0); 420 state.setDensity(density); 425 layer.setDensity(density); 891 ChildDrawable(int density) { argument 892 mDensity = density; 940 // The density at which to render the drawable and its children. 943 // The density to use when inflating/looking up the children drawables. A value of 0 means 944 // use the system's density.
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | reverb.c | 108 (settings1->density == settings2->density); 124 printf("density: %d\n", settings->density);
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiDevice.java | 138 float dpx = p.x / metrics.density; 139 float dpy = p.y / metrics.density;
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityView.java | 451 void setSurface(Surface surface, int width, int height, int density) argument 453 mIActivityContainer.setSurface(surface, width, height, density);
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DividerSnapAlgorithm.java | 108 MIN_FLING_VELOCITY_DP_PER_SECOND * res.getDisplayMetrics().density; 110 MIN_DISMISS_VELOCITY_DP_PER_SECOND * res.getDisplayMetrics().density;
|