Home
last modified time | relevance | path

Searched refs:Density (Results 1 – 20 of 20) sorted by relevance

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DIconLoader.java20 import com.android.resources.Density;
28 private final Density mDesiredDensity;
32 private Density mCurrentDensity;
35 public IconLoader(String iconName, Density density, int platformVersion, LayoutDirection in IconLoader()
61 public Density getDensity() { in getDensity()
85 for (Density density : Density.values()) { in getIcon()
103 private InputStream getIcon(String resourceDir, Density density) { in getIcon()
DSysUiResources.java25 import com.android.resources.Density;
71 Density density, boolean in loadIcon()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DConfigGenerator.java37 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;
282 public ConfigGenerator setDensity(Density density) { in setDensity()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DStatusBar.java26 import com.android.resources.Density;
60 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi), in StatusBar()
68 public StatusBar(BridgeContext context, Density density, boolean isRtl, boolean rtlEnabled, in StatusBar()
110 protected ImageView loadIcon(ImageView imageView, String iconName, Density density) { in loadIcon()
116 IconLoader iconLoader = new IconLoader(iconName, Density.XHIGH, in loadIcon()
DThemePreviewNavigationBar.java20 import com.android.resources.Density;
43 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi), in ThemePreviewNavigationBar()
DNavigationBar.java20 import com.android.resources.Density;
44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar()
50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar()
DCustomBar.java29 import com.android.resources.Density;
91 protected ImageView loadIcon(ImageView imageView, String iconName, Density density) { in loadIcon()
96 protected ImageView loadIcon(int index, String iconName, Density density, boolean isRtl) { in loadIcon()
107 protected ImageView loadIcon(ImageView imageView, String iconName, Density density, in loadIcon()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteHardwareConfig.java20 import com.android.resources.Density;
35 private Density mDensity;
52 private RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, in RemoteHardwareConfig()
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java22 import com.android.resources.Density;
56 Density density = Density.MEDIUM; in nativeDecodeStream()
59 density = Density.getEnum(opts.inDensity); in nativeDecodeStream()
DBitmap_Delegate.java27 import com.android.resources.Density;
107 Density density) throws IOException { in createBitmap()
122 Density density) throws IOException { in createBitmap()
159 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap()
174 Density density) { in createBitmap()
497 Density.DEFAULT_DENSITY /*density*/); in nativeExtractAlpha()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java35 import com.android.resources.Density;
322 Density density = Density.MEDIUM; in getDrawable()
325 if (density == Density.NODPI || density == Density.ANYDPI) { in getDrawable()
326 density = Density.getEnum(context.getConfiguration().densityDpi); in getDrawable()
441 private static Drawable getNinePatchDrawable(Density density, boolean isFramework, in getNinePatchDrawable()
DRenderAction.java26 import com.android.resources.Density;
355 Density density = hardwareConfig.getDensity(); in getConfiguration()
357 density = Density.MEDIUM; in getConfiguration()
DLayout.java35 import com.android.resources.Density;
156 Density density = hwConfig.getDensity(); in Layout()
264 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, in createStatusBar()
343 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl, in createNavBar()
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
DLVREV_ApplyNewSettings.cpp285 (pPrivate->NewParams.Density != pPrivate->CurrentParams.Density)) in LVREV_ApplyNewSettings()
481 if( (pPrivate->NewParams.Density != pPrivate->CurrentParams.Density) || in LVREV_ApplyNewSettings()
485 LVM_FLOAT b = (LVM_FLOAT)pPrivate->NewParams.Density * LVREV_B_8_on_1000; in LVREV_ApplyNewSettings()
DLVREV_SetControlParameters.cpp104 if (pNewParams->Density > LVREV_MAX_DENSITY) in LVREV_SetControlParameters()
/frameworks/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java21 import com.android.resources.Density;
106 Density.getEnum(canvas.getDensity())); in drawShadow()
/frameworks/av/media/libeffects/lvm/lib/Reverb/lib/
DLVREV.h103 …LVM_UINT16 Density; /* Echo density, 0 to 100 for minimum to maxim… member
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp757 params.Density = 100; in Reverb_init()
773 pContext->SavedDiffusion = params.Density*10; in Reverb_init()
1284 ActiveParams.Density = (LVM_INT16)(level/10); in ReverbSetDiffusion()
1322 if(ActiveParams.Density != Temp){ in ReverbGetDiffusion()
1323 ALOGV("\tLVM_ERROR : ReverbGetDiffusion invalid value %d %d", Temp, ActiveParams.Density); in ReverbGetDiffusion()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java37 import com.android.resources.Density;
304 .setDensity(Density.XHIGH) in testExpand()
320 .setDensity(Density.XHIGH) in testExpand()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp782 class Density { in getDisplayConfigs() class
814 float density = Density::getBuildDensity() / 160.0f; in getDisplayConfigs()
821 if (Density::getEmuDensity()) { in getDisplayConfigs()
823 xdpi = ydpi = density = Density::getEmuDensity(); in getDisplayConfigs()