Searched refs:density (Results 51 - 75 of 228) sorted by relevance

12345678910

/frameworks/base/core/jni/android/graphics/
H A DBitmap.h40 jobject ninePatchInsets = NULL, int density = -1);
/frameworks/base/libs/androidfw/tests/
H A DConfig_test.cpp46 static ResTable_config buildDensityConfig(int density) { argument
49 config.density = uint16_t(density);
57 deviceConfig.density = ResTable_config::DENSITY_XHIGH;
/frameworks/base/libs/hwui/
H A DFrameInfoVisualizer.h46 void setDensity(float density);
/frameworks/base/libs/hwui/tests/common/
H A DTestContext.h37 #define dp(x) ((x) * android::uirenderer::test::gDisplay.density)
/frameworks/base/native/android/
H A Dconfiguration.cpp71 return config->density;
163 void AConfiguration_setDensity(AConfiguration* config, int32_t density) { argument
164 config->density = density;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DRotationActivity.java39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
H A DViewLayersActivity3.java58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
H A DDrawIntoHwBitmapActivity.java56 p.setTextSize(20 * getResources().getDisplayMetrics().density);
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DSlowNestedRecyclerViewActivity.java81 final float density = parent.getResources().getDisplayMetrics().density;
96 bg.setCornerRadius(10 * density);
98 final int pad = (int)(10 * density);
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
H A DTestWallpaper.java107 tpaint.density = getResources().getDisplayMetrics().density;
111 tpaint.setShadowLayer(4 * getResources().getDisplayMetrics().density, 0, 0, 0xff000000);
115 mPadding = (int)(16 * getResources().getDisplayMetrics().density);
/frameworks/base/tools/aapt2/
H A DConfigDescription.cpp337 if (out) out->density = ResTable_config::DENSITY_DEFAULT;
342 if (out) out->density = ResTable_config::DENSITY_ANY;
347 if (out) out->density = ResTable_config::DENSITY_NONE;
352 if (out) out->density = ResTable_config::DENSITY_LOW;
357 if (out) out->density = ResTable_config::DENSITY_MEDIUM;
362 if (out) out->density = ResTable_config::DENSITY_TV;
367 if (out) out->density = ResTable_config::DENSITY_HIGH;
372 if (out) out->density = ResTable_config::DENSITY_XHIGH;
377 if (out) out->density = ResTable_config::DENSITY_XXHIGH;
382 if (out) out->density
[all...]
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DBitmapView.java38 mDensity = getResources().getDisplayMetrics().density;
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DIllustrationTest.java50 context.getResources().getDisplayMetrics().density = 2.0f;
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java62 // These are scaled to match the target density.
86 * Set the density scale at which this drawable will be rendered. This
87 * method assumes the drawable will be rendered at the same density as the
90 * @param canvas The Canvas from which the density scale must be obtained.
100 * Set the density scale at which this drawable will be rendered.
102 * @param metrics The DisplayMetrics indicating the density scale for this drawable.
112 * Set the density at which this drawable will be rendered.
114 * @param density The density scale for this drawable.
119 public void setTargetDensity(int density) { argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DLayout.java134 Density density = hwConfig.getDensity();
140 navBar = createNavBar(getContext(), density, isRtl, getParams().isRtlSupported(),
146 statusBar = createStatusBar(getContext(), density, isRtl, getParams().isRtlSupported(),
222 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, argument
225 new StatusBar(context, density, isRtl, isRtlSupported, simulatedPlatformVersion);
280 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl, argument
284 NavigationBar navBar = new NavigationBar(context, density, orientation, isRtl,
/frameworks/wilhelm/src/itf/
H A DIEnvironmentalReverb.cpp580 SLpermille density)
584 if (!(0 <= density && density <= 1000)) {
589 thiz->mProperties.density = density;
597 REVERB_PARAM_DENSITY, &density);
625 REVERB_PARAM_DENSITY, &thiz->mProperties.density);
629 *pDensity = thiz->mProperties.density;
669 if (!(0 <= properties.density && properties.density <
579 IEnvironmentalReverb_SetDensity(SLEnvironmentalReverbItf self, SLpermille density) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DScreenPinningRequest.java162 float density = metrics.density;
171 mLayout.setTranslationX(-OFFSET_DP * density);
173 mLayout.setTranslationX(OFFSET_DP * density);
175 mLayout.setTranslationY(OFFSET_DP * density);
H A DRecentsConfiguration.java99 float screenDensity = context.getResources().getDisplayMetrics().density;
/frameworks/base/tools/aapt/
H A DAaptConfig.cpp275 } else if (config->density == ResTable_config::DENSITY_ANY) {
290 || config->density != ResTable_config::DENSITY_DEFAULT) {
574 if (out) out->density = ResTable_config::DENSITY_DEFAULT;
579 if (out) out->density = ResTable_config::DENSITY_ANY;
584 if (out) out->density = ResTable_config::DENSITY_NONE;
589 if (out) out->density = ResTable_config::DENSITY_LOW;
594 if (out) out->density = ResTable_config::DENSITY_MEDIUM;
599 if (out) out->density = ResTable_config::DENSITY_TV;
604 if (out) out->density = ResTable_config::DENSITY_HIGH;
609 if (out) out->density
[all...]
/frameworks/base/libs/androidfw/
H A DAttributeResolution.cpp114 config.density = 0;
187 out_values[STYLE_DENSITY] = config.density;
297 config.density = 0;
393 out_values[STYLE_DENSITY] = config.density;
438 config.density = 0;
477 out_values[STYLE_DENSITY] = config.density;
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java244 final float density = getResources().getDisplayMetrics().density;
245 mTapThreshold = (int) (TAP_THRESHOLD * density + 0.5f);
246 mMaximumTapVelocity = (int) (MAXIMUM_TAP_VELOCITY * density + 0.5f);
247 mMaximumMinorVelocity = (int) (MAXIMUM_MINOR_VELOCITY * density + 0.5f);
248 mMaximumMajorVelocity = (int) (MAXIMUM_MAJOR_VELOCITY * density + 0.5f);
249 mMaximumAcceleration = (int) (MAXIMUM_ACCELERATION * density + 0.5f);
250 mVelocityUnits = (int) (VELOCITY_UNITS * density + 0.5f);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableInflater.java120 * an override density.
124 @NonNull AttributeSet attrs, int density, @Nullable Theme theme)
141 drawable.setSrcDensityOverride(density);
123 inflateFromXmlForDensity(@onNull String name, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, int density, @Nullable Theme theme) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DNotificationExpandButton.java61 int touchTargetSize = (int) (getResources().getDisplayMetrics().density * 48);
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOcquarium.java33 final float dp = getResources().getDisplayMetrics().density;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DFakeShadowView.java60 (int) (48 * getResources().getDisplayMetrics().density)));

Completed in 2611 milliseconds

12345678910