Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 14 of 14) sorted by relevance

/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DUtilsTest.java27 import static com.android.libcore.timezone.tzlookup.Utils.parseUtcOffsetToMillis;
28 import static com.android.libcore.timezone.tzlookup.Utils.toUtcOffsetString;
43 assertEquals(set("Foo"), Utils.subtract(a, b)); in subtract()
44 assertEquals(set("Baz"), Utils.subtract(b, a)); in subtract()
45 assertEquals(a, Utils.subtract(a, empty)); in subtract()
46 assertEquals(empty, Utils.subtract(empty, a)); in subtract()
51 assertEquals(list("ONE", "TWO", "THREE"), Utils.toUpperCase(list("one", "Two", "THREE"))); in toUpperCase()
52 assertEquals(list(), Utils.toUpperCase(list())); in toUpperCase()
57 assertTrue(Utils.allLowerCaseAscii(list("one", "a", "z"))); in allLowerCaseAscii()
58 assertFalse(Utils.allLowerCaseAscii(list("one", "a", "Z"))); in allLowerCaseAscii()
[all …]
/system/extras/verity/
DVeritySigner.java42 byte[] content = Utils.read(args[0]); in main()
45 X509Certificate cert = Utils.loadPEMCertificate(args[1]); in main()
48 byte[] signature = Utils.read(args[2]); in main()
51 if (Utils.verify(publicKey, content, signature, in main()
52 Utils.getSignatureAlgorithmIdentifier(publicKey))) { in main()
64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1])); in main()
65 byte[] signature = Utils.sign(privateKey, content); in main()
66 Utils.write(signature, args[2]); in main()
DBootSignature.java177 return Utils.sign(key, signable); in sign()
186 return Utils.verify(publicKey, signable, signature.getOctets(), in verify()
258 byte[] image = Utils.read(imagePath); in doSignature()
272 X509Certificate cert = Utils.loadPEMCertificate(certPath); in doSignature()
275 PrivateKey key = Utils.loadDERPrivateKeyFromFile(keyPath); in doSignature()
277 Utils.getSignatureAlgorithmIdentifier(key)); in doSignature()
285 Utils.write(image_with_metadata, outPath); in doSignature()
289 byte[] image = Utils.read(imagePath); in verifySignature()
301 bootsig.setCertificate(Utils.loadPEMCertificate(certPath)); in verifySignature()
DAndroid.bp19 "Utils.java",
31 "Utils.java",
DUtils.java60 public class Utils { class
/system/tools/xsdc/src/com/android/xsdc/cpp/
DCppCodeGenerator.java58 String name = Utils.toClassName(type.getName()); in CppCodeGenerator()
72 String name = Utils.toClassName(element.getName()); in CppCodeGenerator()
141 String name = Utils.toClassName(type.getName()); in print()
146 String name = Utils.toClassName(type.getName()); in print()
154 String name = Utils.toClassName(element.getName()); in print()
182 headerFile.printf("%s,\n", Utils.toEnumName(value)); in printEnum()
184 Utils.toEnumName(value)); in printEnum()
208 String name = Utils.toClassName(type.getName()); in printPrototype()
215 String name = Utils.toClassName(element.getName()); in printPrototype()
251 String innerName = Utils.toClassName(getElementName(element)); in printClass()
[all …]
DUtils.java22 class Utils { class
/system/tools/xsdc/src/com/android/xsdc/java/
DJavaCodeGenerator.java54 String name = Utils.toClassName(type.getName()); in JavaCodeGenerator()
65 String name = Utils.toClassName(element.getName()); in JavaCodeGenerator()
88 String name = Utils.toClassName(type.getName()); in print()
96 String name = Utils.toClassName(type.getName()); in print()
107 String name = Utils.toClassName(element.getName()); in print()
141 out.printf("\n%s(\"%s\"),", Utils.toEnumName(value), tag.getValue()); in printEnumClass()
197 String innerName = Utils.toClassName(getElementName(element)); in printClass()
228 typeName, Utils.toVariableName(getElementName(elementValue))); in printClass()
234 type.getNullableName(), Utils.toVariableName(attribute.getName())); in printClass()
245 printGetterAndSetter(out, type, Utils.toVariableName(getElementName(elementValue)), in printClass()
[all …]
DUtils.java22 class Utils { class
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DTzLookupGenerator.java127 if (!Utils.allLowerCaseAscii(countriesInIsos)) { in execute()
132 if (!Utils.allUnique(countriesInIsos)) { in execute()
139 List<String> upperCaseCountriesInIsos = Utils.toUpperCase(countriesInIsos); in execute()
144 + Utils.subtract(zoneTabCountryIsos, timezonesCountryIsos) in execute()
147 + Utils.subtract(timezonesCountryIsos, zoneTabCountryIsos) in execute()
304 if (!Utils.allUnique(countryTimeZoneIds)) { in processCountry()
351 if (!Utils.allUnique(zoneTabCountryTimeZoneIds)) { in processCountry()
451 if (!Utils.setEquals(zoneTabCountryTimeZoneIds, expectedIanaTimeZoneIds)) { in validateCountryZonesTzIdsAgainstIana()
562 utcOffsetMillis = Utils.parseUtcOffsetToMillis(utcOffsetString); in validateNonDstOffset()
588 + timeZoneIdIn + " is " + Utils.toUtcOffsetString(actualOffsetMillis) in validateNonDstOffset()
[all …]
DUtils.java36 final class Utils { class
44 private Utils() {} in Utils() method in Utils
/system/bt/utils/
DAndroid.bp1 // Utils static library for target
/system/vold/
DAndroid.bp130 "Utils.cpp",
242 srcs: ["vold_prepare_subdirs.cpp", "Utils.cpp"],
/system/core/libunwindstack/
DAndroid.bp460 "benchmarks/Utils.cpp",