Home
last modified time | relevance | path

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

12

/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.java223 checkSameResult(HashCode.fromInt(0x99999999), 0x0000000099999999L); in testConsistentHash_ofHashCode()
264 Hashing.combineOrdered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineOrdered_differentBitLengths()
271 HashCode hash31 = HashCode.fromInt(31); in testCombineOrdered()
272 HashCode hash32 = HashCode.fromInt(32); in testCombineOrdered()
309 Hashing.combineUnordered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineUnordered_differentBitLengths()
316 HashCode hash31 = HashCode.fromInt(31); in testCombineUnordered()
317 HashCode hash32 = HashCode.fromInt(32); in testCombineUnordered()
319 assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); in testCombineUnordered()
321 HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32))); in testCombineUnordered()
DPackageSanityTests.java31 setDefault(HashCode.class, HashCode.fromInt(1)); in PackageSanityTests()
DMurmur3Hash32Test.java98 assertEquals(HashCode.fromInt(expected), actual); in assertHash()
/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.java223 checkSameResult(HashCode.fromInt(0x99999999), 0x0000000099999999L); in testConsistentHash_ofHashCode()
264 Hashing.combineOrdered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineOrdered_differentBitLengths()
271 HashCode hash31 = HashCode.fromInt(31); in testCombineOrdered()
272 HashCode hash32 = HashCode.fromInt(32); in testCombineOrdered()
309 Hashing.combineUnordered(ImmutableList.of(HashCode.fromInt(32), HashCode.fromLong(32L))); in testCombineUnordered_differentBitLengths()
316 HashCode hash31 = HashCode.fromInt(31); in testCombineUnordered()
317 HashCode hash32 = HashCode.fromInt(32); in testCombineUnordered()
319 assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); in testCombineUnordered()
321 HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32))); in testCombineUnordered()
DPackageSanityTests.java31 setDefault(HashCode.class, HashCode.fromInt(1)); in PackageSanityTests()
DMurmur3Hash32Test.java98 assertEquals(HashCode.fromInt(expected), actual); in assertHash()
/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);
DProfile.java26 public static Profile fromInt(int legacyProfileIdentifier) { in fromInt() method in Profile
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/internal/
DCrossProfileCallbackMultiMergerTest.java45 private final Profile profile0 = Profile.fromInt(0);
46 private final Profile profile1 = Profile.fromInt(1);
47 private final Profile profile2 = Profile.fromInt(2);
/external/auto/factory/src/test/resources/good/
DMixedDepsImplementingInterfaces.java32 MixedDepsImplementingInterfaces fromInt(int i); in fromInt() method
/external/guava/guava/src/com/google/common/hash/
DCrc32cHashFunction.java125 return HashCode.fromInt(crc); in hash()
DChecksumHashFunction.java85 return HashCode.fromInt((int) value); in hash()
DHashCode.java116 public static HashCode fromInt(int hash) { in fromInt() method in HashCode
DMurmur3_32HashFunction.java256 return HashCode.fromInt(h1); in fmix()
/external/guava/android/guava/src/com/google/common/hash/
DCrc32cHashFunction.java125 return HashCode.fromInt(crc); in hash()
DChecksumHashFunction.java85 return HashCode.fromInt((int) value); in hash()
DHashCode.java116 public static HashCode fromInt(int hash) { in fromInt() method in HashCode
DMurmur3_32HashFunction.java256 return HashCode.fromInt(h1); in fmix()
/external/auto/factory/src/test/resources/expected/
DMixedDepsImplementingInterfacesFactory.java46 @Override public MixedDepsImplementingInterfaces fromInt(int i) { in fromInt() method in MixedDepsImplementingInterfacesFactory
/external/swiftshader/third_party/subzero/src/
DIceRegAlloc.cpp342 RegAliases[Reg] = &Target->getAliasesForRegister(RegNumT::fromInt(Reg)); in init()
546 Iter.PreferReg = RegNumT::fromInt(SrcReg); in findRegisterPreference()
773 Iter.Cur->setRegNumTmp(RegNumT::fromInt(MinWeightIndex)); in handleNoFreeRegisters()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager10.java702 assetmanager.Open(asset_path_utf8, Asset.AccessMode.fromInt(access_mode)); in nativeOpenAsset()
755 Asset.AccessMode.fromInt(access_mode)); in nativeOpenNonAsset()
758 Asset.AccessMode.fromInt(access_mode)); in nativeOpenNonAsset()

12