/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.h | 40 jobject ninePatchInsets = NULL, int density = -1);
|
/frameworks/base/libs/androidfw/tests/ |
H A D | Config_test.cpp | 46 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 D | FrameInfoVisualizer.h | 46 void setDensity(float density);
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.h | 37 #define dp(x) ((x) * android::uirenderer::test::gDisplay.density)
|
/frameworks/base/native/android/ |
H A D | configuration.cpp | 71 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 D | RotationActivity.java | 39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
|
H A D | ViewLayersActivity3.java | 58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
|
H A D | DrawIntoHwBitmapActivity.java | 56 p.setTextSize(20 * getResources().getDisplayMetrics().density);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | SlowNestedRecyclerViewActivity.java | 81 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 D | TestWallpaper.java | 107 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 D | ConfigDescription.cpp | 337 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 D | BitmapView.java | 38 mDensity = getResources().getDisplayMetrics().density;
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | IllustrationTest.java | 50 context.getResources().getDisplayMetrics().density = 2.0f;
|
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable.java | 62 // 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 D | Layout.java | 134 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 D | IEnvironmentalReverb.cpp | 580 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 D | ScreenPinningRequest.java | 162 float density = metrics.density; 171 mLayout.setTranslationX(-OFFSET_DP * density); 173 mLayout.setTranslationX(OFFSET_DP * density); 175 mLayout.setTranslationY(OFFSET_DP * density);
|
H A D | RecentsConfiguration.java | 99 float screenDensity = context.getResources().getDisplayMetrics().density;
|
/frameworks/base/tools/aapt/ |
H A D | AaptConfig.cpp | 275 } 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 D | AttributeResolution.cpp | 114 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 D | SlidingDrawer.java | 244 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 D | DrawableInflater.java | 120 * 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 D | NotificationExpandButton.java | 61 int touchTargetSize = (int) (getResources().getDisplayMetrics().density * 48);
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/ |
H A D | Ocquarium.java | 33 final float dp = getResources().getDisplayMetrics().density;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | FakeShadowView.java | 60 (int) (48 * getResources().getDisplayMetrics().density)));
|