/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
D | TypeId.java | 34 public final class TypeId<T> { class 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); 48 public static final TypeId<Float> FLOAT = new TypeId<>(com.android.dx.rop.type.Type.FLOAT); 51 public static final TypeId<Integer> INT = new TypeId<>(com.android.dx.rop.type.Type.INT); 54 public static final TypeId<Long> LONG = new TypeId<>(com.android.dx.rop.type.Type.LONG); 57 public static final TypeId<Short> SHORT = new TypeId<>(com.android.dx.rop.type.Type.SHORT); 60 public static final TypeId<Void> VOID = new TypeId<>(com.android.dx.rop.type.Type.VOID); [all …]
|
D | MethodId.java | 32 final TypeId<D> declaringType; 33 final TypeId<R> returnType; 41 MethodId(TypeId<D> declaringType, TypeId<R> returnType, String name, TypeList parameters) { in MethodId() 53 public TypeId<D> getDeclaringType() { in getDeclaringType() 57 public TypeId<R> getReturnType() { in getReturnType() 83 public List<TypeId<?>> getParameters() { in getParameters() 96 for (TypeId t : parameters.types) { in descriptor()
|
D | FieldId.java | 30 final TypeId<D> declaringType; 31 final TypeId<V> type; 38 FieldId(TypeId<D> declaringType, TypeId<V> type, String name) { in FieldId() 49 public TypeId<D> getDeclaringType() { in getDeclaringType() 53 public TypeId<V> getType() { in getType()
|
D | AnnotationId.java | 70 private final TypeId<D> declaringType; 71 private final TypeId<V> type; 77 private AnnotationId(TypeId<D> declaringType, TypeId<V> type, ElementType annotatedElement) { in AnnotationId() 92 public static <D, V> AnnotationId<D, V> get(TypeId<D> declaringType, TypeId<V> type, in get() 244 CstString descriptor = new CstString(TypeId.get(clazz).getName()); in toConstant() 250 } else if (value instanceof TypeId) { in toConstant()
|
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/ |
D | DexMakerTest.java | 69 private static TypeId<DexMakerTest> TEST_TYPE = TypeId.get(DexMakerTest.class); 70 private static TypeId<?> INT_ARRAY = TypeId.get(int[].class); 71 private static TypeId<boolean[]> BOOLEAN_ARRAY = TypeId.get(boolean[].class); 72 private static TypeId<long[]> LONG_ARRAY = TypeId.get(long[].class); 73 private static TypeId<Object[]> OBJECT_ARRAY = TypeId.get(Object[].class); 74 private static TypeId<long[][]> LONG_2D_ARRAY = TypeId.get(long[][].class); 75 private static TypeId<?> GENERATED = TypeId.get("LGenerated;"); 76 private static TypeId<Callable> CALLABLE = TypeId.get(Callable.class); 77 private static MethodId<Callable, Object> CALL = CALLABLE.getMethod(TypeId.OBJECT, "call"); 90 dexMaker.declare(GENERATED, "Generated.java", PUBLIC, TypeId.OBJECT); in reset() [all …]
|
D | TypeIdTest.java | 26 assertEquals("Ljava/lang/String;", TypeId.get(String.class).getName()); in testGetType() 27 assertEquals("[Ljava/lang/String;", TypeId.get(String[].class).getName()); in testGetType() 28 assertEquals("[[Ljava/lang/String;", TypeId.get(String[][].class).getName()); in testGetType() 29 assertEquals("I", TypeId.get(int.class).getName()); in testGetType() 30 assertEquals("[I", TypeId.get(int[].class).getName()); in testGetType() 31 assertEquals("[[I", TypeId.get(int[][].class).getName()); in testGetType()
|
D | AnnotationIdTest.java | 18 import static com.android.dx.TypeId.*; 68 private static TypeId<?> GENERATED = TypeId.get("LGenerated;"); 69 private static final Map<TypeId<?>, Class<?>> TYPE_TO_PRIMITIVE = new HashMap<>(); 92 MethodId<?, Void> methodId = generateVoidMethod(TypeId.BOOLEAN); in addMethodAnnotationWithBooleanElement() 108 MethodId<?, Void> methodId = generateVoidMethod(TypeId.BYTE); in addMethodAnnotationWithByteElement() 124 MethodId<?, Void> methodId = generateVoidMethod(TypeId.CHAR); in addMethodAnnotationWithCharElement() 140 MethodId<?, Void> methodId = generateVoidMethod(TypeId.DOUBLE); in addMethodAnnotationWithDoubleElement() 156 MethodId<?, Void> methodId = generateVoidMethod(TypeId.FLOAT); in addMethodAnnotationWithFloatElement() 172 MethodId<?, Void> methodId = generateVoidMethod(TypeId.INT); in addMethodAnnotationWithIntElement() 188 MethodId<?, Void> methodId = generateVoidMethod(TypeId.LONG); in addMethodAnnotationWithLongElement() [all …]
|
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/examples/ |
D | HelloWorldMaker.java | 22 import com.android.dx.TypeId; 36 TypeId<?> helloWorld = TypeId.get("LHelloWorld;"); in main() 37 dexMaker.declare(helloWorld, "HelloWorld.generated", Modifier.PUBLIC, TypeId.OBJECT); in main() 61 private static void generateHelloMethod(DexMaker dexMaker, TypeId<?> declaringType) { in generateHelloMethod() 63 TypeId<System> systemType = TypeId.get(System.class); in generateHelloMethod() 64 TypeId<PrintStream> printStreamType = TypeId.get(PrintStream.class); in generateHelloMethod() 67 MethodId hello = declaringType.getMethod(TypeId.VOID, "hello"); in generateHelloMethod() 74 Local<Integer> a = code.newLocal(TypeId.INT); in generateHelloMethod() 75 Local<Integer> b = code.newLocal(TypeId.INT); in generateHelloMethod() 76 Local<Integer> c = code.newLocal(TypeId.INT); in generateHelloMethod() [all …]
|
D | FibonacciMaker.java | 25 import com.android.dx.TypeId; 34 TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;"); in main() 38 dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT); in main() 40 MethodId<?, Integer> fib = fibonacci.getMethod(TypeId.INT, "fib", TypeId.INT); in main() 43 Local<Integer> i = code.getParameter(0, TypeId.INT); in main() 44 Local<Integer> constant1 = code.newLocal(TypeId.INT); in main() 45 Local<Integer> constant2 = code.newLocal(TypeId.INT); in main() 46 Local<Integer> a = code.newLocal(TypeId.INT); in main() 47 Local<Integer> b = code.newLocal(TypeId.INT); in main() 48 Local<Integer> c = code.newLocal(TypeId.INT); in main() [all …]
|
/external/google-fruit/include/fruit/impl/util/ |
D | type_info.defn.h | 93 inline TypeId::operator std::string() const { 97 inline bool TypeId::operator==(TypeId x) const { 101 inline bool TypeId::operator!=(TypeId x) const { 105 inline bool TypeId::operator<(TypeId x) const { 132 inline TypeId getTypeId() { 141 return TypeId{&info}; 149 std::vector<TypeId, ArenaAllocator<TypeId>> operator()(MemoryPool& memory_pool) { 150 …return std::vector<TypeId, ArenaAllocator<TypeId>>(std::initializer_list<TypeId>{getTypeId<Ts>()..… 155 std::vector<TypeId, ArenaAllocator<TypeId>> getTypeIdsForList(MemoryPool& memory_pool) { 161 inline std::ostream& operator<<(std::ostream& os, TypeId type) { [all …]
|
D | type_info.h | 64 struct TypeId { struct 69 bool operator==(TypeId x) const; argument 70 bool operator!=(TypeId x) const; 71 bool operator<(TypeId x) const; 79 TypeId getTypeId(); 83 std::vector<TypeId> getTypeIdsForList(); 95 inline std::ostream& operator<<(std::ostream& os, TypeId type); 105 struct hash<fruit::impl::TypeId> { 106 std::size_t operator()(fruit::impl::TypeId type) const;
|
/external/dexmaker/dexmaker/src/main/java/com/android/dx/stock/ |
D | ProxyBuilder.java | 26 import com.android.dx.TypeId; 290 TypeId<? extends T> generatedType = TypeId.get("L" + generatedName + ";"); in buildProxyClass() 291 TypeId<T> superType = TypeId.get(baseClass); in buildProxyClass() 466 … TypeId<AbstractMethodError> abstractMethodErrorClass = TypeId.get(AbstractMethodError.class); in throwAbstractMethodError() 469 abstractMethodErrorClass.getConstructor(TypeId.STRING); in throwAbstractMethodError() 478 TypeId<G> generatedType, Method[] methodsToProxy, TypeId<T> superclassType) { in generateCodeForAllMethods() 479 TypeId<InvocationHandler> handlerType = TypeId.get(InvocationHandler.class); in generateCodeForAllMethods() 480 TypeId<Method[]> methodArrayType = TypeId.get(Method[].class); in generateCodeForAllMethods() 485 TypeId<Method> methodType = TypeId.get(Method.class); in generateCodeForAllMethods() 486 TypeId<Object[]> objectArrayType = TypeId.get(Object[].class); in generateCodeForAllMethods() [all …]
|
/external/google-fruit/include/fruit/impl/normalized_component_storage/ |
D | binding_normalization.h | 45 HashMapWithArenaAllocator<TypeId, NormalizedComponentStorage::CompressedBindingUndoInfo>; 64 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, 66 std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings); 78 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, 80 std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings, 92 std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings); 103 static void addMultibindings(std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings, 119 … HashMapWithArenaAllocator<TypeId, ComponentStorageEntry>& binding_data_map, 123 TypeId i_type_id; 141 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, [all …]
|
D | normalized_component_storage.h | 48 TypeId i_type_id; 55 using BindingCompressionInfoMap = HashMapWithArenaAllocator<TypeId, CompressedBindingUndoInfo>; 104 SemistaticGraph<TypeId, NormalizedBinding> bindings; 107 std::unordered_map<TypeId, NormalizedMultibindingSet> multibindings; 130 using Graph = SemistaticGraph<TypeId, NormalizedBinding>; 148 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, MemoryPool& memory_pool, 155 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, MemoryPool& memory_pool,
|
/external/google-fruit/src/ |
D | normalized_component_storage.cpp | 41 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorage() argument 44 … binding_compression_info_map(createHashMapWithArenaAllocator<TypeId, CompressedBindingUndoInfo>( in NormalizedComponentStorage() 61 …bindings = SemistaticGraph<TypeId, NormalizedBinding>(InjectorStorage::BindingDataNodeIter{binding… in NormalizedComponentStorage() 67 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorage() argument 70 … binding_compression_info_map(createHashMapWithArenaAllocator<TypeId, CompressedBindingUndoInfo>( in NormalizedComponentStorage() 89 …bindings = SemistaticGraph<TypeId, NormalizedBinding>(InjectorStorage::BindingDataNodeIter{binding… in NormalizedComponentStorage() 112 binding_compression_info_map = createHashMapWithArenaAllocator<TypeId, CompressedBindingUndoInfo>( in ~NormalizedComponentStorage()
|
D | binding_normalization.cpp | 84 void BindingNormalization::printMultipleBindingsError(TypeId type) { in printMultipleBindingsError() 216 void BindingNormalization::addMultibindings(std::unordered_map<TypeId, NormalizedMultibindingSet>& … in addMultibindings() argument 275 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithUndoableBindingCompression() argument 277 std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings, in normalizeBindingsWithUndoableBindingCompression() argument 290 …[&bindingCompressionInfoMap](TypeId c_type_id, NormalizedComponentStorage::CompressedBindingUndoIn… in normalizeBindingsWithUndoableBindingCompression() 314 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithPermanentBindingCompression() argument 316 std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings) { in normalizeBindingsWithPermanentBindingCompression() argument 319 …bindings_vector, multibindings, [](TypeId, NormalizedComponentStorage::CompressedBindingUndoInfo) … in normalizeBindingsWithPermanentBindingCompression() argument 329 std::unordered_map<TypeId, NormalizedMultibindingSet>& multibindings) { in normalizeBindingsAndAddTo() argument 338 HashMapWithArenaAllocator<TypeId, ComponentStorageEntry> binding_data_map = in normalizeBindingsAndAddTo() [all …]
|
/external/rust/crates/bindgen/src/ir/analysis/ |
D | sizedness.rs | 6 use crate::ir::context::{BindgenContext, TypeId}; 107 dependencies: HashMap<TypeId, Vec<TypeId>>, 110 sized: HashMap<TypeId, SizednessResult>, 132 id: TypeId, in insert() argument 157 fn forward(&mut self, from: TypeId, to: TypeId) -> ConstrainResult { in forward() argument 166 type Node = TypeId; 168 type Output = HashMap<TypeId, SizednessResult>; 195 fn initial_worklist(&self) -> Vec<TypeId> { in initial_worklist() argument 204 fn constrain(&mut self, id: TypeId) -> ConstrainResult { in constrain() 324 fn each_depending_on<F>(&self, id: TypeId, mut f: F) in each_depending_on() argument [all …]
|
/external/rust/crates/bindgen/src/ir/ |
D | template.rs | 30 use super::context::{BindgenContext, ItemId, TypeId}; 111 fn self_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId>; in self_template_params() argument 133 fn all_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId> in all_template_params() 148 fn used_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId> in used_template_params() 176 ) -> Option<TypeId>; in as_template_param() argument 192 definition: TypeId, 195 args: Vec<TypeId>, 200 pub fn new<I>(definition: TypeId, args: I) -> TemplateInstantiation in new() argument 202 I: IntoIterator<Item = TypeId>, in new() 211 pub fn template_definition(&self) -> TypeId { in template_definition() argument [all …]
|
/external/dexmaker/ |
D | README.md | 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"); 74 Local<Integer> a = code.newLocal(TypeId.INT); 75 Local<Integer> b = code.newLocal(TypeId.INT); 76 Local<Integer> c = code.newLocal(TypeId.INT); 77 Local<String> s = code.newLocal(TypeId.STRING); [all …]
|
/external/rust/crates/bindgen/src/ |
D | parse.rs | 4 use crate::ir::context::{BindgenContext, ItemId, TypeId}; 58 ) -> Result<TypeId, ParseError>; in from_ty() argument 68 ) -> Result<TypeId, ParseError>; in from_ty_with_id() argument 77 ) -> TypeId; in from_ty_or_ref() argument 87 ) -> TypeId; in from_ty_or_ref_with_id() argument 94 ) -> Option<TypeId>; in type_param() argument 101 ) -> TypeId; in builtin_type() argument
|
/external/google-fruit/include/fruit/impl/injector/ |
D | injector_storage.h | 50 using Graph = SemistaticGraph<TypeId, NormalizedBinding>; 131 SemistaticGraph<TypeId, NormalizedBinding> bindings; 135 std::unordered_map<TypeId, NormalizedMultibindingSet> multibindings; 145 NormalizedMultibindingSet* getNormalizedMultibindingSet(TypeId type); 159 Graph::node_iterator lazyGetPtr(TypeId type); 165 const void* unsafeGetPtr(TypeId type); 167 void* getPtrForMultibinding(TypeId type); 170 void* getMultibindings(TypeId type); 224 TypeId getId(); 227 const TypeId* getEdgesBegin(); [all …]
|
/external/rust/crates/anyhow/src/ |
D | error.rs | 8 use core::any::TypeId; 411 let target = TypeId::of::<E>(); in downcast() 481 let target = TypeId::of::<E>(); in downcast_ref() 495 let target = TypeId::of::<E>(); in downcast_mut() 569 object_downcast: unsafe fn(Ref<ErrorImpl>, TypeId) -> Option<Ref<()>>, 571 object_downcast_mut: unsafe fn(Mut<ErrorImpl>, TypeId) -> Option<Mut<()>>, 572 object_drop_rest: unsafe fn(Own<ErrorImpl>, TypeId), 586 unsafe fn object_drop_front<E>(e: Own<ErrorImpl>, target: TypeId) { in object_drop_front() argument 634 unsafe fn object_downcast<E>(e: Ref<ErrorImpl>, target: TypeId) -> Option<Ref<()>> in object_downcast() 638 if TypeId::of::<E>() == target { in object_downcast() [all …]
|
/external/google-fruit/include/fruit/impl/data_structures/ |
D | fixed_size_allocator.h | 47 std::unordered_map<TypeId, std::size_t> remaining_types; 70 std::unordered_map<TypeId, std::size_t> types; 73 static std::size_t maximumRequiredSpace(TypeId type); 80 void addType(TypeId typeId); 85 void addExternallyAllocatedType(TypeId typeId);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/ |
D | BTFDebug.cpp | 329 BTFKindVar::BTFKindVar(StringRef VarName, uint32_t TypeId, uint32_t VarInfo) in BTFKindVar() argument 333 BTFType.Type = TypeId; in BTFKindVar() 405 void BTFDebug::visitBasicType(const DIBasicType *BTy, uint32_t &TypeId) { in visitBasicType() argument 418 TypeId = addType(std::move(TypeEntry), BTy); in visitBasicType() 425 uint32_t &TypeId) { in visitSubroutineType() argument 437 TypeId = addType(std::move(TypeEntry)); // For subprogram in visitSubroutineType() 439 TypeId = addType(std::move(TypeEntry), STy); // For func ptr in visitSubroutineType() 449 uint32_t &TypeId) { in visitStructType() argument 468 TypeId = addType(std::move(TypeEntry), CTy); in visitStructType() 475 void BTFDebug::visitArrayType(const DICompositeType *CTy, uint32_t &TypeId) { in visitArrayType() argument [all …]
|
/external/google-fruit/include/fruit/impl/component_storage/ |
D | binding_deps.defn.h | 31 static const TypeId types[] = {getTypeId<Ts>()..., TypeId{nullptr}}; // LCOV_EXCL_BR_LINE 41 static const TypeId types[] = {TypeId{nullptr}};
|