HomeSort by relevance Sort by last modified time
    Searched refs:density (Results 201 - 225 of 1679) sorted by null

1 2 3 4 5 6 7 891011>>

  /cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
ScreenDeviceInfo.java 43 store.addResult("density", metrics.density);
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
WidgetTestUtils.java 113 * Compare the expected pixels with actual, scaling for the target context density
118 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density,
122 /** Converts dips into pixels using the {@link Context}'s density. */
124 float density = context.getResources().getDisplayMetrics().density; local
125 return Math.round(density * dip);
129 * Retrieve a bitmap that can be used for comparison on any density
140 * Retrieve a dithered bitmap that can be used for comparison on any density
  /development/apps/Development/src/com/android/development/
ConfigurationViewer.java 56 + "density=" + m.density + "\n"
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DisplayTest.java 32 assertEquals(1.5f, metrics.density, 0.05);
  /external/webrtc/webrtc/modules/audio_processing/ns/
ns_core.h 66 float density[SIMULT * HALF_ANAL_BLOCKL]; member in struct:NoiseSuppressionC_
  /frameworks/base/core/java/android/util/
TypedValue.java 156 * If {@link #density} is equal to this value, then the density should be
157 * treated as the system's default density value: {@link DisplayMetrics#DENSITY_DEFAULT}.
162 * If {@link #density} is equal to this value, then there is no density
215 * If the Value came from a resource, this holds the corresponding pixel density.
217 public int density; field in class:TypedValue
260 * supplies display density and scaling information.
284 * supplies display density and scaling information.
311 * supplies display density and scaling information
    [all...]
  /frameworks/base/core/jni/android/graphics/
Bitmap.h 40 jobject ninePatchInsets = NULL, int density = -1);
  /frameworks/base/libs/androidfw/tests/
Config_test.cpp 46 static ResTable_config buildDensityConfig(int density) {
49 config.density = uint16_t(density);
57 deviceConfig.density = ResTable_config::DENSITY_XHIGH;
  /frameworks/base/libs/hwui/
FrameInfoVisualizer.h 46 void setDensity(float density);
  /frameworks/base/native/android/
configuration.cpp 71 return config->density;
163 void AConfiguration_setDensity(AConfiguration* config, int32_t density) {
164 config->density = density;
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
RotationActivity.java 39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
ViewLayersActivity3.java 58 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/
SlowNestedRecyclerViewActivity.java 81 final float density = parent.getResources().getDisplayMetrics().density; local
96 bg.setCornerRadius(10 * density);
98 final int pad = (int)(10 * density);
  /frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
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/
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 = ResTable_config::DENSITY_XXXHIGH
    [all...]
  /frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
BitmapView.java 38 mDensity = getResources().getDisplayMetrics().density;
  /frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
IllustrationTest.java 50 context.getResources().getDisplayMetrics().density = 2.0f;
  /frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
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) {
    [all...]
  /hardware/qcom/audio/post_proc/
reverb.h 39 int16_t density; member in struct:reverb_settings_s
  /packages/apps/Launcher3/src/com/android/launcher3/widget/
WidgetHostViewLoader.java 161 float density = context.getResources().getDisplayMetrics().density; local
162 int xPaddingDips = (int) ((padding.left + padding.right) / density);
163 int yPaddingDips = (int) ((padding.top + padding.bottom) / density);
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
InputSmoother.java 46 mDensity = context.getResources().getDisplayMetrics().density;
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
Layout.java 33 import com.android.resources.Density;
134 Density density = hwConfig.getDensity(); local
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,
225 new StatusBar(context, density, isRtl, isRtlSupported, simulatedPlatformVersion);
280 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl
    [all...]
  /frameworks/wilhelm/src/itf/
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 <= 1000)
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
TypedValueTest.java 50 dm.density = 1.1f;
95 dm.density = 1.1f;
145 dm.density = 1.1f;
152 assertEquals(10 * dm.density, TypedValue
215 dm.density = 1.1f;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
ScreenPinningRequest.java 162 float density = metrics.density; local
171 mLayout.setTranslationX(-OFFSET_DP * density);
173 mLayout.setTranslationX(OFFSET_DP * density);
175 mLayout.setTranslationY(OFFSET_DP * density);

Completed in 1372 milliseconds

1 2 3 4 5 6 7 891011>>