HomeSort by relevance Sort by last modified time
    Searched refs:Density (Results 1 - 25 of 125) sorted by null

1 2 3 4 5

  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
IconLoader.java 19 import com.android.resources.Density;
27 private final Density mDesiredDensity;
31 private Density mCurrentDensity;
34 IconLoader(String iconName, Density density, int platformVersion, LayoutDirection direction) {
36 mDesiredDensity = density;
56 * Should only be called after {@link #getIcon()}. Returns the density of the icon, if found by
59 public Density getDensity() {
73 * If a match is found, mCurrentDensity will be set to the icon's density.
76 // First check for the desired density
    [all...]
ThemePreviewNavigationBar.java 20 import com.android.resources.Density;
43 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi),
StatusBar.java 24 import com.android.resources.Density;
56 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi),
64 public StatusBar(BridgeContext context, Density density, boolean isRtl, boolean rtlEnabled,
82 + Config.getWifiIconType(simulatedPlatformVersion), density);
83 loadIcon(2, "stat_sys_battery_100.png", density);
89 protected void loadIcon(int index, String iconName, Density density) {
91 super.loadIcon(index, iconName, density);
98 IconLoader iconLoader = new IconLoader(iconName, Density.XHIGH
    [all...]
NavigationBar.java 20 import com.android.resources.Density;
44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl,
46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion,
50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl,
70 loadIcon(back, "ic_sysbar_back.png", density, isRtl);
72 loadIcon(3, "ic_sysbar_home.png", density, isRtl);
74 loadIcon(recent, "ic_sysbar_recent.png", density, isRtl);
96 size *= context.getMetrics().density;
    [all...]
CustomBar.java 28 import com.android.resources.Density;
101 protected void loadIcon(int index, String iconName, Density density) {
102 loadIcon(index, iconName, density, false);
105 protected void loadIcon(int index, String iconName, Density density, boolean isRtl) {
111 IconLoader iconLoader = new IconLoader(iconName, density, mSimulatedPlatformVersion,
116 density = iconLoader.getDensity();
122 bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
InputDensityDialog.java 18 import com.android.resources.Density;
38 * Density value being chosen - static to keep most recently chosen value
41 private static int sDpi = Density.DEFAULT_DENSITY;
54 lblWhatIsThe.setText("What is the screen density the current px value works with?");
63 for (Density density : Density.values()) {
64 if (density == Density.NODPI) {
67 if (density.getDpiValue() == sDpi)
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/radeon/
radeon_fog.c 111 d = ctx->Fog.Density;
116 d = ctx->Fog.Density*ctx->Fog.Density;
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 22 import com.android.resources.Density;
55 Density density = Density.MEDIUM; local
58 density = Density.getEnum(opts.inDensity);
76 density);
92 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density);
127 * Set the newly decoded bitmap's density based on the Options.
135 final int density = opts.inDensity local
    [all...]
Bitmap_Delegate.java 26 import com.android.resources.Density;
104 * @param density the density associated with the bitmap
109 public static Bitmap createBitmap(File input, boolean isMutable, Density density)
111 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density);
118 * @param density the density associated with the bitmap
125 Density density) throws IOException
    [all...]
  /frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
ConfigGenerator.java 37 import com.android.resources.Density;
75 .setDensity(Density.XXHIGH)
90 .setDensity(Density.XHIGH)
105 .setDensity(Density.XHIGH)
120 .setDensity(Density.XXHIGH)
135 .setDensity(Density.TV)
156 private Density mDensity = Density.XHIGH;
283 public ConfigGenerator setDensity(Density density) {
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
VaryingConfiguration.java 22 import com.android.resources.Density;
282 Density density = getDensity(d); local
283 if (density == Density.TV || density == Density.LOW) {
300 * Returns the density of the given device
303 * @return the density or null
306 private static Density getDensity(@NonNull Device device)
    [all...]
ConfigurationMatcher.java 38 import com.android.resources.Density;
496 // lets look for a high density device
768 // put the sort order for the density.
769 mDensitySort.put(Density.HIGH.getDpiValue(), 1);
770 mDensitySort.put(Density.MEDIUM.getDpiValue(), 2);
771 mDensitySort.put(Density.XHIGH.getDpiValue(), 3);
772 mDensitySort.put(Density.LOW.getDpiValue(), 4);
    [all...]
  /frameworks/av/media/libeffects/lvm/lib/Reverb/lib/
LVREV.h 113 LVM_UINT16 Density; /* Echo density, 0 to 100 for minimum to maximum density */
  /frameworks/av/media/libeffects/lvm/lib/Reverb/src/
LVREV_SetControlParameters.c 93 if (pNewParams->Density > LVREV_MAX_DENSITY)
LVREV_ApplyNewSettings.c 288 (pPrivate->NewParams.Density != pPrivate->CurrentParams.Density))
481 if( (pPrivate->NewParams.Density != pPrivate->CurrentParams.Density) ||
485 LVM_INT32 b = pPrivate->NewParams.Density * LVREV_B_8_on_1000;
  /external/mesa3d/src/mesa/swrast/
s_fog.c 51 d = ctx->Fog.Density;
56 d = ctx->Fog.Density;
69 #define EXP_FOG(f, coord) f = EXPF(density * coord)
185 const GLfloat density = -ctx->Fog.Density; local
204 const GLfloat negDensitySquared = -ctx->Fog.Density * ctx->Fog.Density;
  /external/mesa3d/src/mesa/main/
fog.c 124 if (ctx->Fog.Density == *params)
127 ctx->Fog.Density = *params;
218 ctx->Fog.Density = 1.0;
  /external/mesa3d/src/mesa/tnl/
t_vb_fog.c 122 d = ctx->Fog.Density;
129 d = ctx->Fog.Density*ctx->Fog.Density;
  /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...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderAction.java 27 import com.android.resources.Density;
111 metrics.density = metrics.noncompatDensity =
114 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density;
265 // clear the stored ViewConfiguration since the map is per density and not per context.
346 Density density = hardwareConfig.getDensity(); local
347 if (density == null) {
348 density = Density.MEDIUM;
351 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue()
    [all...]
Layout.java 34 import com.android.resources.Density;
133 Density density = hwConfig.getDensity(); local
139 navBar = createNavBar(getContext(), density, isRtl, getParams().isRtlSupported(),
145 statusBar = createStatusBar(getContext(), density, isRtl, getParams().isRtlSupported(),
221 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl,
224 new StatusBar(context, density, isRtl, isRtlSupported, simulatedPlatformVersion);
279 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
UiElementPullParser.java 47 import com.android.resources.Density;
81 private final Density mDensity;
115 * @param density the density factor for the screen.
120 Density density, IProject project) {
125 mDensity = density;
626 f *= (float)mDensity.getDpiValue() / Density.DEFAULT_DENSITY;
  /frameworks/base/tools/layoutlib/bridge/src/android/view/
ViewGroup_Delegate.java 19 import com.android.resources.Density;
79 Density.getEnum(canvas.getDensity()));
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/
UiElementPullParserTest.java 27 import com.android.resources.Density;
172 Density.MEDIUM, // density (default from ConfigurationComposite)
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
ConfigurationTest.java 22 import com.android.resources.Density;
103 assertEquals(Density.MEDIUM, configuration.getDensity());

Completed in 391 milliseconds

1 2 3 4 5