/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | LayoutUtils.java | 42 public static void calculateLauncherTaskSize(Context context, DeviceProfile dp, Rect outRect) { in calculateLauncherTaskSize() argument 44 if (dp.isVerticalBarLayout()) { in calculateLauncherTaskSize() 47 extraSpace = dp.hotseatBarSizePx + dp.verticalDragHandleSizePx; in calculateLauncherTaskSize() 49 calculateTaskSize(context, dp, extraSpace, MULTI_WINDOW_STRATEGY_HALF_SCREEN, outRect); in calculateLauncherTaskSize() 52 public static void calculateFallbackTaskSize(Context context, DeviceProfile dp, Rect outRect) { in calculateFallbackTaskSize() argument 53 calculateTaskSize(context, dp, 0, MULTI_WINDOW_STRATEGY_DEVICE_PROFILE, outRect); in calculateFallbackTaskSize() 57 public static void calculateTaskSize(Context context, DeviceProfile dp, in calculateTaskSize() argument 61 Rect insets = dp.getInsets(); in calculateTaskSize() 63 if (dp.isMultiWindowMode) { in calculateTaskSize() 65 DeviceProfile fullDp = dp.getFullScreenProfile(); in calculateTaskSize() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
D | edit_distance.h | 33 float dp[(beforeLength + 1) * (afterLength + 1)]; in getEditDistance() local 35 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1); in getEditDistance() 38 dp[i] = i * policy->getDeletionCost(-1, i - 1); in getEditDistance() 43 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance() 44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j), in getEditDistance() 46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j), in getEditDistance() 47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j))); in getEditDistance() 49 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min( in getEditDistance() 50 dp[(afterLength + 1) * (i + 1) + (j + 1)], in getEditDistance() 51 dp[(afterLength + 1) * (i - 1) + (j - 1)] in getEditDistance() [all …]
|
/packages/apps/Car/libs/specs/ |
D | keylines.csv | 13 keyline_1, 24dp, , , 32dp, , , 48dp 14 keyline_2, 96dp, , 104dp, 120dp, 140dp, , 15 keyline_3, 112dp, , , 128dp, , , 152dp
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | LauncherActivityControllerHelper.java | 84 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect) { in getSwipeUpDestinationAndLength() argument 85 LayoutUtils.calculateLauncherTaskSize(context, dp, outRect); in getSwipeUpDestinationAndLength() 86 if (dp.isVerticalBarLayout() && SysUINavigationMode.getMode(context) != Mode.NO_BUTTON) { in getSwipeUpDestinationAndLength() 87 Rect targetInsets = dp.getInsets(); in getSwipeUpDestinationAndLength() 88 int hotseatInset = dp.isSeascape() ? targetInsets.left : targetInsets.right; in getSwipeUpDestinationAndLength() 89 return dp.hotseatBarSizePx + hotseatInset; in getSwipeUpDestinationAndLength() 91 return LayoutUtils.getShelfTrackingDistance(context, dp); in getSwipeUpDestinationAndLength() 126 final DeviceProfile dp = activity.getDeviceProfile(); in prepareHomeUI() local 154 final int halfIconSize = dp.iconSizePx / 2; in prepareHomeUI() 155 final float targetCenterX = dp.availableWidthPx / 2f; in prepareHomeUI() [all …]
|
D | FallbackActivityControllerHelper.java | 62 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect) { in getSwipeUpDestinationAndLength() argument 63 LayoutUtils.calculateFallbackTaskSize(context, dp, outRect); in getSwipeUpDestinationAndLength() 64 if (dp.isVerticalBarLayout() in getSwipeUpDestinationAndLength() 66 Rect targetInsets = dp.getInsets(); in getSwipeUpDestinationAndLength() 67 int hotseatInset = dp.isSeascape() ? targetInsets.left : targetInsets.right; in getSwipeUpDestinationAndLength() 68 return dp.hotseatBarSizePx + hotseatInset; in getSwipeUpDestinationAndLength() 70 return dp.heightPx - outRect.bottom; in getSwipeUpDestinationAndLength()
|
D | WindowTransformSwipeHandler.java | 312 DeviceProfile dp = InvariantDeviceProfile.INSTANCE.get(mContext).getDeviceProfile(mContext); in WindowTransformSwipeHandler() local 313 initTransitionEndpoints(dp); in WindowTransformSwipeHandler() 384 private void initTransitionEndpoints(DeviceProfile dp) { in initTransitionEndpoints() argument 385 mDp = dp; in initTransitionEndpoints() 389 dp, mContext, tempRect); in initTransitionEndpoints() 393 mDragLengthFactor = (float) dp.heightPx / mTransitionDragLength; in initTransitionEndpoints() 770 DeviceProfile dp = InvariantDeviceProfile.INSTANCE.get(mContext).getDeviceProfile(mContext); in onRecentsAnimationStart() local 777 dp = dp.getMultiWindowProfile(mContext, new Point( in onRecentsAnimationStart() 779 dp.updateInsets(targetSet.homeContentInsets); in onRecentsAnimationStart() 788 overviewStackBounds = new Rect(0, 0, dp.widthPx, dp.heightPx); in onRecentsAnimationStart() [all …]
|
D | RecentsActivity.java | 94 DeviceProfile dp = InvariantDeviceProfile.INSTANCE.get(this).getDeviceProfile(this); in createDeviceProfile() local 96 ? dp.getMultiWindowProfile(this, mRecentsRootView.getLastKnownSize()) in createDeviceProfile()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/ |
D | UiUtils.java | 49 public static float dpToPx(@Dimension(unit = Dimension.DP) float dp, @NonNull Context context) { in dpToPx() 51 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, metrics); in dpToPx() 64 public static int dpToPxOffset(@Dimension(unit = Dimension.DP) float dp, in dpToPxOffset() 66 return (int) dpToPx(dp, context); in dpToPxOffset() 79 public static int dpToPxSize(@Dimension(unit = Dimension.DP) float dp, in dpToPxSize() 81 float value = dpToPx(dp, context); in dpToPxSize()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | ShelfScrimView.java | 144 DeviceProfile dp = mLauncher.getDeviceProfile(); in reInitUi() local 145 mDrawingFlatColor = dp.isVerticalBarLayout(); in reInitUi() 156 Rect hotseatPadding = dp.getHotseatLayoutPadding(); in reInitUi() 157 int hotseatSize = dp.hotseatBarSizePx + dp.getInsets().bottom in reInitUi() 159 float arrowTop = Math.min(hotseatSize, OverviewState.getDefaultSwipeHeight(dp)); in reInitUi() 163 mTopOffset = dp.getInsets().top - mShelfOffset; in reInitUi()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | WorkspaceTouchListener.java | 92 DeviceProfile dp = mLauncher.getDeviceProfile(); in onTouch() local 94 Rect insets = dp.getInsets(); in onTouch() 98 mTempRect.inset(dp.edgeMarginPx, dp.edgeMarginPx); in onTouch()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingItemDragHelper.java | 125 DeviceProfile dp = launcher.getDeviceProfile(); in startDrag() local 126 int iconSize = dp.iconSizePx; in startDrag() 137 - iconSize - dp.iconTextSizePx - dp.iconDrawablePaddingPx) / 2; in startDrag()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | LivePreviewWidgetCell.java | 61 DeviceProfile dp = activity.getDeviceProfile(); in generateFromRemoteViews() local 62 int viewWidth = dp.cellWidthPx * info.spanX; in generateFromRemoteViews() 63 int viewHeight = dp.cellHeightPx * info.spanY; in generateFromRemoteViews()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 121 public static float getDefaultSwipeHeight(DeviceProfile dp) { 122 return dp.allAppsCellHeightPx - dp.allAppsIconTextSizePx;
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | DpUtil.java | 28 public static float dpToPx(Context context, float dp) { in dpToPx() argument 29 return dp * context.getResources().getDisplayMetrics().density; in dpToPx()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_poly.cpp | 30 double bp,bp2,cp,dp,q,r,srq; in db_SolveCubic() local 46 dp=d/a; in db_SolveCubic() 49 r=(2.0*bp2*bp-9.0*bp*cp+27.0*dp)/54.0; in db_SolveCubic()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 108 public static float dpToPixel(float dp) { in dpToPixel() argument 109 return sPixelDensity * dp; in dpToPixel() 112 public static int dpToPixel(int dp) { in dpToPixel() argument 113 return Math.round(dpToPixel((float) dp)); in dpToPixel()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 165 public static float getDefaultSwipeHeight(DeviceProfile dp) { 166 return dp.allAppsCellHeightPx - dp.allAppsIconTextSizePx;
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | AppsSearchContainerLayout.java | 112 DeviceProfile dp = mLauncher.getDeviceProfile(); in onMeasure() local 117 int cellWidth = DeviceProfile.calculateCellWidth(rowWidth, dp.inv.numHotseatIcons); in onMeasure() 118 int iconVisibleSize = Math.round(ICON_VISIBLE_AREA_FACTOR * dp.iconSizePx); in onMeasure()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 137 public static RotationMode getRotationMode(DeviceProfile dp) { in getRotationMode() argument 138 return !dp.isVerticalBarLayout() ? RotationMode.NORMAL in getRotationMode() 139 : (dp.isSeascape() ? ROTATION_SEASCAPE : ROTATION_LANDSCAPE); in getRotationMode()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | TouchTargetEnforcer.java | 123 private float dpToPx(int dp) { in dpToPx() argument 124 return dp * mDensity; in dpToPx()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | PortraitStatesTouchController.java | 299 DeviceProfile dp = launcher.getDeviceProfile(); in isTouchOverHotseat() local 300 int hotseatHeight = dp.hotseatBarSizePx + dp.getInsets().bottom; in isTouchOverHotseat()
|
D | StatusBarTouchController.java | 127 DeviceProfile dp = mLauncher.getDeviceProfile(); in canInterceptTouch() local 128 if (ev.getY() > (mLauncher.getDragLayer().getHeight() - dp.getInsets().bottom)) { in canInterceptTouch()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/ |
D | FallbackRecentsView.java | 91 protected void getTaskSize(DeviceProfile dp, Rect outRect) { in getTaskSize() argument 92 LayoutUtils.calculateFallbackTaskSize(getContext(), dp, outRect); in getTaskSize() local
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | BaseRecentsActivity.java | 104 DeviceProfile dp = InvariantDeviceProfile.INSTANCE.get(this).getDeviceProfile(this); in createDeviceProfile() local 108 return dp.copy(this); in createDeviceProfile()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/displayinfo/ |
D | DisplayInfoFragment.java | 122 float dp = px / ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT); in convertPixelsToDp() local 123 return dp; in convertPixelsToDp()
|