Home
last modified time | relevance | path

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

123456789

/frameworks/native/include/ftl/
Dflags.h33 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 …]
Dfuture.h69 template <typename F, typename R = std::invoke_result_t<F, T>>
70 auto then(F&& op) && -> Future<details::future_result_t<R>> {
72 [](auto&& f, F&& op) {
80 std::move(*this), std::forward<F>(op));
128 template <typename F, typename... Args>
129 inline auto defer(F&& f, Args&&... args) { in defer()
130 return Future(std::async(std::launch::deferred, std::forward<F>(f), std::forward<Args>(args)...)); in defer()
/frameworks/base/libs/hwui/utils/
DPair.h25 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/base/services/core/java/com/android/server/
DIntentResolver.java53 public abstract class IntentResolver<F, R extends Object> {
59 public void addFilter(@Nullable PackageDataSnapshot snapshot, F f) { in addFilter()
196 private ArrayList<F> collectFilters(F[] array, IntentFilter matching) { in collectFilters()
197 ArrayList<F> res = null; in collectFilters()
200 F cur = array[i]; in collectFilters()
215 public ArrayList<F> findFilters(IntentFilter matching) { in findFilters()
227 ArrayList<F> res = null; in findFilters()
228 for (F cur : mFilters) { in findFilters()
240 public void removeFilter(F f) { in removeFilter()
245 protected void removeFilterInternal(F f) { in removeFilterInternal()
[all …]
/frameworks/libs/net/common/native/tcutils/
Dscopeguard.h33 template <typename F> class ScopeGuard {
35 ScopeGuard(F &&f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard()
65 F f_;
69 template <typename F> ScopeGuard<F> make_scope_guard(F &&f) { in make_scope_guard()
70 return ScopeGuard<F>(std::forward<F>(f)); in make_scope_guard()
/frameworks/base/libs/hwui/thread/
DWorkQueue.h82 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 …]
DCommonPool.h86 template <class F>
87 static auto async(F&& func) -> std::future<decltype(func())> {
89 auto task = std::make_shared<task_t>(std::forward<F>(func));
94 template <class F>
95 static auto runSync(F&& func) -> decltype(func()) {
96 std::packaged_task<decltype(func())()> task{std::forward<F>(func)};
/frameworks/compile/slang/
Dslang_rs_export_func.cpp53 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/
Dstring_test.cpp41 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 …]
Denum_test.cpp25 enum class E { A, B, C, F = 5, ftl_last = F }; enumerator
28 static_assert(ftl::enum_last_v<E> == E::F);
36 enum class F : std::uint16_t { X = 0b1, Y = 0b10, Z = 0b100 }; enum
38 static_assert(ftl::enum_begin_v<F> == F{0});
39 static_assert(ftl::enum_last_v<F> == F{15});
40 static_assert(ftl::enum_size_v<F> == 16);
42 static_assert(ftl::flag_name(F::Z).value_or("?") == "Z");
43 static_assert(ftl::flag_name(F{0b111}).value_or("?") == "?");
/frameworks/compile/libbcc/lib/
DRSScreenFunctionsPass.cpp47 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()
DRSX86CallConvPass.cpp44 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/
DOmniFunction.java53 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 …]
DPooledLambda.java1036 static <A, B, C, D, E, F> PooledRunnable obtainRunnable( in obtainRunnable()
1037 HexConsumer<? super A, ? super B, ? super C, ? super D, ? super E, ? super F> function, in obtainRunnable()
1038 A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { in obtainRunnable()
1058 static <A, B, C, D, E, F, R> PooledSupplier<R> obtainSupplier( in obtainSupplier()
1059 HexFunction<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, in obtainSupplier() argument
1060 ? extends R> function, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { in obtainSupplier()
1094 static <A, B, C, D, E, F> Message obtainMessage( in obtainMessage()
1095 HexConsumer<? super A, ? super B, ? super C, ? super D, ? super E, ? super F> function, in obtainMessage()
1096 A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { in obtainMessage()
1120 static <A, B, C, D, E, F, G> PooledRunnable obtainRunnable( in obtainRunnable()
[all …]
/frameworks/compile/slang/StripUnkAttr/
Dstrip_unknown_attributes.cpp23 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/libs/binder/rust/binder_tokio/
Dlib.rs128 fn block_on<F: Future>(&self, future: F) -> F::Output { in block_on()
134 fn block_on<F: Future>(&self, future: F) -> F::Output { in block_on()
140 fn block_on<F: Future>(&self, future: F) -> F::Output { in block_on()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs321 fn dump<F: AsRawFd>(&mut self, fp: &F, args: &[&str]) -> Result<()> { in dump() argument
595 pub fn new<F>(callback: F) -> DeathRecipient in new()
597 F: Fn() + Send + Sync + 'static, in new()
599 let callback: *const F = Arc::into_raw(Arc::new(callback)); in new() constant
606 sys::AIBinder_DeathRecipient_new(Some(Self::binder_died::<F>)) in new()
613 … sys::AIBinder_DeathRecipient_setOnUnlinked(recipient, Some(Self::cookie_decr_refcount::<F>)); in new()
619 cookie_incr_refcount: Self::cookie_incr_refcount::<F>, in new()
620 cookie_decr_refcount: Self::cookie_decr_refcount::<F>, in new()
652 unsafe extern "C" fn binder_died<F>(cookie: *mut c_void) in binder_died()
654 F: Fn() + Send + Sync + 'static, in binder_died()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DWatchedIntentResolver.java41 public abstract class WatchedIntentResolver<F extends WatchedIntentFilter,
43 extends IntentResolver<F, R>
104 public void addFilter(@Nullable PackageDataSnapshot snapshot, F f) { in addFilter()
111 public void removeFilter(F f) { in removeFilter()
118 protected void removeFilterInternal(F f) { in removeFilterInternal()
144 public ArrayList<F> findFilters(WatchedIntentFilter matching) { in findFilters()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.h45 template <typename F>
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 = new Task<F>(std::move(f)); in makeTask()
/frameworks/base/tests/LegacyRestoreTest/
Dkk-fixed-encrypted-settings-abcd.ab12 �������� ���wz7-L-���|lt���=Ź��d�@Ɨ5�4$�s�+89��t�Fʹ�P{�r�������AE�l�]p�g ��<>��6�����w�p�;�i…
13 &�R���o�!�D�ɁF v�,� ]�"��\(��g�z�� �ߙ5G�n��{2�
14 Y?^[��S�|�+�����u��H!�D���F�o�7�_-�p�
21 …`��$�|��3��[c�g�lK7��Q~��3�.;ݒ�����aX������ĈL*�Č�F��[u(��+ڛ���x��f�i����b-nYkܷ���(j��� B���
22 +� �-��i���F��u휴�%����mc�tke�}{�#4�;3H�{�;3�n�v�h��0�28 1d\�,�ڑ�2�;
23 …��8��ӑa�і���|W��x��?�RE�W���.�t0:�� Gw�M3}p�9��Q褢|�6�U.Z(�����w�]-�%ʅ��F�>z)��3�u-G
/frameworks/native/cmds/dumpstate/
DDumpPool.h111 template<class F, class... Args>
112 std::future<std::string> enqueueTask(const std::string& duration_title, F&& f, Args&&... args) { in enqueueTask()
113 std::function<void(void)> func = std::bind(std::forward<F>(f), in enqueueTask()
131 template<class F, class... Args> std::future<std::string> enqueueTaskWithFd( in enqueueTaskWithFd()
132 const std::string& duration_title, F&& f, Args&&... args) { in enqueueTaskWithFd()
133 std::function<void(int)> func = std::bind(std::forward<F>(f), in enqueueTaskWithFd()
/frameworks/native/services/sensorservice/
DFusion.cpp417 mat34_t F; in getF() local
423 F[0].x = q.w; F[1].x =-q.z; F[2].x = q.y; in getF()
424 F[0].y = q.z; F[1].y = q.w; F[2].y =-q.x; in getF()
425 F[0].z =-q.y; F[1].z = q.x; F[2].z = q.w; in getF()
426 F[0].w =-q.x; F[1].w =-q.y; F[2].w =-q.z; in getF()
427 return F; in getF()
/frameworks/av/media/img_utils/include/img_utils/
DPair.h28 template<typename F, typename S>
31 F first;
38 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair()
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_with_password13 …�'O��MFa��������A���vI�>O�a��������R!�h$1œ*1�<zI�|��>��ű�K-� EO�F����17�p�0QlB������…
16 �i�8H���-M"�n�Df�*�}`Jo( �9�)�i��^[�E4��]Ѽ�Ҳ7Џ�Ӹ���F���*�m��K�w�C$ïJ���7�7R��i���fK����\�/…
24 …@Ɉ�ɌT I��'�ɽ��o�c�m��3;,�I���?/�i�s��X��i�3Y��U?�k�g��x�0��k��}E⣛,�� F���R)̌1?��m>gof�X�q�…
26 ��#�$�A���Sd5�S��^���{���F�L��d`�VQ̗hC���mwT GB¥�8p�p,��)�⊯L�L!/3Xv�И f=�b<�m?��g�X�@�ф��…
27 B0"�eE'S���5�� P����S�f/�-B�A�3��"�]Ht��Ax@��� ��,x�^HS�D#�<%+��S��F�D���b���ڇ�B�?��_:�cpi>/…
29 d�Wĥb$b�9Qt[,�F|˩g��hY��)K� ��Jz�yj�T� p4��f�QMR��;o�_b�{n�Xc�t)^v?�� >Ze��̈́��Yq[��Al=W��s…
37F(C�y�p� ��Lm~d����&�%h��b�1;�L�����g��A%���!�W?b`?tnYg�����u8�WͲ�k8��z�^�o���F�z^ �Q��EMGI…
38 …2N��P�x�$���K�qV��lg���vu���El����$~N�*n�`�T�β�ѹ��j:��6�'庤�ĝB�AK�F��M_�+�D���a[�[�V…
41 hRU�`��T<�Vyv[��b26N,5��~G���SAP�gx7��ڎK��l�FF=U0���E)`���Kƺ'��ڌ/����n�>ނ����g�cT�M����.33…
53 n�#��Jc.f(�;��H�n�w/�F�< X��~�^,2p˪(剃%������Ӝ��L��o�G��B���j�7I�%9�|ͬn
[all …]
/frameworks/compile/libbcc/tools/bcc_strip_attr/
Dbcc_strip_attr.cpp58 bool runOnFunction(Function &F) { in runOnFunction() argument
61 if (F.hasFnAttribute("target-cpu") || in runOnFunction()
62 F.hasFnAttribute("target-features")) { in runOnFunction()
66 AttributeSet ToStrip = AttributeSet::get(F.getContext(), in runOnFunction()
68 F.removeAttributes(AttributeSet::FunctionIndex, ToStrip); in runOnFunction()

123456789