Home
last modified time | relevance | path

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

123

/external/guava/guava/src/com/google/common/hash/
DMurmur3_128HashFunction.java28 import static com.google.common.primitives.UnsignedBytes.toInt;
120 k2 ^= (long) toInt(bb.get(14)) << 48; // fall through in processRemaining()
122 k2 ^= (long) toInt(bb.get(13)) << 40; // fall through in processRemaining()
124 k2 ^= (long) toInt(bb.get(12)) << 32; // fall through in processRemaining()
126 k2 ^= (long) toInt(bb.get(11)) << 24; // fall through in processRemaining()
128 k2 ^= (long) toInt(bb.get(10)) << 16; // fall through in processRemaining()
130 k2 ^= (long) toInt(bb.get(9)) << 8; // fall through in processRemaining()
132 k2 ^= (long) toInt(bb.get(8)); // fall through in processRemaining()
137 k1 ^= (long) toInt(bb.get(6)) << 48; // fall through in processRemaining()
139 k1 ^= (long) toInt(bb.get(5)) << 40; // fall through in processRemaining()
[all …]
DMurmur3_32HashFunction.java28 import static com.google.common.primitives.UnsignedBytes.toInt;
171 k1 ^= toInt(bb.get()) << i; in processRemaining()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedBytes.java71 public static int toInt(byte value) { in toInt() method in UnsignedBytes
102 if (value > toInt(MAX_VALUE)) { in saturatedCast()
123 return toInt(a) - toInt(b); in compare()
136 int min = toInt(array[0]); in min()
138 int next = toInt(array[i]); in min()
156 int max = toInt(array[0]); in max()
158 int next = toInt(array[i]); in max()
191 return Integer.toString(toInt(x), radix); in toString()
248 builder.append(toInt(array[0])); in join()
/external/deqp/executor/
DxeTestResultParser.cpp39 static inline int toInt (const char* str) in toInt() function
531 image->width = toInt(getAttribute("Width")); in handleElementStart()
532 image->height = toInt(getAttribute("Height")); in handleElementStart()
613 config->bufferSize = toInt(getAttribute("BufferSize")); in handleElementStart()
614 config->redSize = toInt(getAttribute("RedSize")); in handleElementStart()
615 config->greenSize = toInt(getAttribute("GreenSize")); in handleElementStart()
616 config->blueSize = toInt(getAttribute("BlueSize")); in handleElementStart()
617 config->luminanceSize = toInt(getAttribute("LuminanceSize")); in handleElementStart()
618 config->alphaSize = toInt(getAttribute("AlphaSize")); in handleElementStart()
619 config->alphaMaskSize = toInt(getAttribute("AlphaMaskSize")); in handleElementStart()
[all …]
/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()
532 str.section('=', 1).toInt(0, 0); in add_p2p_group_client()
602 id = (*it).mid(pos).toInt(); in add_bss()
801 if (item->data(peer_role_type).toInt() == type) in find_addr_type()
869 if (item == NULL || item->data(peer_role_type).toInt() != in event_notify()
887 if (item && item->data(peer_role_type).toInt() == in event_notify()
[all …]
Dsignalbar.cpp38 if (index.data().toInt() > 0) in paint()
39 signal = 0 - (256 - index.data().toInt()); in paint()
41 signal = index.data().toInt(); in paint()
Dscanresultsitem.cpp15 return text(sortCol).toInt() < other.text(sortCol).toInt(); in operator <()
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedBytesTest.java44 assertEquals(0, UnsignedBytes.toInt((byte) 0)); in testToInt()
45 assertEquals(1, UnsignedBytes.toInt((byte) 1)); in testToInt()
46 assertEquals(127, UnsignedBytes.toInt((byte) 127)); in testToInt()
47 assertEquals(128, UnsignedBytes.toInt((byte) -128)); in testToInt()
48 assertEquals(129, UnsignedBytes.toInt((byte) -127)); in testToInt()
49 assertEquals(255, UnsignedBytes.toInt((byte) -1)); in testToInt()
55 UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast()
66 UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value))); in testSaturatedCast()
/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/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/desugar/test/java/com/google/devtools/build/android/desugar/testdata/
DClassCallingRequireNonNull.java23 return toInt(s::length); in getStringLengthWithMethodReference()
26 public static int toInt(IntSupplier function) { in toInt() method in ClassCallingRequireNonNull
31 return toInt(() -> Objects.requireNonNull(s).length()); in getStringLengthWithLambdaAndExplicitCallToRequireNonNull()
DConstructorReference.java35 public List<Integer> toInt() { in toInt() method in ConstructorReference
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DDesugarFunctionalTest.java230 assertThat(initRefUse.toInt()).containsExactly(1, 2, 42); in testConstructorReference()
237 assertThat(initRefUse.toInt()).containsExactly(17); in testPrivateConstructorReference()
280 assertThat(ConcreteFunction.toInt().apply("123456789")).isEqualTo(123456789); in testLambdaWithInheritedBridgeMethods()
281 assertThat(ConcreteFunction.parseAll(ImmutableList.of("5", "17"), ConcreteFunction.toInt())) in testLambdaWithInheritedBridgeMethods()
284 assertThat(ConcreteFunction.toInt().getClass().getDeclaredMethods()) in testLambdaWithInheritedBridgeMethods()
288 ConcreteFunction.toInt().getClass().getDeclaredField("DO_NOT_COPY_INTO_LAMBDA_CLASSES"); in testLambdaWithInheritedBridgeMethods()
/external/deqp/modules/egl/
DteglInfoTests.cpp46 static int toInt (std::string str) in toInt() function
110 const int stringMajor = toInt(versionTokens[0]); in validateString()
111 const int stringMinor = toInt(versionTokens[1]); in validateString()
/external/v8/tools/clang/rewrite_to_chrome_style/tests/
Dmacros-original.cc11 inline long long toInt(argumentType* argumentName) { \
27 long long asInt = toInt(basePtr); in F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DSyntheticCountsUtils.cpp66 uint64_t AdditionalCount = RelFreq.toInt<uint64_t>(); in propagateFromSCC()
83 AddCount(Callee, RelFreq.toInt<uint64_t>()); in propagateFromSCC()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResourceString.java160 int length = UnsignedBytes.toInt(buffer.get(offset)); in decodeLengthUTF8()
162 length = ((length & 0x7F) << 8) | UnsignedBytes.toInt(buffer.get(offset + 1)); in decodeLengthUTF8()
/external/clang/test/SemaObjCXX/
Dobjc-container-subscripting.mm67 ConvertibleTo<int> toInt,
77 return array[toInt];
84 ConvertibleTo<int> toInt,
/external/deqp/modules/gles2/scripts/
Dgenutil.py116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] function
121 def toIVec4(lst): return [v.toInt().toVec4() for v in lst]
122 def toIVec3(lst): return [v.toInt().toVec3() for v in lst]
123 def toIVec2(lst): return [v.toInt().toVec2() for v in lst]
234 def toInt(self): return Scalar(int(self.x)) member in Scalar
348 def toInt(self): return Vec2(int(self.x), int(self.y)) member in Vec2
434 def toInt(self): return Vec3(int(self.x), int(self.y), int(self.z)) member in Vec3
527 def toInt(self): return Vec4(int(self.x), int(self.y), int(self.z), int(self.w)) member in Vec4
Dgen-conversions.py90 res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toInt().getScalars() for x in comps])))
296 genConversionCases([inFloat, inInt, inBool], [toFloat, toInt, toBool])))
304 … inVec3, inVec4, inIVec2, inIVec3, inIVec4, inBVec2, inBVec3, inBVec4], [toFloat, toInt, toBool])))
/external/u-boot/scripts/kconfig/
Dqconf.cc75 result.push_back((*it).toInt()); in readSizes()
340 optMode = (enum optionMode)configSettings->value("/optionMode", 0).toInt(); in ConfigList()
1292 width = configSettings->value("/window width", parent->width() / 2).toInt(); in ConfigSearchWindow()
1293 height = configSettings->value("/window height", parent->height() / 2).toInt(); in ConfigSearchWindow()
1298 move(x.toInt(), y.toInt()); in ConfigSearchWindow()
1359 width = configSettings->value("/window width", d->width() - 64).toInt(); in ConfigMainWindow()
1360 height = configSettings->value("/window height", d->height() - 64).toInt(); in ConfigMainWindow()
1365 move(x.toInt(), y.toInt()); in ConfigMainWindow()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterUtility.java45 static int toInt(char msc, char lsc) in toInt() method in UCharacterUtility
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUCharacterUtility.java46 static int toInt(char msc, char lsc) in toInt() method in UCharacterUtility
/external/deqp/modules/gles31/scripts/
Dgenutil.py116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] function
122 def toIVec4(lst): return [v.toInt().toVec4() for v in lst]
123 def toIVec3(lst): return [v.toInt().toVec3() for v in lst]
124 def toIVec2(lst): return [v.toInt().toVec2() for v in lst]
256 def toInt(self): return Scalar(int(self.x)) member in Scalar
417 def toInt(self): return Vec2(int(self.x), int(self.y)) member in Vec2
528 def toInt(self): return Vec3(int(self.x), int(self.y), int(self.z)) member in Vec3
648 def toInt(self): return Vec4(int(self.x), int(self.y), int(self.z), int(self.w)) member in Vec4
/external/deqp/modules/gles3/scripts/
Dgenutil.py116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] function
122 def toIVec4(lst): return [v.toInt().toVec4() for v in lst]
123 def toIVec3(lst): return [v.toInt().toVec3() for v in lst]
124 def toIVec2(lst): return [v.toInt().toVec2() for v in lst]
256 def toInt(self): return Scalar(int(self.x)) member in Scalar
415 def toInt(self): return Vec2(int(self.x), int(self.y)) member in Vec2
526 def toInt(self): return Vec3(int(self.x), int(self.y), int(self.z)) member in Vec3
646 def toInt(self): return Vec4(int(self.x), int(self.y), int(self.z), int(self.w)) member in Vec4

123