Home
last modified time | relevance | path

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

12345678910

/frameworks/native/include/ftl/
Dfunction.h138 class Function; variable
150 struct is_function<Function<F, N>> : public std::true_type {};
156 class Function<Ret(Args...), N> final {
168 Function() = default;
171 Function(std::nullptr_t) {}
172 Function& operator=(std::nullptr_t) { return *this = Function(nullptr); }
176 Function(NoOpTag) : function_(details::bind_opaque_no_op<Ret, Args...>()) {}
177 Function& operator=(NoOpTag) { return *this = Function(no_op); }
185 Function(const F& f)
190 Function& operator=(const F& f) noexcept {
[all …]
/frameworks/native/libs/ftl/
Dfunction_test.cpp47 static_assert(std::is_invocable_r_v<void, ftl::Function<void()>>);
48 static_assert(std::is_trivially_copyable_v<ftl::Function<void()>>);
49 static_assert(std::is_trivially_destructible_v<ftl::Function<void()>>);
50 static_assert(std::is_trivially_copy_constructible_v<ftl::Function<void()>>);
51 static_assert(std::is_trivially_move_constructible_v<ftl::Function<void()>>);
52 static_assert(std::is_trivially_copy_assignable_v<ftl::Function<void()>>);
53 static_assert(std::is_trivially_move_assignable_v<ftl::Function<void()>>);
69 static_assert(ftl::is_function_v<ftl::Function<void()>>);
100 TEST(Function, Example) { in TEST() argument
114 ftl::Function<void()> f; in TEST()
[all …]
/frameworks/compile/libbcc/lib/
DRSX86CallConvPass.cpp44 bool IsRSFunctionOfInterest(llvm::Function &F) { in IsRSFunctionOfInterest()
60 bool IsDerefNeeded(llvm::Function *F, llvm::Argument &Arg) { in IsDerefNeeded()
94 bool FillArgsToDeref(llvm::Function *F, std::vector<unsigned> &ArgNums) { in FillArgsToDeref()
110 llvm::Function *RedefineFn(llvm::Function *OrigFn, in RedefineFn()
119 llvm::Function *NewFn = llvm::Function::Create(NewTy, in RedefineFn()
144 llvm::Function *NewFn, in ReplaceCallInsn()
181 std::vector<llvm::Function *> FunctionsToHandle; in runOnModule()
196 llvm::Function *NewFn = RedefineFn(OrigFn, ArgsToDeref); in runOnModule()
DRSKernelExpand.cpp96 typedef std::unordered_set<llvm::Function *> FunctionSet;
144 uint32_t getRootSignature(llvm::Function *Function) { in getRootSignature() argument
150 for (llvm::Function::arg_iterator B = Function->arg_begin(), in getRootSignature()
151 E = Function->arg_end(); in getRootSignature()
341 llvm::Function *createEmptyExpandedForEachKernel(llvm::StringRef OldName) { in createEmptyExpandedForEachKernel()
342 llvm::Function *ExpandedFunction = in createEmptyExpandedForEachKernel()
343 llvm::Function::Create(ExpandedForEachType, in createEmptyExpandedForEachKernel()
347 llvm::Function::arg_iterator AI = ExpandedFunction->arg_begin(); in createEmptyExpandedForEachKernel()
366 llvm::Function *createEmptyExpandedReduceAccumulator(llvm::StringRef OldName, in createEmptyExpandedReduceAccumulator()
374 llvm::Function *FnExpandedAccumulator = in createEmptyExpandedReduceAccumulator()
[all …]
DRSScriptGroupFusion.cpp30 using llvm::Function;
39 const Function* getInvokeFunction(const Source& source, const int slot, in getInvokeFunction()
44 Function* func = newModule->getFunction(functionName); in getInvokeFunction()
51 const Function*
73 const Function* function = mergedModule->getFunction(functionName); in getFunction()
144 const Function* firstF = getFunction(M, sources.front(), slots.front(), nullptr); in getFusedFuncType()
165 const Function* lastF = getFunction(M, sources.back(), slots.back(), nullptr); in getFusedFuncType()
192 Function* fusedKernel = in fuseKernels()
193 (Function*)(mergedModule->getOrInsertFunction(fusedName, fusedType)); in fuseKernels()
200 Function::arg_iterator argIter = fusedKernel->arg_begin(); in fuseKernels()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/
DAuthenticationModule.kt23 import java.util.function.Function in <lambda>()
36 ): Function<Int, KeyguardSecurityModel.SecurityMode> { in <lambda>()
37 return Function { userId -> model.getSecurityMode(userId) } in <lambda>()
/frameworks/native/libs/binder/include/binder/
DRpcThreads.h74 template <typename Function, typename... Args>
75 RpcMaybeThread(Function&& f, Args&&... args) { in RpcMaybeThread()
80 std::decay_t<Function> f; in RpcMaybeThread()
83 explicit Vars(Function&& f, Args&&... args) in RpcMaybeThread()
86 auto vars = std::make_shared<Vars>(std::forward<Function>(f), std::forward<Args>(args)...); in RpcMaybeThread()
/frameworks/base/core/java/android/view/textclassifier/
DTextLinksParams.java31 import java.util.function.Function;
42 private static final Function<TextLink, TextLinkSpan> DEFAULT_SPAN_FACTORY =
47 private final Function<TextLink, TextLinkSpan> mSpanFactory;
52 Function<TextLink, TextLinkSpan> spanFactory) { in TextLinksParams()
158 private Function<TextLink, TextLinkSpan> mSpanFactory = DEFAULT_SPAN_FACTORY;
177 public Builder setSpanFactory(@Nullable Function<TextLink, TextLinkSpan> spanFactory) { in setSpanFactory()
/frameworks/compile/libbcc/tests/libbcc/
Dtest_reduce_general_metadata.ll48 ; Function Attrs: nounwind
56 ; Function Attrs: nounwind
62 ; Function Attrs: nounwind
70 ; Function Attrs: nounwind
79 ; Function Attrs: nounwind
88 ; Function Attrs: nounwind
95 ; Function Attrs: nounwind
98 ; Function Attrs: nounwind
127 ; Function Attrs: nounwind
142 ; Function Attrs: nounwind
[all …]
Dtest_reduce_general_cleanup.ll51 ; Function Attrs: nounwind
59 ; Function Attrs: nounwind
68 ; Function Attrs: nounwind
77 ; Function Attrs: nounwind
93 ; Function Attrs: nounwind
122 ; Function Attrs: nounwind
137 ; Function Attrs: nounwind
151 ; Function Attrs: nounwind
157 ; Function Attrs: nounwind
170 ; Function Attrs: nounwind
[all …]
/frameworks/rs/script_api/
DSpecification.h31 class Function; variable
220 class Function : public Definition {
232 Function(const std::string& name);
233 ~Function();
338 Function* mFunction; // Not owned
403 void createPermutations(Function* function, Scanner* scanner);
406 FunctionSpecification(Function* function) : mFunction(function), mInternal(false), in FunctionSpecification()
410 Function* getFunction() const { return mFunction; } in getFunction()
483 FunctionPermutation(Function* function, FunctionSpecification* specification,
529 std::map<std::string, Function*> mDocumentedFunctions;
[all …]
DSpecification.cpp321 Function::Function(const string& name) : Definition(name) { in Function() function in Function
325 Function::~Function() { in ~Function()
331 bool Function::someParametersAreDocumented() const { in someParametersAreDocumented()
340 void Function::addParameter(ParameterEntry* entry, Scanner* scanner) { in addParameter()
355 void Function::addReturn(ParameterEntry* entry, Scanner* scanner) { in addReturn()
499 void FunctionSpecification::createPermutations(Function* function, Scanner* scanner) { in createPermutations()
622 Function* function = systemSpecification.findOrCreateFunction(name, &created); in scanFunctionSpecification()
707 FunctionPermutation::FunctionPermutation(Function* func, FunctionSpecification* spec, in FunctionPermutation()
798 Function* function = spec->getFunction(); in addFunctionSpecification()
799 mDocumentedFunctions.insert(pair<string, Function*>(function->getName(), function)); in addFunctionSpecification()
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DOrdinalGenerator.java23 import java.util.function.Function;
36 @NonNull private final Function<T, T> mCanonicalizationFunction;
38 OrdinalGenerator(@NonNull Function<T, T> canonicalizationFunction) { in OrdinalGenerator()
DTimeZoneCanonicalizer.java21 import java.util.function.Function;
27 final class TimeZoneCanonicalizer implements Function<String, String> {
/frameworks/native/cmds/lshal/
DTimeout.h32 template<class R, class P, class Function, class I, class... Args>
33 typename std::invoke_result<Function, I *, Args...>::type
34 timeoutIPC(std::chrono::duration<R, P> wait, const sp<I> &interfaceObject, Function &&func, in timeoutIPC()
/frameworks/compile/slang/StripUnkAttr/
Dstrip_unknown_attributes.h18 class Function; variable
34 bool stripUnknownAttributes(llvm::Function &F);
Dstrip_unknown_attributes.cpp23 bool stripUnknownAttributes(llvm::Function &F) { in stripUnknownAttributes()
25 for (llvm::Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); in stripUnknownAttributes()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DJarUtil.java25 import java.util.function.Function;
43 @NotNull Map<String, byte[]> all, @NotNull Function<byte[], byte[]> transform) in createJar()
72 createJar(outStream, all, Function.identity()); in createJar()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DComparableUtils.java24 import java.util.function.Function;
44 final ToIntBiFunction<T, T> compareTo, final Function<T, String> name) { in assertAscendingOrdering()
62 final ToIntBiFunction<T, T> compareTo, final Function<T, String> name) {
87 final ToIntBiFunction<T, T> compareTo, final Function<T, String> name) {
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityOverrideData.java37 import java.util.function.Function;
55 public Function<PackageManager, PackageManager> createPackageManager;
56 public Function<TargetInfo, Boolean> onSafelyStartInternalCallback;
57 public Function<ChooserListAdapter, Void> onQueryDirectShareTargets;
/frameworks/base/mime/java/android/content/type/
DDefaultMimeMapFactory.java28 import java.util.function.Function;
60 public static MimeMap create(Function<String, InputStream> resourceSupplier) { in create()
77 Function<String, InputStream> resourceSupplier, String resourceName) { in parseTypes()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPolicyUpgraderDataProvider.java25 import java.util.function.Function;
46 Function<ComponentName, DeviceAdminInfo> getAdminInfoSupplier(int userId); in getAdminInfoSupplier()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DOrdinalGeneratorTest.java28 import java.util.function.Function;
35 OrdinalGenerator<String> ordinalGenerator = new OrdinalGenerator<>(Function.identity()); in testOrdinal_withIdentityFunction()
50 OrdinalGenerator<String> ordinalGenerator = new OrdinalGenerator<>(Function.identity()); in testOrdinals_withIdentityFunction()
/frameworks/base/services/core/java/com/android/server/audio/
DServiceHolder.java34 import java.util.function.Function;
57 private final Function<? super IBinder, ? extends I> mCastFunction;
84 @NonNull Function<? super IBinder, ? extends I> castFunction, in ServiceHolder()
114 @NonNull Function<? super IBinder, ? extends I> castFunction, in ServiceHolder()
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultCrossProfileResolver.java37 import java.util.function.Function;
82 Function<String, PackageStateInternal> pkgSettingFunction) { in resolveIntent()
165 Function<String, PackageStateInternal> pkgSettingFunction) { in querySkipCurrentProfileIntents()
206 Function<String, PackageStateInternal> pkgSettingFunction) { in queryCrossProfileIntents()
274 int sourceUserId, @NonNull Function<String, PackageStateInternal> pkgSettingFunction) { in createForwardingResolveInfo()

12345678910