Home
last modified time | relevance | path

Searched refs:fromInt (Results 1 – 25 of 65) sorted by relevance

123

/external/cronet/third_party/protobuf/js/experimental/runtime/
Dint64_test.js36 const int64 = Int64.fromInt(1);
37 expect(int64.asLong()).toEqual(Long.fromInt(1));
41 const int64 = Int64.fromInt(-1);
44 expect(int64.asLong()).toEqual(Long.fromInt(-1));
48 const int64 = Int64.fromInt(1);
53 const int64 = Int64.fromInt(-1);
70 const int64 = Int64.fromInt(1);
76 const int64 = Int64.fromLong(Long.fromInt(1));
89 expect(() => Int64.fromInt(Number.MAX_SAFE_INTEGER)).toThrow();
93 expect(() => Int64.fromInt(1.5)).toThrow();
[all …]
/external/cronet/third_party/protobuf/js/experimental/runtime/kernel/
Dkernel_test.js897 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(0));
902 expect(accessor.getFixed64WithDefault(1, Int64.fromInt(2)))
903 .toEqual(Int64.fromInt(2));
909 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(1));
916 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(2));
933 Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
936 expect(Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
937 .toEqual(Int64.fromInt(1));
945 accessor.setFixed64(1, Int64.fromInt(2));
946 expect(accessor.getFixed64WithDefault(1)).toEqual(Int64.fromInt(2));
[all …]
Dsint64_test_pairs.js20 longValue: Int64.fromInt(0),
25 longValue: Int64.fromInt(1),
30 longValue: Int64.fromInt(-1),
35 longValue: Int64.fromInt(2),
40 longValue: Int64.fromInt(-2),
Dint64_test_pairs.js20 longValue: Int64.fromInt(0),
25 longValue: Int64.fromInt(1),
30 longValue: Int64.fromInt(-1),
49 longValue: Int64.fromInt(-1),
Dpacked_int64_test_pairs.js23 int64Values: [Int64.fromInt(1)],
28 int64Values: [Int64.fromInt(1), Int64.fromInt(0)],
Dpacked_sfixed64_test_pairs.js23 sfixed64Values: [Int64.fromInt(1)],
29 sfixed64Values: [Int64.fromInt(1), Int64.fromInt(0)],
Dpacked_sint64_test_pairs.js23 sint64Values: [Int64.fromInt(-1)],
28 sint64Values: [Int64.fromInt(-1), Int64.fromInt(0)],
Dsfixed64_test_pairs.js20 longValue: Int64.fromInt(0),
26 longValue: Int64.fromInt(1),
32 longValue: Int64.fromInt(-1),
/external/libmonet/blend/
DBlend.java40 Hct fromHct = Hct.fromInt(designColor); in harmonize()
41 Hct toHct = Hct.fromInt(sourceColor); in harmonize()
62 Cam16 ucsCam = Cam16.fromInt(ucs); in hctHue()
63 Cam16 fromCam = Cam16.fromInt(from); in hctHue()
77 Cam16 fromCam = Cam16.fromInt(from); in cam16Ucs()
78 Cam16 toCam = Cam16.fromInt(to); in cam16Ucs()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java80 HashCode fromInt = HashCode.fromInt(expected.asInt); in testFromInt() local
81 assertExpectedHashCode(expected, fromInt); in testFromInt()
147 assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong()); in testPadToLong()
148 assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong()); in testPadToLong()
190 HashCode hashCode42 = HashCode.fromInt(42); in testObjectHashCode()
272 HashCode.fromInt(42).writeBytesTo(dest, 0, 4); in testIntWriteBytesTo()
273 assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest)); in testIntWriteBytesTo()
DHashingTest.java232 checkSameResult(HashCode.fromInt(0x99999999), 0x0000000099999999L); in testConsistentHash_ofHashCode()
273 Hashing.combineOrdered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineOrdered_differentBitLengths()
280 HashCode hash31 = HashCode.fromInt(31); in testCombineOrdered()
281 HashCode hash32 = HashCode.fromInt(32); in testCombineOrdered()
318 Hashing.combineUnordered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineUnordered_differentBitLengths()
325 HashCode hash31 = HashCode.fromInt(31); in testCombineUnordered()
326 HashCode hash32 = HashCode.fromInt(32); in testCombineUnordered()
328 assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); in testCombineUnordered()
330 HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32))); in testCombineUnordered()
DPackageSanityTests.java31 setDefault(HashCode.class, HashCode.fromInt(1)); in PackageSanityTests()
/external/guava/android/guava-tests/test/com/google/common/hash/
DHashCodeTest.java80 HashCode fromInt = HashCode.fromInt(expected.asInt); in testFromInt() local
81 assertExpectedHashCode(expected, fromInt); in testFromInt()
147 assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong()); in testPadToLong()
148 assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong()); in testPadToLong()
190 HashCode hashCode42 = HashCode.fromInt(42); in testObjectHashCode()
272 HashCode.fromInt(42).writeBytesTo(dest, 0, 4); in testIntWriteBytesTo()
273 assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest)); in testIntWriteBytesTo()
DHashingTest.java232 checkSameResult(HashCode.fromInt(0x99999999), 0x0000000099999999L); in testConsistentHash_ofHashCode()
273 Hashing.combineOrdered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineOrdered_differentBitLengths()
280 HashCode hash31 = HashCode.fromInt(31); in testCombineOrdered()
281 HashCode hash32 = HashCode.fromInt(32); in testCombineOrdered()
318 Hashing.combineUnordered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineUnordered_differentBitLengths()
325 HashCode hash31 = HashCode.fromInt(31); in testCombineUnordered()
326 HashCode hash32 = HashCode.fromInt(32); in testCombineUnordered()
328 assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); in testCombineUnordered()
330 HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32))); in testCombineUnordered()
DPackageSanityTests.java31 setDefault(HashCode.class, HashCode.fromInt(1)); in PackageSanityTests()
/external/flatbuffers/dart/lib/src/
Dtypes.dart111 static ValueType fromInt(int value) {
155 return ValueTypeUtils.fromInt(
159 return ValueTypeUtils.fromInt(
163 return ValueTypeUtils.fromInt(
167 return ValueTypeUtils.fromInt(
174 return ValueTypeUtils.fromInt(
179 return ValueTypeUtils.fromInt(
/external/libmonet/hct/
DHct.java66 public static Hct fromInt(int argb) { in fromInt() method in Hct
135 Cam16 cam16 = Cam16.fromInt(toInt()); in inViewingConditions()
152 Cam16 cam = Cam16.fromInt(argb); in setInternalState()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DProfileTest.java67 assertThat(Profile.fromInt(identifier.asInt())).isEqualTo(identifier); in fromInt_intFromCurrentProfile_equalsCurrentProfile()
74 assertThat(Profile.fromInt(identifier.asInt())).isEqualTo(identifier); in fromInt_intFromOtherProfile_equalsOtherProfile()
/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DFakeConnectedAppsUtils.java24 private static final Profile CURRENT_PROFILE_IDENTIFIER = Profile.fromInt(0);
25 private static final Profile OTHER_PROFILE_IDENTIFIER = Profile.fromInt(1);
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/
DConnectedAppsUtilsImpl.java26 private static final Profile CURRENT_PROFILE_IDENTIFIER = Profile.fromInt(0);
27 private static final Profile OTHER_PROFILE_IDENTIFIER = Profile.fromInt(1);
/external/libmonet/palettes/
DTonalPalette.java38 public static TonalPalette fromInt(int argb) { in fromInt() method in TonalPalette
39 return fromHct(Hct.fromInt(argb)); in fromInt()
/external/pigweed/pw_tokenizer/ts/
Dprintf_decoder.ts88 result = result.or((Long.fromInt(byte, unsigned).and(0x7f)).shiftLeft(shift));
108 num = num.and((Long.fromInt(1).shiftLeft(bits)).add(-1));
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/internal/
DCrossProfileCallbackMultiMergerTest.java52 private final Profile profile0 = Profile.fromInt(0);
53 private final Profile profile1 = Profile.fromInt(1);
54 private final Profile profile2 = Profile.fromInt(2);
/external/libmonet/quantize/
DPointProvider.java22 public double[] fromInt(int argb); in fromInt() method
/external/auto/factory/src/test/resources/good/
DMixedDepsImplementingInterfaces.java32 MixedDepsImplementingInterfaces fromInt(int i); in fromInt() method

123