Home
last modified time | relevance | path

Searched refs:toFloat (Results 1 – 25 of 111) sorted by relevance

12345

/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.kt218 mDNAAllDayPaint.setStrokeWidth(DNA_ALL_DAY_WIDTH.toFloat()) in createDna()
327 mMonthNumPaint.setTextSize(TEXT_SIZE_MONTH_NUMBER.toFloat()) in initView()
337 mEventPaint.setTextSize(TEXT_SIZE_EVENT_TITLE.toFloat()) in initView()
345 mDeclinedEventPaint?.setTextSize(TEXT_SIZE_EVENT_TITLE.toFloat()) in initView()
352 mEventExtrasPaint.setStrokeWidth(EVENT_SQUARE_BORDER.toFloat()) in initView()
353 mEventExtrasPaint.setTextSize(TEXT_SIZE_EVENT.toFloat()) in initView()
363 mEventDeclinedExtrasPaint.setStrokeWidth(EVENT_SQUARE_BORDER.toFloat()) in initView()
364 mEventDeclinedExtrasPaint.setTextSize(TEXT_SIZE_EVENT.toFloat()) in initView()
371 mWeekNumPaint.setTextSize(TEXT_SIZE_WEEK_NUM.toFloat()) in initView()
380 mDNATimePaint.setStrokeWidth(DNA_WIDTH.toFloat()) in initView()
[all …]
DSimpleWeekView.kt241 p.setTextSize(MINI_DAY_NUMBER_TEXT_SIZE.toFloat()) in initView()
246 mMonthNumPaint.setTextSize(MINI_DAY_NUMBER_TEXT_SIZE.toFloat()) in initView()
353 p.setTextSize(MINI_WK_NUMBER_TEXT_SIZE.toFloat()) in drawWeekNums()
359 canvas.drawText(mDayNumbers!![0] as String, x.toFloat(), y.toFloat(), p) in drawWeekNums()
371 mMonthNumPaint.setTextSize(MINI_TODAY_NUMBER_TEXT_SIZE.toFloat()) in drawWeekNums()
375 canvas.drawText(mDayNumbers!![i] as String, x.toFloat(), y.toFloat(), in drawWeekNums()
378 mMonthNumPaint.setTextSize(MINI_DAY_NUMBER_TEXT_SIZE.toFloat()) in drawWeekNums()
397 p.setStrokeWidth(MINI_TODAY_OUTLINE_WIDTH.toFloat()) in drawDaySeparators()
404 p.setStrokeWidth(DAY_SEPARATOR_WIDTH.toFloat()) in drawDaySeparators()
406 canvas.drawLine(x.toFloat(), 0f, x.toFloat(), mHeight.toFloat(), p) in drawDaySeparators()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DAppPairLaunchTimings.kt54 return cellSplitStart.toFloat() / getDuration() in getStagedRectSlideStart()
57 return cellSplitEnd.toFloat() / getDuration() in getCellSplitEndOffset()
60 return iconFadeStart.toFloat() / getDuration() in getIconFadeStartOffset()
63 return iconFadeEnd.toFloat() / getDuration() in getIconFadeEndOffset()
66 return appRevealStart.toFloat() / getDuration() in getAppRevealStartOffset()
69 return appRevealEnd.toFloat() / getDuration() in getAppRevealEndOffset()
DBorderAnimator.kt280 val tvWidth = targetView.width.toFloat() in <lambda>()
281 val tvHeight = targetView.height.toFloat() in <lambda>()
303 pivotX = width.toFloat() in <lambda>()
304 pivotY = height.toFloat() in <lambda>()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.kt114 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw()
133 val redPercent = currentLapTime.toFloat() / firstLapTime.toFloat() in onDraw()
147 val markerAngle = priorLap.lapTime.toFloat() / firstLapTime.toFloat() * 360 in onDraw()
149 val sweepAngle = mScreenDensity * (360 / (radius * Math.PI)).toFloat() in onDraw()
156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
157 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.kt109 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw()
118 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw()
130 mTimer!!.elapsedTime.toFloat() / mTimer!!.totalLength.toFloat()) in onDraw()
145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
146 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/
DCropSizeUtil.kt47 point.x.toFloat() / x in Rect()
49 point.y.toFloat() / y in Rect()
54 point.x.toFloat() / x in Rect()
56 point.y.toFloat() / y in Rect()
61 point.x.toFloat() / x in Rect()
63 point.y.toFloat() / y in Rect()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarBackgroundRenderer.kt42 context.transientTaskbarDeviceProfile.taskbarHeight.toFloat()
44 context.persistentTaskbarDeviceProfile.taskbarHeight.toFloat()
57 var backgroundHeight = context.deviceProfile.taskbarHeight.toFloat()
69 private val fullCornerRadius = context.cornerRadius.toFloat()
160 canvas.drawRect(0f, 0f, canvas.width.toFloat(), persistentTaskbarHeight, paint) in drawPersistentBackground()
165 canvas.drawRect(0f, 0f, canvas.width.toFloat(), persistentTaskbarHeight, paint) in drawPersistentBackground()
191 res.getDimensionPixelSize(R.dimen.transient_taskbar_bottom_margin).toFloat() in drawTransientBackground()
208 if (isAnimatingPinning) maxPersistentTaskbarHeight else stashedHandleHeight.toFloat() in drawTransientBackground()
214 if (isAnimatingPinning) animationWidth else stashedHandleWidth.toFloat() in drawTransientBackground()
216 val newWidth = mapRange(progress, backgroundWidthWhileAnimating, fullWidth.toFloat()) in drawTransientBackground()
[all …]
DTaskbarStashViaTouchController.kt49 activity.resources.getDimensionPixelSize(R.dimen.transient_taskbar_bottom_margin).toFloat()
53 activity.resources.getDimensionPixelSize(R.dimen.taskbar_to_nav_threshold).toFloat()
72 gestureHeightYThreshold = (activity.deviceProfile.heightPx - gestureHeight).toFloat() in updateGestureHeight()
DTaskbarDividerPopupView.kt184 measuredWidth.toFloat(), in <lambda>()
185 measuredHeight.toFloat(), in <lambda>()
187 -mArrowOffsetVertical.toFloat(), // arrowOffsetY in <lambda>()
214 pivotY = measuredHeight.toFloat() in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/transition/
DChangeScaleAndPosition.kt61 .toFloat() in createAnimator()
64 .toFloat() in createAnimator()
67 (startValues.values[PROPNAME_WIDTH] as Int).toFloat() / in createAnimator()
68 (endValues.values[PROPNAME_WIDTH] as Int).toFloat() in createAnimator()
70 (startValues.values[PROPNAME_HEIGHT] as Int).toFloat() / in createAnimator()
71 (endValues.values[PROPNAME_HEIGHT] as Int).toFloat() in createAnimator()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt946 mEventGeometry.setHourHeight(mCellHeight.toFloat()) in remeasure()
1529 val yTranslate = (-mViewStartY + DAY_HEADER_HEIGHT + mAlldayHeight).toFloat() in onDraw()
1531 canvas.translate(-mViewStartX.toFloat(), yTranslate) in onDraw()
1547 mViewWidth.toFloat() in onDraw()
1549 -mViewWidth.toFloat() in onDraw()
1566 canvas.translate(mViewStartX.toFloat(), -yTranslate) in onDraw()
1579 canvas.translate(0f, DAY_HEADER_HEIGHT.toFloat()) in onDraw()
1585 canvas.translate(0f, -DAY_HEADER_HEIGHT.toFloat()) in onDraw()
1589 canvas.rotate(180f, mViewWidth.toFloat() / 2f, mViewHeight.toFloat() / 2f) in onDraw()
1638 canvas.drawLine(GRID_LINE_LEFT_MARGIN, y.toFloat(), right.toFloat(), y.toFloat(), p) in drawScrollLine()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DMoveScreensaverRunnable.kt88 val newX = getRandomPoint(smallestDim - mSaverView.width.toFloat()) in run()
89 val newY = getRandomPoint(smallestDim - mSaverView.height.toFloat()) in run()
99 val newX = getRandomPoint(mContentView.width - mSaverView.width.toFloat()) in run()
100 val newY = getRandomPoint(mContentView.height - mSaverView.height.toFloat()) in run()
138 return (Math.random() * maximum).toFloat() in getRandomPoint()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskMenuViewWithArrow.kt267 x = mTempRect.left.toFloat() - insets.left in <lambda>()
268 y = mTempRect.top.toFloat() - insets.top in <lambda>()
326 x = menuStartX.toFloat() in <lambda>()
327 y = menuStartY.toFloat() in <lambda>()
343 mArrow.pivotX = if (mIsLeftAligned) 0f else mArrowHeight.toFloat() in <lambda>()
354 mArrowWidth.toFloat(), in <lambda>()
355 mArrowHeight.toFloat(), in <lambda>()
356 mArrowPointRadius.toFloat(), in <lambda>()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.kt366 getFraction(alarmRight.toFloat(), mSnoozeButton.getLeft().toFloat(), x) in onTouch()
368 getFraction(alarmLeft.toFloat(), mDismissButton.getRight().toFloat(), x) in onTouch()
370 snoozeFraction = getFraction(alarmLeft.toFloat(), mSnoozeButton.getRight().toFloat(), x) in onTouch()
372 getFraction(alarmRight.toFloat(), mDismissButton.getLeft().toFloat(), x) in onTouch()
434 Math.min(mSnoozeButton.getRight() - alarmLeft, 0)).toFloat() in hintSnooze()
446 Math.min(mDismissButton.getRight() - alarmLeft, 0)).toFloat() in hintDismiss()
595 val endRadius = sqrt(xMax * xMax + yMax * yMax.toDouble()).toFloat() in getAlertAnimator()
598 .setCenterX(centerX.toFloat()) in getAlertAnimator()
599 .setCenterY(centerY.toFloat()) in getAlertAnimator()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderPreviewAnimation.kt92 finalDeltaX = -dir * sign(dX.toFloat()) * reorderMagnitude
94 finalDeltaY = -dir * sign(dY.toFloat()) * reorderMagnitude
96 val angle = atan((dY.toFloat() / dX))
97 finalDeltaX = (-dir * sign(dX.toFloat()) * abs(cos(angle) * reorderMagnitude))
98 finalDeltaY = (-dir * sign(dY.toFloat()) * abs(sin(angle) * reorderMagnitude))
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleBarBackground.kt117 mapToRange(fillPaint.alpha.toFloat(), 0f, 255f, 0f, shadowAlpha, Interpolators.LINEAR) in draw()
126 val topOffset = backgroundHeight - bounds.height().toFloat() in draw()
128 val left = bounds.left + (if (anchorLeft) 0f else bounds.width().toFloat() - width) in draw()
129 val right = bounds.left + (if (anchorLeft) width else bounds.width().toFloat()) in draw()
132 val bottom = bounds.top + bounds.height().toFloat() in draw()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/layout/
DScalingLazyColumnDefaults.kt81 val screenWidthDp = configuration.screenWidthDp.toFloat() in responsive()
82 val screenHeightDp = configuration.screenHeightDp.toFloat() in responsive()
155 val sizeRatio = ((screenWidthDp - 192) / (233 - 192).toFloat()).coerceIn(0f, 1.5f) in responsiveScalingParams()
205 val screenWidthDp = configuration.screenWidthDp.toFloat() in padding()
206 val screenHeightDp = configuration.screenHeightDp.toFloat() in padding()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/debug/data/repository/
DUdfpsEnrollDebugRepository.kt107 sensorLocation.centerY().toFloat(), in pointToLeftOfSensor()
117 sensorLocation.centerY().toFloat(), in pointToLeftOfSensor()
126 sensorLocation.centerX().toFloat(), in pointToLeftOfSensor()
136 sensorLocation.centerX().toFloat(), in pointToLeftOfSensor()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DSeascapePagedViewHandler.kt146 val translationX: Float = (taskViewWidth - banner.height).toFloat() in getDwbLayoutTranslations()
150 return Pair(translationX, banner.height.toFloat()) in getDwbLayoutTranslations()
168 translationY = banner.height.toFloat() in getDwbLayoutTranslations()
195 out.pivotY = splitInstructionsHeight.toFloat() in getDistanceToBottomOfRect()
205 out.translationX = (splitInstructionsWidth - distanceToEdge + insetCorrectionX).toFloat() in getDistanceToBottomOfRect()
295 (taskViewSecond.y + spaceAboveSnapshot + dividerBar).toFloat() in measureGroupedTaskViewThumbnailBounds()
394 appChipView.setSplitTranslationY(translationY.toFloat()) in updateSplitIconsPosition()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DSizeExtensions.kt24 width >= 0 && height > 0 -> width.toFloat() / height.toFloat() in aspectRatioOrDefault()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/
DMapView.kt121 val lat = point.first.toFloat() in <lambda>()
122 val lon = point.second.toFloat() in <lambda>()
149 return Pair(mapX.toFloat(), mapY.toFloat()) in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/view/
DPreviewCardView.kt40 radius = previewCornerRadius * (measuredHeight.toFloat() / screenHeight.toFloat()) in onMeasure()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DCachingImagePreviewImageLoaderTest.kt43 testJobTime * ceil((testCacheSize).toFloat() / testMaxConcurrency.toFloat()).roundToInt() in <lambda>()
47 testJobTime * ceil((testUris.size).toFloat() / testMaxConcurrency.toFloat()).roundToInt() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DRoundView.kt47 clippingPath.addOval(0f, 0f, w.toFloat(), h.toFloat(), Path.Direction.CCW) in onSizeChanged()

12345