Home
last modified time | relevance | path

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

/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
DPorterDuffTest.kt27 val p = Paint().apply { color = 0xffffffff.toInt() } in xfermode()
40 val p = Paint().apply { color = 0xffffffff.toInt() } in colorFilter()
43 p.color = 0xff000000.toInt() in colorFilter()
44 p.colorFilter = PorterDuff.Mode.SRC.toColorFilter(0xff00ff00.toInt()) in colorFilter()
48 assertEquals(0xff00ff00.toInt(), p) in colorFilter()
DColorTest.kt57 @Test fun luminance() = assertEquals(0.212f, 0xff7f7f7f.toInt().luminance, 1e-3f) in intToColor()
90 assertEquals(0.212f, Color.pack(0xff7f7f7f.toInt()).luminance, 1e-3f) in alphaLong()
DPictureTest.kt32 assertEquals(0xffff0000.toInt(), v) in record()
/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()
90 … proto.write(PageTypeInfoProto::MigrateType::FREE_PAGES_COUNT, toInt(pageCounts[i])); in Parse()
98 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()
DCpuInfoParser.cpp35 proto->write(ids[j], toInt(record[i])); in writeSuffixLine()
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/
DPoint.kt164 inline fun PointF.toPoint() = Point(x.toInt(), y.toInt())
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/drawable/
DIconTest.kt39 val edge = (108.0f * density + 0.5f).toInt() in fromBitmapAdaptive()
46 val masked = (72.0f * density + 0.5f).toInt() in fromBitmapAdaptive()
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/vo/
DLang.kt32 fun toInt(langs: Set<Lang>): Int { in <lambda>() method
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
DOnConflictProcessor.kt38 onConflictValue.toString().toInt() in extractFrom()
DDatabaseProcessor.kt99 .getAsInt(1)!!.toInt() in <lambda>()
/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp224 int toInt(const std::string& s) { in toInt() function
350 proto->write(found, toInt(value)); in insertField()
360 proto->write(found, toInt(value)); in insertField()
366 proto->write(found, toInt(repeats[i])); in insertField()
Dih_util.h101 int toInt(const std::string& s);
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rs67 uint2 __attribute__((kernel)) toInt(float2 in) {
158 rsForEach(toInt, pointsXY, mBorderCoords);
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rs94 int2 __attribute__((kernel)) toInt(float2 in) {
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/checkapi/
DCheckApiTask.kt45 val hexString = Integer.toHexString(byte.toInt() and 0xFF) in <lambda>()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiControlService.java538 mMhlController.setOption(OPTION_MHL_POWER_CHARGE, toInt(enabled)); in onChange()
544 private static int toInt(boolean enabled) { in toInt() method in HdmiControlService
550 return Global.getInt(cr, key, toInt(defVal)) == ENABLED; in readBooleanSetting()
555 Global.putInt(cr, key, toInt(value)); in writeBooleanSetting()
2381 mMhlController.setOption(OPTION_MHL_INPUT_SWITCHING, toInt(enabled)); in setMhlInputChangeEnabled()
/frameworks/support/paging/common/src/test/java/androidx/paging/
DItemKeyedDataSourceTest.kt479 (Math.random() * 200).toInt().toString() + " fake st.") in <lambda>()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...