Home
last modified time | relevance | path

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

12345

/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.java59 float density = res.getDisplayMetrics().density; in getScaleRatio()
89 float density = res.getDisplayMetrics().density; in getHeightScaleRatio()
126 float density = res.getDisplayMetrics().density; in showList()
/packages/apps/Settings/src/com/android/settings/applications/
DInterestingConfigChanges.java29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
32 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
DAppOpsCategory.java76 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
79 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DInterestingConfigChanges.java32 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
35 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraManager.java85 DisplayMetrics displayMetrics = getDisplayMetrics(activity); in create()
141 private static DisplayMetrics getDisplayMetrics(Context context) { in getDisplayMetrics() method in OneCameraManager
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DViewPagerTabs.java95 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
121 mSidePadding = (int) (getResources().getDisplayMetrics().density * TAB_SIDE_PADDING_IN_DPS); in ViewPagerTabs()
/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java112 bitmapDrawable.setTargetDensity(context.getResources().getDisplayMetrics()); in createIconBitmap()
237 final DisplayMetrics metrics = resources.getDisplayMetrics(); in initStatics()
DAppWidgetResizeFrame.java135 final float density = mLauncher.getResources().getDisplayMetrics().density; in AppWidgetResizeFrame()
353 final float density = launcher.getResources().getDisplayMetrics().density; in getWidgetSizeRanges()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java184 final int scaledWidth = width * getResources().getDisplayMetrics().densityDpi in setThumbnail()
186 final int scaledHeight = height * getResources().getDisplayMetrics().densityDpi in setThumbnail()
DSwipeableListView.java91 float densityScale = getResources().getDisplayMetrics().density; in SwipeableListView()
101 float densityScale = getResources().getDisplayMetrics().density; in onConfigurationChanged()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DTextDecoratorUi.java68 hitAreaMarginInDP, resources.getDisplayMetrics()); in TextDecoratorUi()
69 final DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in TextDecoratorUi()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java185 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardWidth()
190 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardHeight()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java164 DisplayMetrics dm = res.getDisplayMetrics(); in DeviceProfile()
303 DisplayMetrics dm = resources.getDisplayMetrics(); in getDeviceOrientation()
323 DisplayMetrics dm = resources.getDisplayMetrics(); in updateAvailableDimensions()
DAppWidgetResizeFrame.java132 final float density = mLauncher.getResources().getDisplayMetrics().density; in AppWidgetResizeFrame()
350 final float density = launcher.getResources().getDisplayMetrics().density; in getWidgetSizeRanges()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java270 paint.density = context.getResources().getDisplayMetrics().density; in apply()
356 2, getResources().getDisplayMetrics()); in BatteryHistoryChart()
1125 mBitmap = Bitmap.createBitmap(getResources().getDisplayMetrics(), width, height, in buildBitmap()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DCaffeinatedScrollView.java50 mBottomSlop = (int)(4 * getResources().getDisplayMetrics().density); in setFullScrollAction()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java43 r.getDisplayMetrics()); in onMeasure()
/packages/apps/InCallUI/src/com/android/incallui/
DSmallerHitTargetTouchListener.java69 final float pixelDensity = v.getResources().getDisplayMetrics().density; in onTouch()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DInputSmoother.java46 mDensity = context.getResources().getDisplayMetrics().density; in InputSmoother()
/packages/apps/Mms/src/com/android/mms/layout/
DHVGALayoutParameters.java50 float scale = context.getResources().getDisplayMetrics().density; in HVGALayoutParameters()
/packages/apps/Camera/src/com/android/camera/drawable/
DTextDrawable.java46 DEFAULT_TEXTSIZE, res.getDisplayMetrics()); in TextDrawable()
/packages/apps/Settings/src/com/android/settings/accessibility/
DPresetPreference.java58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem()
DEdgeTypePreference.java61 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem()
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetConfigure.java55 DisplayMetrics display = getResources().getDisplayMetrics(); in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java48 final int densityDpi = res.getDisplayMetrics().densityDpi; in init()

12345