/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/ |
TypeIdTest.java | 26 assertEquals("Ljava/lang/String;", TypeId.get(String.class).getName()); 27 assertEquals("[Ljava/lang/String;", TypeId.get(String[].class).getName()); 28 assertEquals("[[Ljava/lang/String;", TypeId.get(String[][].class).getName()); 29 assertEquals("I", TypeId.get(int.class).getName()); 30 assertEquals("[I", TypeId.get(int[].class).getName()); 31 assertEquals("[[I", TypeId.get(int[][].class).getName());
|
DexMakerTest.java | 58 private static TypeId<DexMakerTest> TEST_TYPE = TypeId.get(DexMakerTest.class); 59 private static TypeId<?> INT_ARRAY = TypeId.get(int[].class); 60 private static TypeId<boolean[]> BOOLEAN_ARRAY = TypeId.get(boolean[].class); 61 private static TypeId<long[]> LONG_ARRAY = TypeId.get(long[].class); 62 private static TypeId<Object[]> OBJECT_ARRAY = TypeId.get(Object[].class) [all...] |
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
TypeId.java | 29 * java.lang.Integer} have the same type parameter: {@code TypeId<Integer>}. 34 public final class TypeId<T> { 36 public static final TypeId<Boolean> BOOLEAN = new TypeId<>(com.android.dx.rop.type.Type.BOOLEAN); 39 public static final TypeId<Byte> BYTE = new TypeId<>(com.android.dx.rop.type.Type.BYTE); 42 public static final TypeId<Character> CHAR = new TypeId<>(com.android.dx.rop.type.Type.CHAR); 45 public static final TypeId<Double> DOUBLE = new TypeId<>(com.android.dx.rop.type.Type.DOUBLE) [all...] |
UnaryOp.java | 30 Rop rop(TypeId<?> type) { 38 Rop rop(TypeId<?> type) { 43 abstract Rop rop(TypeId<?> type);
|
Local.java | 26 final TypeId<T> type; 30 private Local(Code code, TypeId<T> type) { 35 static <T> Local<T> get(Code code, TypeId<T> type) { 67 public TypeId getType() {
|
FieldId.java | 30 final TypeId<D> declaringType; 31 final TypeId<V> type; 38 FieldId(TypeId<D> declaringType, TypeId<V> type, String name) { 49 public TypeId<D> getDeclaringType() { 53 public TypeId<V> getType() {
|
MethodId.java | 32 final TypeId<D> declaringType; 33 final TypeId<R> returnType; 41 MethodId(TypeId<D> declaringType, TypeId<R> returnType, String name, TypeList parameters) { 53 public TypeId<D> getDeclaringType() { 57 public TypeId<R> getReturnType() { 75 public List<TypeId<?>> getParameters() { 88 for (TypeId t : parameters.types) {
|
TypeList.java | 28 final TypeId<?>[] types; 31 TypeList(TypeId<?>[] types) { 42 public List<TypeId<?>> asList() {
|
Constants.java | 41 * @param value null, a boxed primitive, String, Class, or TypeId. 65 return new CstType(TypeId.get((Class<?>) value).ropType); 66 } else if (value instanceof TypeId) { 67 return new CstType(((TypeId) value).ropType);
|
DexMaker.java | 88 * <p>We start by creating a {@link TypeId} to identify the generated {@code 93 * TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;"); 103 * dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT); 129 * takes the method's return type (possibly {@link TypeId#VOID}), its name and 135 * MethodId<?, Integer> fib = fibonacci.getMethod(TypeId.INT, "fib", TypeId.INT); 147 * Local<Integer> i = code.getParameter(0, TypeId.INT); 148 * Local<Integer> constant1 = code.newLocal(TypeId.INT); 149 * Local<Integer> constant2 = code.newLocal(TypeId.INT) [all...] |
Code.java | 128 * kind. Lookup a method on a type using {@link TypeId#getMethod 129 * TypeId.getMethod()}. This is more onerous than Java language invokes, which 206 private final List<TypeId<?>> catchTypes = new ArrayList<TypeId<?>>(); 218 for (TypeId<?> parameter : method.parameters.types) { 230 public <T> Local<T> newLocal(TypeId<T> type) { 243 public <T> Local<T> getParameter(int index, TypeId<T> type) { 254 public <T> Local<T> getThis(TypeId<T> type) { 262 private <T> Local<T> coerce(Local<?> local, TypeId<T> expectedType) { 363 public void addCatchClause(TypeId<? extends Throwable> toCatch, Label catchClause) [all...] |
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/examples/ |
HelloWorldMaker.java | 22 import com.android.dx.TypeId; 36 TypeId<?> helloWorld = TypeId.get("LHelloWorld;"); 37 dexMaker.declare(helloWorld, "HelloWorld.generated", Modifier.PUBLIC, TypeId.OBJECT); 61 private static void generateHelloMethod(DexMaker dexMaker, TypeId<?> declaringType) { 63 TypeId<System> systemType = TypeId.get(System.class); 64 TypeId<PrintStream> printStreamType = TypeId.get(PrintStream.class); 67 MethodId hello = declaringType.getMethod(TypeId.VOID, "hello") [all...] |
FibonacciMaker.java | 25 import com.android.dx.TypeId; 34 TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;"); 38 dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT); 40 MethodId<?, Integer> fib = fibonacci.getMethod(TypeId.INT, "fib", TypeId.INT); 43 Local<Integer> i = code.getParameter(0, TypeId.INT); 44 Local<Integer> constant1 = code.newLocal(TypeId.INT); 45 Local<Integer> constant2 = code.newLocal(TypeId.INT); 46 Local<Integer> a = code.newLocal(TypeId.INT) [all...] |
/external/dexmaker/dexmaker/src/main/java/com/android/dx/stock/ |
ProxyBuilder.java | 26 import com.android.dx.TypeId; 270 TypeId<? extends T> generatedType = TypeId.get("L" + generatedName + ";"); 271 TypeId<T> superType = TypeId.get(baseClass); 387 TypeId<G> generatedType, Method[] methodsToProxy, TypeId<T> superclassType) { 388 TypeId<InvocationHandler> handlerType = TypeId.get(InvocationHandler.class); 389 TypeId<Method[]> methodArrayType = TypeId.get(Method[].class) [all...] |
/external/libtextclassifier/common/ |
workspace.h | 55 // Struct to simulate typeid, but without RTTI. 57 struct TypeId { 62 int TypeId<T>::type_id = GetFreshTypeId(); 74 const int id = TypeId<W>::type_id; 99 // Workspace type names, indexed as workspace_types_[typeid]. 102 // Workspace names, indexed as workspace_names_[typeid][workspace]. 121 const int id = TypeId<W>::type_id; 134 const int id = TypeId<W>::type_id; 143 const int id = TypeId<W>::type_id; 168 // The set of workspaces, indexed as workspaces_[typeid][index] [all...] |
/art/runtime/ |
dex_file-inl.h | 65 const TypeId& type_id = GetTypeId(idx); 73 const TypeId& type_id = GetTypeId(idx); 77 inline const char* DexFile::GetTypeDescriptor(const TypeId& type_id) const { 82 const DexFile::TypeId& type_id = GetTypeId(field_id.type_idx_); 91 const DexFile::TypeId& type_id = GetTypeId(method_id.class_idx_); 173 const DexFile::TypeId& return_type_id = dex_file_->GetTypeId(proto_id_->return_type_idx_); 174 const DexFile::TypeId& rhs_return_type_id = 190 const DexFile::TypeId& param_id = dex_file_->GetTypeId(params->GetTypeItem(i).type_idx_); 191 const DexFile::TypeId& rhs_param_id =
|
dex_file.h | 155 struct TypeId { 159 DISALLOW_COPY_AND_ASSIGN(TypeId); 575 const TypeId* FindTypeId(const char* string) const; 590 // Returns the TypeId at the specified index. 591 const TypeId& GetTypeId(dex::TypeIndex idx) const { 596 dex::TypeIndex GetIndexForTypeId(const TypeId& type_id) const { 610 const char* GetTypeDescriptor(const TypeId& type_id) const; 613 const TypeId* FindTypeId(dex::StringIndex string_idx) const; 634 const FieldId* FindFieldId(const DexFile::TypeId& declaring_klass, 636 const DexFile::TypeId& type) const [all...] |
/external/gemmlowp/internal/ |
allocator.h | 63 enum class TypeId : std::uint8_t { Uint8, Int8, Uint16, Int16, Uint32, Int32 }; 69 inline TypeId GetTypeId() { 79 static const TypeId Value = TypeId::id; \ 149 TypeId type_;
|
/external/llvm/lib/Transforms/IPO/ |
CrossDSOCFI.cpp | 93 if (ConstantInt *TypeId = extractNumericTypeId(Type)) 94 TypeIds.insert(TypeId->getZExtValue()); 129 for (uint64_t TypeId : TypeIds) { 130 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId);
|
/art/dexlayout/ |
dex_ir.h | 60 class TypeId; 83 virtual void Dispatch(const TypeId* type_id) = 0; 170 std::vector<std::unique_ptr<TypeId>>& TypeIds() { return type_ids_.Collection(); } 222 TypeId* GetTypeId(uint32_t index) { 254 TypeId* GetTypeIdOrNullPtr(uint16_t index) { 333 CollectionVector<TypeId> type_ids_; 496 class TypeId : public IndexedItem { 498 explicit TypeId(StringId* string_id) : string_id_(string_id) { size_ = kTypeIdItemSize; } 499 ~TypeId() OVERRIDE { } 510 DISALLOW_COPY_AND_ASSIGN(TypeId); [all...] |
dex_ir.cc | 110 std::vector<TypeId*>* type_ids, 183 std::vector<TypeId*>* type_ids, 333 const DexFile::TypeId& disk_type_id = dex_file.GetTypeId(dex::TypeIndex(i)); 334 TypeId* type_id = new TypeId(GetStringId(disk_type_id.descriptor_idx_.index_)); 335 type_ids_.AddIndexedItem(type_id, TypeIdsOffset() + i * TypeId::ItemSize(), i); 367 const TypeId* class_type = GetTypeId(disk_class_def.class_idx_.index_); 369 const TypeId* superclass = GetTypeIdOrNullPtr(disk_class_def.superclass_idx_.index_); 608 const TypeId* type_id = GetTypeIdOrNullPtr(type_index.index_); 649 const TypeId* type_id = GetTypeIdOrNullPtr(DecodeUnsignedLeb128(&handlers_data)) [all...] |
dex_visualize.cc | 123 void DumpTypeId(const dex_ir::TypeId* type_id, int class_index) { 154 for (const dex_ir::TypeId* t : *type_list->GetTypeList()) { 191 std::vector<dex_ir::TypeId*>* type_ids = fixups->TypeIds(); 192 for (dex_ir::TypeId* type_id : *type_ids) {
|
dex_verify.h | 38 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg);
|
/external/abi-compliance-checker/ |
abi-compliance-checker.pl | 971 "typeid" [all...] |
/external/protobuf/gtest/include/gtest/internal/ |
gtest-internal.h | 486 // unique IDs to fixture classes and compare them. The TypeId type is 487 // used to hold such IDs. The user should treat TypeId as an opaque 488 // type: the only operation allowed on TypeId values is to compare 490 typedef const void* TypeId; 508 TypeId GetTypeId() { 521 GTEST_API_ TypeId GetTestTypeId(); 599 TypeId fixture_class_id, [all...] |