/packages/apps/AvatarPicker/src/tests/ui/java/com/android/avatarpicker/tests/ui/ |
D | DefaultIconsFakeUseCase.kt | 34 defaultViewModel(0xffe46962.toInt()), 35 defaultViewModel(0xffaf5cf7.toInt()), 36 defaultViewModel(0xff4c8df6.toInt()), 37 defaultViewModel(0xfff439a0.toInt()), 38 defaultViewModel(0xff1ea446.toInt()), 39 defaultViewModel(0xff129eaf.toInt()), 40 defaultViewModel(0xffb26c00.toInt()), 41 defaultViewModel(0xffe8710a.toInt()))
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthWeekEventsView.kt | 284 TOP_PADDING_MONTH_NUMBER *= mScale.toInt() in initView() 285 TOP_PADDING_WEEK_NUMBER *= mScale.toInt() in initView() 286 SIDE_PADDING_MONTH_NUMBER *= mScale.toInt() in initView() 287 SIDE_PADDING_WEEK_NUMBER *= mScale.toInt() in initView() 288 SPACING_WEEK_NUMBER *= mScale.toInt() in initView() 289 TEXT_SIZE_MONTH_NUMBER *= mScale.toInt() in initView() 290 TEXT_SIZE_EVENT *= mScale.toInt() in initView() 291 TEXT_SIZE_EVENT_TITLE *= mScale.toInt() in initView() 292 TEXT_SIZE_MORE_EVENTS *= mScale.toInt() in initView() 293 TEXT_SIZE_MONTH_NAME *= mScale.toInt() in initView() [all …]
|
D | SimpleWeekView.kt | 143 mHeight = (params.get(VIEW_PARAMS_HEIGHT))!!.toInt() in setWeekParams() 149 mSelectedDay = (params.get(VIEW_PARAMS_SELECTED_DAY))!!.toInt() in setWeekParams() 153 mNumDays = (params.get(VIEW_PARAMS_NUM_DAYS))!!.toInt() in setWeekParams() 169 mWeek = (params.get(VIEW_PARAMS_WEEK))!!.toInt() in setWeekParams() 181 mWeekStart = (params.get(VIEW_PARAMS_WEEK_START))!!.toInt() in setWeekParams() 294 val dayPosition = ((x - dayStart) * mNumDays / (mWidth - dayStart - mPadding)).toInt() in getDayFromLocation() 549 DEFAULT_HEIGHT *= mScale.toInt() 550 MIN_HEIGHT *= mScale.toInt() 551 MINI_DAY_NUMBER_TEXT_SIZE *= mScale.toInt() 552 MINI_TODAY_NUMBER_TEXT_SIZE *= mScale.toInt() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | TimerTextController.kt | 34 var hours = (variableRemainingTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() 35 var remainder = (variableRemainingTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() 37 var minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString() 38 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString() 40 var seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString() 41 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
|
D | StopwatchTextController.kt | 40 val hours = (accumulatedTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() 41 var remainder = (accumulatedTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() 43 val minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString() 44 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString() 46 val seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString() 47 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/ |
D | PhonePortraitNavLayoutter.kt | 65 navButtonContainerWidth.toInt(), in layoutButtons() 72 (contextualButtonWidth + contentPadding + roundedCornerContentMargin).toInt() in layoutButtons() 74 (contextualButtonWidth + contentPadding + roundedCornerContentMargin).toInt() in layoutButtons() 94 val margin = (spaceInBetween / 2).toInt() in layoutButtons() 99 buttonLayoutParams.width = sideButtonWidth.toInt() in layoutButtons() 104 buttonLayoutParams.width = sideButtonWidth.toInt() in layoutButtons() 120 contextualButtonWidth.toInt(), in layoutButtons() 127 contextualButtonWidth.toInt(), in layoutButtons()
|
D | PhoneLandscapeNavLayoutter.kt | 64 FrameLayout.LayoutParams(MATCH_PARENT, navButtonContainerHeight.toInt()) in layoutButtons() 67 (contextualButtonHeight + contentPadding + roundedCornerContentMargin).toInt() in layoutButtons() 69 (contextualButtonHeight + contentPadding + roundedCornerContentMargin).toInt() in layoutButtons() 89 val margin = (spaceInBetween / 2).toInt() in layoutButtons() 94 buttonLayoutParams.height = sideButtonHeight.toInt() in layoutButtons() 99 buttonLayoutParams.height = sideButtonHeight.toInt() in layoutButtons() 110 repositionContextualButtons(contextualButtonHeight.toInt()) in layoutButtons()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.kt | 324 private var mAnimateDayEventHeight = MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT.toInt() 669 (mCellHeight + HOUR_GAP) - mGridAreaHeight).toInt() in setSelected() 856 mHoursTextHeight = Math.abs(p.ascent()).toInt() in onSizeChanged() 866 MAX_UNEXPANDED_ALLDAY_HEIGHT = (MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT * 4).toInt() in remeasure() 870 MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT.toInt() * 2 in remeasure() 873 (MAX_UNEXPANDED_ALLDAY_HEIGHT / MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT).toInt() in remeasure() 884 mMinCellHeight = Math.max((height - DAY_HEADER_HEIGHT) / 24, MIN_EVENT_HEIGHT.toInt()) in remeasure() 915 allDayHeight = (maxAllDayEvents * MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT).toInt() in remeasure() 919 MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT).toInt() in remeasure() 1534 dest.top = (mFirstCell - yTranslate).toInt() in onDraw() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/apppairs/ |
D | AppPairIconGraphic.kt | 55 appIcon1.setBounds(0, 0, p.memberIconSize.toInt(), p.memberIconSize.toInt()) in composeDrawable() 56 appIcon2.setBounds(0, 0, p.memberIconSize.toInt(), p.memberIconSize.toInt()) in composeDrawable() 122 outBounds.set(0, 0, drawParams.backgroundSize.toInt(), drawParams.backgroundSize.toInt()) in getIconBounds() 125 ((parentIcon.width - drawParams.backgroundSize) / 2).toInt(), in getIconBounds() 128 .toInt() in getIconBounds()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | DashboardUtils.kt | 108 timeDiffAndUnit.first.toInt() in getTimeDiffStr() 114 timeDiffAndUnit.first.toInt() in getTimeDiffStr() 117 StringUtils.getIcuPluralsString(context, R.string.hours, timeDiffAndUnit.first.toInt()) in getTimeDiffStr() 119 StringUtils.getIcuPluralsString(context, R.string.days, timeDiffAndUnit.first.toInt()) in getTimeDiffStr() 135 timeDiffAndUnit.first.toInt() in getDurationUsedStr() 141 timeDiffAndUnit.first.toInt() in getDurationUsedStr() 147 timeDiffAndUnit.first.toInt() in getDurationUsedStr() 153 timeDiffAndUnit.first.toInt() in getDurationUsedStr()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketReflectorUtil.kt | 56 return (buf[pos].toInt() and 0xff shl 8) + (buf[pos + 1].toInt() and 0xff) in getInetAddressAt() 79 buf[IPV4_CHKSUM_OFFSET] = (checksum.toInt() ushr 8).toByte() in fixPacketChecksum() 80 buf[IPV4_CHKSUM_OFFSET + 1] = (checksum.toInt() and 0xff).toByte() in fixPacketChecksum() 95 buf[checksumPos] = (checksum.toInt() ushr 8).toByte() in fixPacketChecksum() 96 buf[checksumPos + 1] = (checksum.toInt() and 0xff).toByte() in fixPacketChecksum() 108 buf[checksumPos] = (checksum.toInt() ushr 8).toByte() in fixPacketChecksum() 109 buf[checksumPos + 1] = (checksum.toInt() and 0xff).toByte() in fixPacketChecksum()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/ |
D | DualDisplayAspectRatioLayout.kt | 54 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() * 3 in onMeasure() 69 val widthFolded = (sizeMultiplier * smallDisplayAR).toInt() in onMeasure() 70 val heightFolded = (widthFolded / smallDisplayAR).toInt() in onMeasure() 72 val widthUnfolded = (sizeMultiplier * largeDisplayAR).toInt() in onMeasure() 73 val heightUnfolded = (widthUnfolded / largeDisplayAR).toInt() in onMeasure() 100 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() in onMeasure() 117 context.resources.getDimension(R.dimen.small_preview_inter_preview_margin).toInt() in onLayout()
|
D | SystemScaledSubsamplingScaleImageView.kt | 33 setMeasuredDimension((measuredWidth * scale).toInt(), (measuredHeight * scale).toInt()) in onMeasure() 41 val scaledWidth = (measuredWidth * scale).toInt() in onLayout() 42 val scaledHeight = (measuredHeight * scale).toInt() in onLayout()
|
D | PreviewTabs.kt | 125 if (primaryTabRect.contains(downX.toInt(), downY.toInt())) { in onInterceptTouchEvent() 128 } else if (secondaryTabRect.contains(downX.toInt(), downY.toInt())) { in onInterceptTouchEvent() 182 background.alpha = (255 * (1 - progress)).toInt() in updateTabText() 188 background.alpha = (255 * progress).toInt() in updateTabText()
|
/packages/services/Car/cpp/vhal/client/src/ |
D | AidlHalPropConfig.cpp | 30 using ::android::hardware::automotive::vehicle::toInt; 38 toInt(mPropConfig.access))); in AidlHalPropConfig() 42 ? toInt(mPropConfig.access) in AidlHalPropConfig() 43 : toInt(areaConfig.access); in AidlHalPropConfig() 55 return toInt(mPropConfig.access); in getAccess() 59 return toInt(mPropConfig.changeMode); in getChangeMode()
|
D | HidlHalPropConfig.cpp | 29 using ::android::hardware::automotive::vehicle::toInt; 37 toInt(mPropConfig.access))); in HidlHalPropConfig() 41 toInt(mPropConfig.access))); in HidlHalPropConfig() 51 return toInt(mPropConfig.access); in getAccess() 55 return toInt(mPropConfig.changeMode); in getChangeMode()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | DisplayAspectRatioLinearLayout.kt | 49 var height = (width * screenAspectRatio).toInt() in <lambda>() 52 width = (height / screenAspectRatio).toInt() in <lambda>() 60 var width = (height / screenAspectRatio).toInt() in <lambda>() 63 height = (width * screenAspectRatio).toInt() in <lambda>() 98 return (this * density).toInt() in <lambda>()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/ |
D | DispatchResponseTest.java | 39 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithTransactionSuccess() 52 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithTransactionError() 70 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithOutboundDataToRemote() 90 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithOutboundDataToHost() 115 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithAdfSelectedNotification() 141 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithSecureSessionEstablishedNotification() 168 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithSecureSessionEstablishedNotificationAndValidSessionId() 195 StatusWord.SW_NO_ERROR.toInt()); in validResponseWithRdsAvailableNotification()
|
D | InitiateTransactionResponseTest.java | 40 StatusWord.SW_NO_ERROR.toInt()); in validResponse() 67 StatusWord.SW_NO_ERROR.toInt()); in wrongTopTag() 83 StatusWord.SW_NO_ERROR.toInt()); in wrongStatusValue() 97 StatusWord.SW_NO_ERROR.toInt()); in emptyOutboundData()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | DesktopTaskView.kt | 106 val windowWidth = tempPointF.x.toInt() in <lambda>() 107 val windowHeight = tempPointF.y.toInt() in <lambda>() 129 val thumbWidth = (taskSize.width() * scaleWidth).toInt() in <lambda>() 130 val thumbHeight = (taskSize.height() * scaleHeight).toInt() in <lambda>() 138 val taskX = (positionInParent.x * scaleWidth).toInt() in <lambda>() 139 var taskY = (positionInParent.y * scaleHeight).toInt() in <lambda>()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | LapsAdapter.kt | 313 hours = (time / DateUtils.HOUR_IN_MILLIS).toInt() in formatTime() 314 var remainder = (time % DateUtils.HOUR_IN_MILLIS).toInt() in formatTime() 315 minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime() 316 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime() 317 seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in formatTime() 318 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in formatTime()
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/ |
D | FiraSpecificationParams.java | 430 bundle.putInt(KEY_AOA_CAPABILITIES, FlagEnum.toInt(mAoaCapabilities)); in toBundle() 431 bundle.putInt(KEY_DEVICE_ROLE_CAPABILITIES, FlagEnum.toInt(mDeviceRoleCapabilities)); in toBundle() 442 bundle.putInt(KEY_MULTI_NODE_CAPABILITIES, FlagEnum.toInt(mMultiNodeCapabilities)); in toBundle() 444 FlagEnum.toInt(mRangingTimeStructCapabilities)); in toBundle() 446 FlagEnum.toInt(mSchedulingModeCapabilities)); in toBundle() 448 FlagEnum.toInt(mCcConstraintLengthCapabilities)); in toBundle() 449 bundle.putInt(KEY_PRF_CAPABILITIES, FlagEnum.toInt(mPrfCapabilities)); in toBundle() 450 bundle.putInt(KEY_RANGING_ROUND_CAPABILITIES, FlagEnum.toInt(mRangingRoundCapabilities)); in toBundle() 451 bundle.putInt(KEY_RFRAME_CAPABILITIES, FlagEnum.toInt(mRframeCapabilities)); in toBundle() 452 bundle.putInt(KEY_STS_CAPABILITIES, FlagEnum.toInt(mStsCapabilities)); in toBundle() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | ReorderPreviewAnimationTest.kt | 60 (translateDelegate.getTranslationX(INDEX_REORDER_BOUNCE_OFFSET).value * 100).toInt(), in toAnimationValues() 61 (translateDelegate.getTranslationY(INDEX_REORDER_BOUNCE_OFFSET).value * 100).toInt(), in toAnimationValues() 62 (scaleForReorderBounce * 100).toInt() in toAnimationValues() 158 (PREVIEW_DURATION * 1.5).toInt(), in testAnimationModePreview()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/widget/ |
D | UdfpsEnrollProgressBarDrawableV2.kt | 284 (newBounds.left + (newBounds.width() * scale)).toInt(), in <lambda>() 285 (newBounds.top + (newBounds.height() * scale)).toInt(), in <lambda>() 304 var x = (cos(Math.toRadians(315.0)) * radius).toInt() + progressBounds.centerX() in <lambda>() 306 var y = (-sin(Math.toRadians(315.0)) * radius).toInt() + progressBounds.centerY() in <lambda>() 308 x -= (checkMarkDrawable.intrinsicWidth / 2.0).toInt() in <lambda>() 309 y -= (checkMarkDrawable.intrinsicHeight / 2.0).toInt() in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/filters/ |
D | FilterChip.kt | 81 private val spacingXSmallPx = (context.resources.getDimension(R.dimen.spacing_xsmall)).toInt() in <lambda>() 82 private val spacingSmallPx = (context.resources.getDimension(R.dimen.spacing_small)).toInt() in <lambda>() 83 private val spacingNormalPx = (context.resources.getDimension(R.dimen.spacing_normal)).toInt() in <lambda>() 91 val px = (context.resources.getDimension(R.dimen.spacing_small)).toInt() in <lambda>()
|