Home
last modified time | relevance | path

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

12345

/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/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/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/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/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()
DSlidingTabLayout.java98 mTitleOffset = (int) (TITLE_OFFSET_DIPS * getResources().getDisplayMetrics().density); in SlidingTabLayout()
191 int padding = (int) (TAB_VIEW_PADDING_DIPS * getResources().getDisplayMetrics().density); in createDefaultTabView()
/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/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/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/tools/emulator/skins/WVGA800/
Dhardware.ini2 hw.lcd.density=240
/development/tools/emulator/skins/HVGA/
Dhardware.ini2 hw.lcd.density=160
/development/tools/emulator/skins/WVGA854/
Dhardware.ini2 hw.lcd.density=240
/development/tools/emulator/skins/QVGA/
Dhardware.ini2 hw.lcd.density=120
/development/tools/emulator/skins/WQVGA432/
Dhardware.ini2 hw.lcd.density=120
/development/tools/emulator/skins/WQVGA400/
Dhardware.ini2 hw.lcd.density=120
/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/WXGA800/
Dhardware.ini2 hw.lcd.density=160
/development/tools/emulator/skins/WSVGA/
Dhardware.ini2 hw.lcd.density=160
/development/tools/emulator/skins/WXGA800-7in/
Dhardware.ini2 hw.lcd.density=213
/development/tools/emulator/skins/WXGA720/
Dhardware.ini2 hw.lcd.density=320
/development/apps/Development/src/com/android/development/
DConfigurationViewer.java56 + "density=" + m.density + "\n" in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLayoutAnimation4.java63 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView()
DLayoutAnimation5.java62 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView()
DLayoutAnimation6.java62 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView()
DLayoutAnimation1.java62 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView()

12345