Home
last modified time | relevance | path

Searched refs:getDensity (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder.java58 int getDensity() { return Bitmap.DENSITY_NONE; } in getDensity() method in ImageDecoder.Source
139 public int getDensity() { return mInputDensity; } in getDensity() method in ImageDecoder.InputStreamSource
175 public int getDensity() { in getDensity() method in ImageDecoder.AssetInputStreamSource
200 public int getDensity() { return mResDensity; } in getDensity() method in ImageDecoder.ResourceSource
679 value.density = src.getDensity(); in decodeBitmap()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java156 setTargetDensity(canvas.getDensity()); in setTargetDensity()
215 final boolean needsDensityScaling = canvas.getDensity() == 0 in draw()
216 && Bitmap.DENSITY_NONE != state.mNinePatch.getDensity(); in draw()
221 final float scale = mTargetDensity / (float) state.mNinePatch.getDensity(); in draw()
672 final int sourceDensity = ninePatch.getDensity() == Bitmap.DENSITY_NONE ? in computeBitmapSize()
673 targetDensity : ninePatch.getDensity(); in computeBitmapSize()
751 mTargetDensity = state.mNinePatch.getDensity(); in updateLocalState()
DBitmapDrawable.java264 setTargetDensity(canvas.getDensity()); in setTargetDensity()
579 final int sourceDensity = bitmap.getDensity(); in updateShaderMatrix()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java157 true /*isMutable*/, hardwareConfig.getDensity()); in renderImage()
161 canvas.setDensity(hardwareConfig.getDensity().getDpiValue()); in renderImage()
DRenderAction.java115 hardwareConfig.getDensity().getDpiValue(); in init()
359 Density density = hardwareConfig.getDensity(); in getConfiguration()
DLayout.java157 Density density = hwConfig.getDensity(); in Layout()
528 hwConfig.getDensity().getDpiValue(); in findNavBar()
DRenderSessionImpl.java512 true /*isMutable*/, hardwareConfig.getDensity()); in renderAndBuildResult()
533 mCanvas.setDensity(hardwareConfig.getDensity().getDpiValue()); in renderAndBuildResult()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteHardwareConfig.java47 this(config.getScreenWidth(), config.getScreenHeight(), config.getDensity(), in RemoteHardwareConfig()
/frameworks/base/libs/hwui/
DDeviceInfo.h41 static float getDensity() { return sDensity.load(); } in getDensity() function
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DIconLoader.java61 public Density getDensity() { in getDensity() method in IconLoader
DSysUiResources.java79 density = iconLoader.getDensity(); in loadIcon()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java209 public int getDensity() { in getDensity() method in NinePatch
DImageDecoder.java197 int getDensity() { return Bitmap.DENSITY_NONE; } in getDensity() method in ImageDecoder.Source
388 public int getDensity() { return mInputDensity; } in getDensity() method in ImageDecoder.InputStreamSource
432 public int getDensity() { in getDensity() method in ImageDecoder.AssetInputStreamSource
465 public int getDensity() { in getDensity() method in ImageDecoder.ResourceSource
1899 final int srcDensity = src.getDensity(); in computeDensity()
DBaseRecordingCanvas.java273 mDensity, patch.getDensity()); in drawPatch()
284 mDensity, patch.getDensity()); in drawPatch()
DBaseCanvas.java317 mDensity, patch.getDensity()); in drawPatch()
327 mDensity, patch.getDensity()); in drawPatch()
/frameworks/base/core/java/android/view/
DDisplayCutout.java286 public float getDensity() { in getDensity() method in DisplayCutout.CutoutPathParserInfo
684 mCutoutPathParserInfo.getDensity(), mCutoutPathParserInfo.getDisplayWidth(), in getCutoutPath()
1036 out.writeFloat(cutout.mCutoutPathParserInfo.getDensity()); in writeCutoutToParcel()
1118 mInner.mCutoutPathParserInfo.getDensity(), in scale()
/frameworks/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java102 Density.getEnum(canvas.getDensity())); in drawShadow()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java114 density = iconLoader.getDensity(); in loadIcon()
/frameworks/base/media/java/android/media/audiofx/
DEnvironmentalReverb.java422 public short getDensity() in getDensity() method in EnvironmentalReverb
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaEnvReverbTest.java286 short density = mReverb.getDensity(); in test1_4DiffusionAndDensity()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java372 info.getDisplayWidth(), info.getDisplayHeight(), info.getDensity(), in calculateDisplayCutoutForRotation()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java374 if (bitmap != null && b.getDensity() == Bitmap.DENSITY_NONE) { in createIconBitmap()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEnvReverbTest.java509 return new Integer(mReverb.getDensity()); in getParameter()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java218 assertThat(density, equalTo(cutout.getCutoutPathParserInfo().getDensity())); in testGetCutoutPathParserInfo()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java375 if (bitmap != null && b.getDensity() == Bitmap.DENSITY_NONE) { in createIconBitmap()

12