HomeSort by relevance Sort by last modified time
    Searched full:density (Results 126 - 150 of 1486) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
AssistVisualizer.java 77 float density = getResources().getDisplayMetrics().density; local
78 mFramePaint.setShadowLayer(density, density, density, 0xff000000);
82 mFrameNoTransformPaint.setShadowLayer(density, density, density, 0xff000000);
  /frameworks/support/v4/java/android/support/v4/view/
PagerTabStrip.java 90 final float density = context.getResources().getDisplayMetrics().density; local
91 mIndicatorHeight = (int) (INDICATOR_HEIGHT * density + 0.5f);
92 mMinPaddingBottom = (int) (MIN_PADDING_BOTTOM * density + 0.5f);
93 mMinTextSpacing = (int) (MIN_TEXT_SPACING * density);
94 mTabPadding = (int) (TAB_PADDING * density + 0.5f);
95 mFullUnderlineHeight = (int) (FULL_UNDERLINE_HEIGHT * density + 0.5f);
96 mMinStripHeight = (int) (MIN_STRIP_HEIGHT * density + 0.5f);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowResources.java 37 private float density = 1.0f; field in class:ShadowResources
129 public void setDensity(float density) {
130 this.density = density;
148 displayMetrics.density = this.density;
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
ResourcesWrapper.java 140 public Drawable getDrawableForDensity(int id, int density) throws NotFoundException {
141 return mResources.getDrawableForDensity(id, density);
145 public Drawable getDrawableForDensity(int id, int density, Theme theme) {
146 return mResources.getDrawableForDensity(id, density, theme);
211 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs)
213 mResources.getValueForDensity(id, density, outValue, resolveRefs);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PrintCustomContent.java 136 final int density = Math.max(newAttributes.getResolution().getHorizontalDpi(),
148 // the horizontal printer density. This way we get the maximal number
150 final int marginLeft = (int) (density * (float) newAttributes.getMinMargins()
152 final int marginRight = (int) (density * (float) newAttributes.getMinMargins()
154 final int contentWidth = (int) (density * (float) newAttributes.getMediaSize()
164 final int marginTop = (int) (density * (float) newAttributes.getMinMargins()
166 final int marginBottom = (int) (density * (float) newAttributes.getMinMargins()
168 final int contentHeight = (int) (density * (float) newAttributes.getMediaSize()
175 // Create a context for resources at printer density. We will
177 // resources for a density the printer supports
    [all...]
  /frameworks/base/docs/html/guide/practices/ui_guidelines/
icon_design.jd 15 <li>You should create separate icon sets for high-, medium-, and low-density screens.</li>
22 <li><a href="#icon-sets">Providing Density-Specific Icon Sets</a></li>
140 <h2 id="icon-sets">Providing Density-Specific Icon Sets</h2>
152 each generalized screen density. Then,
153 store them in density-specific resource directories in your application. When
155 the device screen and load icons from the appropriate density-specific
156 resources. For more information about how to store density-specific resources in
159 directory qualifiers for screen size and density</a>. </p>
246 <p>This structure parallels the density-specific structure in which you will
250 resources directory. Separating assets by density also helps you detect an
    [all...]
  /frameworks/base/docs/html/tools/devices/
managing-avds-cmdline.jd 13 <li><a href="#CustomDensity">Customize the device resolution or density</a></li>
144 <h3 id="CustomDensity">Customize the device resolution or density</h3>
147 AVDs, using different screen configurations (different combinations of size and density). In
151 <p>To set up your AVDs for a specific resolution or density, follow these steps:</p>
160 <li>To specify a custom density for the skin, answer "yes" when asked whether
163 specify "Abstracted LCD density" (<em>hw.lcd.density</em>). Enter an appropriate
164 value, such as "120" for a low-density screen, "160" for a medium density screen,
165 or "240" for a high-density screen.</li
    [all...]
  /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...]
  /external/eigen/test/eigen2/
eigen2_sparse_basic.cpp 53 double density = std::max(8./(rows*cols), 0.01); local
65 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords);
188 initSparse<Scalar>(density, refM1, m1);
210 initSparse<Scalar>(density, refM1, m1);
211 initSparse<Scalar>(density, refM2, m2);
212 initSparse<Scalar>(density, refM3, m3);
213 initSparse<Scalar>(density, refM4, m4);
238 initSparse<Scalar>(density, refMat2, m2);
252 initSparse<Scalar>(density, refMat2, m2);
267 initSparse<Scalar>(density, refMat2, m2)
    [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)
141 private Density mDensity = Density.XHIGH;
268 public ConfigGenerator setDensity(Density density) {
269 mDensity = density;
    [all...]
  /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;
  /frameworks/base/libs/hwui/
FrameInfoVisualizer.cpp 59 static int dpToPx(int dp, float density) {
60 return (int) (dp * density + 0.5f);
72 void FrameInfoVisualizer::setDensity(float density) {
73 if (CC_UNLIKELY(mDensity != density)) {
74 mDensity = density;
75 mVerticalUnit = dpToPx(PROFILE_DRAW_DP_PER_MS, density);
76 mThresholdStroke = dpToPx(PROFILE_DRAW_THRESHOLD_STROKE_WIDTH, density);
  /frameworks/base/docs/html/about/versions/
android-1.6.jd 161 <li>Fixes bug so that Bitmap's density is now propagated through Parcelable.</li>
163 <li>Fixes TextView to properly compute styled font metrics based on the screen density.</li>
174 <li>Fixes density rendering in the layout editor in ADT.</li>
234 <li>New support for dealing with varying screen densities. Density
237 nine-patches based on the density the resource was found under and the
238 density of the screen, etc.
292 determining the density of the current device screen.</li>
301 of resolution and density. If your application is run on a device whose screen
304 of the application UI to match the resolution and density of the screen.
312 Examples: QVGA low density; VGA high density
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 79 // These are scaled to match the target density.
88 * Create drawable from raw nine-patch data, not dealing with density.
90 * to ensure that the drawable has correctly set its target density.
98 * Create drawable from raw nine-patch data, setting initial target density
108 * Create drawable from raw nine-patch data, setting initial target density
121 * Create drawable from existing nine-patch, not dealing with density.
123 * to ensure that the drawable has correctly set its target density.
131 * Create drawable from existing nine-patch, setting initial target density
140 * Set the density scale at which this drawable will be rendered. This
141 * method assumes the drawable will be rendered at the same density as th
    [all...]
  /hardware/qcom/audio/post_proc/
reverb.c 227 ALOGV("%s: density: %d", __func__, context->reverb_settings.density);
228 return context->reverb_settings.density;
231 void reverb_set_density(reverb_context_t *context, int16_t density)
233 ALOGV("%s: density: %d", __func__, density);
234 context->reverb_settings.density = density;
235 offload_reverb_set_density(&(context->offload_reverb), density);
268 context->reverb_settings.density = reverb_settings->density
    [all...]
  /frameworks/base/services/core/java/com/android/server/display/
DisplayDeviceInfo.java 159 * The nominal apparent density of the display in DPI used for layout calculations.
160 * This density is sensitive to the viewing distance. A big TV and a tablet may have
161 * the same apparent density even though the pixels on the TV are much bigger than
167 * The physical density of the display in DPI in the X direction.
168 * This density should specify the physical size of each pixel.
173 * The physical density of the display in DPI in the X direction.
174 * This density should specify the physical size of each pixel.
248 // Technically, these values should be smaller than the apparent density
334 sb.append(", density ").append(densityDpi);
  /cts/tests/tests/util/src/android/util/cts/
TypedValueTest.java 39 dm.density = 1.1f;
81 dm.density = 1.1f;
130 dm.density = 1.1f;
137 assertEquals(10 * dm.density, TypedValue
196 dm.density = 1.1f;
  /developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /developers/build/prebuilts/gradle/SlidingTabsColors/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /developers/samples/android/common/src/java/com/example/android/common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));
  /development/samples/browseable/BasicTransition/src/com.example.android.common/view/
SlidingTabStrip.java 65 final float density = getResources().getDisplayMetrics().density; local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density);
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density);
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density));

Completed in 652 milliseconds

1 2 3 4 56 7 8 91011>>