/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | BaseActivityInterface.java | 111 DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument 209 public final void calculateTaskSize(Context context, DeviceProfile dp, Rect outRect, in calculateTaskSize() argument 212 if (dp.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get()) { in calculateTaskSize() 214 calculateGridSize(context, dp, gridRect); in calculateTaskSize() 220 PointF taskDimension = getTaskDimension(context, dp); in calculateTaskSize() 229 int taskMargin = dp.overviewTaskMarginPx; in calculateTaskSize() 231 if (!TaskView.SHOW_PROACTIVE_ACTIONS || dp.isVerticalBarLayout()) { in calculateTaskSize() 240 calculateTaskSizeInternal(context, dp, in calculateTaskSize() 241 dp.overviewTaskThumbnailTopMarginPx, in calculateTaskSize() 242 proactiveRowAndMargin + getOverviewActionsHeight(context, dp), in calculateTaskSize() [all …]
|
D | SwipeUpAnimationLogic.java | 88 protected void initTransitionEndpoints(DeviceProfile dp) { in initTransitionEndpoints() argument 89 mDp = dp; in initTransitionEndpoints() 91 mTaskViewSimulator.setDp(dp); in initTransitionEndpoints() 93 dp, mContext, TEMP_RECT, in initTransitionEndpoints() 95 mDragLengthFactor = (float) dp.heightPx / mTransitionDragLength; in initTransitionEndpoints() 136 DeviceProfile dp = mDp; in getWindowTargetRect() local 137 final int halfIconSize = dp.iconSizePx / 2; in getWindowTargetRect() 139 .getPrimaryValue(dp.availableWidthPx, dp.availableHeightPx); in getWindowTargetRect() 141 .getSecondaryValue(dp.availableWidthPx, dp.availableHeightPx); in getWindowTargetRect() 143 final float targetY = secondaryDimension - dp.hotseatBarSizePx; in getWindowTargetRect()
|
D | FallbackActivityInterface.java | 58 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument 60 calculateTaskSize(context, dp, outRect, orientationHandler); in getSwipeUpDestinationAndLength() 61 if (dp.isVerticalBarLayout() in getSwipeUpDestinationAndLength() 63 return dp.isSeascape() ? outRect.left : (dp.widthPx - outRect.right); in getSwipeUpDestinationAndLength() 65 return dp.heightPx - outRect.bottom; in getSwipeUpDestinationAndLength()
|
D | LauncherActivityInterface.java | 72 public int getSwipeUpDestinationAndLength(DeviceProfile dp, Context context, Rect outRect, in getSwipeUpDestinationAndLength() argument 74 calculateTaskSize(context, dp, outRect, orientationHandler); in getSwipeUpDestinationAndLength() 75 if (dp.isVerticalBarLayout() && SysUINavigationMode.getMode(context) != Mode.NO_BUTTON) { in getSwipeUpDestinationAndLength() 76 return dp.isSeascape() ? outRect.left : (dp.widthPx - outRect.right); in getSwipeUpDestinationAndLength() 78 return LayoutUtils.getShelfTrackingDistance(context, dp, orientationHandler); in getSwipeUpDestinationAndLength()
|
/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/Launcher3/src/com/android/launcher3/ |
D | Hotseat.java | 89 DeviceProfile dp = mActivity.getDeviceProfile(); in resetLayout() local 91 setGridSize(1, dp.numShownHotseatIcons); in resetLayout() 93 setGridSize(dp.numShownHotseatIcons, 1); in resetLayout() 205 DeviceProfile dp = mActivity.getDeviceProfile(); in getQsbOffsetY() local 206 int freeSpace = dp.isTaskbarPresent in getQsbOffsetY() 207 ? dp.workspacePadding.bottom in getQsbOffsetY() 208 : dp.hotseatBarSizePx - dp.hotseatCellHeightPx - mQsbHeight; in getQsbOffsetY() 210 if (dp.isScalableGrid && dp.qsbBottomMarginPx > dp.getInsets().bottom) { in getQsbOffsetY() 211 return Math.min(dp.qsbBottomMarginPx, freeSpace); in getQsbOffsetY() 213 return (int) (freeSpace * QSB_CENTER_FACTOR) + (dp.isTaskbarPresent in getQsbOffsetY() [all …]
|
D | ShortcutAndWidgetContainer.java | 130 final DeviceProfile dp = mActivity.getDeviceProfile(); in measureChild() local 133 ((LauncherAppWidgetHostView) child).getWidgetInset(dp, mTempRect); in measureChild() 135 dp.appWidgetScale.x, dp.appWidgetScale.y, mBorderSpacing, mTempRect); in measureChild() 141 int cellPaddingY = dp.isScalableGrid && mContainerType == WORKSPACE in measureChild() 142 ? dp.cellYPaddingPx in measureChild() 146 boolean noPaddingX = (dp.cellLayoutBorderSpacingPx > 0 && mContainerType == WORKSPACE) in measureChild() 147 || (dp.folderCellLayoutBorderSpacingPx > 0 && mContainerType == FOLDER); in measureChild() 151 ? dp.workspaceCellPaddingXPx in measureChild() 152 : (int) (dp.edgeMarginPx / 2f); in measureChild()
|
/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/services/Iwlan/test/com/google/android/iwlan/ |
D | IwlanDataServiceTest.java | 257 DataProfile dp = buildDataProfile(); in testRequestDataCallListPass() local 268 dp, in testRequestDataCallListPass() 347 DataProfile dp = buildDataProfile(); in testIwlanSetupDataCallWithIllegalState() local 355 dp, /* dataProfile */ in testIwlanSetupDataCallWithIllegalState() 384 DataProfile dp = buildDataProfile(); in testIwlanSetupDataCallWithBringUpTunnel() local 393 dp, /* dataProfile */ in testIwlanSetupDataCallWithBringUpTunnel() 419 DataProfile dp = buildDataProfile(); in testSliceInfoInclusionInDataCallResponse() local 428 dp, /* dataProfile */ in testSliceInfoInclusionInDataCallResponse() 462 DataProfile dp = buildDataProfile(); in testIwlanDeactivateDataCallWithCloseTunnel() local 467 dp, mMockDataServiceCallback, TunnelState.TUNNEL_IN_BRINGUP, null, false, 1); in testIwlanDeactivateDataCallWithCloseTunnel() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | OverviewActionsView.java | 223 public void setDp(DeviceProfile dp) { in setDp() argument 224 mDp = dp; in setDp() 254 SysUINavigationMode.Mode mode, DeviceProfile dp) { in getOverviewActionsTopMarginPx() argument 256 if (dp.isVerticalBarLayout()) { in getOverviewActionsTopMarginPx() 257 return dp.overviewTaskMarginPx; in getOverviewActionsTopMarginPx() 261 return dp.overviewActionsMarginThreeButtonPx; in getOverviewActionsTopMarginPx() 264 return dp.overviewActionsMarginGesturePx; in getOverviewActionsTopMarginPx() 269 SysUINavigationMode.Mode mode, DeviceProfile dp) { in getOverviewActionsBottomMarginPx() argument 270 int inset = dp.getInsets().bottom; in getOverviewActionsBottomMarginPx() 272 if (dp.isVerticalBarLayout()) { in getOverviewActionsBottomMarginPx() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | PortraitPagedViewHandler.java | 162 DeviceProfile dp) { in getSplitTaskViewDismissDirection() argument 164 if (dp.isLandscape) { in getSplitTaskViewDismissDirection() 254 public int getSplitAnimationTranslation(int translationOffset, DeviceProfile dp) { in getSplitAnimationTranslation() argument 255 if (dp.isLandscape) { in getSplitAnimationTranslation() 364 public int getDistanceToBottomOfRect(DeviceProfile dp, Rect rect) { in getDistanceToBottomOfRect() argument 365 return dp.heightPx - rect.bottom; in getDistanceToBottomOfRect() 369 public List<SplitPositionOption> getSplitPositionOptions(DeviceProfile dp) { in getSplitPositionOptions() argument 373 if (dp.isTablet && dp.isLandscape) { in getSplitPositionOptions() 381 if (dp.isSeascape()) { in getSplitPositionOptions() 386 } else if (dp.isLandscape) { in getSplitPositionOptions() [all …]
|
D | SeascapePagedViewHandler.java | 57 public int getSplitAnimationTranslation(int translationOffset, DeviceProfile dp) { in getSplitAnimationTranslation() argument 105 public int getDistanceToBottomOfRect(DeviceProfile dp, Rect rect) { in getDistanceToBottomOfRect() argument 106 return dp.widthPx - rect.right; in getDistanceToBottomOfRect() 110 public List<SplitPositionOption> getSplitPositionOptions(DeviceProfile dp) { in getSplitPositionOptions() argument
|
D | PagedOrientationHandler.java | 85 int getSplitTaskViewDismissDirection(SplitPositionOption splitPosition, DeviceProfile dp); in getSplitTaskViewDismissDirection() argument 96 int getSplitAnimationTranslation(int translationOffset, DeviceProfile dp); in getSplitAnimationTranslation() argument 115 int getDistanceToBottomOfRect(DeviceProfile dp, Rect rect); in getDistanceToBottomOfRect() argument 116 List<SplitPositionOption> getSplitPositionOptions(DeviceProfile dp); in getSplitPositionOptions() argument
|
D | WorkspaceTouchListener.java | 93 DeviceProfile dp = mLauncher.getDeviceProfile(); in onTouch() local 95 Rect insets = dp.getInsets(); in onTouch() 99 mTempRect.inset(dp.edgeMarginPx, dp.edgeMarginPx); in onTouch()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | LayoutUtils.java | 33 public static float getDefaultSwipeHeight(Context context, DeviceProfile dp) { in getDefaultSwipeHeight() argument 34 float swipeHeight = dp.allAppsCellHeightPx - dp.allAppsIconTextSizePx; in getDefaultSwipeHeight() 36 swipeHeight -= dp.getInsets().bottom; in getDefaultSwipeHeight() 41 public static int getShelfTrackingDistance(Context context, DeviceProfile dp, in getShelfTrackingDistance() argument 46 context, dp, taskSize, orientationHandler); in getShelfTrackingDistance() 47 return orientationHandler.getDistanceToBottomOfRect(dp, taskSize); in getShelfTrackingDistance()
|
D | AnimatorControllerWithResistance.java | 132 RecentsOrientedState recentsOrientedState, DeviceProfile dp, SCALE scaleTarget, in createForRecents() argument 136 RecentsParams params = new RecentsParams(context, recentsOrientedState, dp, scaleTarget, in createForRecents() 153 LauncherActivityInterface.INSTANCE.calculateTaskSize(params.context, params.dp, startRect, in createRecentsResistanceAnim() 162 startRect, params.dp, pivot); in createRecentsResistanceAnim() 164 / (params.dp.heightPx - startRect.bottom); in createRecentsResistanceAnim() 223 public final DeviceProfile dp; field in AnimatorControllerWithResistance.RecentsParams 236 DeviceProfile dp, SCALE scaleTarget, FloatProperty<SCALE> scaleProperty, in RecentsParams() argument 240 this.dp = dp; in RecentsParams()
|
D | RecentsOrientedState.java | 395 public float getFullScreenScaleAndPivot(Rect taskView, DeviceProfile dp, PointF outPivot) { in getFullScreenScaleAndPivot() argument 396 Rect insets = dp.getInsets(); in getFullScreenScaleAndPivot() 397 float fullWidth = dp.widthPx; in getFullScreenScaleAndPivot() 398 float fullHeight = dp.heightPx; in getFullScreenScaleAndPivot() 404 getTaskDimension(mContext, dp, outPivot); in getFullScreenScaleAndPivot() 408 scale = scale * dp.widthPx / fullWidth; in getFullScreenScaleAndPivot() 413 } else if (dp.isMultiWindowMode) { in getFullScreenScaleAndPivot()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfo.java | 113 for (DeviceProfile dp : idp.supportedProfiles) { in initSpans() 114 dp.getCellSize(cellSize); in initSpans() 118 if (dp.shouldInsetWidgets()) { in initSpans() 124 getSpanX(localPadding, minResizeWidth, dp.cellLayoutBorderSpacingPx, in initSpans() 127 getSpanY(localPadding, minResizeHeight, dp.cellLayoutBorderSpacingPx, in initSpans() 133 getSpanX(localPadding, maxResizeWidth, dp.cellLayoutBorderSpacingPx, in initSpans() 138 getSpanY(localPadding, maxResizeHeight, dp.cellLayoutBorderSpacingPx, in initSpans() 144 getSpanX(localPadding, minWidth, dp.cellLayoutBorderSpacingPx, cellSize.x)); in initSpans() 146 getSpanY(localPadding, minHeight, dp.cellLayoutBorderSpacingPx, cellSize.y)); in initSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | ClipIconView.java | 150 int fgIconAlpha, boolean isOpening, View container, DeviceProfile dp, in update() argument 155 ? rect.left - (dp.widthPx - lp.getMarginStart() - lp.width) in update() 172 minSize, lp, isVerticalBarLayout, dp); in update() 184 MarginLayoutParams parentLp, boolean isVerticalBarLayout, DeviceProfile dp) { in update() argument 186 ? rect.left - (dp.widthPx - parentLp.getMarginStart() - parentLp.width) in update() 239 int diffX = (int) (dX / dp.availableWidthPx * FG_TRANS_X_FACTOR); in update() 240 int diffY = (int) (dY / dp.availableHeightPx * FG_TRANS_Y_FACTOR); in update() 272 boolean isOpening, boolean isVerticalBarLayout, DeviceProfile dp) { in setIcon() argument 308 lp.width = (int) Math.max(lp.width, lp.height * dp.aspectRatio); in setIcon() 310 lp.height = (int) Math.max(lp.height, lp.width * dp.aspectRatio); in setIcon() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/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/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanDataService.java | 139 for (IwlanDataServiceProvider dp : sIwlanDataServiceProviderList) { in onLinkPropertiesChanged() 140 dp.dnsPrefetchCheck(); in onLinkPropertiesChanged() 1195 for (IwlanDataServiceProvider dp : sIwlanDataServiceProviderList) { in setNetworkConnected() 1196 dp.forceCloseTunnelsInDeactivatingState(); in setNetworkConnected() 1205 for (IwlanDataServiceProvider dp : sIwlanDataServiceProviderList) { in setNetworkConnected() 1206 dp.dnsPrefetchCheck(); in setNetworkConnected() 1207 dp.updateNetwork(sNetwork); in setNetworkConnected() 1211 for (IwlanDataServiceProvider dp : sIwlanDataServiceProviderList) { in setNetworkConnected() 1216 dp.forceCloseTunnelsInDeactivatingState(); in setNetworkConnected() 1307 IwlanDataServiceProvider dp = new IwlanDataServiceProvider(slotIndex, this); in onCreateDataServiceProvider() local [all …]
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 155 DeviceProfile dp = idp.supportedProfiles.get(0); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() local 160 dp.cellLayoutBorderSpacingPx = maxPadding + 1; in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 161 Mockito.when(dp.shouldInsetWidgets()).thenReturn(true); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 178 DeviceProfile dp = idp.supportedProfiles.get(0); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() local 183 dp.cellLayoutBorderSpacingPx = maxPadding - 1; in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() 184 Mockito.when(dp.shouldInsetWidgets()).thenReturn(false); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | SwipeUpGestureTutorialController.java | 105 DeviceProfile dp = InvariantDeviceProfile.INSTANCE.get(mContext) in SwipeUpGestureTutorialController() local 108 mTaskViewSwipeUpAnimation.initDp(dp); in SwipeUpGestureTutorialController() 264 void initDp(DeviceProfile dp) { in initDp() argument 265 initTransitionEndpoints(dp); in initDp() 267 new Rect(0, 0, dp.widthPx, dp.heightPx), dp.getInsets()); in initDp()
|
D | EdgeBackGesturePanel.java | 238 mBaseTranslation = dp(BASE_TRANSLATION_DP); in EdgeBackGesturePanel() 239 mArrowLength = dp(ARROW_LENGTH_DP); in EdgeBackGesturePanel() 240 mArrowThickness = dp(ARROW_THICKNESS_DP); in EdgeBackGesturePanel() 241 mMinDeltaForSwitch = dp(32); in EdgeBackGesturePanel() 472 setDesiredTranslation(mDesiredTranslation - dp(32), true /* animated */); in triggerBack() 685 private float dp(float dp) { in dp() argument 686 return mDensity * dp; in dp()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | AppsSearchContainerLayout.java | 103 DeviceProfile dp = mLauncher.getDeviceProfile(); in onMeasure() local 108 int cellWidth = DeviceProfile.calculateCellWidth(rowWidth, dp.cellLayoutBorderSpacingPx, in onMeasure() 109 dp.numShownHotseatIcons); in onMeasure() 110 int iconVisibleSize = Math.round(ICON_VISIBLE_AREA_FACTOR * dp.iconSizePx); in onMeasure()
|