Home
last modified time | relevance | path

Searched refs:asInt (Results 1 – 25 of 69) sorted by relevance

123

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/expr/
DLiteralStringValueExprTest.java43 assertThat(new IntegerLiteralExpr("0B0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
44 assertThat(new IntegerLiteralExpr("0b0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
45 assertThat(new IntegerLiteralExpr("0X0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
46 assertThat(new IntegerLiteralExpr("0x0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
47 assertThat(new IntegerLiteralExpr(0).asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
48 assertThat(new IntegerLiteralExpr(00).asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
49 assertThat(new IntegerLiteralExpr(0B0).asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
50 assertThat(new IntegerLiteralExpr(0b0).asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
51 assertThat(new IntegerLiteralExpr(0X0).asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
52 assertThat(new IntegerLiteralExpr(0x0).asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
[all …]
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java69 HashCode fromInt = HashCode.fromInt(expected.asInt); in testFromInt()
98 assertEquals(expectedInt, hashCode.asInt()); in testFromBytes_copyOccurs()
103 assertEquals(expectedInt, hashCode.asInt()); in testFromBytes_copyOccurs()
111 assertEquals(0x0000abcd, hashCode.asInt()); in testFromBytesNoCopy_noCopyOccurs()
116 assertEquals(0x0000ab00, hashCode.asInt()); in testFromBytesNoCopy_noCopyOccurs()
124 assertEquals(0x0000abcd, hashCode.asInt()); in testGetBytesInternal_noCloneOccurs()
129 assertEquals(0x0000ab00, hashCode.asInt()); in testGetBytesInternal_noCloneOccurs()
351 assertEquals(expectedHashCode.asInt, hash.asInt()); in assertExpectedHashCode()
387 final int asInt; field in HashCodeTest.ExpectedHashCode
390 ExpectedHashCode(byte[] bytes, int asInt, Long asLong, String toString) { in ExpectedHashCode() argument
[all …]
DHashTestUtils.java262 int hash1 = function.hashInt(key1).asInt(); in checkNoFunnels()
263 int hash2 = function.hashInt(key2).asInt(); in checkNoFunnels()
301 int hash1 = function.hashInt(key1).asInt(); in checkAvalanche()
302 int hash2 = function.hashInt(key2).asInt(); in checkAvalanche()
347 int hash1 = function.hashInt(key1).asInt(); in checkNo2BitCharacteristics()
348 int hash2 = function.hashInt(key2).asInt(); in checkNo2BitCharacteristics()
391 int hash1 = function.hashInt(key1).asInt(); in check2BitAvalanche()
392 int hash2 = function.hashInt(key2).asInt(); in check2BitAvalanche()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/
DArArchiveInputStream.java179 asInt(metaData, USER_ID_OFFSET, USER_ID_LEN, true), in getNextArEntry()
180 asInt(metaData, GROUP_ID_OFFSET, GROUP_ID_LEN, true), in getNextArEntry()
181 asInt(metaData, FILE_MODE_OFFSET, FILE_MODE_LEN, 8), in getNextArEntry()
212 private int asInt(final byte[] byteArray, int offset, int len) { in asInt() method in ArArchiveInputStream
213 return asInt(byteArray, offset, len, 10, false); in asInt()
216 private int asInt(final byte[] byteArray, int offset, int len, final boolean treatBlankAsZero) { in asInt() method in ArArchiveInputStream
217 return asInt(byteArray, offset, len, 10, treatBlankAsZero); in asInt()
220 private int asInt(final byte[] byteArray, int offset, int len, final int base) { in asInt() method in ArArchiveInputStream
221 return asInt(byteArray, offset, len, base, false); in asInt()
224 …private int asInt(final byte[] byteArray, int offset, int len, final int base, final boolean treat… in asInt() method in ArArchiveInputStream
[all …]
/external/skia/tests/
DPathOpsOpLoopThreadedTest.cpp17 int asInt = SkScalarRoundToInt(x); in add_point() local
18 if (SkIntToScalar(asInt) == x) { in add_point()
19 str->appendf("%d", asInt); in add_point()
24 asInt = SkScalarRoundToInt(y); in add_point()
25 if (SkIntToScalar(asInt) == y) { in add_point()
26 str->appendf("%d", asInt); in add_point()
/external/skqp/tests/
DPathOpsOpLoopThreadedTest.cpp17 int asInt = SkScalarRoundToInt(x); in add_point() local
18 if (SkIntToScalar(asInt) == x) { in add_point()
19 str->appendf("%d", asInt); in add_point()
24 asInt = SkScalarRoundToInt(y); in add_point()
25 if (SkIntToScalar(asInt) == y) { in add_point()
26 str->appendf("%d", asInt); in add_point()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DConverterTest.java33 assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asInt(resource)).isEqualTo(100); in fromCharSequence_asInt_shouldHandleSpacesInString()
45 assertThat(Converter.getConverter(ResType.COLOR).asInt(resource)).isEqualTo(-5592406); in fromColor_asInt_shouldHandleSpacesInString()
51 assertThat(Converter.getConverter(ResType.DRAWABLE).asInt(resource)).isEqualTo(-5592406); in fromDrawableValue_asInt_shouldHandleSpacesInString()
57 assertThat(Converter.getConverter(ResType.INTEGER).asInt(resource)).isEqualTo(100); in fromInt_asInt_shouldHandleSpacesInString()
/external/guava/guava/src/com/google/common/hash/
DHashCode.java53 public abstract int asInt(); in asInt() method in HashCode
145 public int asInt() { in asInt() method in HashCode.IntHashCode
167 return hash == that.asInt(); in equalsSameBits()
209 public int asInt() { in asInt() method in HashCode.LongHashCode
275 public int asInt() { in asInt() method in HashCode.BytesHashCode
372 return asInt(); in hashCode()
/external/deqp/framework/randomshaders/
DrsgVariableValue.cpp78 int aMin = a.component(ndx).getMin().asInt(); in compareValueRangesAllTrue()
79 int aMax = a.component(ndx).getMax().asInt(); in compareValueRangesAllTrue()
80 int bMin = b.component(ndx).getMin().asInt(); in compareValueRangesAllTrue()
81 int bMax = b.component(ndx).getMax().asInt(); in compareValueRangesAllTrue()
240 int aMin = a.component(ndx).getMin().asInt(); in computeIntersection()
241 int aMax = a.component(ndx).getMax().asInt(); in computeIntersection()
242 int bMin = b.component(ndx).getMin().asInt(); in computeIntersection()
243 int bMax = b.component(ndx).getMax().asInt(); in computeIntersection()
DrsgBinaryOps.cpp417 ComputeValueRange()(state.getRandom(), dst.getMin().asInt(), dst.getMax().asInt(), in BinaryVecOp()
418 a.getMin().asInt(), a.getMax().asInt(), in BinaryVecOp()
419 b.getMin().asInt(), b.getMax().asInt()); in BinaryVecOp()
454 …dst.component(elemNdx).asInt(compNdx) = EvaluateComp()(a.component(elemNdx).asInt(compNdx), b.comp… in evaluate()
683 a.getMin().asInt(), a.getMax().asInt(), in RelationalOp()
684 b.getMin().asInt(), b.getMax().asInt()); in RelationalOp()
706 dst.asBool(compNdx) = EvaluateComp()(a.asInt(compNdx), b.asInt(compNdx)); in evaluate()
982 a.getMin().asInt(), a.getMax().asInt(), in EqualityComparisonOp()
983 b.getMin().asInt(), b.getMax().asInt()); in EqualityComparisonOp()
1062 …EqualityCompare<IsEqual>::compare(a.component(elemNdx).asInt(compNdx), b.component(elemNdx).asInt(… in evaluate()
DrsgUtils.cpp87 int minVal = valueRange.component(ndx).getMin().asInt(); in computeRandomValue()
88 int maxVal = valueRange.component(ndx).getMax().asInt(); in computeRandomValue()
89 dst.component(ndx).asInt() = rnd.getInt(minVal, maxVal); in computeRandomValue()
213 valueRange.getMin().component(ndx).asInt() = minVal; in computeRandomValueRange()
214 valueRange.getMax().component(ndx).asInt() = maxVal; in computeRandomValueRange()
324 int minVal = valueRange.component(ndx).getMin().asInt(); in computeRangeLengthSum()
325 int maxVal = valueRange.component(ndx).getMax().asInt(); in computeRangeLengthSum()
DrsgVariableValue.hpp102 int asInt (void) const { DE_STATIC_ASSERT(Stride == 1); return m_value->intVal; } in asInt() function in rsg::ConstStridedValueAccess
107 …int asInt (int ndx) const { DE_ASSERT(de::inBounds(ndx, 0, Stride)); return m_value[nd… in asInt() function in rsg::ConstStridedValueAccess
135 int& asInt (void) { DE_STATIC_ASSERT(Stride == 1); return this->m_value->intVal; } in asInt() function in rsg::StridedValueAccess
140 …int& asInt (int ndx) { DE_ASSERT(de::inBounds(ndx, 0, Stride)); return this->m_value[ndx… in asInt() function in rsg::StridedValueAccess
154 StridedValueAccess& operator= (int intVal) { asInt() = intVal; return *this; } in operator =()
DrsgExpression.cpp190 valueRange.getMin().component(ndx).asInt() = minVal; in computeRandomValueRangeForInfElements()
191 valueRange.getMax().component(ndx).asInt() = maxVal; in computeRandomValueRangeForInfElements()
437 minVal = valueRange.getMin().component(0).asInt(); in IntLiteral()
438 maxVal = valueRange.getMax().component(0).asInt(); in IntLiteral()
451 access.asInt(ndx) = value; in IntLiteral()
460 int minVal = valueRange.getMin().asInt(); in getWeight()
461 int maxVal = valueRange.getMax().asInt(); in getWeight()
480 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_INT)).asInt(0)); in tokenize()
614 template<> inline int getValueAccessValue<int> (ConstValueAccess access) { return access.asInt(… in getValueAccessValue()
619 template<> inline int& getValueAccessValue<int> (ValueAccess access) { return access.asInt(); } in getValueAccessValue()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DBaseCompiledTemplate.java132 public static int asInt(String value) { in asInt() method in BaseCompiledTemplate
136 public static int asInt(int value) { in asInt() method in BaseCompiledTemplate
140 public static int asInt(boolean value) { in asInt() method in BaseCompiledTemplate
144 public static int asInt(Value value) { in asInt() method in BaseCompiledTemplate
148 public static int asInt(Data data) { in asInt() method in BaseCompiledTemplate
/external/webrtc/webrtc/base/
Dmacconversion.cc149 int asInt; in p_isCFNumberTrue() local
150 bool converted = p_convertCFNumberToInt(cfn, &asInt); in p_isCFNumberTrue()
152 if (converted && (0 != asInt)) { in p_isCFNumberTrue()
/external/deqp/modules/gles2/functional/
Des2fShaderOperatorTests.cpp170 …in1, const Vec2& in2) { DE_UNREF(in1); return (in2 + Vec2(1.0f) + Vec2((float)in0)).asInt(); } in sequenceSideEffCase2()
172 …eturn in1 + (in0 + Vec4((float)in2.x(), (float)in2.y(), (float)in2.z(), (float)in2.w())).asInt(); } in sequenceSideEffCase3()
178 …SideEffCase3(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greaterThan(ctx… in evalSequenceNoSideEffCase3()
182 …SideEffCase3(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greaterThan(ctx… in evalSequenceSideEffCase3()
666 …c2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, 1).asInt()).asFloat(); } \
667 …(ShaderEvalContext& c) { c.color.xyz() = FUNC_NAME(c.in[0].swizzle(2, 0, 1).asInt()).asFloat(); } \
668 …ec4 (ShaderEvalContext& c) { c.color = FUNC_NAME(c.in[0].swizzle(1, 2, 3, 0).asInt()).asFloat(); }
672 …ext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, 1).asInt(), c.in[1].swizzle(1, 0).asInt())…
673 …c) { c.color.xyz() = FUNC_NAME(c.in[0].swizzle(2, 0, 1).asInt(), c.in[1].swizzle(1, 2, 0).asInt()…
674 … c) { c.color = FUNC_NAME(c.in[0].swizzle(1, 2, 3, 0).asInt(), c.in[1].swizzle(3, 2, 1, 0).asInt(…
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp154 …ctor<deUint32, Size> subOne (const Vector<deUint32, Size>& v) { return (v.asInt() - 1).asUint(); }; in subOne()
161 … subVecScalar (const Vector<deUint32, Size>& v, deUint32 s) { return (v.asInt() - (int)s).asUint… in subVecScalar()
196 …in1, const Vec2& in2) { DE_UNREF(in1); return (in2 + Vec2(1.0f) + Vec2((float)in0)).asInt(); } in sequenceSideEffCase2()
198 …eturn in1 + (in0 + Vec4((float)in2.x(), (float)in2.y(), (float)in2.z(), (float)in2.w())).asInt(); } in sequenceSideEffCase3()
204 …deEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greaterThan(ctx… in evalSequenceNoSideEffCase3()
208 …eEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greaterThan(ctx… in evalSequenceSideEffCase3()
888 …c2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, 1).asInt()).asFloat(); } \
889 …(ShaderEvalContext& c) { c.color.xyz() = FUNC_NAME(c.in[0].swizzle(2, 0, 1).asInt()).asFloat(); } \
890 …ec4 (ShaderEvalContext& c) { c.color = FUNC_NAME(c.in[0].swizzle(1, 2, 3, 0).asInt()).asFloat(); }
894 …ext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, 1).asInt(), c.in[1].swizzle(1, 0).asInt())…
[all …]
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp530 LLAssert(llong((int32_t)0).asInt() == (int32_t)0);
531 LLAssert(llong((int32_t)1).asInt() == (int32_t)1);
532 LLAssert(llong((int32_t)-1).asInt() == (int32_t)-1);
533 LLAssert(llong((int32_t)0x7fffffff).asInt() == (int32_t)0x7fffffff);
534 LLAssert(llong((int32_t)0xffffffff).asInt() == (int32_t)-1);
535 LLAssert(llong((int32_t)0x80000000).asInt() == (int32_t)0x80000000);
538 LLAssert(llong((int16_t)0).asInt() == (int16_t)0);
539 LLAssert(llong((int16_t)1).asInt() == (int16_t)1);
540 LLAssert(llong((int16_t)-1).asInt() == (int16_t)-1);
541 LLAssert(llong((int16_t)0x7fff).asInt() == (int16_t)0x7fff);
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DConverter.java86 public int asInt(TypedResource typedResource) { in asInt() method in Converter
122 public int asInt(TypedResource typedResource) { in asInt() method in Converter.FromCharSequence
151 public int asInt(TypedResource typedResource) { in asInt() method in Converter.FromColor
193 public int asInt(TypedResource typedResource) { in asInt() method in Converter.FromInt
/external/deqp/modules/gles3/functional/
Des3fShaderOperatorTests.cpp171 …ctor<deUint32, Size> subOne (const Vector<deUint32, Size>& v) { return (v.asInt() - 1).asUint(); }; in subOne()
178 … subVecScalar (const Vector<deUint32, Size>& v, deUint32 s) { return (v.asInt() - (int)s).asUint… in subVecScalar()
213 …in1, const Vec2& in2) { DE_UNREF(in1); return (in2 + Vec2(1.0f) + Vec2((float)in0)).asInt(); } in sequenceSideEffCase2()
215 …eturn in1 + (in0 + Vec4((float)in2.x(), (float)in2.y(), (float)in2.z(), (float)in2.w())).asInt(); } in sequenceSideEffCase3()
221 …deEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greaterThan(ctx… in evalSequenceNoSideEffCase3()
225 …eEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greaterThan(ctx… in evalSequenceSideEffCase3()
947 …c2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, 1).asInt()).asFloat(); } \
948 …(ShaderEvalContext& c) { c.color.xyz() = FUNC_NAME(c.in[0].swizzle(2, 0, 1).asInt()).asFloat(); } \
949 …ec4 (ShaderEvalContext& c) { c.color = FUNC_NAME(c.in[0].swizzle(1, 2, 3, 0).asInt()).asFloat(); }
953 …ext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, 1).asInt(), c.in[1].swizzle(1, 0).asInt())…
[all …]
/external/perfetto/src/trace_processor/
Djson_trace_tokenizer_unittest.cc61 ASSERT_EQ(value["foo"].asInt(), 1); in TEST()
65 ASSERT_EQ(value["bar"].asInt(), 2); in TEST()
/external/jsoncpp/src/test_lib_json/
Dmain.cpp261 JSONTEST_ASSERT_EQUAL(Json::Int(0), null_.asInt()); in JSONTEST_FIXTURE()
325 JSONTEST_ASSERT_EQUAL(1, true_.asInt()); in JSONTEST_FIXTURE()
333 JSONTEST_ASSERT_EQUAL(0, false_.asInt()); in JSONTEST_FIXTURE()
383 JSONTEST_ASSERT_EQUAL(0, val.asInt()); in JSONTEST_FIXTURE()
411 JSONTEST_ASSERT_EQUAL(0, val.asInt()); in JSONTEST_FIXTURE()
439 JSONTEST_ASSERT_EQUAL(0, val.asInt()); in JSONTEST_FIXTURE()
467 JSONTEST_ASSERT_EQUAL(0, val.asInt()); in JSONTEST_FIXTURE()
495 JSONTEST_ASSERT_EQUAL(0, val.asInt()); in JSONTEST_FIXTURE()
523 JSONTEST_ASSERT_EQUAL(0, val.asInt()); in JSONTEST_FIXTURE()
550 JSONTEST_ASSERT_EQUAL((1 << 20), val.asInt()); in JSONTEST_FIXTURE()
[all …]
/external/webrtc/talk/app/webrtc/
Dandroidvideocapturer.cc153 json_value["width"].asInt(), in AndroidVideoCapturer()
154 json_value["height"].asInt(), in AndroidVideoCapturer()
155 cricket::VideoFormat::FpsToInterval(json_value["framerate"].asInt()), in AndroidVideoCapturer()
/external/jsoncpp/
DNEWS.txt24 For example, a double value may be truncated when asInt is called.
29 and calling asInt() would cause an exception. If you're writing new
102 Json::Value::asInt() and Json::Value::asUInt() still returns plain
117 Warning: Json::Value::asInt() and Json::Value::asUInt() now returns
131 int value = array[0].asInt(); // did not compile previously
/external/smali/util/src/main/java/org/jf/util/
DNumberUtils.java81 String asInt = format.format(value); in isLikelyFloat() local
97 return asFloat.length() < asInt.length(); in isLikelyFloat()

123