/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ViewPager.java | 372 final float density = context.getResources().getDisplayMetrics().density; 375 mMinimumVelocity = (int) (MIN_FLING_VELOCITY * density); 380 mFlingDistance = (int) (MIN_DISTANCE_FOR_FLING * density); 381 mCloseEnough = (int) (CLOSE_ENOUGH * density); 382 mDefaultGutterSize = (int) (DEFAULT_GUTTER_SIZE * density);
|
H A D | RotarySelector.java | 186 mDensity = r.getDisplayMetrics().density;
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewPager.java | 405 final float density = context.getResources().getDisplayMetrics().density; 408 mMinimumVelocity = (int) (MIN_FLING_VELOCITY * density); 413 mFlingDistance = (int) (MIN_DISTANCE_FOR_FLING * density); 414 mCloseEnough = (int) (CLOSE_ENOUGH * density); 415 mDefaultGutterSize = (int) (DEFAULT_GUTTER_SIZE * density);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskStack.java | 272 int density = DENSITY_DPI_UNDEFINED; 276 density = mDisplayContent.getDisplayInfo().logicalDensityDpi; 298 mDensity = density; 373 // If the rotation or density didn't match, we'll update it in onConfigurationChanged.
|
H A D | WindowManagerService.java | 5691 // If the display is already prepared, update the density. 7241 private int reduceConfigLayout(int curLayout, int rotation, float density, argument 7256 longSize = (int)(longSize/density); 7257 shortSize = (int)(shortSize/density); 7262 int uiMode, int dw, int dh, float density, Configuration outConfig) { 7286 sl = reduceConfigLayout(sl, Surface.ROTATION_0, density, unrotDw, unrotDh, uiMode); 7287 sl = reduceConfigLayout(sl, Surface.ROTATION_90, density, unrotDh, unrotDw, uiMode); 7288 sl = reduceConfigLayout(sl, Surface.ROTATION_180, density, unrotDw, unrotDh, uiMode); 7289 sl = reduceConfigLayout(sl, Surface.ROTATION_270, density, unrotDh, unrotDw, uiMode); 7290 outConfig.smallestScreenWidthDp = (int)(displayInfo.smallestNominalAppWidth / density); 7261 computeSizeRangesAndScreenLayout(DisplayInfo displayInfo, boolean rotated, int uiMode, int dw, int dh, float density, Configuration outConfig) argument 8925 setForcedDisplayDensity(int displayId, int density) argument 9004 setForcedDisplayDensityLocked(@onNull DisplayContent displayContent, int density) argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 423 size *= paint.density;
|
/frameworks/base/core/java/android/widget/ |
H A D | Scroller.java | 176 mPpi = context.getResources().getDisplayMetrics().density * 160.0f;
|
H A D | ZoomButtonsController.java | 208 (ZOOM_CONTROLS_TOUCH_PADDING * mContext.getResources().getDisplayMetrics().density);
|
H A D | Switch.java | 222 mTextPaint.density = res.getDisplayMetrics().density;
|
H A D | OverScroller.java | 641 final float ppi = context.getResources().getDisplayMetrics().density * 160.0f;
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ResTable_test.cpp | 173 param.density = 320;
|
/frameworks/base/core/java/android/app/ |
H A D | ResourcesManager.java | 175 config.screenWidthDp = (int) (dm.widthPixels / dm.density); 176 config.screenHeightDp = (int) (dm.heightPixels / dm.density);
|
/frameworks/base/core/jni/android/graphics/ |
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/include/androidfw/ |
H A D | ResourceTypes.h | 992 uint16_t density; member in struct:android::ResTable_config::__anon984::__anon985 1621 uint16_t density = 0,
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SwitchCompat.java | 210 mTextPaint.density = res.getDisplayMetrics().density;
|
H A D | ActionMenuPresenter.java | 130 mMinCellSize = (int) (ActionMenuView.MIN_CELL_SIZE * res.getDisplayMetrics().density);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | VectorDrawable.java | 219 /** The density of the display on which this drawable will be rendered. */ 256 final int density = Drawable.resolveDensity(res, mVectorState.mDensity); 257 if (mTargetDensity != density) { 258 mTargetDensity = density; 440 * Update local dimensions to adjust for a target density that may differ 441 * from the source density against which the constant state was loaded.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | MLand.java | 220 dp = getResources().getDisplayMetrics().density; 287 dp = getResources().getDisplayMetrics().density; 975 pt.setStrokeWidth(getResources().getDisplayMetrics().density);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 193 final float density = res.getDisplayMetrics().density; 196 mKeylines[i] *= density;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 96 mDensityScale = context.getResources().getDisplayMetrics().density;
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | LocalDisplayAdapter.java | 398 mInfo.densityDpi = (int)(phys.density * 160 + 0.5f);
|
/frameworks/native/opengl/libagl/ |
H A D | context.h | 257 GLfixed density; member in struct:android::gl::fog_t
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | MaterialProgressDrawable.java | 134 final float screenDensity = metrics.density;
|
/frameworks/base/core/java/android/content/pm/ |
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/services/core/java/com/android/server/am/ |
H A D | ActivityStackSupervisor.java | 4085 public void setSurface(Surface surface, int width, int height, int density) { argument 4141 public void setSurface(Surface surface, int width, int height, int density) { argument 4142 super.setSurface(surface, width, height, density); 4147 setSurfaceLocked(surface, width, height, density); 4154 private void setSurfaceLocked(Surface surface, int width, int height, int density) { argument 4162 new VirtualActivityDisplay(width, height, density); 4285 VirtualActivityDisplay(int width, int height, int density) { argument 4288 VIRTUAL_DISPLAY_BASE_NAME, width, height, density, null,
|