1# Copyright 2023 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# List generated via: unzip android.jar | grep java/lang | grep -v '$' 6_NAMES = { 7 'AbstractMethodError', 8 'AbstractStringBuilder', 9 'Appendable', 10 'ArithmeticException', 11 'ArrayIndexOutOfBoundsException', 12 'ArrayStoreException', 13 'AssertionError', 14 'AutoCloseable', 15 'Boolean', 16 'Byte', 17 'Character', 18 'CharSequence', 19 'ClassCastException', 20 'ClassCircularityError', 21 'Class', 22 'ClassFormatError', 23 'ClassLoader', 24 'ClassNotFoundException', 25 'Cloneable', 26 'CloneNotSupportedException', 27 'Comparable', 28 'Compiler', 29 'Deprecated', 30 'Double', 31 'Enum', 32 'EnumConstantNotPresentException', 33 'Error', 34 'Exception', 35 'ExceptionInInitializerError', 36 'Float', 37 'IllegalAccessError', 38 'IllegalAccessException', 39 'IllegalArgumentException', 40 'IllegalMonitorStateException', 41 'IllegalStateException', 42 'IncompatibleClassChangeError', 43 'IndexOutOfBoundsException', 44 'InheritableThreadLocal', 45 'InstantiationError', 46 'InstantiationException', 47 'Integer', 48 'InternalError', 49 'InterruptedException', 50 'Iterable', 51 'LinkageError', 52 'Long', 53 'Math', 54 'NegativeArraySizeException', 55 'NoClassDefFoundError', 56 'NoSuchFieldError', 57 'NoSuchFieldException', 58 'NoSuchMethodError', 59 'NoSuchMethodException', 60 'NullPointerException', 61 'Number', 62 'NumberFormatException', 63 'Object', 64 'OutOfMemoryError', 65 'Override', 66 'Package', 67 'ProcessBuilder', 68 'Process', 69 'Readable', 70 'ReflectiveOperationException', 71 'Runnable', 72 'Runtime', 73 'RuntimeException', 74 'RuntimePermission', 75 'SafeVarargs', 76 'SecurityException', 77 'SecurityManager', 78 'Short', 79 'StackOverflowError', 80 'StackTraceElement', 81 'StrictMath', 82 'StringBuffer', 83 'StringBuilder', 84 'String', 85 'StringIndexOutOfBoundsException', 86 'SuppressWarnings', 87 'System', 88 'Thread', 89 'ThreadDeath', 90 'ThreadGroup', 91 'ThreadLocal', 92 'Throwable', 93 'TypeNotPresentException', 94 'UnknownError', 95 'UnsatisfiedLinkError', 96 'UnsupportedClassVersionError', 97 'UnsupportedOperationException', 98 'VerifyError', 99 'VirtualMachineError', 100 'Void', 101} 102 103 104def contains(unqualified_type_name): 105 return unqualified_type_name in _NAMES 106