Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/parsing/result/
DParseInput.java106 <ResultType> ParseResult<ResultType> success(ResultType result); in success()
129 <ResultType> ParseResult<ResultType> skip(@NonNull String parseError); in skip()
132 <ResultType> ParseResult<ResultType> error(int parseError); in error()
138 <ResultType> ParseResult<ResultType> error(@NonNull String parseError); in error()
141 <ResultType> ParseResult<ResultType> error(int parseError, @Nullable String errorMessage); in error()
154 <ResultType> ParseResult<ResultType> error(int parseError, @Nullable String errorMessage, in error()
162 <ResultType> ParseResult<ResultType> error(ParseResult<?> result); in error()
DParseTypeImpl.java126 public <ResultType> ParseResult<ResultType> success(ResultType result) {
133 return (ParseResult<ResultType>) this;
191 public <ResultType> ParseResult<ResultType> skip(@NonNull String parseError) {
196 public <ResultType> ParseResult<ResultType> error(int parseError) {
201 public <ResultType> ParseResult<ResultType> error(@NonNull String parseError) {
206 public <ResultType> ParseResult<ResultType> error(int errorCode,
212 public <ResultType> ParseResult<ResultType> error(ParseResult<?> intentResult) {
218 public <ResultType> ParseResult<ResultType> error(int errorCode, @Nullable String errorMessage,
237 return (ParseResult<ResultType>) this;
DParseResult.java30 public interface ParseResult<ResultType> {
54 ResultType getResult(); in getResult()
/frameworks/libs/binary_translation/guest_abi/arm/include/berberis/guest_abi/
Dguest_arguments_arch.h54 template <typename ResultType,
58 class GuestArgumentsAndResult<ResultType(ArgumentType...) noexcept(kNoexcept),
82 static_assert(!std::is_same_v<ResultType, void>); in GuestResult()
83 if constexpr (GuestArgumentInfo<ResultType, kCallingConventionsVariant>::kArgumentClass == in GuestResult()
86 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::GuestType**>( in GuestResult()
90 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::GuestType*>( in GuestResult()
96 static_assert(!std::is_same_v<ResultType, void>); in HostResult()
97 if constexpr (GuestArgumentInfo<ResultType, kCallingConventionsVariant>::kArgumentClass == in HostResult()
100 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::HostType**>( in HostResult()
104 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::HostType*>( in HostResult()
[all …]
Dguest_abi_arch.h98 template <typename ResultType,
101 struct GuestArgumentInfo<ResultType (*)(ArgumentType...), kCallingConventionsVarіant> {
105 using GuestType = GuestType<ResultType (*)(ArgumentType...)>;
106 using HostType = ResultType (*)(ArgumentType...);
/frameworks/libs/binary_translation/guest_abi/arm64/include/berberis/guest_abi/
Dguest_arguments_arch.h51 template <typename ResultType, typename... ArgumentType, bool kNoexcept>
52 class GuestArgumentsAndResult<ResultType(ArgumentType...) noexcept(kNoexcept), GuestAbi::kAapcs64>
82 static_assert(!std::is_same_v<ResultType, void>); in GuestResult()
83 if constexpr (GuestArgumentInfo<ResultType>::kArgumentClass == in GuestResult()
85 return **reinterpret_cast<typename GuestArgumentInfo<ResultType>::GuestType**>( in GuestResult()
88 return *reinterpret_cast<typename GuestArgumentInfo<ResultType>::GuestType*>( in GuestResult()
94 static_assert(!std::is_same_v<ResultType, void>); in HostResult()
95 if constexpr (GuestArgumentInfo<ResultType>::kArgumentClass == in HostResult()
97 return **reinterpret_cast<typename GuestArgumentInfo<ResultType>::HostType**>( in HostResult()
100 return *reinterpret_cast<typename GuestArgumentInfo<ResultType>::HostType*>( in HostResult()
[all …]
Dguest_abi_arch.h65 template <typename ResultType, typename... ArgumentType>
66 struct GuestArgumentInfo<ResultType (*)(ArgumentType...)> {
70 using GuestType = GuestType<ResultType (*)(ArgumentType...)>;
71 using HostType = ResultType (*)(ArgumentType...);
/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/
Dguest_arguments.h152 template <typename ResultType,
156 class tuple_size<berberis::GuestArgumentsReferences<ResultType(ArgumentType...) noexcept(kNoexcept),
160 template <typename ResultType,
164 class tuple_size<berberis::HostArgumentsValues<ResultType(ArgumentType...) noexcept(kNoexcept),
169 template <typename ResultType,
174 berberis::GuestArgumentsReferences<ResultType (*)(ArgumentType...) noexcept(kNoexcept),
178 template <typename ResultType,
182 class tuple_size<berberis::HostArgumentsValues<ResultType (*)(ArgumentType...) noexcept(kNoexcept),
211 template <typename ResultType,
215 class tuple_size<berberis::GuestResultValue<ResultType(ArgumentType...) noexcept(kNoexcept),
[all …]
Dguest_function_wrapper.h28 template <typename ResultType, typename... ArgumentType>
29 ResultType (*WrapGuestFunction(GuestType<ResultType (*)(ArgumentType...)> func, in WrapGuestFunction()
31 return AsFuncPtr<ResultType (*)(ArgumentType...)>( in WrapGuestFunction()
33 kGuestFunctionWrapperSignature<ResultType (*)(ArgumentType...)>, in WrapGuestFunction()
Dguest_type.h303 template <typename ResultType, typename... ArgumentType>
304 class GuestType<ResultType (*)(ArgumentType...)> {
306 using Type = ResultType (*)(ArgumentType...);
308 constexpr GuestType(ResultType (*const& value)(ArgumentType...)) in GuestType()
310 constexpr GuestType(ResultType (*&&value)(ArgumentType...)) in GuestType()
327 template <typename ResultType, typename... ArgumentType>
328 class GuestType<ResultType (*const)(ArgumentType...)> {
330 using Type = ResultType (*const)(ArgumentType...);
332 constexpr GuestType(ResultType (*const& value)(ArgumentType...)) in GuestType()
334 constexpr GuestType(ResultType (*&&value)(ArgumentType...)) = delete;
/frameworks/libs/binary_translation/guest_abi/riscv64/include/berberis/guest_abi/
Dguest_arguments_arch.h51 template <typename ResultType,
55 class GuestArgumentsAndResult<ResultType(ArgumentType...) noexcept(kNoexcept),
79 static_assert(!std::is_same_v<ResultType, void>); in GuestResult()
80 using ArgumentInfo = GuestArgumentInfo<ResultType, kCallingConventionsVariant>; in GuestResult()
86 static_assert(!std::is_same_v<ResultType, void>); in HostResult()
87 using ArgumentInfo = GuestArgumentInfo<ResultType, kCallingConventionsVariant>; in HostResult()
137 using ResultInfo = GuestArgumentInfo<ResultType, kCallingConventionsVariant>; in ResultInfoHelper()
138 if constexpr (std::is_same_v<ResultType, void>) { in ResultInfoHelper()
150 static_assert(kDependentTypeFalse<ResultType>, "Unsupported ArgumentClass"); in ResultInfoHelper()
176 template <typename ResultType,
[all …]
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h200 template <typename ResultType, typename ArgumentType>
217 return static_cast<ResultType>(x) == x; in IsInRange()
366 template <typename ResultType>
368 -> std::enable_if_t<sizeof(typename ResultType::BaseType) <= sizeof(BaseType), ResultType> {
369 return ResultType{static_cast<ResultType::BaseType>(src.value)};
371 template <typename ResultType>
373 -> std::enable_if_t<sizeof(typename ResultType::BaseType) < sizeof(BaseType), ResultType> {
374 return ResultType{static_cast<ResultType::BaseType>(src.value)};
882 template <typename ResultType, typename IntType>
885 sizeof(typename ResultType::BaseType) <= sizeof(IntType),
[all …]
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dvulkan_xml.h57 template <typename ResultType, typename... ArgumentType>
58 inline ResultType (*WrapGuestFunctionIfNeeded(GuestType<ResultType (*)(ArgumentType...)> func, in WrapGuestFunctionIfNeeded()
61 reinterpret_cast<ResultType (*)(ArgumentType...)>(UnwrapHostFunction(ToGuestAddr(func))); in WrapGuestFunctionIfNeeded()
/frameworks/base/core/java/android/service/chooser/
DChooserResult.java72 public @interface ResultType { } annotation in ChooserResult
83 @ResultType
96 public ChooserResult(@ResultType int type, @Nullable ComponentName componentName, in ChooserResult()
108 @ResultType
/frameworks/compile/slang/
Dslang_rs_reflection.cpp563 for (const RSExportType *ResultType : mRSContext->getReduceResultTypes( in genScriptClass() local
570 genExportReduceResultType(ResultType); in genScriptClass()
1224 bool RSReflectionJava::exportableReduce(const RSExportType *ResultType) { in exportableReduce() argument
1225 const RSExportType *CheckType = ResultType; in exportableReduce()
1226 if (ResultType->getClass() == RSExportType::ExportClassConstantArray) in exportableReduce()
1227 CheckType = static_cast<const RSExportConstantArrayType *>(ResultType)->getElementType(); in exportableReduce()
1308 const RSExportType *const ResultType = ER->getResultType(); in genExportReduceArrayVariant() local
1309 auto ResultTypeClass = ResultType->getClass(); in genExportReduceArrayVariant()
1331 ResultType->convertToRTD(&ResultTypeData); in genExportReduceArrayVariant()
1461 const RSExportType *ResultType = ER->getResultType(); in genExportReduceAllocationVariant() local
[all …]
Dslang_rs_reflection.h209 static bool exportableReduce(const RSExportType *ResultType);
243 void genExportReduceResultType(const RSExportType *ResultType);
Dslang_rs_reflection_state.cpp899 const std::string ResultType = getUniqueTypeName(ER->getResultType()); in declareReduce() local
900 if (!reduce.mResult.equals(ResultType)) { in declareReduce()
904 << reduce.mName << reduce.mResult.str() << ResultType; in declareReduce()
/frameworks/libs/native_bridge_support/android_api/libandroid/proxy/
Dlibandroid_trampolines.cc67 template <typename ResultType, typename... ArgumentType>
68 ALooper_callbackFunc WrapLooperCallback(GuestType<ResultType (*)(ArgumentType...)> callback) { in WrapLooperCallback()
/frameworks/libs/binary_translation/intrinsics/riscv64/include/berberis/intrinsics/riscv64/
Dvector_intrinsics.h147 using ResultType = std::conditional_t<sizeof(ElementType) == sizeof(Int8), UInt16, UInt8>; in SimdMaskToBitMaskForTests() local
148 ResultType mask{0}; in SimdMaskToBitMaskForTests()
149 constexpr ResultType kElementsCount{ in SimdMaskToBitMaskForTests()
151 for (ResultType index{0}; index < kElementsCount; index += ResultType{1}) { in SimdMaskToBitMaskForTests()
153 mask |= ResultType{1} << ResultType{index}; in SimdMaskToBitMaskForTests()
443 template <typename ElementType, typename Lambda, typename ResultType, typename... ParameterType>
444 inline std::tuple<ResultType> VectorProcessingReduce(Lambda lambda, in VectorProcessingReduce()
445 ResultType init, in VectorProcessingReduce()
447 static_assert(std::is_same_v<ResultType, ElementType> || in VectorProcessingReduce()
448 std::is_same_v<ResultType, WideType<ElementType>>); in VectorProcessingReduce()
[all …]
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dcall_intrinsic.h252 using ResultType = std::tuple_element_t<0, IntrinsicResType>; in CallIntrinsicImpl() local
253 if constexpr (std::is_integral_v<ResultType>) { in CallIntrinsicImpl()
254 call_intrinsic_internal::SignExtend64Result<ResultType>( in CallIntrinsicImpl()
/frameworks/libs/binary_translation/intrinsics/common_to_x86/
Dintrinsics_float_test.cc42 template <typename ResultType, typename... ArgsTypes>
43 class NonInlineWrapper<ResultType(ArgsTypes...)> {
45 template <ResultType (*function)(ArgsTypes...)>
46 static ResultType __attribute__((noinline)) Call(ArgsTypes&&... args) { in Call()
/frameworks/proto_logging/stats/atoms/sysui/
Dsysui_extension_atoms.proto81 …// ResultType of the search result as defined in vendor/unbundled_google/libraries/searchuilib/src…
Dsysui_atoms.proto751 …// ResultType of the search result as defined in frameworks/libs/systemui/searchuilib/src/com/andr…
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Ddecoder.h1569 using ResultType = std::conditional_t< in GetBits() local
1574 return static_cast<ResultType>(shifted_val >> (32 - size)); in GetBits()
/frameworks/proto_logging/stats/
Datoms.proto15296 enum ResultType { enum
15320 optional ResultType result_type = 4;
18363 enum ResultType { enum
18368 optional ResultType result_type = 2;