/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/ |
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() in updateGlassRenderNode() 215 val textureYOffset = (textureTranslationMultiplier * gyroXRotation).toInt() in updateGlassRenderNode()
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
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()
|
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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/ |
D | BubbleXmlHelper.kt | 102 val version = parser.getAttributeWithName(ATTR_VERSION)?.toInt() ?: return bubbles in readXml() 112 bubbles.put(uid.toInt(), userBubbles.toList()) in readXml() 137 parser.getAttributeWithName(ATTR_USER_ID)?.toInt() ?: return null, in readXmlEntry() 141 parser.getAttributeWithName(ATTR_DESIRED_HEIGHT)?.toInt() ?: return null, in readXmlEntry() 142 parser.getAttributeWithName(ATTR_DESIRED_HEIGHT_RES_ID)?.toInt() ?: return null, in readXmlEntry() 144 parser.getAttributeWithName(ATTR_TASK_ID)?.toInt() ?: INVALID_TASK_ID, in readXmlEntry()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | FloatProperties.kt | 42 rect?.offsetTo(value.toInt(), rect.top) in setValue() 61 rect?.offsetTo(rect.left, value.toInt()) in setValue() 82 rect.right = rect.left + value.toInt() in setValue() 99 rect.bottom = rect.top + value.toInt() in setValue()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunk/ |
D | ChunkHash.java | 79 int result = toInt(left[i]) - toInt(right[i]); in lexicographicalCompareUnsignedBytes() 87 private static int toInt(byte value) { in toInt() method in ChunkHash
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoControlsService.kt | 49 const val COLOR_FOOD_FG = 0xFFFF8000.toInt() in <lambda>() 50 const val COLOR_FOOD_BG = COLOR_FOOD_FG and 0x40FFFFFF.toInt() in <lambda>() 51 const val COLOR_WATER_FG = 0xFF0080FF.toInt() in <lambda>() 52 const val COLOR_WATER_BG = COLOR_WATER_FG and 0x40FFFFFF.toInt() in <lambda>() 53 const val COLOR_TOY_FG = 0xFFFF4080.toInt() in <lambda>() 54 const val COLOR_TOY_BG = COLOR_TOY_FG and 0x40FFFFFF.toInt() in <lambda>() 167 getString(R.string.control_food_status_full), 0xCCFFFFFF.toInt()) in makeFoodBowlControl() 169 getString(R.string.control_food_status_empty), 0x80FFFFFF.toInt())) in makeFoodBowlControl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | SeekBarViewModel.kt | 150 _data = _data.copy(elapsedTime = position.toInt()) in <lambda>() 193 val position = playbackState?.position?.toInt() in updateController() 194 val duration = mediaMetadata?.getLong(MediaMetadata.METADATA_KEY_DURATION)?.toInt() ?: 0 in updateController() 230 val currentPosition = playbackState?.computePosition(duration.toLong())?.toInt() in checkPlaybackPosition() 353 val targetBoxMinX = (Math.round(thumbX) - halfHeight).toInt() in onDown() 354 val targetBoxMaxX = (Math.round(thumbX) + halfHeight).toInt() in onDown()
|
D | LightSourceDrawable.kt | 131 ColorUtils.setAlphaComponent(highlightColor, (rippleData.alpha * 255).toInt()) in draw() 254 val bounds = Rect((rippleData.x - radius).toInt(), (rippleData.y - radius).toInt(), in getDirtyBounds() 255 (rippleData.x + radius).toInt(), (rippleData.y + radius).toInt()) in getDirtyBounds()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayoutController.kt | 107 remappedProgress).toInt() in getGoneState() 111 remappedProgress).toInt() in getGoneState() 221 widthProgress).toInt() in getInterpolatedState() 223 widthProgress).toInt() in getInterpolatedState() 234 progress).toInt() in getInterpolatedState() 236 progress).toInt() in getInterpolatedState()
|
D | TransitionLayout.kt | 121 val contentTranslationX = currentState.contentTranslation.x.toInt() in applyCurrentState() 122 val contentTranslationY = currentState.contentTranslation.y.toInt() in applyCurrentState() 153 val left = widgetState.x.toInt() + contentTranslationX - clipShift in applyCurrentState() 154 val top = widgetState.y.toInt() + contentTranslationY in applyCurrentState() 239 boundsRect.set(0, 0, width.toInt(), height.toInt()) in updateBounds()
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | HostUtils.kt | 155 .toInt() in getUserIdToPkgEnabledState() 158 .toInt() in getUserIdToPkgEnabledState() 172 .toInt() in getUserIdToPkgInstalledState()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/ |
D | QuaresActivity.kt | 141 it.setBounds(0, 0, (32 * dp).toInt(), (32 * dp).toInt()) in checkVictory() 178 val size = (minSide / (q.height + 0.5) * dp).toInt() in loadPuzzle() 220 params.height = (96 * dp).toInt() in loadPuzzle() 231 params.width = (96 * dp).toInt() in loadPuzzle()
|
D | Quare.kt | 43 data[i] = (round(f) * s).toInt() shl 24 in <lambda>() 55 drawable.setTint(0xFF000000.toInt()) in <lambda>()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Painting.kt | 87 var paperColor: Int = 0xFFFFFFFF.toInt() 193 val N = (2 * d / Math.min(4f, r + newR)).toInt() in plot() 283 val localX = (x - left).toInt() in sampleAt() 284 val localY = (y - top).toInt() in sampleAt()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationShadeDepthController.kt | 180 normalizedBlurRadius * ANIMATION_BLUR_FRACTION).toInt() in <lambda>() 190 var blur = shadeRadius.toInt() in <lambda>() 203 blur = (blur * (1f - brightnessMirrorSpring.ratio)).toInt() in <lambda>() 328 val shadeDirection = sign(diff).toInt() in <lambda>() 476 radius = value.toInt() in <lambda>()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | PointProvider.java | 31 int toInt(float[] point); in toInt() method
|
D | LABPointProvider.java | 52 public int toInt(float[] centroid) { in toInt() method in LABPointProvider
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/libs/IntentVerifyUtils/src/com/android/server/pm/test/intent/verify/ |
D | VerifyRequest.kt | 31 lines[0].removePrefix("id=").toInt(), in deserialize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/ |
D | BurnInHelper.kt | 37 if (xAxis) BURN_IN_PREVENTION_PERIOD_X else BURN_IN_PREVENTION_PERIOD_Y).toInt() in getBurnInOffset()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/widget/ |
D | PaintChipsActivity.kt | 45 return (dp * resources.displayMetrics.density).toInt() in dp2px()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarLaunchAnimatorController.kt | 25 statusBar.collapsePanelWithDuration(ActivityLaunchAnimator.ANIMATION_DURATION.toInt()) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ExpandAnimationParameters.kt | 52 Interpolators.FAST_OUT_SLOW_IN.getInterpolation(linearProgress)).toInt()
|
/frameworks/base/cmds/incident_helper/src/ |
D | ih_util.cpp | 224 int toInt(const std::string& s) { in toInt() function 355 proto->write(found, toInt(value)); in insertField() 365 proto->write(found, toInt(value)); in insertField() 371 proto->write(found, toInt(repeats[i])); in insertField()
|
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/ |
D | PackageSessionTests.kt | 232 Random.nextInt('z' - 'a').toChar() + 'a'.toInt() in <lambda>() 240 .map { Random.nextInt(Char.MAX_VALUE.toInt()).toChar() } in <lambda>()
|