OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mDensity
(Results
1 - 25
of
159
) sorted by null
1
2
3
4
5
6
7
/packages/apps/Launcher3/src/com/android/launcher3/util/
ConfigMonitor.java
34
private final int
mDensity
;
41
mDensity
= config.densityDpi;
47
if (mFontScale != config.fontScale ||
mDensity
!= config.densityDpi) {
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
BitmapView.java
28
private final float
mDensity
;
38
mDensity
= getResources().getDisplayMetrics().density;
43
return (int) (100 *
mDensity
);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
InputSmoother.java
38
private final float
mDensity
;
46
mDensity
= context.getResources().getDisplayMetrics().density;
95
final float distanceDp = totalDistancePx /
mDensity
;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
TunablePadding.java
37
private final float
mDensity
;
46
mDensity
= metrics.density;
54
dimen = (int) (Integer.parseInt(newValue) *
mDensity
);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
TouchTargetEnforcer.java
35
private final float
mDensity
;
56
mDensity
= density;
124
return dp *
mDensity
;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
ConfigurationControllerImpl.java
38
private int
mDensity
;
47
mDensity
= currentConfig.densityDpi;
67
if (density !=
mDensity
|| fontScale != mFontScale
74
mDensity
= density;
KeyguardClockPositionAlgorithm.java
59
private float
mDensity
;
96
mDensity
= res.getDisplayMetrics().density;
153
progress *= Math.pow(1 + mEmptyDragAmount /
mDensity
/ 300, 0.3f);
LockIcon.java
58
private int
mDensity
;
110
if (density !=
mDensity
) {
111
mDensity
= density;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
ButteryProgressBar.java
56
private final float
mDensity
;
86
mDensity
= c.getResources().getDisplayMetrics().density;
94
Math.round(DEFAULT_BAR_HEIGHT_DP *
mDensity
));
97
Math.round(DEFAULT_DETENT_WIDTH_DP *
mDensity
));
128
final float widthMultiplier = w /
mDensity
/ BASE_WIDTH_DP;
/frameworks/base/graphics/java/android/graphics/
Bitmap.java
82
public int
mDensity
= getDefaultDensity();
130
mDensity
= density;
189
return
mDensity
;
206
mDensity
= density;
645
b.
mDensity
=
mDensity
;
663
b.
mDensity
=
mDensity
;
681
b.
mDensity
=
mDensity
;
[
all
...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
ConversationWebView.java
141
private final float
mDensity
;
165
mDensity
= r.getDisplayMetrics().density;
228
return (int) ((getWidth() - sideMarginPx * 2) /
mDensity
);
244
scale =
mDensity
;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
ShadowCardDrag.java
70
float newMomentumX = (x - lastX) / (
mDensity
* deltaT);
71
float newMomentumY = (y - lastY) / (
mDensity
* deltaT);
142
private float
mDensity
;
154
mDensity
= getResources().getDisplayMetrics().density;
157
float r = 10 *
mDensity
;
219
MAX_Z_DP *
mDensity
);
/frameworks/base/tests/Assist/src/com/android/test/assist/
AssistInteractionSession.java
45
private float
mDensity
;
90
mDensity
= mScrim.getResources().getDisplayMetrics().density;
129
mBackground.setTranslationY(50 *
mDensity
);
/development/samples/ApiDemos/src/com/example/android/apis/animation/
AnimationCloning.java
65
private float
mDensity
;
70
mDensity
= getContext().getResources().getDisplayMetrics().density;
108
circle.resize(50f *
mDensity
, 50f *
mDensity
);
/frameworks/base/libs/hwui/
FrameInfoVisualizer.h
70
float
mDensity
= 0;
/frameworks/base/graphics/java/android/graphics/drawable/
RippleDrawable.java
163
private int
mDensity
;
557
mBackground.setup(mState.mMaxRadius,
mDensity
);
595
mRipple.setup(mState.mMaxRadius,
mDensity
);
1005
if (origs.
mDensity
!=
mDensity
) {
1006
applyDensityScaling(orig.
mDensity
,
mDensity
);
[
all
...]
AdaptiveIconDrawable.java
166
final ChildDrawable layer = new ChildDrawable(mLayerState.
mDensity
);
477
final ChildDrawable layer = new ChildDrawable(state.
mDensity
);
892
public int
mDensity
= DisplayMetrics.DENSITY_DEFAULT;
895
mDensity
= density;
922
mDensity
= Drawable.resolveDensity(res, orig.
mDensity
);
931
if (
mDensity
!= targetDensity) {
932
mDensity
= targetDensity;
944
int
mDensity
;
964
mDensity
= Drawable.resolveDensity(res, orig != null ? orig.mDensity : 0)
[
all
...]
DrawableWrapper.java
455
int
mDensity
= DisplayMetrics.DENSITY_DEFAULT;
479
density = orig.
mDensity
;
484
mDensity
= density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density;
497
if (
mDensity
!= targetDensity) {
498
final int sourceDensity =
mDensity
;
499
mDensity
= targetDensity;
LayerDrawable.java
139
r[i] = new ChildDrawable(mLayerState.
mDensity
);
259
final ChildDrawable layer = new ChildDrawable(state.
mDensity
);
481
final ChildDrawable layer = new ChildDrawable(mLayerState.
mDensity
);
[
all
...]
InsetDrawable.java
332
if (orig.
mDensity
!=
mDensity
) {
333
applyDensityScaling(orig.
mDensity
,
mDensity
);
372
if (density !=
mDensity
) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
UiElementPullParser.java
81
private final Density
mDensity
;
125
mDensity
= density;
626
f *= (float)
mDensity
.getDpiValue() / Density.DEFAULT_DENSITY;
629
f *=
mDensity
.getDpiValue() * (1.0f / 72);
632
f *=
mDensity
.getDpiValue();
635
f *=
mDensity
.getDpiValue() * (1.0f / 25.4f);
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/
GradientDrawable.java
52
private float
mDensity
;
62
mDensity
= context.getResources().getDisplayMetrics().density;
172
float radius = mSplat.radius *
mDensity
;
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
RenderingJitter.java
114
private float
mDensity
;
124
mDensity
= context.getResources().getDisplayMetrics().density;
145
return
mDensity
* dp;
174
int graphWidth = (int) ((w - mLabelWidth - dp(1)) /
mDensity
);
180
mJitterPoints[i] = mLabelWidth + (i / 2 + 1) *
mDensity
;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
RoundedCorners.java
55
private float
mDensity
;
96
mDensity
= metrics.density;
176
size = (int) (Integer.parseInt(newValue) *
mDensity
);
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
BasicBitmapDrawable.java
71
private final float
mDensity
;
98
mDensity
= res.getDisplayMetrics().density;
321
/
mDensity
);
Completed in 1167 milliseconds
1
2
3
4
5
6
7