/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
H A D | DefaultLockIconSection.kt | 49 val scaledPadding: Int = (mDefaultPaddingPx * scaleFactor).toInt() 56 val lockIconRadiusPx = (defaultDensity * 36).toInt() 70 (widthPixels / 2).toInt(), 71 (heightPixels - ((mBottomPaddingPx + lockIconRadiusPx) * scaleFactor)).toInt() 90 center.x - radius.toInt(), 91 center.y - radius.toInt(), 92 center.x + radius.toInt(), 93 center.y + radius.toInt(),
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | LegacySizeSpecSource.kt | 78 val maxHeight = (maxWidth / aspectRatio).toInt() 83 val maxWidth = (maxHeight * aspectRatio).toInt() 95 smallestDisplaySize * mDefaultSizePercent).toInt() 116 (aspectRatio * aspectRatio + 1)).toDouble())).toInt() 132 shorterLength * mMinimumSizePercent).toInt() 133 minHeight = (minWidth / aspectRatio).toInt() 136 shorterLength * mMinimumSizePercent).toInt() 137 minWidth = (minHeight * aspectRatio).toInt() 195 Size(size.width, (size.width / aspectRatio).toInt()) 198 Size((size.height * aspectRatio).toInt(), size.height)
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
H A D | BoundingBoxOverlapDetector.kt | 38 (nativeSensorBounds.centerX() - scaledRadius).toInt(), 39 (nativeSensorBounds.centerY() - scaledRadius).toInt(), 40 (nativeSensorBounds.centerX() + scaledRadius).toInt(), 41 (nativeSensorBounds.centerY() + scaledRadius).toInt(),
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
H A D | UnfoldConstantTranslateAnimatorTest.kt | 132 (-MAX_TRANSLATION * direction * rtlMultiplier).toInt(), 133 view.translationX.toInt() 141 (-MAX_TRANSLATION / 2f * direction * rtlMultiplier).toInt(), 142 view.translationX.toInt() 149 list.forEach { (view, _) -> assertEquals(0, view.translationX.toInt()) } 153 private val START = Direction.START.multiplier.toInt() 154 private val END = Direction.END.multiplier.toInt()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | UdfpsDrawable.kt | 65 val margin = sensorRect.height().toInt() / 8 67 sensorRect.left.toInt() + margin, 68 sensorRect.top.toInt() + margin, 69 sensorRect.right.toInt() - margin, 70 sensorRect.bottom.toInt() - margin
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/ |
H A D | AccessorizedBatteryDrawableTest.kt | 36 assertThat(drawable.intrinsicHeight).isEqualTo((BATTERY_HEIGHT * density).toInt()) 37 assertThat(drawable.intrinsicWidth).isEqualTo((BATTERY_WIDTH * density).toInt()) 47 .isEqualTo((BATTERY_HEIGHT_WITH_SHIELD * density).toInt()) 48 assertThat(drawable.intrinsicWidth).isEqualTo((BATTERY_WIDTH_WITH_SHIELD * density).toInt())
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/ |
H A D | GlassView.kt | 114 noisePaint.alpha = (value * 255).toInt() 121 materialPaint.alpha = (value * 255).toInt() 128 scrimPaint.alpha = (value * 255).toInt() 172 scrimPaint.alpha = (scrimOpacity * 255).toInt() 173 noisePaint.alpha = (noiseOpacity * 255).toInt() 174 materialPaint.alpha = (materialOpacity * 255).toInt() 214 val textureXOffset = (textureTranslationMultiplier * gyroYRotation).toInt() 215 val textureYOffset = (textureTranslationMultiplier * gyroXRotation).toInt()
|
H A D | BackgroundBlurActivity.kt | 72 backgroundAlphaSeekBar.setProgress((mAlphaWithBlur * 100).toInt()) 73 dimAmountSeekBar.setProgress((mDimAmountWithBlur * 100).toInt()) 78 backgroundAlphaSeekBar.setProgress((mAlphaNoBlur * 100).toInt()) 79 dimAmountSeekBar.setProgress((mDimAmountNoBlur * 100).toInt()) 186 mBackgroundDrawable.setAlpha((alpha * 255f).toInt())
|
/aosp14/frameworks/base/cmds/incident_helper/src/parsers/ |
H A D | PageTypeInfoParser.cpp | 48 pageBlockOrder = toInt(line); in Parse() 53 proto.write(PageTypeInfoProto::PAGES_PER_BLOCK, toInt(line)); in Parse() 70 proto.write(PageTypeInfoProto::MigrateType::NODE, toInt(record[0])); in Parse() 85 … proto.write(PageTypeInfoProto::MigrateType::FREE_PAGES_COUNT, toInt(pageCounts[i])); in Parse() 93 proto.write(PageTypeInfoProto::Block::NODE, toInt(record[0])); in Parse()
|
H A D | EventLogTagsParser.cpp | 45 proto.write(EventLogTag::TAG_NUMBER, toInt(tagNumber)); in Parse() 57 proto.write(EventLogTag::ValueDescriptor::TYPE, toInt(valueDescriptor[1])); in Parse() 64 unit = toInt(valueDescriptor[2]); in Parse()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
H A D | FloatProperties.kt | 42 rect?.offsetTo(value.toInt(), rect.top) 61 rect?.offsetTo(rect.left, value.toInt()) 82 rect.right = rect.left + value.toInt() 99 rect.bottom = rect.top + value.toInt()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/ |
H A D | BubbleXmlHelper.kt | 104 val version = parser.getAttributeWithName(ATTR_VERSION)?.toInt() ?: return bubbles 114 bubbles.put(uid.toInt(), userBubbles.toList()) 139 parser.getAttributeWithName(ATTR_USER_ID)?.toInt() ?: return null, 143 parser.getAttributeWithName(ATTR_DESIRED_HEIGHT)?.toInt() ?: return null, 144 parser.getAttributeWithName(ATTR_DESIRED_HEIGHT_RES_ID)?.toInt() ?: return null, 146 parser.getAttributeWithName(ATTR_TASK_ID)?.toInt() ?: INVALID_TASK_ID,
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | UdfpsViewTest.kt | 116 for (x in 0 until offset.x.toInt() step 2) { 117 for (y in 0 until offset.y.toInt() step 2) { 121 for (x in offset.x.toInt() + 1 until offset.x.toInt() + end) { 122 for (y in offset.y.toInt() + 1 until offset.y.toInt() + end) {
|
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoControlsService.kt | 49 const val COLOR_FOOD_FG = 0xFFFF8000.toInt() 50 const val COLOR_FOOD_BG = COLOR_FOOD_FG and 0x40FFFFFF.toInt() 51 const val COLOR_WATER_FG = 0xFF0080FF.toInt() 52 const val COLOR_WATER_BG = COLOR_WATER_FG and 0x40FFFFFF.toInt() 53 const val COLOR_TOY_FG = 0xFFFF4080.toInt() 54 const val COLOR_TOY_BG = COLOR_TOY_FG and 0x40FFFFFF.toInt() 167 getString(R.string.control_food_status_full), 0xCCFFFFFF.toInt()) 169 getString(R.string.control_food_status_empty), 0x80FFFFFF.toInt()))
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/ |
H A D | DemoModeWifiDataSource.kt | 56 val level = getString("level")?.toInt() 72 val subId = getString("slot")?.toInt() ?: DEFAULT_CARRIER_MERGED_SUB_ID 73 val level = getString("level")?.toInt() ?: 0 74 val numberOfLevels = getString("numlevels")?.toInt() ?: DEFAULT_NUM_LEVELS
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
H A D | UdfpsKeyguardViewBinder.kt | 76 relativeToView.left.toInt(), 77 relativeToView.top.toInt(), 78 relativeToView.right.toInt(), 79 relativeToView.bottom.toInt(),
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/ |
H A D | DemoModeMobileConnectionDataSource.kt | 63 MobileDisabled(subId = getString("slot")?.toInt()) 70 val level = getString("level")?.toInt() 72 val slot = getString("slot")?.toInt() 73 val carrierId = getString("carrierid")?.toInt()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | UdfpsOverlayInteractorTest.kt | 76 whenever(overlayBounds.contains(downEv.x.toInt(), downEv.y.toInt())).thenReturn(true) 84 whenever(overlayBounds.contains(downEv.x.toInt(), downEv.y.toInt())).thenReturn(false)
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | FrontBufferedLayer.kt | 103 val left = minOf(prevX, event.x).toInt() - 10 104 val top = minOf(prevY, event.y).toInt() - 10 105 val right = maxOf(prevX, event.x).toInt() + 10 106 val bottom = maxOf(prevY, event.y).toInt() + 10
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/ |
H A D | RoundedCornerResDelegate.kt | 134 (physicalPixelDisplaySizeRatio * topRoundedSize.width + 0.5f).toInt(), 135 (physicalPixelDisplaySizeRatio * topRoundedSize.height + 0.5f).toInt() 140 (physicalPixelDisplaySizeRatio * bottomRoundedSize.width + 0.5f).toInt(), 141 (physicalPixelDisplaySizeRatio * bottomRoundedSize.height + 0.5f).toInt()
|
H A D | DebugRoundedCornerDelegate.kt | 134 (physicalPixelDisplaySizeRatio * topRoundedSize.width + 0.5f).toInt(), 135 (physicalPixelDisplaySizeRatio * topRoundedSize.height + 0.5f).toInt() 141 (physicalPixelDisplaySizeRatio * bottomRoundedSize.width + 0.5f).toInt(), 142 (physicalPixelDisplaySizeRatio * bottomRoundedSize.height + 0.5f).toInt()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/ |
H A D | SwipeUpGestureHandler.kt | 62 logger.logGestureDetectionStarted(loggerTag, ev.y.toInt()) 83 logger.logGestureDetected(loggerTag, ev.y.toInt()) 89 logger.logGestureDetectionEndedWithoutTriggering(loggerTag, ev.y.toInt())
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | GainmapDecodeTest.kt | 81 decoder.setTargetSize((size.width * .66).toInt(), (size.height * .66).toInt()) 89 val targetWidth = (size.width * .33).toInt() 90 val targetHeight = (size.height * .33).toInt()
|
H A D | GainmapMetadataEditor.kt | 152 ((currentMetadata.ratioMin - minRatioMin) / maxRatioMin * maxProgress).toInt()) 154 ((currentMetadata.ratioMax - minRatioMax) / maxRatioMax * maxProgress).toInt()) 156 ((currentMetadata.capacityMin - minCapacityMin) / maxCapacityMin * maxProgress).toInt()) 158 ((currentMetadata.capacityMax - minCapacityMax) / maxCapacityMax * maxProgress).toInt()) 160 ((currentMetadata.gamma - minGamma) / maxGamma * maxProgress).toInt()) 164 .toFloat() * maxProgress).toInt()) 167 .toFloat() * maxProgress).toInt())
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/models/player/ |
H A D | SeekBarViewModel.kt | 174 _data = _data.copy(elapsedTime = position.toInt()) 228 val position = playbackState?.position?.toInt() 229 val duration = mediaMetadata?.getLong(MediaMetadata.METADATA_KEY_DURATION)?.toInt() ?: 0 252 val position = (percent * 100).toInt() 294 val currentPosition = playbackState?.computePosition(duration.toLong())?.toInt() 487 val targetBoxMinX = (Math.round(thumbX) - halfHeight).toInt() 488 val targetBoxMaxX = (Math.round(thumbX) + halfHeight).toInt()
|