Home
last modified time | relevance | path

Searched refs:ClassName (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DCommonClassNames.java18 import com.squareup.javapoet.ClassName;
27 static final ClassName CONTEXT_CLASSNAME = ClassName.get("android.content", "Context");
28 static final ClassName PARCEL_CLASSNAME = ClassName.get("android.os", "Parcel");
29 static final ClassName PARCELABLE_CLASSNAME = ClassName.get("android.os", "Parcelable");
30 static final ClassName CROSS_PROFILE_FUTURE_RESULT_WRITER =
31 ClassName.get(
33 static final ClassName IF_AVAILABLE_FUTURE_RESULT_WRITER =
34 ClassName.get(
36 static final ClassName PARCELABLE_CREATOR_CLASSNAME =
37 ClassName.get("android.os.Parcelable", "Creator");
[all …]
DFakeCrossProfileTypeGenerator.java33 import com.squareup.javapoet.ClassName;
67 ClassName className = getFakeCrossProfileTypeClassName(generatorContext, crossProfileType); in generateFakeCrossProfileType()
68 ClassName builderClassName = in generateFakeCrossProfileType()
70 ClassName crossProfileTypeInterfaceClassName = in generateFakeCrossProfileType()
73 ClassName fakeProfileConnectorClassName = in generateFakeCrossProfileType()
157 ClassName.get(Map.class), in generateFakeCrossProfileType()
202 ClassName fakeProfileConnectorClassName = in addConstructor()
240 ClassName currentProfileClassName = in addPersonalMethod()
247 ClassName fakeOtherClassName = in addPersonalMethod()
270 ClassName currentProfileClassName = in addWorkMethod()
[all …]
/external/dagger2/java/dagger/hilt/processor/internal/
DClassNames.java19 import static com.squareup.javapoet.ClassName.get;
21 import com.squareup.javapoet.ClassName;
25 public static final ClassName ORIGINATING_ELEMENT =
27 public static final ClassName AGGREGATED_DEPS =
29 public static final ClassName GENERATED_COMPONENT =
31 public static final ClassName GENERATED_COMPONENT_MANAGER =
33 public static final ClassName GENERATED_COMPONENT_MANAGER_HOLDER =
35 public static final ClassName IGNORE_MODULES =
38 public static final ClassName DEFINE_COMPONENT = get("dagger.hilt", "DefineComponent");
39 public static final ClassName DEFINE_COMPONENT_BUILDER =
[all …]
DComponentGenerator.java27 import com.squareup.javapoet.ClassName;
45 private static final Comparator<ClassName> SIMPLE_NAME_SORTER =
46 Comparator.comparing((ClassName c) -> JOINER.join(c.simpleNames()))
47 .thenComparing(ClassName::compareTo);
51 private final ClassName name;
53 private final Optional<ClassName> superclass;
54 private final ImmutableList<ClassName> modules;
56 private final ImmutableCollection<ClassName> scopes;
58 private final ClassName componentAnnotation;
63 ClassName name, in ComponentGenerator()
[all …]
DComponentNames.java19 import com.squareup.javapoet.ClassName;
30 public static ClassName generatedComponentsWrapper(ClassName root) { in generatedComponentsWrapper()
35 public static ClassName generatedComponent(ClassName root, ClassName component) { in generatedComponent()
46 private static String componentName(ClassName component) { in componentName()
DComponentDescriptor.java21 import com.squareup.javapoet.ClassName;
36 public abstract ClassName component(); in component()
39 public abstract ImmutableSet<ClassName> scopes(); in scopes()
42 public abstract Optional<ClassName> creator(); in creator()
82 Builder component(ClassName component); in component()
84 Builder scopes(ImmutableSet<ClassName> scopes); in scopes()
86 Builder scopes(ClassName... scopes); in scopes()
88 Builder creator(ClassName creator); in creator()
/external/dagger2/java/dagger/hilt/android/processor/internal/
DAndroidClassNames.java19 import static com.squareup.javapoet.ClassName.get;
21 import com.squareup.javapoet.ClassName;
26 public static final ClassName APPLICATION_PROVIDER =
28 public static final ClassName ACTIVITY = get("android.app", "Activity");
29 public static final ClassName COMPONENT_ACTIVITY = get("androidx.activity", "ComponentActivity");
30 public static final ClassName APPLICATION = get("android.app", "Application");
31 public static final ClassName BROADCAST_RECEIVER = get("android.content", "BroadcastReceiver");
32 public static final ClassName SERVICE = get("android.app", "Service");
33 public static final ClassName FRAGMENT =
35 public static final ClassName VIEW = get("android.view", "View");
[all …]
/external/dagger2/java/dagger/internal/codegen/javapoet/
DTypeNames.java21 import com.squareup.javapoet.ClassName;
56 public static final ClassName ABSTRACT_PRODUCER = ClassName.get(AbstractProducer.class);
57 public static final ClassName DEPENDENCY_METHOD_PRODUCER =
58 ClassName.get(DependencyMethodProducer.class);
59 public static final ClassName DOUBLE_CHECK = ClassName.get(DoubleCheck.class);
60 public static final ClassName FACTORY = ClassName.get(Factory.class);
61 public static final ClassName FUTURES = ClassName.get(Futures.class);
62 public static final ClassName INJECTED_FIELD_SIGNATURE =
63 ClassName.get(InjectedFieldSignature.class);
64 public static final ClassName INSTANCE_FACTORY = ClassName.get(InstanceFactory.class);
[all …]
/external/javapoet/src/test/java/com/squareup/javapoet/
DClassNameTest.java38 assertThat(ClassName.bestGuess(String.class.getName())) in bestGuessForString_simpleClass()
39 .isEqualTo(ClassName.get("java.lang", "String")); in bestGuessForString_simpleClass()
43 ClassName className = ClassName.bestGuess( in bestGuessNonAscii()
54 assertThat(ClassName.bestGuess(Map.Entry.class.getCanonicalName())) in bestGuessForString_nestedClass()
55 .isEqualTo(ClassName.get("java.util", "Map", "Entry")); in bestGuessForString_nestedClass()
56 assertThat(ClassName.bestGuess(OuterClass.InnerClass.class.getCanonicalName())) in bestGuessForString_nestedClass()
57 .isEqualTo(ClassName.get("com.squareup.javapoet", in bestGuessForString_nestedClass()
62 assertThat(ClassName.bestGuess("SomeClass")) in bestGuessForString_defaultPackage()
63 .isEqualTo(ClassName.get("", "SomeClass")); in bestGuessForString_defaultPackage()
64 assertThat(ClassName.bestGuess("SomeClass.Nested")) in bestGuessForString_defaultPackage()
[all …]
DJavaFileTest.java47 ClassName hoverboard = ClassName.get("com.mattel", "Hoverboard"); in importStaticReadmeExample()
48 ClassName namedBoards = ClassName.get("com.mattel", "Hoverboard", "Boards"); in importStaticReadmeExample()
49 ClassName list = ClassName.get("java.util", "List"); in importStaticReadmeExample()
50 ClassName arrayList = ClassName.get("java.util", "ArrayList"); in importStaticReadmeExample()
292 .addField(ClassName.get("java.sql", "Date"), "madeFreshDatabaseDate") in conflictingImports()
311 .addField(ParameterizedTypeName.get(ClassName.get(List.class), in annotatedTypeParam()
312 ClassName.get("com.squareup.meat", "Chorizo") in annotatedTypeParam()
313 .annotated(AnnotationSpec.builder(ClassName.get("com.squareup.tacos", "Spicy")) in annotatedTypeParam()
333 .addField(ClassName.get("java.lang", "Float"), "litres") in skipJavaLangImportsWithConflictingClassLast()
334 .addField(ClassName.get("com.squareup.soda", "Float"), "beverage") in skipJavaLangImportsWithConflictingClassLast()
[all …]
DTypeSpecTest.java86 ClassName.get(List.class), WildcardTypeName.subtypeOf(Object.class)); in interestingTypes()
88 ClassName.get(List.class), WildcardTypeName.subtypeOf(Serializable.class)); in interestingTypes()
89 TypeName listOfSuper = ParameterizedTypeName.get(ClassName.get(List.class), in interestingTypes()
113 ClassName foo = ClassName.get(tacosPackage, "Foo"); in anonymousInnerClass()
114 ClassName bar = ClassName.get(tacosPackage, "Bar"); in anonymousInnerClass()
115 ClassName thingThang = ClassName.get(tacosPackage, "Thing", "Thang"); in anonymousInnerClass()
117 ClassName thung = ClassName.get(tacosPackage, "Thung"); in anonymousInnerClass()
118 ClassName simpleThung = ClassName.get(tacosPackage, "SimpleThung"); in anonymousInnerClass()
178 .addAnnotation(ClassName.get(tacosPackage, "Ping")) in annotatedParameters()
181 .addAnnotation(ClassName.get(tacosPackage, "Ping")) in annotatedParameters()
[all …]
DAbstractTypesTest.java66 .isEqualTo(ClassName.get(Object.class)); in getBasicTypeMirror()
68 .isEqualTo(ClassName.get(Charset.class)); in getBasicTypeMirror()
70 .isEqualTo(ClassName.get(AbstractTypesTest.class)); in getBasicTypeMirror()
77 .isEqualTo(ParameterizedTypeName.get(ClassName.get(Set.class), ClassName.OBJECT)); in getParameterizedTypeMirror()
100 assertThat(TypeName.get(topLevel)).isEqualTo(ClassName.get("", "Tacos")); in errorTypes()
101 assertThat(TypeName.get(member)).isEqualTo(ClassName.get("Ingredients", "Guacamole")); in errorTypes()
127 ClassName number = ClassName.get(Number.class); in getTypeVariableTypeMirror()
128 ClassName runnable = ClassName.get(Runnable.class); in getTypeVariableTypeMirror()
129 ClassName serializable = ClassName.get(Serializable.class); in getTypeVariableTypeMirror()
190 .isEqualTo(ArrayTypeName.of(ClassName.OBJECT)); in getArrayTypeMirror()
[all …]
/external/dagger2/java/dagger/grpc/server/processor/
DSourceGenerator.java20 import com.squareup.javapoet.ClassName;
49 return AnnotationSpec.builder(ClassName.get("dagger", "Binds")).build(); in binds()
53 return AnnotationSpec.builder(ClassName.get("dagger.multibindings", "IntoSet")).build(); in intoSet()
57 return AnnotationSpec.builder(ClassName.get("dagger", "Provides")).build(); in provides()
61 static AnnotationSpec module(ClassName... includedModules) { in module()
62 AnnotationSpec.Builder module = AnnotationSpec.builder(ClassName.get("dagger", "Module")); in module()
63 for (ClassName includedModule : includedModules) { in module()
73 static final ClassName PROXY_SERVER_CALL_HANDLER =
74 ClassName.get("dagger.grpc.server", "ProxyServerCallHandler");
76 static final ClassName GRPC_CALL_METADATA_MODULE =
[all …]
/external/javapoet/src/main/java/com/squareup/javapoet/
DClassName.java33 public final class ClassName extends TypeName implements Comparable<ClassName> { class
34 public static final ClassName OBJECT = ClassName.get(Object.class);
43 final ClassName enclosingClassName;
53 private ClassName(String packageName, ClassName enclosingClassName, String simpleName) { in ClassName() method in ClassName
57 private ClassName(String packageName, ClassName enclosingClassName, String simpleName, in ClassName() method in ClassName
68 @Override public ClassName annotated(List<AnnotationSpec> annotations) { in annotated()
69 return new ClassName(packageName, enclosingClassName, simpleName, in annotated()
73 @Override public ClassName withoutAnnotations() { in withoutAnnotations()
75 ClassName resultEnclosingClassName = enclosingClassName != null in withoutAnnotations()
78 return new ClassName(packageName, resultEnclosingClassName, simpleName); in withoutAnnotations()
[all …]
DTypeName.java78 public static final ClassName OBJECT = ClassName.get("java.lang", "Object");
80 private static final ClassName BOXED_VOID = ClassName.get("java.lang", "Void");
81 private static final ClassName BOXED_BOOLEAN = ClassName.get("java.lang", "Boolean");
82 private static final ClassName BOXED_BYTE = ClassName.get("java.lang", "Byte");
83 private static final ClassName BOXED_SHORT = ClassName.get("java.lang", "Short");
84 private static final ClassName BOXED_INT = ClassName.get("java.lang", "Integer");
85 private static final ClassName BOXED_LONG = ClassName.get("java.lang", "Long");
86 private static final ClassName BOXED_CHAR = ClassName.get("java.lang", "Character");
87 private static final ClassName BOXED_FLOAT = ClassName.get("java.lang", "Float");
88 private static final ClassName BOXED_DOUBLE = ClassName.get("java.lang", "Double");
[all …]
/external/webrtc/modules/audio_device/linux/
Dlatebindingsymboltable_linux.h117 #define LATE_BINDING_SYMBOL_TABLE_DECLARE_BEGIN(ClassName) enum { argument
123 #define LATE_BINDING_SYMBOL_TABLE_DECLARE_ENTRY(ClassName, sym) \ argument
124 ClassName##_SYMBOL_TABLE_INDEX_##sym,
127 #define LATE_BINDING_SYMBOL_TABLE_DECLARE_END(ClassName) \ argument
128 ClassName##_SYMBOL_TABLE_SIZE \
132 extern const char ClassName##_kDllName[]; \
134 ClassName##_kSymbolNames[ClassName##_SYMBOL_TABLE_SIZE]; \
137 ClassName##_SYMBOL_TABLE_SIZE, ClassName##_kDllName, \
138 ClassName##_kSymbolNames> \
139 ClassName;
[all …]
/external/openscreen/platform/base/
Dmacros.h11 #define OSP_DISALLOW_COPY(ClassName) ClassName(const ClassName&) = delete argument
17 #define OSP_DISALLOW_ASSIGN(ClassName) \ argument
18 ClassName& operator=(const ClassName&) = delete
24 #define OSP_DISALLOW_COPY_AND_ASSIGN(ClassName) \ argument
25 OSP_DISALLOW_COPY(ClassName); \
26 OSP_DISALLOW_ASSIGN(ClassName)
32 #define OSP_DISALLOW_IMPLICIT_CONSTRUCTORS(ClassName) \ argument
33 ClassName() = delete; \
34 OSP_DISALLOW_COPY_AND_ASSIGN(ClassName)
/external/dagger2/java/dagger/hilt/processor/internal/aliasof/
DAliasOfs.java25 import com.squareup.javapoet.ClassName;
46 private final ImmutableSet<ClassName> defineComponentScopes;
47 private final Supplier<ImmutableMultimap<ClassName, ClassName>> aliases =
51 ProcessingEnvironment processingEnvironment, ImmutableSet<ClassName> defineComponentScopes) { in AliasOfs()
56 public ImmutableSet<ClassName> getAliasesFor(ClassName defineComponentScope) { in getAliasesFor()
60 private ImmutableMultimap<ClassName, ClassName> getAliases() { in getAliases()
70 ImmutableMultimap.Builder<ClassName, ClassName> builder = ImmutableMultimap.builder(); in getAliases()
97 defineComponentScopes.contains(ClassName.get(defineComponentScope)), in getAliases()
100 ClassName.get(alias), in getAliases()
101 ClassName.get(defineComponentScope)); in getAliases()
[all …]
/external/catch2/include/internal/
Dcatch_test_registry.h55 #define INTERNAL_CATCH_TESTCASE_METHOD_NO_REGISTRATION( TestName, ClassName, ... ) \ argument
57 struct TestName : INTERNAL_CATCH_REMOVE_PARENS(ClassName) { \
64 …H_TEMPLATE_TEST_CASE_METHOD_NO_REGISTRATION_2( TestNameClass, TestName, ClassName, Name, Tags, Sig… argument
67 …INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD(TestName, ClassName, INTERNAL_CATCH_REMOVE_PARENS(Signature…
89 … #define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_NO_REGISTRATION( ClassName, Name, Tags,... ) \ argument
90 …_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, typ…
92 … #define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_NO_REGISTRATION( ClassName, Name, Tags,... ) \ argument
93 …_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, typ…
97 …#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_SIG_NO_REGISTRATION( ClassName, Name, Tags, Signa… argument
98 …_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, Sig…
[all …]
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/
DAggregatedDepsGenerator.java21 import com.squareup.javapoet.ClassName;
36 private static final ClassName AGGREGATED_DEPS =
37 ClassName.get("dagger.hilt.processor.internal.aggregateddeps", "AggregatedDeps");
41 private final Optional<ClassName> testName;
42 private final ImmutableSet<ClassName> components;
43 private final ImmutableSet<ClassName> replacedDependencies;
49 Optional<ClassName> testName, in AggregatedDepsGenerator()
50 ImmutableSet<ClassName> components, in AggregatedDepsGenerator()
51 ImmutableSet<ClassName> replacedDependencies, in AggregatedDepsGenerator()
62 ClassName name = in generate()
[all …]
/external/dagger2/java/dagger/hilt/processor/internal/root/
DRootMetadata.java28 import com.squareup.javapoet.ClassName;
48 private static final ClassName APPLICATION_CONTEXT_MODULE =
49 ClassName.get("dagger.hilt.android.internal.modules", "ApplicationContextModule");
72 private final Supplier<ImmutableSetMultimap<ClassName, ClassName>> scopesByComponent =
101 public ImmutableSet<TypeElement> modules(ClassName componentName) { in modules()
105 public ImmutableSet<TypeName> entryPoints(ClassName componentName) { in entryPoints()
112 public ImmutableSet<ClassName> scopes(ClassName componentName) { in scopes()
123 public ImmutableSet<TypeElement> modulesThatDaggerCannotConstruct(ClassName componentName) { in modulesThatDaggerCannotConstruct()
126 .filter(module -> !APPLICATION_CONTEXT_MODULE.equals(ClassName.get(module))) in modulesThatDaggerCannotConstruct()
150 ClassName componentName = componentDescriptor.component(); in validate()
[all …]
DRootGenerator.java32 import com.squareup.javapoet.ClassName;
78 ImmutableMap<ComponentDescriptor, ClassName> subcomponentBuilderModules = in generateComponents()
83 ImmutableSet<ClassName> modules = in generateComponents()
84 ImmutableSet.<ClassName>builder() in generateComponents()
132 private ImmutableMap<ComponentDescriptor, ClassName> subcomponentBuilderModules( in subcomponentBuilderModules()
134 ImmutableMap.Builder<ComponentDescriptor, ClassName> modules = ImmutableMap.builder(); in subcomponentBuilderModules()
138 ClassName component = getComponentClassName(descriptor); in subcomponentBuilderModules()
139 ClassName builder = descriptor.creator().get(); in subcomponentBuilderModules()
140 ClassName module = component.peerClass(component.simpleName() + "BuilderModule"); in subcomponentBuilderModules()
154 ClassName componentName, ClassName builderName, ClassName moduleName) throws IOException { in subcomponentBuilderModule()
[all …]
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/
DParcelableWrapper.java24 import com.squareup.javapoet.ClassName;
52 public abstract ClassName defaultWrapperClassName(); in defaultWrapperClassName()
54 public abstract ClassName wrapperClassName(); in wrapperClassName()
59 TypeMirror wrappedType, ClassName defaultWrapperClassName, WrapperType wrapperType) { in create()
65 ClassName defaultWrapperClassName, in create()
66 ClassName wrapperClassName, in create()
157 ClassName.get(parcelableWrapper), in addCustomParcelableWrapper()
167 ClassName.get(PARCELABLE_WRAPPER_PACKAGE, "ParcelableCollection")); in addDefaultParcelableWrappers()
173 ClassName.get(PARCELABLE_WRAPPER_PACKAGE, "ParcelableList")); in addDefaultParcelableWrappers()
179 ClassName.get(PARCELABLE_WRAPPER_PACKAGE, "ParcelableMap")); in addDefaultParcelableWrappers()
[all …]
/external/dagger2/java/dagger/internal/codegen/writing/
DMemberSelect.java35 import com.squareup.javapoet.ClassName;
59 static MemberSelect localField(ClassName owningClass, String fieldName) { in localField()
66 LocalField(ClassName owningClass, String fieldName) { in LocalField()
72 CodeBlock getExpressionFor(ClassName usingClass) { in getExpressionFor()
86 static MemberSelect localMethod(ClassName owningClass, String methodName) { in localMethod()
93 LocalMethod(ClassName owningClass, String methodName) { in LocalMethod()
99 CodeBlock getExpressionFor(ClassName usingClass) { in getExpressionFor()
153 ClassName owningClass, List<? extends TypeMirror> parameters) { in parameterizedFactoryCreateMethod()
161 StaticMethod(ClassName owningClass, CodeBlock methodCodeBlock) { in StaticMethod()
167 CodeBlock getExpressionFor(ClassName usingClass) { in getExpressionFor()
[all …]
/external/llvm-project/clang/test/CodeGenCXX/
Ddllexport-ctor-closure.cpp22 #define DELETE_IMPLICIT_MEMBERS(ClassName) \ argument
23 ClassName(ClassName &&) = delete; \
24 ClassName(ClassName &) = delete; \
25 ~ClassName() = delete; \
26 ClassName &operator=(ClassName &) = delete

12345678910>>...15