Home
last modified time | relevance | path

Searched refs:toByte (Results 1 – 9 of 9) sorted by relevance

/frameworks/rs/toolkit/test/
DBufferUtils.kt263 values[i] = value.r.toUByte().toByte() in set()
264 values[i + 1] = value.g.toUByte().toByte() in set()
265 values[i + 2] = value.b.toUByte().toByte() in set()
266 values[i + 3] = value.a.toUByte().toByte() in set()
300 return ByteArray(sizeX * sizeY * elementSize) { (r.nextInt(255) - 128).toByte() } in indexOfVector()
325 (r.nextInt(255) - 128).toByte() in randomCube()
341 (x * 255 / (cubeSize.sizeX - 1)).toByte(), in identityCube()
342 (y * 255 / (cubeSize.sizeY - 1)).toByte(), in identityCube()
343 (z * 255 / (cubeSize.sizeZ - 1)).toByte(), in identityCube()
344 (255).toByte() in identityCube()
DReferenceBlur.kt48 …eturn ByteArray(outInFloat.values.size) { unitFloatClampedToUByte(outInFloat.values[it]).toByte() } in <lambda>()
/frameworks/base/core/java/com/android/internal/util/
DHexDump.java165 private static int toByte(char c) in toByte() method in HexDump
182 … buffer[i / 2] = (byte)((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i+1))); in hexStringToByteArray()
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/
DBackupRestoreFileArchiver.kt67 val codec = BackupCodec.fromId(checkedInputStream.read().toByte()) in <lambda>()
DBackupRestoreStorage.kt202 return BackupCodec.fromId(id.toByte()).decode(inputStream) in <lambda>()
/frameworks/rs/toolkit/java/
DToolkit.kt1414 var red = ByteArray(256) { it.toByte() } in <lambda>()
1415 var green = ByteArray(256) { it.toByte() } in <lambda>()
1416 var blue = ByteArray(256) { it.toByte() } in <lambda>()
1417 var alpha = ByteArray(256) { it.toByte() } in <lambda>()
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DBinaryXmlPullParser.java911 private static int toByte(char c) { in toByte() method in BinaryXmlPullParser
937 buffer[i / 2] = (byte) ((toByte(value.charAt(i)) << 4) in hexStringToBytes()
938 | toByte(value.charAt(i + 1))); in hexStringToBytes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothLeBroadcastMetadataExt.kt207 broadcastCode = Base64.decode(value.dropLastWhile { it.equals(0.toByte()) } in <lambda>()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java488 public byte[] toByte() { in toByte() method in SyntheticPasswordManager.SyntheticPasswordBlob
1361 saveState(SP_BLOB_NAME, blob.toByte(), protectorId, userId); in createSyntheticPasswordBlob()