/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | TypeSpecTest.java | 61 TypeSpec taco = TypeSpec.classBuilder("Taco") in basic() 91 TypeSpec taco = TypeSpec.classBuilder("Taco") in interestingTypes() 126 TypeSpec aSimpleThung = TypeSpec.anonymousClassBuilder(CodeBlock.of("$N", thungParameter)) in anonymousInnerClass() 135 TypeSpec aThingThang = TypeSpec.anonymousClassBuilder("") in anonymousInnerClass() 145 TypeSpec taco = TypeSpec.classBuilder("Taco") in anonymousInnerClass() 173 TypeSpec service = TypeSpec.classBuilder("Foo") in annotatedParameters() 214 TypeSpec taco = TypeSpec.classBuilder("EthicalTaco") in annotationsAndJavaLangTypes() 242 TypeSpec service = TypeSpec.interfaceBuilder("Service") in retrofitStyleInterface() 289 TypeSpec taco = TypeSpec.classBuilder("Taco") in annotatedField() 309 TypeSpec taco = TypeSpec.classBuilder("Foo") in annotatedClass() [all …]
|
D | JavaFileTest.java | 61 TypeSpec hello = TypeSpec.classBuilder("HelloWorld") in importStaticReadmeExample() 94 TypeSpec.classBuilder("Taco") in importStaticForCrazyFormatsWorks() 117 TypeSpec.classBuilder("Taco") in importStaticMixed() 156 TypeSpec.classBuilder("Taco") in importStaticDynamic() 248 private TypeSpec importStaticTypeSpec(String name) { in importStaticTypeSpec() 256 return TypeSpec.classBuilder(name).addMethod(method).build(); in importStaticTypeSpec() 261 TypeSpec.classBuilder("Taco").build()) in noImports() 273 TypeSpec.classBuilder("Taco") in singleImport() 290 TypeSpec.classBuilder("Taco") in conflictingImports() 310 TypeSpec.classBuilder("Taco") in annotatedTypeParam() [all …]
|
D | FileWritingTest.java | 52 TypeSpec type = TypeSpec.classBuilder("Test").build(); in pathNotDirectory() 66 TypeSpec type = TypeSpec.classBuilder("Test").build(); in fileNotDirectory() 80 TypeSpec type = TypeSpec.classBuilder("Test").build(); in pathDefaultPackage() 88 TypeSpec type = TypeSpec.classBuilder("Test").build(); in fileDefaultPackage() 96 TypeSpec type = TypeSpec.classBuilder("Test").build(); in filerDefaultPackage() 104 TypeSpec type = TypeSpec.classBuilder("Test").build(); in pathNestedClasses() 118 TypeSpec type = TypeSpec.classBuilder("Test").build(); in fileNestedClasses() 135 TypeSpec type = TypeSpec.classBuilder("Test").build(); in filerNestedClasses() 150 TypeSpec test1 = TypeSpec.classBuilder("Test1") in filerPassesOriginatingElements() 156 TypeSpec test2 = TypeSpec.classBuilder("Test2") in filerPassesOriginatingElements() [all …]
|
D | FileReadingTest.java | 49 TypeSpec type = TypeSpec.classBuilder("Test").build(); in javaFileObjectUri() 59 JavaFile javaFile = JavaFile.builder("", TypeSpec.classBuilder("Test").build()).build(); in javaFileObjectKind() 64 TypeSpec type = TypeSpec.classBuilder("Test") in javaFileObjectCharacterContent() 77 JavaFile javaFile = JavaFile.builder("foo", TypeSpec.classBuilder("Test").build()) in javaFileObjectInputStreamIsUtf8() 88 TypeSpec type = TypeSpec.classBuilder("Test") in compileJavaFile()
|
D | AnnotationSpecTest.java | 125 TypeSpec taco = TypeSpec.classBuilder("Taco") in defaultAnnotation() 161 TypeSpec.Builder typeBuilder = TypeSpec.classBuilder(IsAnnotated.class.getSimpleName()); in defaultAnnotationWithImport() 267 TypeSpec taco = TypeSpec.classBuilder("Taco") in reflectAnnotation() 301 TypeSpec taco = TypeSpec.classBuilder("Taco") in reflectAnnotationWithDefaults() 386 private String toString(TypeSpec typeSpec) { in toString()
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | ServiceGenerator.java | 32 import com.squareup.javapoet.TypeSpec; 74 TypeSpec.Builder classBuilder = in generateServiceClass() 75 TypeSpec.classBuilder(className) in generateServiceClass() 102 private void addBinder(TypeSpec.Builder classBuilder) { in addBinder() 103 TypeSpec.Builder binderBuilder = in addBinder() 104 TypeSpec.anonymousClassBuilder("") in addBinder() 124 private static void addPrepareCallMethod(TypeSpec.Builder classBuilder) { in addPrepareCallMethod() 140 private static void addCallMethod(TypeSpec.Builder classBuilder) { in addCallMethod() 160 private static void addFetchResponseMethod(TypeSpec.Builder classBuilder) { in addFetchResponseMethod()
|
D | FakeCrossProfileTypeGenerator.java | 38 import com.squareup.javapoet.TypeSpec; 79 TypeSpec.Builder classBuilder = in generateFakeCrossProfileType() 80 TypeSpec.classBuilder(className) in generateFakeCrossProfileType() 201 private void addConstructor(TypeSpec.Builder classBuilder) { in addConstructor() 239 private void addPersonalMethod(TypeSpec.Builder classBuilder) { in addPersonalMethod() 269 private void addWorkMethod(TypeSpec.Builder classBuilder) { in addWorkMethod() 298 private void generateFakeCrossProfileTypeBuilder(TypeSpec.Builder fakeCrossProfileType) { in generateFakeCrossProfileTypeBuilder() 309 TypeSpec.Builder classBuilder = in generateFakeCrossProfileTypeBuilder() 310 TypeSpec.classBuilder(builderClassName) in generateFakeCrossProfileTypeBuilder() 341 ClassName fakeCrossProfileTypeClassName, TypeSpec.Builder classBuilder) { in setupStaticBuilder() [all …]
|
D | InterfaceGenerator.java | 44 import com.squareup.javapoet.TypeSpec; 83 TypeSpec.Builder interfaceBuilder = in generateCrossProfileTypeInterface() 84 TypeSpec.interfaceBuilder(interfaceName) in generateCrossProfileTypeInterface() 172 private void generatePrimarySecondaryMethods(TypeSpec.Builder interfaceBuilder) { in generatePrimarySecondaryMethods() 178 private void generatePrimaryMethod(TypeSpec.Builder interfaceBuilder) { in generatePrimaryMethod() 202 private void generateSecondaryMethod(TypeSpec.Builder interfaceBuilder) { in generateSecondaryMethod() 230 private void generateSuppliersMethod(TypeSpec.Builder interfaceBuilder) { in generateSuppliersMethod() 274 TypeSpec.Builder interfaceBuilder = in generateSingleSenderInterface() 275 TypeSpec.interfaceBuilder(interfaceName) in generateSingleSenderInterface() 294 TypeSpec.Builder interfaceBuilder, in generateMethodOnSingleSenderInterface() [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | type_spec.py | 51 class TypeSpec(object): class 114 if not isinstance(spec_or_value, TypeSpec): 160 if isinstance(value, TypeSpec): 356 (int, float, bool, np.generic, dtypes.DType, TypeSpec)): 380 TypeSpec.__nested_list_to_tuple(value.tolist())) 389 return tuple(TypeSpec.__nested_list_to_tuple(v) for v in value) 395 if isinstance(a, TypeSpec): 401 all(TypeSpec.__is_compatible(x, y) for (x, y) in zip(a, b))) 404 TypeSpec.__is_compatible(a[k], b[k]) for k in a.keys())) 450 if TypeSpec.__is_named_tuple(a): [all …]
|
/external/angle/third_party/abseil-cpp/absl/base/internal/ |
D | exception_safety_testing.h | 43 enum class TypeSpec; variable 46 constexpr TypeSpec operator|(TypeSpec a, TypeSpec b) { 47 using T = absl::underlying_type_t<TypeSpec>; 48 return static_cast<TypeSpec>(static_cast<T>(a) | static_cast<T>(b)); 51 constexpr TypeSpec operator&(TypeSpec a, TypeSpec b) { 52 using T = absl::underlying_type_t<TypeSpec>; 53 return static_cast<TypeSpec>(static_cast<T>(a) & static_cast<T>(b)); 68 std::string GetSpecString(TypeSpec); 235 enum class TypeSpec { enum 256 template <TypeSpec Spec = TypeSpec::kEverythingThrows> [all …]
|
D | exception_safety_testing.cc | 50 std::string GetSpecString(TypeSpec spec) { in GetSpecString() 57 if (static_cast<bool>(TypeSpec::kNoThrowCopy & spec)) { in GetSpecString() 60 if (static_cast<bool>(TypeSpec::kNoThrowMove & spec)) { in GetSpecString() 63 if (static_cast<bool>(TypeSpec::kNoThrowNew & spec)) { in GetSpecString()
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | ComponentGenerator.java | 30 import com.squareup.javapoet.TypeSpec; 59 private final Optional<TypeSpec> componentBuilder; 71 Optional<TypeSpec> componentBuilder) { in ComponentGenerator() 84 public TypeSpec generate() throws IOException { in generate() 85 TypeSpec.Builder generator = in generate() 86 TypeSpec.classBuilder(name) in generate() 118 private void addEntryPoints(TypeSpec.Builder builder) throws IOException { in addEntryPoints() 161 TypeSpec.Builder builder = in createPartitionInterface() 162 TypeSpec.interfaceBuilder(partitionName) in createPartitionInterface()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | QualifiedAutoCheck.cpp | 160 if (llvm::Optional<SourceRange> TypeSpec = in check() local 162 TypeSpecifier = *TypeSpec; in check() 250 if (llvm::Optional<SourceRange> TypeSpec = in check() local 252 if (TypeSpec->isInvalid() || TypeSpec->getBegin().isMacroID() || in check() 253 TypeSpec->getEnd().isMacroID()) in check() 255 SourceLocation InsertPos = TypeSpec->getBegin(); in check() 270 if (llvm::Optional<SourceRange> TypeSpec = in check() local 272 if (TypeSpec->isInvalid() || TypeSpec->getBegin().isMacroID() || in check() 273 TypeSpec->getEnd().isMacroID()) in check() 275 SourceLocation InsertPos = TypeSpec->getBegin(); in check()
|
/external/webrtc/third_party/abseil-cpp/absl/base/internal/ |
D | exception_safety_testing.h | 43 enum class TypeSpec; variable 46 constexpr TypeSpec operator|(TypeSpec a, TypeSpec b) { 47 using T = absl::underlying_type_t<TypeSpec>; 48 return static_cast<TypeSpec>(static_cast<T>(a) | static_cast<T>(b)); 51 constexpr TypeSpec operator&(TypeSpec a, TypeSpec b) { 52 using T = absl::underlying_type_t<TypeSpec>; 53 return static_cast<TypeSpec>(static_cast<T>(a) & static_cast<T>(b)); 68 std::string GetSpecString(TypeSpec); 235 enum class TypeSpec { enum 256 template <TypeSpec Spec = TypeSpec::kEverythingThrows> [all …]
|
D | exception_safety_testing.cc | 50 std::string GetSpecString(TypeSpec spec) { in GetSpecString() 57 if (static_cast<bool>(TypeSpec::kNoThrowCopy & spec)) { in GetSpecString() 60 if (static_cast<bool>(TypeSpec::kNoThrowMove & spec)) { in GetSpecString() 63 if (static_cast<bool>(TypeSpec::kNoThrowNew & spec)) { in GetSpecString()
|
/external/abseil-cpp/absl/base/internal/ |
D | exception_safety_testing.h | 43 enum class TypeSpec; variable 46 constexpr TypeSpec operator|(TypeSpec a, TypeSpec b) { 47 using T = absl::underlying_type_t<TypeSpec>; 48 return static_cast<TypeSpec>(static_cast<T>(a) | static_cast<T>(b)); 51 constexpr TypeSpec operator&(TypeSpec a, TypeSpec b) { 52 using T = absl::underlying_type_t<TypeSpec>; 53 return static_cast<TypeSpec>(static_cast<T>(a) & static_cast<T>(b)); 68 std::string GetSpecString(TypeSpec); 235 enum class TypeSpec { enum 256 template <TypeSpec Spec = TypeSpec::kEverythingThrows> [all …]
|
D | exception_safety_testing.cc | 50 std::string GetSpecString(TypeSpec spec) { in GetSpecString() 57 if (static_cast<bool>(TypeSpec::kNoThrowCopy & spec)) { in GetSpecString() 60 if (static_cast<bool>(TypeSpec::kNoThrowMove & spec)) { in GetSpecString() 63 if (static_cast<bool>(TypeSpec::kNoThrowNew & spec)) { in GetSpecString()
|
/external/libtextclassifier/abseil-cpp/absl/base/internal/ |
D | exception_safety_testing.h | 43 enum class TypeSpec; variable 46 constexpr TypeSpec operator|(TypeSpec a, TypeSpec b) { 47 using T = absl::underlying_type_t<TypeSpec>; 48 return static_cast<TypeSpec>(static_cast<T>(a) | static_cast<T>(b)); 51 constexpr TypeSpec operator&(TypeSpec a, TypeSpec b) { 52 using T = absl::underlying_type_t<TypeSpec>; 53 return static_cast<TypeSpec>(static_cast<T>(a) & static_cast<T>(b)); 68 std::string GetSpecString(TypeSpec); 235 enum class TypeSpec { enum 256 template <TypeSpec Spec = TypeSpec::kEverythingThrows> [all …]
|
D | exception_safety_testing.cc | 50 std::string GetSpecString(TypeSpec spec) { in GetSpecString() 57 if (static_cast<bool>(TypeSpec::kNoThrowCopy & spec)) { in GetSpecString() 60 if (static_cast<bool>(TypeSpec::kNoThrowMove & spec)) { in GetSpecString() 63 if (static_cast<bool>(TypeSpec::kNoThrowNew & spec)) { in GetSpecString()
|
/external/openscreen/third_party/abseil/src/absl/base/internal/ |
D | exception_safety_testing.h | 43 enum class TypeSpec; variable 46 constexpr TypeSpec operator|(TypeSpec a, TypeSpec b) { 47 using T = absl::underlying_type_t<TypeSpec>; 48 return static_cast<TypeSpec>(static_cast<T>(a) | static_cast<T>(b)); 51 constexpr TypeSpec operator&(TypeSpec a, TypeSpec b) { 52 using T = absl::underlying_type_t<TypeSpec>; 53 return static_cast<TypeSpec>(static_cast<T>(a) & static_cast<T>(b)); 68 std::string GetSpecString(TypeSpec); 235 enum class TypeSpec { enum 256 template <TypeSpec Spec = TypeSpec::kEverythingThrows> [all …]
|
D | exception_safety_testing.cc | 50 std::string GetSpecString(TypeSpec spec) { in GetSpecString() 57 if (static_cast<bool>(TypeSpec::kNoThrowCopy & spec)) { in GetSpecString() 60 if (static_cast<bool>(TypeSpec::kNoThrowMove & spec)) { in GetSpecString() 63 if (static_cast<bool>(TypeSpec::kNoThrowNew & spec)) { in GetSpecString()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/ |
D | exception_safety_testing.h | 43 enum class TypeSpec; variable 46 constexpr TypeSpec operator|(TypeSpec a, TypeSpec b) { 47 using T = absl::underlying_type_t<TypeSpec>; 48 return static_cast<TypeSpec>(static_cast<T>(a) | static_cast<T>(b)); 51 constexpr TypeSpec operator&(TypeSpec a, TypeSpec b) { 52 using T = absl::underlying_type_t<TypeSpec>; 53 return static_cast<TypeSpec>(static_cast<T>(a) & static_cast<T>(b)); 68 std::string GetSpecString(TypeSpec); 235 enum class TypeSpec { enum 256 template <TypeSpec Spec = TypeSpec::kEverythingThrows> [all …]
|
D | exception_safety_testing.cc | 50 std::string GetSpecString(TypeSpec spec) { in GetSpecString() 57 if (static_cast<bool>(TypeSpec::kNoThrowCopy & spec)) { in GetSpecString() 60 if (static_cast<bool>(TypeSpec::kNoThrowMove & spec)) { in GetSpecString() 63 if (static_cast<bool>(TypeSpec::kNoThrowNew & spec)) { in GetSpecString()
|
/external/dagger2/java/dagger/grpc/server/processor/ |
D | UnscopedGrpcServiceModuleGenerator.java | 22 import static com.squareup.javapoet.TypeSpec.classBuilder; 31 import com.squareup.javapoet.TypeSpec; 48 protected TypeSpec createType() { in createType() 52 TypeSpec.Builder unscopedServiceModule = in createType() 74 private TypeSpec unscopedComponentFactory(String simpleName) { in unscopedComponentFactory() 75 return TypeSpec.classBuilder(simpleName) in unscopedComponentFactory()
|
/external/dagger2/java/dagger/hilt/processor/internal/root/ |
D | RootGenerator.java | 35 import com.squareup.javapoet.TypeSpec; 71 TypeSpec.Builder componentsWrapper = in generateComponents() 72 TypeSpec.classBuilder(getComponentsWrapperClassName()) in generateComponents() 133 TypeSpec.Builder componentsWrapper) throws IOException { in subcomponentBuilderModules() 153 private TypeSpec subcomponentBuilderModule( in subcomponentBuilderModule() 155 TypeSpec.Builder subcomponentBuilderModule = in subcomponentBuilderModule() 156 TypeSpec.interfaceBuilder(moduleName) in subcomponentBuilderModule() 178 private Optional<TypeSpec> componentBuilder(ComponentDescriptor descriptor) { in componentBuilder() 183 TypeSpec.interfaceBuilder("Builder") in componentBuilder()
|