HomeSort by relevance Sort by last modified time
    Searched refs:targetDensity (Results 1 - 25 of 32) sorted by null

1 2

  /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...]
  /cts/hostsidetests/services/activitymanager/src/android/server/cts/
DisplaySizeTest.java 104 final int targetDensity = (int) (stableDensity * 0.85);
105 setDensity(targetDensity);
123 private void setDensity(int targetDensity) throws DeviceNotAvailableException {
124 mDevice.executeShellCommand("wm density " + targetDensity);
128 final boolean success = output.contains("Override density: " + targetDensity);
130 assertTrue("Failed to set density to " + targetDensity, success);
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 138 final int targetDensity = opts.inTargetDensity;
139 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
149 outputBitmap.setDensity(targetDensity);
  /frameworks/base/graphics/java/android/graphics/drawable/
InsetDrawable.java 276 void onDensityChanged(int sourceDensity, int targetDensity) {
277 super.onDensityChanged(sourceDensity, targetDensity);
279 applyDensityScaling(sourceDensity, targetDensity);
287 * @param targetDensity the new constant state density
289 private void applyDensityScaling(int sourceDensity, int targetDensity) {
290 mInsetLeft = Bitmap.scaleFromDensity(mInsetLeft, sourceDensity, targetDensity);
291 mInsetTop = Bitmap.scaleFromDensity(mInsetTop, sourceDensity, targetDensity);
292 mInsetRight = Bitmap.scaleFromDensity(mInsetRight, sourceDensity, targetDensity);
293 mInsetBottom = Bitmap.scaleFromDensity(mInsetBottom, sourceDensity, targetDensity);
NinePatchDrawable.java 668 final int targetDensity = mTargetDensity;
673 sourceOpticalInsets.left, sourceDensity, targetDensity, true);
675 sourceOpticalInsets.top, sourceDensity, targetDensity, true);
677 sourceOpticalInsets.right, sourceDensity, targetDensity, true);
679 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true);
691 sourcePadding.left, sourceDensity, targetDensity, false);
693 sourcePadding.top, sourceDensity, targetDensity, false);
695 sourcePadding.right, sourceDensity, targetDensity, false);
697 sourcePadding.bottom, sourceDensity, targetDensity, false);
703 ninePatch.getHeight(), sourceDensity, targetDensity, true)
    [all...]
DrawableWrapper.java 134 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi;
135 state.setDensity(targetDensity);
479 * @param targetDensity the new constant state density
481 public final void setDensity(int targetDensity) {
482 if (mDensity != targetDensity) {
484 mDensity = targetDensity;
486 onDensityChanged(sourceDensity, targetDensity);
497 * @param targetDensity the new constant state density
499 void onDensityChanged(int sourceDensity, int targetDensity) {
GradientDrawable.java     [all...]
LayerDrawable.java     [all...]
VectorDrawable.java 450 final int targetDensity = mTargetDensity;
451 if (targetDensity != sourceDensity) {
453 (int) mVectorState.mBaseWidth, sourceDensity, targetDensity, true);
455 (int) mVectorState.mBaseHeight,sourceDensity, targetDensity, true);
457 opticalInsets.left, sourceDensity, targetDensity, false);
459 opticalInsets.right, sourceDensity, targetDensity, false);
461 opticalInsets.top, sourceDensity, targetDensity, false);
463 opticalInsets.bottom, sourceDensity, targetDensity, false);
    [all...]
Drawable.java     [all...]
RippleDrawable.java 1006 protected void onDensityChanged(int sourceDensity, int targetDensity) {
1007 super.onDensityChanged(sourceDensity, targetDensity);
1009 applyDensityScaling(sourceDensity, targetDensity);
1012 private void applyDensityScaling(int sourceDensity, int targetDensity) {
1015 mMaxRadius, sourceDensity, targetDensity, true);
    [all...]
DrawableContainer.java 930 final int targetDensity = Drawable.resolveDensity(res, mDensity);
932 mDensity = targetDensity;
934 if (sourceDensity != targetDensity) {
    [all...]
  /frameworks/base/tools/aapt2/split/
TableSplitter.cpp 83 ConfigDescription targetDensity = config;
84 targetDensity.density = densityValueIter->second;
89 thisValue->config.isBetterThan(bestValue->config, &targetDensity)) {
120 ConfigDescription targetDensity = config;
121 targetDensity.density = preferredDensity;
126 } else if (thisValue->config.isBetterThan(bestValue->config, &targetDensity)) {
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 568 final int targetDensity = opts.inTargetDensity;
569 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
576 outputBitmap.setDensity(targetDensity);
Bitmap.java     [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
BitmapDrawableTest.java 355 int sourceDensity, targetDensity;
365 targetDensity = canvas.getDensity();
368 sourceWidth, sourceDensity, targetDensity);
370 sourceHeight, sourceDensity, targetDensity);
379 targetDensity = mContext.getResources().getDisplayMetrics().densityDpi;
382 sourceWidth, sourceDensity, targetDensity);
384 sourceHeight, sourceDensity, targetDensity);
394 targetDensity = sourceDensity * 2;
395 bitmapDrawable.setTargetDensity(targetDensity);
397 sourceWidth, sourceDensity, targetDensity);
    [all...]
NinePatchDrawableTest.java 339 int targetDensity = mResources.getDisplayMetrics().densityDpi;
341 sourceWidth, sourceDensity, targetDensity);
343 sourceHeight, sourceDensity, targetDensity);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
BitmapPool.java 112 final int inputDensity, final int targetDensity) {
116 options.inTargetDensity = targetDensity;
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
PoolableImageCache.java 55 final int inputDensity, final int targetDensity) {
59 options.inTargetDensity = targetDensity;
  /frameworks/base/core/jni/android/graphics/
BitmapFactory.cpp 269 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID);
271 if (density != 0 && targetDensity != 0 && density != screenDensity) {
272 scale = (float) targetDensity / density;
  /cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java 303 int targetDensity = mResources.getDisplayMetrics().densityDpi;
306 assertEquals(212 * targetDensity / defaultDensity, draw.getIntrinsicWidth(), 1);
307 assertEquals(142 * targetDensity / defaultDensity, draw.getIntrinsicHeight(), 1);
  /frameworks/base/services/core/java/com/android/server/wm/
WindowManagerService.java     [all...]
  /external/robolectric/v1/lib/main/
android.jar 
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/12/
android.jar 

Completed in 656 milliseconds

1 2