/frameworks/native/include/ftl/ |
D | flags.h | 33 template <typename F> 38 static_assert(std::is_enum_v<F>, "Flags type must be an enum"); 39 using U = std::underlying_type_t<F>; 42 constexpr Flags(F f) : mFlags(static_cast<U>(f)) {} in Flags() 44 constexpr Flags(const Flags<F>& f) : mFlags(f.mFlags) {} in Flags() 51 constexpr Flags(T t, std::enable_if_t<!is_scoped_enum_v<F>, T>* = nullptr) : mFlags(t) {} in mFlags() 54 explicit constexpr Flags(T t, std::enable_if_t<is_scoped_enum_v<F>, T>* = nullptr) 63 Iterator(Flags<F> flags) : mRemainingFlags(flags.mFlags) { (*this)++; } in Iterator() 91 F operator*() const { return F{mCurrFlag}; } 100 using value_type = F; [all …]
|
D | optional.h | 43 template <typename F> 44 constexpr auto transform(F&& f) const& { in transform() 45 using R = details::transform_result_t<F, decltype(value())>; in transform() 46 if (has_value()) return R(std::invoke(std::forward<F>(f), value())); in transform() 50 template <typename F> 51 constexpr auto transform(F&& f) & { in transform() 52 using R = details::transform_result_t<F, decltype(value())>; in transform() 53 if (has_value()) return R(std::invoke(std::forward<F>(f), value())); in transform() 57 template <typename F> 58 constexpr auto transform(F&& f) const&& { in transform() [all …]
|
D | function.h | 137 template <typename F, std::size_t N = 0> 149 template <typename F, std::size_t N> 150 struct is_function<Function<F, N>> : public std::true_type {}; 184 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>> 185 Function(const F& f) 187 function_(details::bind_opaque_function_object<F, Ret, Args...>(f)) {} 189 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>> 190 Function& operator=(const F& f) noexcept { 192 details::bind_opaque_function_object<F, Ret, Args...>(f)}; 225 template <typename F> [all …]
|
D | unit.h | 46 template <typename F> 48 F f; 56 template <typename F> 57 constexpr auto unit_fn(F&& f) -> UnitFn<std::decay_t<F>> { 58 return {std::forward<F>(f)};
|
D | future.h | 70 template <typename F, typename R = std::invoke_result_t<F, T>> 71 auto then(F&& op) && -> Future<details::future_result_t<R>> { 73 [](auto&& f, F&& op) { 81 std::move(*this), std::forward<F>(op)); 129 template <typename F, typename... Args> 130 inline auto defer(F&& f, Args&&... args) { in defer() 131 return Future(std::async(std::launch::deferred, std::forward<F>(f), std::forward<Args>(args)...)); in defer()
|
/frameworks/base/packages/SettingsLib/tests/robotests/fragment/src/main/java/org/robolectric/shadows/androidx/fragment/ |
D | FragmentController.java | 31 public class FragmentController<F extends Fragment> 32 extends ComponentController<FragmentController<F>, F> { 34 private final F mFragment; 37 private FragmentController(F fragment, Class<? extends FragmentActivity> activityClass) { in FragmentController() 42 F fragment, Class<? extends FragmentActivity> activityClass, Intent intent) { in FragmentController() 47 F fragment, Class<? extends FragmentActivity> activityClass, Bundle arguments) { in FragmentController() 52 F fragment, in FragmentController() 71 public static <F extends Fragment> FragmentController<F> of(F fragment) { in of() 82 public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent) { in of() 93 public static <F extends Fragment> FragmentController<F> of(F fragment, Bundle arguments) { in of() [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | Pair.h | 25 template <typename F, typename S> 27 F first; 32 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair() 34 inline const F& getFirst() const { return first; } in getFirst() 41 template <typename F, typename S> 42 struct trait_trivial_ctor<uirenderer::Pair<F, S> > { 43 enum { value = aggregate_traits<F, S>::has_trivial_ctor }; 45 template <typename F, typename S> 46 struct trait_trivial_dtor<uirenderer::Pair<F, S> > { 47 enum { value = aggregate_traits<F, S>::has_trivial_dtor }; [all …]
|
/frameworks/native/include/ftl/details/ |
D | optional.h | 40 template <typename F, typename T> 42 using type = Optional<std::remove_cv_t<std::invoke_result_t<F, T>>>; 45 template <typename F, typename T> 46 using transform_result_t = typename transform_result<F, T>::type; 48 template <typename F, typename T> 50 using type = remove_cvref_t<std::invoke_result_t<F, T>>; 54 template <typename F, typename T> 55 using and_then_result_t = typename and_then_result<F, T>::type; 57 template <typename F, typename T> 59 using type = remove_cvref_t<std::invoke_result_t<F>>; [all …]
|
D | function.h | 62 template <typename F, typename Ret, typename... Args> 63 auto bind_opaque_function_object(const F&) -> Ret (*)(void*, Args...) { 65 return std::invoke(*static_cast<F*>(opaque), std::forward<Args>(args)...); 125 template <typename F, typename = decltype(&F::operator())> 128 using type = remove_member_function_pointer_t<&F::operator()>; 132 (std::max(sizeof(std::intptr_t), sizeof(F)) - 1) / sizeof(std::intptr_t);
|
/frameworks/base/services/core/java/com/android/server/ |
D | IntentResolver.java | 54 public abstract class IntentResolver<F, R extends Object> { 60 public void addFilter(@Nullable PackageDataSnapshot snapshot, F f) { in addFilter() 123 private ArrayList<F> collectFilters(F[] array, IntentFilter matching) { in collectFilters() 124 ArrayList<F> res = null; in collectFilters() 127 F cur = array[i]; in collectFilters() 142 public ArrayList<F> findFilters(IntentFilter matching) { in findFilters() 154 ArrayList<F> res = null; in findFilters() 155 for (F cur : mFilters) { in findFilters() 167 public void removeFilter(F f) { in removeFilter() 172 protected void removeFilterInternal(F f) { in removeFilterInternal() [all …]
|
/frameworks/base/libs/hwui/thread/ |
D | WorkQueue.h | 82 template <class F> 83 void postAt(nsecs_t time, F&& func) { in postAt() 84 enqueue(WorkItem{time, std::function<void()>(std::forward<F>(func))}); in postAt() 87 template <class F> 88 void postDelayed(nsecs_t delay, F&& func) { in postDelayed() 89 enqueue(WorkItem{clock::now() + delay, std::function<void()>(std::forward<F>(func))}); in postDelayed() 92 template <class F> 93 void post(F&& func) { in post() 94 postAt(0, std::forward<F>(func)); in post() 97 template <class F> [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Functional.h | 24 template <typename F> 30 static_assert(sizeof(F) <= kFunctionBufferSize, in assert_small_callable() 35 template <typename F> 36 std::unique_ptr<void, std::function<void(void*)>> make_scope_guard(F&& f) { in make_scope_guard() 44 template <typename F> 45 SmallFunction(F&& f) : std::function<T>(f) { in SmallFunction() 46 assert_small_callable<F>(); in SmallFunction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | FlowDumper.kt | 50 fun <T, F : SharedFlow<T>> F.dumpReplayCache(dumpName: String): F in <lambda>() 57 fun <T, F : StateFlow<T>> F.dumpValue(dumpName: String): F in <lambda>() 112 override fun <T, F : StateFlow<T>> F.dumpValue(dumpName: String): F { in dumpValue() 117 override fun <T, F : SharedFlow<T>> F.dumpReplayCache(dumpName: String): F { in dumpReplayCache()
|
D | Utils.kt | 43 fun <A, B, C, D, E, F> toSextuple(a: A, bcdef: Quint<B, C, D, E, F>) = in <lambda>() 46 fun <A, B, C, D, E, F, G> toSeptuple(a: A, bcdefg: Sextuple<B, C, D, E, F, G>) = in <lambda>() 110 fun <A, B, C, D, E, F> Flow<A>.sample( in <lambda>() 115 f: Flow<F>, in <lambda>() 116 ): Flow<Sextuple<A, B, C, D, E, F>> { in <lambda>() 127 fun <A, B, C, D, E, F, G> Flow<A>.sample( in <lambda>() 132 f: Flow<F>, in <lambda>() 134 ): Flow<Septuple<A, B, C, D, E, F, G>> { in <lambda>() 150 data class Sextuple<A, B, C, D, E, F>( 156 val sixth: F, [all …]
|
/frameworks/compile/slang/ |
D | slang_rs_export_func.cpp | 53 RSExportFunc *F; in Create() local 61 F = new RSExportFunc(Context, Name, FD); in Create() 65 F->mParamPacketType = nullptr; in Create() 69 std::string Id = CreateDummyName("helper_func_param", F->getName()); in Create() 86 F->getName().c_str()); in Create() 113 "reflection\n", F->getName().c_str()); in Create() 120 F->mParamPacketType = static_cast<RSExportRecordType *>(ET); in Create() 123 return F; in Create() 146 const RSExportRecordType::Field *F = *FI; in checkParameterPacketType() local 148 llvm::Type *T1 = F->getType()->getLLVMType(); in checkParameterPacketType() [all …]
|
/frameworks/native/libs/ftl/ |
D | string_test.cpp | 41 template <typename F, typename T> 43 constexpr auto kRadix = F::kRadix; in ToCharsTest() 53 EXPECT_EQ(ftl::to_chars(buffer, kMin, kRadix), F{}(kMin)); in ToCharsTest() 54 EXPECT_EQ(ftl::to_chars(buffer, kMax, kRadix), F{}(kMax)); in ToCharsTest() 55 EXPECT_EQ(ftl::to_chars(buffer, kNeg, kRadix), F{}(kNeg)); in ToCharsTest() 56 EXPECT_EQ(ftl::to_chars(buffer, kPos, kRadix), F{}(kPos)); in ToCharsTest() 62 template <typename F, typename Types> 65 template <typename F, typename T, typename... Ts> 66 struct ToCharsTests<F, Types<T, Ts...>> { 68 ToCharsTest<F, T>(); in test() [all …]
|
/frameworks/compile/libbcc/lib/ |
D | RSScreenFunctionsPass.cpp | 47 bool isLegal(llvm::Function &F) { in isLegal() argument 53 if (!F.empty()) in isLegal() 56 llvm::StringRef FName = F.getName(); in isLegal() 80 for(auto &F: FunctionList) { in runOnModule() local 81 if (!isLegal(F)) { in runOnModule() 83 F.getName().str().c_str()); in runOnModule()
|
D | RSX86CallConvPass.cpp | 44 bool IsRSFunctionOfInterest(llvm::Function &F) { in IsRSFunctionOfInterest() argument 46 if (!F.empty()) // defined locally in IsRSFunctionOfInterest() 50 llvm::StringRef FName = F.getName(); in IsRSFunctionOfInterest() 60 bool IsDerefNeeded(llvm::Function *F, llvm::Argument &Arg) { in IsDerefNeeded() argument 79 llvm::StringRef FName = F->getName(); in IsDerefNeeded() 94 bool FillArgsToDeref(llvm::Function *F, std::vector<unsigned> &ArgNums) { in FillArgsToDeref() argument 97 for (auto &Arg: F->getArgumentList()) { in FillArgsToDeref() 98 if (IsDerefNeeded(F, Arg)) { in FillArgsToDeref() 103 F->getName().str().c_str()); in FillArgsToDeref()
|
/frameworks/base/core/java/com/android/internal/util/function/pooled/ |
D | PooledLambda.java | 548 static <A, B, C, D, E, F> PooledRunnable obtainRunnable( in obtainRunnable() 549 HexConsumer<? super A, ? super B, ? super C, ? super D, ? super E, ? super F> function, in obtainRunnable() 550 A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { in obtainRunnable() 584 static <A, B, C, D, E, F> Message obtainMessage( in obtainMessage() 585 HexConsumer<? super A, ? super B, ? super C, ? super D, ? super E, ? super F> function, in obtainMessage() 586 A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { in obtainMessage() 610 static <A, B, C, D, E, F, G> PooledRunnable obtainRunnable( in obtainRunnable() 611 HeptConsumer<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, in obtainRunnable() argument 612 ? super G> function, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) { in obtainRunnable() 647 static <A, B, C, D, E, F, G> Message obtainMessage( in obtainMessage() [all …]
|
D | OmniFunction.java | 53 abstract class OmniFunction<A, B, C, D, E, F, G, H, I, J, K, R> implements 56 HexFunction<A, B, C, D, E, F, R>, HeptFunction<A, B, C, D, E, F, G, R>, 57 OctFunction<A, B, C, D, E, F, G, H, R>, NonaFunction<A, B, C, D, E, F, G, H, I, R>, 58 DecFunction<A, B, C, D, E, F, G, H, I, J, R>, 59 UndecFunction<A, B, C, D, E, F, G, H, I, J, K, R>, 61 QuintConsumer<A, B, C, D, E>, HexConsumer<A, B, C, D, E, F>, 62 HeptConsumer<A, B, C, D, E, F, G>, OctConsumer<A, B, C, D, E, F, G, H>, 63 NonaConsumer<A, B, C, D, E, F, G, H, I>, DecConsumer<A, B, C, D, E, F, G, H, I, J>, 64 UndecConsumer<A, B, C, D, E, F, G, H, I, J, K>, 69 abstract R invoke(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k); in invoke() [all …]
|
/frameworks/native/libs/binder/rust/src/ |
D | proxy.rs | 310 fn dump<F: AsRawFd>(&mut self, fp: &F, args: &[&str]) -> Result<()> { in dump() argument 570 pub fn new<F>(callback: F) -> DeathRecipient in new() 572 F: Fn() + Send + Sync + 'static, in new() 574 let callback: *const F = Arc::into_raw(Arc::new(callback)); in new() constant 580 let recipient = unsafe { sys::AIBinder_DeathRecipient_new(Some(Self::binder_died::<F>)) }; in new() 588 Some(Self::cookie_decr_refcount::<F>), in new() 595 cookie_incr_refcount: Self::cookie_incr_refcount::<F>, in new() 596 cookie_decr_refcount: Self::cookie_decr_refcount::<F>, in new() 633 unsafe extern "C" fn binder_died<F>(cookie: *mut c_void) in binder_died() 635 F: Fn() + Send + Sync + 'static, in binder_died() [all …]
|
/frameworks/compile/slang/StripUnkAttr/ |
D | strip_unknown_attributes.cpp | 23 bool stripUnknownAttributes(llvm::Function &F) { in stripUnknownAttributes() argument 25 for (llvm::Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); in stripUnknownAttributes() 33 llvm::AttributeSet ToStrip = llvm::AttributeSet::get(F.getContext(), in stripUnknownAttributes() 39 F.removeFnAttr(llvm::Attribute::ArgMemOnly); in stripUnknownAttributes()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | MessageQueue.h | 42 template <typename F> 48 friend sp<Task<F>> sp<Task<F>>::make(Args&&... args); 50 explicit Task(F&& f) : mTask(std::move(f)) {} in Task() 54 using T = std::invoke_result_t<F>; 58 template <typename F> 59 inline auto makeTask(F&& f) { in makeTask() 60 sp<Task<F>> task = sp<Task<F>>::make(std::forward<F>(f)); in makeTask()
|
/frameworks/native/libs/binder/rust/rpcbinder/src/server/ |
D | trusty.rs | 57 pub fn new_per_session<F: PerSessionCallback>(f: F) -> RpcServer { in new_per_session() 61 Some(per_session_callback_wrapper::<F>), in new_per_session() 63 Some(per_session_callback_deleter::<F>), in new_per_session() 70 unsafe extern "C" fn per_session_callback_wrapper<F: PerSessionCallback>( in per_session_callback_wrapper() 76 let cb = unsafe { &mut *cb_ptr.cast::<F>() }; in per_session_callback_wrapper() 97 unsafe extern "C" fn per_session_callback_deleter<F: PerSessionCallback>(cb: *mut c_char) { in per_session_callback_deleter() 101 drop(Box::<F>::from_raw(cb.cast())); in per_session_callback_deleter()
|
/frameworks/native/libs/binder/rust/binder_tokio/ |
D | lib.rs | 160 fn block_on<F: Future>(&self, future: F) -> F::Output { in block_on() 166 fn block_on<F: Future>(&self, future: F) -> F::Output { in block_on() 172 fn block_on<F: Future>(&self, future: F) -> F::Output { in block_on()
|