Home
last modified time | relevance | path

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

12345678

/external/okio/okio/src/commonMain/kotlin/okio/
D-Util.kt33 val i = toInt() and 0xffff in reverseBytes()
68 internal inline infix fun Byte.shr(other: Int): Int = toInt() shr other in shr()
71 internal inline infix fun Byte.shl(other: Int): Int = toInt() shl other in shr()
74 internal inline infix fun Byte.and(other: Int): Int = toInt() and other in shr()
80 internal inline infix fun Byte.xor(other: Byte): Byte = (toInt() xor other.toInt()).toByte() in shr()
138 result[ 0] = HEX_DIGIT_CHARS[(this shr 60 and 0xf).toInt()] // ktlint-disable no-multi-spaces in toHexString()
139 result[ 1] = HEX_DIGIT_CHARS[(this shr 56 and 0xf).toInt()] // ktlint-disable no-multi-spaces in toHexString()
140 result[ 2] = HEX_DIGIT_CHARS[(this shr 52 and 0xf).toInt()] // ktlint-disable no-multi-spaces in toHexString()
141 result[ 3] = HEX_DIGIT_CHARS[(this shr 48 and 0xf).toInt()] // ktlint-disable no-multi-spaces in toHexString()
142 result[ 4] = HEX_DIGIT_CHARS[(this shr 44 and 0xf).toInt()] // ktlint-disable no-multi-spaces in toHexString()
[all …]
DUtf8.kt85 val c = this[i].toInt() in <lambda>()
100 val low = if (i + 1 < endIndex) this[i + 1].toInt() else 0 in <lambda>()
118 internal const val REPLACEMENT_CODE_POINT: Int = REPLACEMENT_CHARACTER.toInt()
157 yield((c.toInt() shr 6 or 0xc0).toByte()) // 110xxxxx in processUtf8Bytes()
158 yield((c.toInt() and 0x3f or 0x80).toByte()) // 10xxxxxx in processUtf8Bytes()
166 yield((c.toInt() shr 12 or 0xe0).toByte()) // 1110xxxx in processUtf8Bytes()
167 yield((c.toInt() shr 6 and 0x3f or 0x80).toByte()) // 10xxxxxx in processUtf8Bytes()
168 yield((c.toInt() and 0x3f or 0x80).toByte()) // 10xxxxxx in processUtf8Bytes()
188 ((c.toInt() shl 10) + this[index + 1].toInt()) + in processUtf8Bytes()
218 yield(b0.toInt()) in processUtf8CodePoints()
[all …]
D-Base64.kt43 val out = ByteArray((limit * 6L / 8L).toInt()) in decodeBase64ToArray()
56 bits = c.toInt() - 65 in decodeBase64ToArray()
61 bits = c.toInt() - 71 in decodeBase64ToArray()
66 bits = c.toInt() + 4 in decodeBase64ToArray()
122 val b0 = this[i++].toInt() in encodeBase64()
123 val b1 = this[i++].toInt() in encodeBase64()
124 val b2 = this[i++].toInt() in encodeBase64()
132 val b0 = this[i].toInt() in encodeBase64()
139 val b0 = this[i++].toInt() in encodeBase64()
140 val b1 = this[i].toInt() in encodeBase64()
/external/guava/android/guava/src/com/google/common/hash/
DMurmur3_128HashFunction.java28 import static com.google.common.primitives.UnsignedBytes.toInt;
130 k2 ^= (long) toInt(bb.get(14)) << 48; // fall through in processRemaining()
132 k2 ^= (long) toInt(bb.get(13)) << 40; // fall through in processRemaining()
134 k2 ^= (long) toInt(bb.get(12)) << 32; // fall through in processRemaining()
136 k2 ^= (long) toInt(bb.get(11)) << 24; // fall through in processRemaining()
138 k2 ^= (long) toInt(bb.get(10)) << 16; // fall through in processRemaining()
140 k2 ^= (long) toInt(bb.get(9)) << 8; // fall through in processRemaining()
142 k2 ^= (long) toInt(bb.get(8)); // fall through in processRemaining()
147 k1 ^= (long) toInt(bb.get(6)) << 48; // fall through in processRemaining()
149 k1 ^= (long) toInt(bb.get(5)) << 40; // fall through in processRemaining()
[all …]
/external/guava/guava/src/com/google/common/hash/
DMurmur3_128HashFunction.java28 import static com.google.common.primitives.UnsignedBytes.toInt;
130 k2 ^= (long) toInt(bb.get(14)) << 48; // fall through in processRemaining()
132 k2 ^= (long) toInt(bb.get(13)) << 40; // fall through in processRemaining()
134 k2 ^= (long) toInt(bb.get(12)) << 32; // fall through in processRemaining()
136 k2 ^= (long) toInt(bb.get(11)) << 24; // fall through in processRemaining()
138 k2 ^= (long) toInt(bb.get(10)) << 16; // fall through in processRemaining()
140 k2 ^= (long) toInt(bb.get(9)) << 8; // fall through in processRemaining()
142 k2 ^= (long) toInt(bb.get(8)); // fall through in processRemaining()
147 k1 ^= (long) toInt(bb.get(6)) << 48; // fall through in processRemaining()
149 k1 ^= (long) toInt(bb.get(5)) << 40; // fall through in processRemaining()
[all …]
/external/okio/samples/src/jvmMain/kotlin/okio/samples/
DSocksProxyServer.kt92 val socksVersion = fromSource.readByte().toInt() and 0xff in <lambda>()
94 val methodCount = fromSource.readByte().toInt() and 0xff in <lambda>()
97 val method: Int = fromSource.readByte().toInt() and 0xff in <lambda>()
108 val version = fromSource.readByte().toInt() and 0xff in <lambda>()
109 val command = fromSource.readByte().toInt() and 0xff in <lambda>()
110 val reserved = fromSource.readByte().toInt() and 0xff in <lambda>()
116 val addressType = fromSource.readByte().toInt() and 0xff in <lambda>()
120 val domainNameLength: Int = fromSource.readByte().toInt() and 0xff in <lambda>()
125 val port = fromSource.readShort().toInt() and 0xffff in <lambda>()
/external/lottie/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/
DLottieTest.kt312 width = 300.dp.toInt() in <lambda>()
313 height = 300.dp.toInt() in <lambda>()
321 width = 300.dp.toInt() in <lambda>()
322 height = 300.dp.toInt() in <lambda>()
330 width = 300.dp.toInt() in <lambda>()
331 height = 300.dp.toInt() in <lambda>()
339 width = 300.dp.toInt() in <lambda>()
340 height = 300.dp.toInt() in <lambda>()
348 width = 300.dp.toInt() in <lambda>()
349 height = 300.dp.toInt() in <lambda>()
[all …]
/external/okio/okio/src/jvmMain/kotlin/okio/
DGzipSource.kt105 val flags = source.buffer[3].toInt() in consumeHeader()
110 checkEqual("ID1ID2", 0x1f8b, id1id2.toInt()) in consumeHeader()
153 checkEqual("FHCRC", source.readShortLe().toInt(), crc.value.toShort().toInt()) in consumeHeader()
164 checkEqual("CRC", source.readIntLe(), crc.value.toInt()) in consumeTrailer()
165 checkEqual("ISIZE", source.readIntLe(), inflater.bytesWritten.toInt()) in consumeTrailer()
186 val pos = (s.pos + offset).toInt() in timeout()
187 val toUpdate = minOf(s.limit - pos, byteCount).toInt() in timeout()
/external/deqp/executor/
DxeTestResultParser.cpp39 static inline int toInt (const char* str) in toInt() function
543 image->width = toInt(getAttribute("Width")); in handleElementStart()
544 image->height = toInt(getAttribute("Height")); in handleElementStart()
625 config->bufferSize = toInt(getAttribute("BufferSize")); in handleElementStart()
626 config->redSize = toInt(getAttribute("RedSize")); in handleElementStart()
627 config->greenSize = toInt(getAttribute("GreenSize")); in handleElementStart()
628 config->blueSize = toInt(getAttribute("BlueSize")); in handleElementStart()
629 config->luminanceSize = toInt(getAttribute("LuminanceSize")); in handleElementStart()
630 config->alphaSize = toInt(getAttribute("AlphaSize")); in handleElementStart()
631 config->alphaMaskSize = toInt(getAttribute("AlphaMaskSize")); in handleElementStart()
[all …]
/external/guava/android/guava/src/com/google/common/primitives/
DUnsignedBytes.java73 public static int toInt(byte value) { in toInt() method in UnsignedBytes
100 if (value > toInt(MAX_VALUE)) { in saturatedCast()
120 return toInt(a) - toInt(b); in compare()
133 int min = toInt(array[0]); in min()
135 int next = toInt(array[i]); in min()
153 int max = toInt(array[0]); in max()
155 int next = toInt(array[i]); in max()
190 return Integer.toString(toInt(x), radix); in toString()
249 builder.append(toInt(array[0])); in join()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedBytes.java73 public static int toInt(byte value) { in toInt() method in UnsignedBytes
100 if (value > toInt(MAX_VALUE)) { in saturatedCast()
120 return toInt(a) - toInt(b); in compare()
133 int min = toInt(array[0]); in min()
135 int next = toInt(array[i]); in min()
153 int max = toInt(array[0]); in max()
155 int next = toInt(array[i]); in max()
190 return Integer.toString(toInt(x), radix); in toString()
249 builder.append(toInt(array[0])); in join()
/external/okio/okio/src/commonMain/kotlin/okio/internal/
DBuffer.kt256 copy.pos += offset.toInt() in commonCopyTo()
257 copy.limit = minOf(copy.pos + byteCount.toInt(), copy.limit) in commonCopyTo()
411 return s!!.data[(s.pos + pos - offset).toInt()] in commonGet()
422 val toSkip = minOf(byteCount, head.limit - head.pos).toInt() in commonClear()
447 return writeByte('0'.toInt()) in commonWriteDecimalLong()
496 val digit = (v % 10).toInt() in commonWriteDecimalLong()
513 return writeByte('0'.toInt()) in commonWriteHexadecimalUnsignedLong()
536 val width = ((x + 3) / 4).toInt() in commonWriteHexadecimalUnsignedLong()
543 data[pos] = HEX_DIGIT_BYTES[(v and 0xF).toInt()] in commonWriteHexadecimalUnsignedLong()
606 val result = ByteArray(byteCount.toInt()) in commonReadByteArray()
[all …]
/external/okio/okio/src/commonTest/kotlin/okio/
DUtf8KotlinTest.kt28 assertEncoded("20", ' '.toInt()) in <lambda>()
29 assertEncoded("7e", '~'.toInt()) in <lambda>()
93 assertCodePointDecoded("f090ee8080", REPLACEMENT_CODE_POINT, '\ue000'.toInt()) in <lambda>()
96 assertCodePointDecoded("f09061", REPLACEMENT_CODE_POINT, 'a'.toInt()) in <lambda>()
116 assertCodePointDecoded("ed9fbf", '\ud7ff'.toInt()) in <lambda>()
125 assertCodePointDecoded("ee8080", '\ue000'.toInt()) in <lambda>()
DCommonRealBufferedSinkTest.kt50 bufferedSink.writeByte('a'.toInt()) in bufferedSinkFlush()
98 bufferedSink.writeByte('a'.toInt()) in closeWithExceptionWhenWriting()
110 bufferedSink.writeByte('a'.toInt()) in closeWithExceptionWhenClosing()
123 bufferedSink.writeByte('a'.toInt()) in closeWithExceptionWhenWritingAndClosing()
137 bufferedSink.writeByte('a'.toInt()) in operationsAfterClose()
142 bufferedSink.writeByte('a'.toInt()) in operationsAfterClose()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/
DSaneFlowPlaysScrabble.kt62 .map { letterScores[it - 'a'.toInt()] } in <lambda>()
66 …private fun Map.Entry<Int, MutableLong>.letterScore(): Int = letterScores[key - 'a'.toInt()] * Int… in <lambda>()
67 value.get().toInt(), in <lambda>()
68 scrabbleAvailableLetters[key - 'a'.toInt()]) in <lambda>()
81 max(0L, entry.value.get() - scrabbleAvailableLetters[entry.key - 'a'.toInt()]) in <lambda>()
97 emit(get(i).toInt()) in <lambda>()
DSequencePlaysScrabble.kt32 .map { letterScores[it - 'a'.toInt()] } in <lambda>()
66 …private fun Map.Entry<Int, MutableLong>.letterScore(): Int = letterScores[key - 'a'.toInt()] * Int… in <lambda>()
67 value.get().toInt(), in <lambda>()
68 scrabbleAvailableLetters[key - 'a'.toInt()]) in <lambda>()
81 max(0L, entry.value.get() - scrabbleAvailableLetters[entry.key - 'a'.toInt()]) in <lambda>()
100 override fun next(): Int = get(currentIndex++).toInt() in <lambda>()
DFlowPlaysScrabbleOpt.kt40 max(0L, entry.value.get() - scrabbleAvailableLetters[entry.key - 'a'.toInt()]) in <lambda>()
58 letterScores[entry.key - 'a'.toInt()] * Integer.min( in <lambda>()
59 entry.value.get().toInt(), in <lambda>()
60 scrabbleAvailableLetters[entry.key - 'a'.toInt()] in <lambda>()
80 .map { letterScores[it.toInt() - 'a'.toInt()] } in <lambda>()
120 emit(it.toInt()) in <lambda>()
/external/flatbuffers/tests/MyGame/Example/
DAbility.kt21 fun mutateId(id: UInt) : ByteBuffer = bb.putInt(bb_pos + 0, id.toInt()) in mutateId()
23 fun mutateDistance(distance: UInt) : ByteBuffer = bb.putInt(bb_pos + 4, distance.toInt()) in mutateId()
27 builder.putInt(distance.toInt()) in mutateId()
28 builder.putInt(id.toInt()) in mutateId()
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp182 int type = ctx_item->data(peer_role_type).toInt(); in context_menu()
189 config_methods = var.toInt(); in context_menu()
194 method = (enum selected_method) var.toInt(); in context_menu()
308 int peer_type = ctx_item->data(peer_role_type).toInt(); in enter_pin()
436 int type = item->data(peer_role_type).toInt(); in add_station()
534 str.section('=', 1).toInt(0, 0); in add_p2p_group_client()
604 id = (*it).mid(pos).toInt(); in add_bss()
803 if (item->data(peer_role_type).toInt() == type) in find_addr_type()
871 if (item == NULL || item->data(peer_role_type).toInt() != in event_notify()
889 if (item && item->data(peer_role_type).toInt() == in event_notify()
[all …]
/external/apache-commons-bcel/src/examples/Mini/
DASTExpr.java199 private static String toInt(String i) { in toInt() method in ASTExpr
228 case AND: ASTFunDecl.push(buf, toInt(toBool(_body_int) + " && " + in code()
230 case OR: ASTFunDecl.push(buf, toInt(toBool(_body_int) + " || " + in code()
233 case EQ: ASTFunDecl.push(buf, toInt(_body_int + " == " + _body_int2)); in code()
235 case LEQ: ASTFunDecl.push(buf, toInt(_body_int + " <= " + _body_int2)); in code()
237 case GEQ: ASTFunDecl.push(buf, toInt(_body_int + " >= " + _body_int2)); in code()
239 case NEQ: ASTFunDecl.push(buf, toInt(_body_int + " != " + _body_int2)); in code()
241 case LT: ASTFunDecl.push(buf, toInt(_body_int + " < " + _body_int2)); in code()
243 case GT: ASTFunDecl.push(buf, toInt(_body_int + " > " + _body_int2)); in code()
/external/deqp/framework/randomshaders/
DrsgVariableValue.cpp110 inline int toInt (bool boolVal) { return boolVal ? 1 : 0; } in toInt() function
119 return CompareIntersection()(toInt(aMin), toInt(aMax), toInt(bMin), toInt(bMax)); in operator ()()
137 return CompareIsSubsetOf()(toInt(aMin), toInt(aMax), toInt(bMin), toInt(bMax)); in operator ()()
/external/dagger2/java/dagger/hilt/android/plugin/src/main/kotlin/dagger/hilt/android/plugin/util/
DSimpleAGPVersion.kt35 return SimpleAGPVersion(parts[0].toInt(), 0) in parse()
38 return SimpleAGPVersion(parts[0].toInt(), parts[1].toInt()) in parse()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DChannelLFStressTest.kt87 val index = (value / Long.SIZE_BITS).toInt() in markReceived()
88 val mask = 1L shl (value % Long.SIZE_BITS).toInt() in markReceived()
100 val index = (value / Long.SIZE_BITS).toInt() in isReceived()
101 val mask = 1L shl (value % Long.SIZE_BITS).toInt() in isReceived()
/external/guava/android/guava-tests/test/com/google/common/primitives/
DUnsignedBytesTest.java42 assertEquals(0, UnsignedBytes.toInt((byte) 0)); in testToInt()
43 assertEquals(1, UnsignedBytes.toInt((byte) 1)); in testToInt()
44 assertEquals(127, UnsignedBytes.toInt((byte) 127)); in testToInt()
45 assertEquals(128, UnsignedBytes.toInt((byte) -128)); in testToInt()
46 assertEquals(129, UnsignedBytes.toInt((byte) -127)); in testToInt()
47 assertEquals(255, UnsignedBytes.toInt((byte) -1)); in testToInt()
52 assertEquals(value, UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast()
62 assertEquals(value, UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value))); in testSaturatedCast()
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedBytesTest.java42 assertEquals(0, UnsignedBytes.toInt((byte) 0)); in testToInt()
43 assertEquals(1, UnsignedBytes.toInt((byte) 1)); in testToInt()
44 assertEquals(127, UnsignedBytes.toInt((byte) 127)); in testToInt()
45 assertEquals(128, UnsignedBytes.toInt((byte) -128)); in testToInt()
46 assertEquals(129, UnsignedBytes.toInt((byte) -127)); in testToInt()
47 assertEquals(255, UnsignedBytes.toInt((byte) -1)); in testToInt()
52 assertEquals(value, UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast()
62 assertEquals(value, UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value))); in testSaturatedCast()

12345678