/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | TabletSystemBar.java | 31 public TabletSystemBar(Context context, Density density) throws XmlPullParserException { argument 32 super(context, density, "/bars/tablet_system_bar.xml", "tablet_system_bar.xml"); 39 loadIcon(0, "ic_sysbar_back_default.png", density); 40 loadIcon(1, "ic_sysbar_home_default.png", density); 41 loadIcon(2, "ic_sysbar_recent_default.png", density); 43 loadIcon(4, "stat_sys_wifi_signal_4_fully.png", density);
|
H A D | TitleBar.java | 30 public TitleBar(Context context, Density density, String label) argument 32 super(context, density, "/bars/title_bar.xml", "title_bar.xml");
|
H A D | PhoneSystemBar.java | 32 public PhoneSystemBar(Context context, Density density) throws XmlPullParserException { argument 33 super(context, density, "/bars/phone_system_bar.xml", "phone_system_bar.xml"); 43 loadIcon(1, "stat_sys_wifi_signal_4_fully.png", density);
|
H A D | FakeActionBar.java | 30 public FakeActionBar(Context context, Density density, String label, String icon) argument 32 super(context, density, "/bars/action_bar.xml", "action_bar.xml");
|
H A D | CustomBar.java | 63 protected CustomBar(Context context, Density density, String layoutPath, String name) argument 87 // current density 88 Density density = densityInOut[0]; 91 pathOut[0] = "/bars/" + density.getResourceValue() + "/" + iconName; 96 if (d != density) { 109 protected void loadIcon(int index, String iconName, Density density) { argument 115 Density[] densityInOut = new Density[] { density }; 118 density = densityInOut[0]; 125 bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
|
/frameworks/base/core/java/android/text/ |
H A D | TextPaint.java | 32 public float density = 1.0f; field in class:TextPaint 67 density = tp.density;
|
/frameworks/base/core/java/android/util/ |
H A D | DisplayMetrics.java | 24 * size, density, and font scaling. 31 * Standard quantized DPI for low-density screens. 36 * Standard quantized DPI for medium-density screens. 42 * generally not worry about this density, instead targeting 50 * Standard quantized DPI for high-density screens. 55 * Standard quantized DPI for extra-high-density screens. 60 * The reference density used throughout the system. 65 * The device's density. 80 * The logical density of the display. This is a scaling factor for the 84 * this density valu 96 public float density; field in class:DisplayMetrics [all...] |
H A D | TypedValue.java | 142 * If {@link #density} is equal to this value, then the density should be 143 * treated as the system's default density value: {@link DisplayMetrics#DENSITY_DEFAULT}. 148 * If {@link #density} is equal to this value, then there is no density 177 * If the Value came from a resource, this holds the corresponding pixel density. 179 public int density; field in class:TypedValue 222 * supplies display density and scaling information. 246 * supplies display density and scaling information. 273 * supplies display density an [all...] |
/frameworks/base/include/ui/ |
H A D | DisplayInfo.h | 35 float density; member in struct:android::DisplayInfo
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 52 final int density = opts.inDensity; 53 if (density == 0) { 57 bm.setDensity(density); 59 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { 67 float scale = targetDensity / (float)density; 97 Density density = Density.MEDIUM; 99 density = Density.getEnum(opts.inDensity); 113 density); 127 bm = Bitmap_Delegate.createBitmap(is, true, density); [all...] |
H A D | Bitmap_Delegate.java | 88 * @param density the density associated with the bitmap 93 public static Bitmap createBitmap(File input, boolean isMutable, Density density) argument 98 return createBitmap(delegate, isMutable, density.getDpiValue()); 106 * @param density the density associated with the bitmap 111 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density) argument 116 return createBitmap(delegate, isMutable, density.getDpiValue()); 124 * @param density the density associate 129 createBitmap(BufferedImage image, boolean isMutable, Density density) argument 417 nativeWriteToParcel(int nativeBitmap, boolean isMutable, int density, Parcel p) argument 522 createBitmap(Bitmap_Delegate delegate, boolean isMutable, int density) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/webkit/ |
H A D | ZoomManagerTest.java | 39 private void testInit(float density) { argument 40 zoomManager.init(density); 41 actualScaleTest(density); 42 defaultScaleTest(density); 45 assertEquals(density, zoomManager.getTextWrapScale()); 55 private void testUpdateDefaultZoomDensity(float density) { argument 56 zoomManager.updateDefaultZoomDensity(density); 57 defaultScaleTest(density);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewConfiguration.java | 144 * applications that do not provide a Context for determining density/configuration-dependent 159 * applications that do not provide a Context for determining density/configuration-dependent 271 * various parameters of the context, like the dimension of the display or the density 283 final float density = metrics.density; 286 sizeAndDensity = density * 1.5f; 288 sizeAndDensity = density; 293 mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f); 294 mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f); 295 mScrollbarSize = (int) (density * SCROLL_BAR_SIZ [all...] |
H A D | Display.java | 29 * Provides information about the display size and density. 108 mTmpMetrics.density = mDensity; 292 * Gets display metrics that describe the size and density of this display. 318 + " " + outMetrics.density); 361 outMetrics.density = outMetrics.noncompatDensity = mDensity; 362 outMetrics.scaledDensity = outMetrics.noncompatScaledDensity = outMetrics.density;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 113 * The pixel density to use for the bitmap. This will always result 114 * in the returned bitmap having a density set for it (see 117 * density does not match {@link #inTargetDensity}, then the bitmap 118 * will be scaled to the target density before being returned. 124 * will fill in the density associated with the resource. The other 125 * functions will leave it as-is and no density will be applied. 136 * The pixel density of the destination this bitmap will be drawn to. 145 * will fill in the density associated the Resources object's 147 * functions will leave it as-is and no scaling for density will be 158 * The pixel density o [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceFrameLayout.java | 53 float density = context.getResources().getDisplayMetrics().density; 54 int defaultBorderTop = (int) (density * DEFAULT_BORDER_TOP + 0.5f); 55 int defaultBottomPadding = (int) (density * DEFAULT_BORDER_BOTTOM + 0.5f); 56 int defaultLeftPadding = (int) (density * DEFAULT_BORDER_LEFT + 0.5f); 57 int defaultRightPadding = (int) (density * DEFAULT_BORDER_RIGHT + 0.5f);
|
/frameworks/base/core/jni/ |
H A D | android_view_Display.cpp | 42 jfieldID density; member in struct:android::offsets_t 61 env->SetFloatField(clazz, offsets.density, info.density); 119 offsets.density = env->GetFieldID(clazz, "mDensity", "F");
|
/frameworks/base/include/private/surfaceflinger/ |
H A D | SharedBufferStack.h | 38 float density; member in struct:android::display_cblk_t
|
/frameworks/base/core/java/android/text/style/ |
H A D | AbsoluteSizeSpan.java | 75 ds.setTextSize(mSize * ds.density); 84 ds.setTextSize(mSize * ds.density);
|
/frameworks/base/tools/localize/ |
H A D | Configuration.cpp | 18 n = density.compare(that.density);
|
H A D | Configuration.h | 13 string density; member in struct:Configuration
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderAction.java | 105 metrics.density = metrics.noncompatDensity = 108 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; 251 // clear the stored ViewConfiguration since the map is per density and not per context. 326 Density density = mParams.getDensity(); 327 if (density == null) { 328 density = Density.MEDIUM; 331 config.screenWidthDp = mParams.getScreenWidth() / density.getDpiValue(); 332 config.screenHeightDp = mParams.getScreenHeight() / density.getDpiValue();
|
/frameworks/base/media/java/android/media/audiofx/ |
H A D | EnvironmentalReverb.java | 375 * Sets the echo density in the late reverberation decay. 406 * Controls the modal density of the late reverberation decay. 408 * A lower density creates a hollow sound that is useful for simulating small reverberation 410 * @param density density specified using a permille scale. The valid range is [0, 1000]. 417 public void setDensity(short density) argument 419 byte[] param = shortToByteArray(density); 424 * Gets the density level. 425 * @return the density level. See {@link #setDiffusion(short)} for units. 519 public short density; field in class:EnvironmentalReverb.Settings [all...] |
/frameworks/base/native/android/ |
H A D | configuration.cpp | 71 return config->density; 154 void AConfiguration_setDensity(AConfiguration* config, int32_t density) { argument 155 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);
|