OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:targetDensity
(Results
1 - 6
of
6
) sorted by null
/frameworks/base/graphics/java/android/graphics/
BitmapFactory.java
477
final int
targetDensity
= opts.inTargetDensity;
478
if (
targetDensity
== 0 || density ==
targetDensity
|| density == opts.inScreenDensity) {
485
float scale =
targetDensity
/ (float)density;
496
bm.setDensity(
targetDensity
);
Bitmap.java
646
* @param
targetDensity
The density of the target canvas of the bitmap.
649
public int getScaledWidth(int
targetDensity
) {
650
return scaleFromDensity(getWidth(), mDensity,
targetDensity
);
657
* @param
targetDensity
The density of the target canvas of the bitmap.
660
public int getScaledHeight(int
targetDensity
) {
661
return scaleFromDensity(getHeight(), mDensity,
targetDensity
);
[
all
...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory.java
477
final int
targetDensity
= opts.inTargetDensity;
478
if (
targetDensity
== 0 || density ==
targetDensity
486
float scale =
targetDensity
/ (float)density;
497
bm.setDensity(
targetDensity
);
/cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java
375
int
targetDensity
= mResources.getDisplayMetrics().densityDpi;
378
assertEquals(212 *
targetDensity
/ defaultDensity, draw.getIntrinsicWidth(), 1);
379
assertEquals(142 *
targetDensity
/ defaultDensity, draw.getIntrinsicHeight(), 1);
/prebuilt/sdk/4/
android.jar
/prebuilt/sdk/6/
android.jar
Completed in 220 milliseconds