Home
last modified time | relevance | path

Searched refs:toInt (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/cmds/incident_helper/src/parsers/
DPageTypeInfoParser.cpp48 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()
DEventLogTagsParser.cpp45 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()
DCpuFreqParser.cpp53 int freq = toInt(record[0]); in Parse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DFloatProperties.kt42 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()
DTransitionLayoutController.kt108 remappedProgress).toInt() in getGoneState()
112 remappedProgress).toInt() in getGoneState()
222 widthProgress).toInt() in getInterpolatedState()
224 widthProgress).toInt() in getInterpolatedState()
235 progress).toInt() in getInterpolatedState()
237 progress).toInt() in getInterpolatedState()
DTransitionLayout.kt102 val contentTranslationX = currentState.contentTranslation.x.toInt() in applyCurrentState()
103 val contentTranslationY = currentState.contentTranslation.y.toInt() in applyCurrentState()
134 val left = widgetState.x.toInt() + contentTranslationX - clipShift in applyCurrentState()
135 val top = widgetState.y.toInt() + contentTranslationY in applyCurrentState()
208 boundsRect.set(0, 0, width.toInt(), height.toInt()) in updateBounds()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunk/
DChunkHash.java79 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/
DNekoControlsService.kt49 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>()
166 getString(R.string.control_food_status_full), 0xCCFFFFFF.toInt()) in makeFoodBowlControl()
168 getString(R.string.control_food_status_empty), 0x80FFFFFF.toInt())) in makeFoodBowlControl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/storage/
DBubbleXmlHelper.kt87 val version = parser.getAttributeWithName(ATTR_VERSION)?.toInt() in readXml()
100 parser.getAttributeWithName(ATTR_USER_ID)?.toInt() ?: return null, in readXmlEntry()
104 parser.getAttributeWithName(ATTR_DESIRED_HEIGHT)?.toInt() ?: return null, in readXmlEntry()
105 parser.getAttributeWithName(ATTR_DESIRED_HEIGHT_RES_ID)?.toInt() ?: return null, in readXmlEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DSeekBarViewModel.kt146 _data = _data.copy(elapsedTime = position.toInt()) in <lambda>()
188 val position = playbackState?.position?.toInt() in updateController()
189 val duration = mediaMetadata?.getLong(MediaMetadata.METADATA_KEY_DURATION)?.toInt() in updateController()
225 val currentPosition = playbackState?.computePosition(duration.toLong())?.toInt() in checkPlaybackPosition()
348 val targetBoxMinX = (Math.round(thumbX) - halfHeight).toInt() in onDown()
349 val targetBoxMaxX = (Math.round(thumbX) + halfHeight).toInt() in onDown()
DLightSourceDrawable.kt131 ColorUtils.setAlphaComponent(highlightColor, (rippleData.alpha * 255).toInt()) in draw()
249 val bounds = Rect((rippleData.x - radius).toInt(), (rippleData.y - radius).toInt(), in getDirtyBounds()
250 (rippleData.x + radius).toInt(), (rippleData.y + radius).toInt()) in getDirtyBounds()
DMediaHierarchyManager.kt461 endBounds.left.toFloat(), progress).toInt() in interpolateBounds()
463 endBounds.top.toFloat(), progress).toInt() in interpolateBounds()
465 endBounds.right.toFloat(), progress).toInt() in interpolateBounds()
467 endBounds.bottom.toFloat(), progress).toInt() in interpolateBounds()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt140 it.setBounds(0, 0, (32 * dp).toInt(), (32 * dp).toInt()) in checkVictory()
177 val size = (minSide / (q.height + 0.5) * dp).toInt() in loadPuzzle()
219 params.height = (96 * dp).toInt() in loadPuzzle()
230 params.width = (96 * dp).toInt() in loadPuzzle()
DQuare.kt43 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/
DPainting.kt87 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()
DBrushPropertyDrawable.kt36 _size = (24 * context.resources.displayMetrics.density).toInt()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt163 Random.nextInt('z' - 'a').toChar() + 'a'.toInt() in <lambda>()
171 .map { Random.nextInt(Char.MAX_VALUE.toInt()).toChar() } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/
DBurnInHelper.kt35 if (xAxis) BURN_IN_PREVENTION_PERIOD_X else BURN_IN_PREVENTION_PERIOD_Y).toInt() in getBurnInOffset()
/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp224 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()
Dih_util.h101 int toInt(const std::string& s);
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript38 foreach(toInt, poly , border_coords);
94 int2 __attribute__((kernel)) toInt(float2 in) {
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DCodeUtils.kt32 .map { c -> c.toInt() }.reduce { h, c -> h * 31 + c } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DMediaArtworkProcessor.kt37 private const val COLOR_ALPHA = (255 * 0.7f).toInt()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript67 uint2 __attribute__((kernel)) toInt(float2 in) {
158 rsForEach(toInt, pointsXY, mBorderCoords);
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DToggleRangeBehavior.kt291 rangeTemplate.minValue, rangeTemplate.maxValue, i).toInt() in <lambda>()
350 val changeAmount = ((MAX_LEVEL - MIN_LEVEL) * ratioDiff).toInt() in <lambda>()

12