/cts/tests/framework/base/activitymanager/src/android/server/am/ |
DisplaySizeTest.java | 115 final int targetDensity = (int) (stableDensity * 0.85); 116 setDensity(targetDensity); 135 private void setDensity(int targetDensity) { 136 executeShellCommand("wm density " + targetDensity); 140 final boolean success = output.contains("Override density: " + targetDensity); 142 assertTrue("Failed to set density to " + targetDensity, success);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
BitmapFactory_Delegate.java | 144 final int targetDensity = opts.inTargetDensity; 145 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { 155 outputBitmap.setDensity(targetDensity);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
GlideBitmapDrawable.java | 37 final int targetDensity; 40 targetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; 41 state.targetDensity = targetDensity; 43 targetDensity = state.targetDensity; 45 width = state.bitmap.getScaledWidth(targetDensity); 46 height = state.bitmap.getScaledHeight(targetDensity); 146 int targetDensity; 156 targetDensity = other.targetDensity [all...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 669 final int targetDensity = opts.inTargetDensity; 670 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { 677 outputBitmap.setDensity(targetDensity); [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
BitmapDrawableTest.java | 381 int sourceDensity, targetDensity; 391 targetDensity = canvas.getDensity(); 394 sourceWidth, sourceDensity, targetDensity); 396 sourceHeight, sourceDensity, targetDensity); 405 targetDensity = mContext.getResources().getDisplayMetrics().densityDpi; 408 sourceWidth, sourceDensity, targetDensity); 410 sourceHeight, sourceDensity, targetDensity); 420 targetDensity = sourceDensity * 2; 421 bitmapDrawable.setTargetDensity(targetDensity); 423 sourceWidth, sourceDensity, targetDensity); [all...] |
NinePatchDrawableTest.java | 371 int targetDensity = mResources.getDisplayMetrics().densityDpi; 373 sourceWidth, sourceDensity, targetDensity); 375 sourceHeight, sourceDensity, targetDensity);
|
/frameworks/base/core/jni/android/graphics/ |
BitmapFactory.cpp | 225 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); 227 if (density != 0 && targetDensity != 0 && density != screenDensity) { 228 scale = (float) targetDensity / density;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
DrawableWrapper.java | 132 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; 133 state.setDensity(targetDensity); 503 * @param targetDensity the new constant state density 505 public final void setDensity(int targetDensity) { 506 if (mDensity != targetDensity) { 508 mDensity = targetDensity; 510 onDensityChanged(sourceDensity, targetDensity); 521 * @param targetDensity the new constant state density 523 void onDensityChanged(int sourceDensity, int targetDensity) {
|
BitmapDrawable.java | 576 final int targetDensity = mTargetDensity; 577 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity; 589 final float densityScale = targetDensity / (float) sourceDensity; [all...] |
NinePatchDrawable.java | 670 final int targetDensity = mTargetDensity; 672 targetDensity : ninePatch.getDensity(); 677 sourceOpticalInsets.left, sourceDensity, targetDensity, true); 679 sourceOpticalInsets.top, sourceDensity, targetDensity, true); 681 sourceOpticalInsets.right, sourceDensity, targetDensity, true); 683 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true); 695 sourcePadding.left, sourceDensity, targetDensity, true); 697 sourcePadding.top, sourceDensity, targetDensity, true); 699 sourcePadding.right, sourceDensity, targetDensity, true); 701 sourcePadding.bottom, sourceDensity, targetDensity, true) [all...] |
DrawableContainer.java | 960 final int targetDensity = Drawable.resolveDensity(res, mDensity); 962 mDensity = targetDensity; 964 if (sourceDensity != targetDensity) { [all...] |
VectorDrawable.java | 563 final int targetDensity = mTargetDensity; 564 if (targetDensity != sourceDensity) { 566 targetDensity, true); 568 targetDensity, true); 570 opticalInsets.left, sourceDensity, targetDensity, false); 572 opticalInsets.right, sourceDensity, targetDensity, false); 574 opticalInsets.top, sourceDensity, targetDensity, false); 576 opticalInsets.bottom, sourceDensity, targetDensity, false); [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
ResourcesTest.java | 322 int targetDensity = mResources.getDisplayMetrics().densityDpi; 325 assertEquals(212 * targetDensity / defaultDensity, draw.getIntrinsicWidth(), 1); 326 assertEquals(142 * targetDensity / defaultDensity, draw.getIntrinsicHeight(), 1); [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
WindowManagerService.java | [all...] |
/prebuilts/tools/common/m2/repository/com/github/bumptech/glide/glide/3.6.1/ |
glide-3.6.1.jar | |
/external/robolectric/v3/runtime/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
android-all-4.3_r2-robolectric-0.jar | |
/prebuilts/misc/common/robolectric/android-all/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
android-all-4.3_r2-robolectric-0.jar | |
/prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/ |
glide-SNAPSHOT.jar | |
/external/robolectric/v1/lib/main/ |
android.jar | |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/12/ |
android.jar | |