Home
last modified time | relevance | path

Searched refs:density (Results 1 – 25 of 113) sorted by relevance

12345

/development/ndk/platforms/android-14/samples/native-media/
Ddefault.properties1 # Indicates whether an apk should be generated for each density.
2 split.density=false
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DShadowCardStack.java50 float density = getResources().getDisplayMetrics().density; in onCreate() local
54 final float X = X_SHIFT_DP * density; in onCreate()
55 final float Y = Y_SHIFT_DP * density; in onCreate()
56 final float Z = Z_LIFT_DP * density; in onCreate()
/development/ndk/platforms/android-9/samples/native-audio/
Ddefault.properties12 # Indicates whether an apk should be generated for each density.
13 split.density=false
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/FragmentTransition/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/AdapterTransition/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabStrip.java65 final float density = getResources().getDisplayMetrics().density; in SlidingTabStrip() local
79 mBottomBorderThickness = (int) (DEFAULT_BOTTOM_BORDER_THICKNESS_DIPS * density); in SlidingTabStrip()
83 mSelectedIndicatorThickness = (int) (SELECTED_INDICATOR_THICKNESS_DIPS * density); in SlidingTabStrip()
88 mDividerPaint.setStrokeWidth((int) (DEFAULT_DIVIDER_THICKNESS_DIPS * density)); in SlidingTabStrip()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DSharingReceiverSupport.java48 final float density = getResources().getDisplayMetrics().density; in onCreate() local
49 final int iconSize = (int) (ICON_SIZE * density + 0.5f); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPrintCustomContent.java136 final int density = Math.max(newAttributes.getResolution().getHorizontalDpi(), in print()
150 final int marginLeft = (int) (density * (float) newAttributes.getMinMargins() in print()
152 final int marginRight = (int) (density * (float) newAttributes.getMinMargins() in print()
154 final int contentWidth = (int) (density * (float) newAttributes.getMediaSize() in print()
164 final int marginTop = (int) (density * (float) newAttributes.getMinMargins() in print()
166 final int marginBottom = (int) (density * (float) newAttributes.getMinMargins() in print()
168 final int contentHeight = (int) (density * (float) newAttributes.getMediaSize() in print()
179 .getConfiguration().densityDpi != density) { in print()
181 configuration.densityDpi = density; in print()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DCardPresenter.java40 float density = context.getResources().getDisplayMetrics().density; in setupRowHeights() local
41 int height = (int) (IMAGE_HEIGHT_DP * density + 0.5f); in setupRowHeights()
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DTouchDisplayView.java346 float density = getResources().getDisplayMetrics().density; in initialisePaint() local
347 mCircleRadius = CIRCLE_RADIUS_DP * density; in initialisePaint()
348 mCircleHistoricalRadius = CIRCLE_HISTORICAL_RADIUS_DP * density; in initialisePaint()
355 mBorderWidth = INACTIVE_BORDER_DP * density; in initialisePaint()
/development/tools/emulator/skins/QVGA/
Dhardware.ini2 hw.lcd.density=120 key
/development/tools/emulator/skins/HVGA/
Dhardware.ini2 hw.lcd.density=160 key
/development/tools/emulator/skins/WVGA800/
Dhardware.ini2 hw.lcd.density=240 key
/development/tools/emulator/skins/WVGA854/
Dhardware.ini2 hw.lcd.density=240 key
/development/tools/emulator/skins/WQVGA432/
Dhardware.ini2 hw.lcd.density=120 key
/development/tools/emulator/skins/WQVGA400/
Dhardware.ini2 hw.lcd.density=120 key
/development/tools/emulator/skins/WXGA800/
Dhardware.ini2 hw.lcd.density=160 key
/development/tools/emulator/skins/WSVGA/
Dhardware.ini2 hw.lcd.density=160 key
/development/tools/emulator/skins/WXGA800-7in/
Dhardware.ini2 hw.lcd.density=213 key
/development/tools/emulator/skins/WXGA720/
Dhardware.ini2 hw.lcd.density=320 key

12345