HomeSort by relevance Sort by last modified time
    Searched refs:density (Results 151 - 175 of 436) sorted by null

1 2 3 4 5 67 8 91011>>

  /packages/apps/Launcher2/src/com/android/launcher2/
LauncherApplication.java 49 sScreenDensity = getResources().getDisplayMetrics().density;
  /packages/apps/Mms/src/com/android/mms/ui/
QuickContactDivot.java 35 // The screen density. Multiple this by dips to get pixels.
59 mDensity = r.getDisplayMetrics().density;
116 return CORNER_OFFSET * mDensity; // multiply by density to get pixels
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
ViewMetadataRepository.java 38 import com.android.resources.Density;
768 * current theme or density if there's no chance that valid insets will be returned
774 * theme and the given screen density.
777 * @param density the screen density
782 public static Margins getInsets(String fqcn, Density density, String theme) {
786 if (density == Density.HIGH) {
794 } else if (density == Density.MEDIUM)
    [all...]
  /sdk/testapps/customViewTest/libWithCustomView/src/com/android/tests/libwithcustom/
LabelView.java 86 // Must manually scale the desired text size to match screen density
87 mTextPaint.setTextSize(16 * getResources().getDisplayMetrics().density);
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
BookmarkUtils.java 116 private static Bitmap getBitmapFromResourceId(Context context, int id, int density) {
119 drawable = context.getResources().getDrawableForDensity(id, density);
176 * @param iconDensity Density information to get bitmap resources.
  /external/replicaisland/src/com/replica/replicaisland/
AnimationPlayerActivity.java 93 startX = 200 * metrics.density;
97 startX = -200 * metrics.density;
103 // scrolls in horizontally, compute the size based on the actual density of
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
RobolectricTest.java 145 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.0f));
147 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.5f));
  /frameworks/base/core/jni/android/graphics/
GraphicsJNI.h 62 int bitmapCreateFlags, jbyteArray ninepatch, jintArray layoutbounds, int density = -1);
65 jbyteArray ninepatch, int density = -1);
BitmapFactory.cpp 250 const int density = env->GetIntField(options, gOptions_densityFieldID); local
253 if (density != 0 && targetDensity != 0 && density != screenDensity) {
254 scale = (float) targetDensity / density;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
HeadsUpNotificationView.java 125 float densityScale = getResources().getDisplayMetrics().density;
169 float densityScale = getResources().getDisplayMetrics().density;
NotificationRowLayout.java 96 float densityScale = getResources().getDisplayMetrics().density;
220 float densityScale = getResources().getDisplayMetrics().density;
  /cts/tests/tests/widget/src/android/widget/cts/
AdapterViewTest.java 214 float density = mActivity.getResources().getDisplayMetrics().density; local
215 int bottom = (int) (LAYOUT_HEIGHT * density);
  /frameworks/base/core/jni/
android_util_AssetManager.cpp 98 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density);
502 jint touchscreen, jint density,
525 config.density = (uint16_t)density;
693 jshort density,
710 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config);
1007 config.density = 0;
    [all...]
android_view_SurfaceControl.cpp 55 jfieldID density; member in struct:android::__anon31884
387 env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.density, info.density);
476 gPhysicalDisplayInfoClassInfo.density = env->GetFieldID(clazz, "density", "F");
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
MediaEnvReverbTest.java 272 //Test case 1.4: test diffusion and density
286 short density = mReverb.getDensity(); local
287 assertTrue(msg +": got incorrect density",
288 ((float)density > (float)(500 / RATIO_TOLERANCE)) &&
289 ((float)density < (float)(500 * RATIO_TOLERANCE)));
  /frameworks/support/v4/java/android/support/v4/view/
PagerTitleStrip.java 166 final float density = context.getResources().getDisplayMetrics().density; local
167 mScaledTextSpacing = (int) (TEXT_SPACING * density);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/
AdtPrefs.java 465 public void setMonitorDensity(float density) {
466 mMonitorDensity = density;
470 store.setValue(PREFS_MONITOR_DENSITY, density);
  /external/chromium_org/chrome/browser/resources/file_manager/js/photo/
mosaic_mode.js 708 * @param {Mosaic.Density=} opt_maxDensity Layout density.
713 this.maxDensity_ = opt_maxDensity || Mosaic.Density.createHighest();
764 this.density_ = Mosaic.Density.createLowest();
839 // It starts with the lowest density and increases it until the layout
840 // fits into the viewport. If it does not fit even at the highest density,
841 // the layout continues with the highest density.
845 // It starts with the current global density and decreases it until the column
884 // Max density reached, commit if tentative, just continue if dry run.
890 // Rollback the entire layout, retry with higher density
    [all...]
  /development/apps/NinePatchLab/src/com/android/ninepatch/
NinePatchLab.java 107 mScale = res.getDisplayMetrics().density;
  /development/ndk/platforms/android-9/include/android/
configuration.h 194 * Set the current density in the configuration.
196 void AConfiguration_setDensity(AConfiguration* config, int32_t density);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
Gallery1.java 102 mDensity = c.getResources().getDisplayMetrics().density;
  /frameworks/base/core/java/android/appwidget/
AppWidgetHostView.java 279 float density = getResources().getDisplayMetrics().density; local
281 int xPaddingDips = (int) ((padding.left + padding.right) / density);
282 int yPaddingDips = (int) ((padding.top + padding.bottom) / density);
  /frameworks/base/core/java/com/android/internal/view/menu/
ActionMenuView.java 57 final float density = context.getResources().getDisplayMetrics().density; local
58 mMinCellSize = (int) (MIN_CELL_SIZE * density);
59 mGeneratedItemPadding = (int) (GENERATED_ITEM_PADDING * density);
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
ViewLayersActivity.java 111 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));
ViewLayersActivity5.java 130 v.setCompoundDrawablePadding((int) (6 * metrics.density + 0.5f));

Completed in 1007 milliseconds

1 2 3 4 5 67 8 91011>>