Home
last modified time | relevance | path

Searched refs:toUByte (Results 1 – 17 of 17) sorted by relevance

/external/renderscript-intrinsics-replacement-toolkit/test-app/src/main/java/com/google/android/renderscript_test/
DIntrinsicLut.kt57 scriptLut.setRed(v, newRed[v].toUByte().toInt()) in intrinsicLut()
58 scriptLut.setGreen(v, newGreen[v].toUByte().toInt()) in intrinsicLut()
59 scriptLut.setBlue(v, newBlue[v].toUByte().toInt()) in intrinsicLut()
60 scriptLut.setAlpha(v, newAlpha[v].toUByte().toInt()) in intrinsicLut()
98 scriptLut.setRed(v, newRed[v].toUByte().toInt()) in intrinsicLut()
99 scriptLut.setGreen(v, newGreen[v].toUByte().toInt()) in intrinsicLut()
100 scriptLut.setBlue(v, newBlue[v].toUByte().toInt()) in intrinsicLut()
101 scriptLut.setAlpha(v, newAlpha[v].toUByte().toInt()) in intrinsicLut()
DBufferUtils.kt95 this[0].toUByte().toFloat(), in toFloat4()
96 this[1].toUByte().toFloat(), in toFloat4()
97 this[2].toUByte().toFloat(), in toFloat4()
98 this[3].toUByte().toFloat() in toFloat4()
249 values[i].toUByte().toInt(), in get()
250 values[i + 1].toUByte().toInt(), in get()
251 values[i + 2].toUByte().toInt(), in get()
252 values[i + 3].toUByte().toInt() in get()
263 values[i] = value.r.toUByte().toByte() in set()
264 values[i + 1] = value.g.toUByte().toByte() in set()
[all …]
DReferenceBlur.kt41 val inputValues = FloatArray(inputArray.size) { byteToUnitFloat(inputArray[it].toUByte()) } in <lambda>()
DAllTests.kt1205 val delta = abs(in1[i].toUByte().toInt() - in2[i].toUByte().toInt()) in validateAgainstReference()
/external/jazzer-api/agent/src/test/java/com/code_intelligence/jazzer/instrumentor/
DCoverageInstrumentationTest.kt148 var lastCounter = 0.toUByte() in testCounters()
153 val expectedCounter = (lastCounter + 1U).toUByte().takeUnless { it == 0.toUByte() } in testCounters()
154 ?: (lastCounter + 2U).toUByte() in testCounters()
156 val actualCounter = MockCoverageMap.counters[takenOnEveryRunEdge].toUByte() in testCounters()
/external/flatbuffers/tests/
DKotlinTest.kt235 assert(monsterObject.inventory(1) == inventory[1].toUByte()) in TestCreateByteVector()
256 assert(monsterObject.inventory(1) == inventory[1].toUByte()) in TestCreateUninitializedVector()
435 assert(monster.inventory(i) == (i.toUByte() + 1u).toUByte()) in TestBuilderBasics()
504 assert(scalarStuff.justU8 == 0.toUByte()) in TestScalarOptional()
506 assert(scalarStuff.defaultU8 == 42.toUByte()) in TestScalarOptional()
544 ScalarStuff.addJustU8(fbb, 6.toUByte()) in TestScalarOptional()
545 ScalarStuff.addMaybeU8(fbb, 6.toUByte()) in TestScalarOptional()
546 ScalarStuff.addDefaultU8(fbb, 6.toUByte()) in TestScalarOptional()
587 assert(scalarStuff.justU8 == 6.toUByte()) in TestScalarOptional()
588 assert(scalarStuff.maybeU8 == 6.toUByte()) in TestScalarOptional()
[all …]
/external/flatbuffers/tests/union_vector/
DMovie.kt20 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u
37 bb.get(__vector(o) + j * 1).toUByte() in charactersType()
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DFlexBuffers.kt196 public fun toUByte(): UByte = toULong().toUByte() in get() method in com.google.flatbuffers.kotlin.Reference
371 T_VECTOR_INT -> UByteArray(vec.size) { vec.getInt(it).toUByte() } in toUByteArray()
372 T_VECTOR_UINT -> UByteArray(vec.size) { vec.getUInt(it).toUByte() } in toUByteArray()
373 T_VECTOR -> UByteArray(vec.size) { vec[it].toUByte() } in toUByteArray()
374 T_VECTOR_FLOAT -> UByteArray(vec.size) { vec.getFloat(it).toInt().toUByte() } in toUByteArray()
DFlexBuffersBuilder.kt588 buffer.put(valueBlock(i).toUByte()) in writeIntegerArray()
604 1 -> buffer.put(value.toUByte()) in writeInt()
612 1 -> buffer.put(value.toUByte()) in writeInt()
DByteArray.kt51 public inline fun getUByte(ary: ByteArray, index: Int): UByte = ary[index].toUByte() in getString()
DJSON.kt664 val c = ary[i].toUByte() in toPaddedHex()
/external/flatbuffers/tests/MyGame/Example/
DMonster.kt69 bb.get(__vector(o) + j * 1).toUByte() in nameInByteBuffer()
92 return if(o != 0) bb.get(o + bb_pos).toUByte() else 8u
106 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u
190 bb.get(__vector(o) + j * 1).toUByte() in testnestedflatbuffer()
447 bb.get(__vector(o) + j * 1).toUByte() in flex()
707 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u
724 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u
741 bb.get(__vector(o) + j * 1).toUByte() in vectorOfEnums()
778 bb.get(__vector(o) + j * 1).toUByte() in testrequirednestedflatbuffer()
DTestSimpleTableWithEnum.kt22 return if(o != 0) bb.get(o + bb_pos).toUByte() else 2u
DVec3.kt27 val test2 : UByte get() = bb.get(bb_pos + 24).toUByte() in mutateX()
DTypeAliases.kt36 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u
/external/flatbuffers/tests/optional_scalars/
DScalarStuff.kt37 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u
42 return if(o != 0) bb.get(o + bb_pos).toUByte() else null
47 return if(o != 0) bb.get(o + bb_pos).toUByte() else 42u
/external/flatbuffers/tests/namespace_test/NamespaceA/
DTableInFirstNS.kt46 return if(o != 0) bb.get(o + bb_pos).toUByte() else 0u