Home
last modified time | relevance | path

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

12345678910

/system/libbase/include/android-base/
Dscopeguard.h26 template <typename F>
29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard()
57 F f_;
61 template <typename F>
62 ScopeGuard<F> make_scope_guard(F&& f) { in make_scope_guard()
63 return ScopeGuard<F>(std::forward<F>(f)); in make_scope_guard()
/system/iorap/src/common/
Dtype.h141 template <size_t i, typename Tuple, typename F>
142 static constexpr void for_each_impl(Tuple&& t, F&& f) { in for_each_impl()
147 for_each_impl<i+1>(std::forward<Tuple>(t), std::forward<F>(f)); in for_each_impl()
152 template <typename Tuple, typename F>
153 static constexpr void for_each(Tuple&& t, F&& f) { in for_each()
154 return for_each_impl<0u>(std::forward<Tuple>(t), std::forward<F>(f)); in for_each()
Dintrospection.h62 template <typename T, typename F, F T::*member>
67 static constexpr auto type = type_c<F>;
79 F U_noref::*safer_member = member;
96 template <typename T, typename F>
97 static constexpr void for_each_member_field_value(T&& self, F&& fun) {
117 template <typename T, typename F>
118 static constexpr void for_each_member_field_set_value(T&& self, F&& fun) {
/system/libziparchive/incfs_support/include/incfs_support/
Daccess.h70 template <class Ptr, class F>
71 auto access(Ptr ptr, F&& accessor) -> optional_result<Ptr, F> {
74 if constexpr (is_void_func<Ptr, F>) {
/system/memory/libmemunreachable/
DHeapWalker.h88 template <class F>
89 void ForEachPtrInRange(const Range& range, F&& f);
91 template <class F>
92 void ForEachAllocation(F&& f);
122 template <class F>
123 inline void HeapWalker::ForEachPtrInRange(const Range& range, F&& f) { in ForEachPtrInRange()
137 template <class F>
138 inline void HeapWalker::ForEachAllocation(F&& f) { in ForEachAllocation()
/system/security/keystore2/src/
Dtry_insert.rs43 fn get_or_try_to_insert_with<E, F: FnOnce() -> Result<Self::Item, E>>( in get_or_try_to_insert_with()
45 f: F, in get_or_try_to_insert_with() argument
51 fn get_or_try_to_insert_with<E, F: FnOnce() -> Result<Self::Item, E>>( in get_or_try_to_insert_with()
53 f: F, in get_or_try_to_insert_with() argument
Draw_device.rs100 pub fn create_and_store_key<F>( in create_and_store_key()
105 creator: F, in create_and_store_key() argument
108 F: FnOnce(&Strong<dyn IKeyMintDevice>) -> Result<KeyCreationResult, binder::Status>, in create_and_store_key()
170 pub fn lookup_or_generate_key<F>( in lookup_or_generate_key()
176 validate_characteristics: F, in lookup_or_generate_key() argument
179 F: FnOnce(&[KeyCharacteristics]) -> bool, in lookup_or_generate_key()
251 fn upgrade_keyblob_if_required_with<'a, T, F>( in upgrade_keyblob_if_required_with()
256 f: F, in upgrade_keyblob_if_required_with() argument
259 F: Fn(&[u8]) -> Result<T, Error>, in upgrade_keyblob_if_required_with()
Dasync_task.rs77 pub fn get_or_put_with<T: Any + Send, F>(&mut self, init: F) -> &mut T in get_or_put_with()
79 F: FnOnce() -> T, in get_or_put_with()
138 pub fn queue_hi<F>(&self, f: F) in queue_hi()
140 F: for<'r> FnOnce(&'r mut Shelf) + Send + 'static, in queue_hi()
149 pub fn queue_lo<F>(&self, f: F) in queue_lo()
151 F: FnOnce(&mut Shelf) + Send + 'static, in queue_lo()
158 pub fn add_idle<F>(&self, f: F) in add_idle()
160 F: Fn(&mut Shelf) + Send + Sync + 'static, in add_idle()
167 fn queue<F>(&self, f: F, hi_prio: bool) in queue() argument
169 F: for<'r> FnOnce(&'r mut Shelf) + Send + 'static, in queue()
Daudit_log.rs76 fn with_log_context<F>(tag: u32, f: F) in with_log_context()
78 F: Fn(LogContext) -> LogContext, in with_log_context()
Dlegacy_migrator.rs107 pub fn set_init<F>(&self, f_init: F) -> Result<()> in set_init()
109 F: FnOnce() -> (KeystoreDB, HashMap<SecurityLevel, Uuid>, Arc<LegacyBlobLoader>) in set_init()
224 fn do_serialized<F, T: Send + 'static>(&self, f: F) -> Option<Result<T>> in do_serialized() argument
226 F: FnOnce(&mut LegacyMigratorState) -> Result<T> + Send + 'static, in do_serialized()
286 pub fn with_try_migrate<F, T>( in with_try_migrate() argument
290 key_accessor: F, in with_try_migrate() argument
293 F: Fn() -> Result<T>, in with_try_migrate()
340 pub fn with_try_migrate_super_key<F, T>( in with_try_migrate_super_key() argument
344 mut key_accessor: F, in with_try_migrate_super_key() argument
347 F: FnMut() -> Result<Option<T>>, in with_try_migrate_super_key()
Dgc.rs45 pub fn new_init_with<F>(async_task: Arc<AsyncTask>, init: F) -> Self in new_init_with()
47 F: FnOnce() -> ( in new_init_with()
/system/security/keystore2/src/database/
Dutils.rs25 pub fn with_rows_extract_one<'a, T, F>(rows: &mut Rows<'a>, row_extractor: F) -> Result<T> in with_rows_extract_one()
27 F: FnOnce(Option<&Row<'a>>) -> Result<T>, in with_rows_extract_one()
40 pub fn with_rows_extract_all<'a, F>(rows: &mut Rows<'a>, mut row_extractor: F) -> Result<()> in with_rows_extract_all()
42 F: FnMut(&Row<'a>) -> Result<()>, in with_rows_extract_all()
/system/media/audio_utils/benchmarks/
Dbiquad_filter_benchmark.cpp219 template <typename F>
225 std::vector<F> input(DATA_SIZE * channelCount); in BM_BiquadFilter()
226 std::vector<F> output(DATA_SIZE * channelCount); in BM_BiquadFilter()
227 std::array<F, android::audio_utils::kBiquadNumCoefs> coefs; in BM_BiquadFilter()
231 const F amplitude = isSubnormal ? std::numeric_limits<F>::min() * 0.1 : 1.; in BM_BiquadFilter()
240 android::audio_utils::BiquadFilter<F> biquadFilter(channelCount, coefs, optimized); in BM_BiquadFilter()
/system/media/audio_utils/include/audio_utils/
Dintrinsic_utils.h82 template<typename T, typename F>
83 static inline T vdupn(F f) { in vdupn()
119 template<typename T, typename F>
120 static inline T vld1(const F *f) { in vld1()
140 constexpr size_t subelements = sizeof(element_type) / sizeof(F); in vld1()
152 f += sizeof(r1) / sizeof(F); in vld1()
277 template<typename T, typename F>
278 static inline void vst1(F *f, T a) { in vst1()
296 constexpr size_t subelements = sizeof(std::decay_t<decltype(aval[0])>) / sizeof(F); in vst1()
305 f += sizeof(std::decay_t<decltype(a1)>) / sizeof(F); in vst1()
DTimestampVerifier.h33 template <typename F /* frame count */, typename T /* time units */>
46 constexpr TimestampVerifier(const F (&frames)[N], const T (&timeNs)[N], uint32_t sampleRate) { in TimestampVerifier()
60 constexpr void add(F frames, T timeNs, uint32_t sampleRate) { in add()
138 const F newFrames = mTimestampEstimator.getYFromX((double)timeNs * 1e-9); in add()
250 using FrameTime = struct { F mFrames; T mTimeNs; }; // a "constexpr" pair
306 typename std::make_signed<F>::type, typename std::make_signed<T>::type>( in sub()
/system/libvintf/
DRuntimeInfo-target.cpp179 using F = RuntimeInfo::FetchFlag; in fetchAllInformation() typedef
183 {F::CPU_VERSION | F::KERNEL_FCM, &RF::fetchVersion, "/proc/version"}, in fetchAllInformation()
184 {F::CONFIG_GZ, &RF::fetchKernelConfigs, "/proc/config.gz"}, in fetchAllInformation()
185 {F::CPU_INFO, &RF::fetchCpuInfo, "/proc/cpuinfo"}, in fetchAllInformation()
186 {F::POLICYVERS, &RF::fetchKernelSepolicyVers, "kernel sepolicy version"}, in fetchAllInformation()
187 {F::AVB, &RF::fetchAvb, "avb version"}, in fetchAllInformation()
/system/iorap/include/binder/
Dauto_parcelable.h120 template <typename F>
121 static status_t writeAnyToParcel(Parcel* parcel, const F& value) { in writeAnyToParcel()
126 using D = std::decay_t<F>; // [const] [volatile] X[&][&] -> X in writeAnyToParcel()
131 return writeAnyToParcel(parcel, static_cast<std::underlying_type_t<F>>(value)); in writeAnyToParcel()
145 template <typename F>
152 using D = std::decay_t<F>; in readAnyFromParcel()
/system/ca-certificates/google/files/
D594f1775.055 keyid:48:E6:68:F9:2B:D2:B2:95:D7:47:D8:23:20:10:4F:33:98:90:9F:D4
58 48:E6:68:F9:2B:D2:B2:95:D7:47:D8:23:20:10:4F:33:98:90:9F:D4
72 SHA1 Fingerprint=D2:32:09:AD:23:D3:14:23:21:74:E4:0D:7F:9D:62:13:97:86:63:3A
De48193cf.056 9D:93:C6:53:8B:5E:CA:AF:3F:9F:1E:0F:E5:99:95:BC:24:F6:94:8F
77 SHA1 Fingerprint=F9:B5:B6:32:45:5F:9C:BE:EC:57:5F:80:DC:E9:6E:2C:C7:B2:78:B7
D2add47b6.044 3D:E6:29:48:9B:EA:07:CA:21:44:4A:26:DE:6E:DE:D2:83:D0:9F:59
52 SHA1 Fingerprint=1F:24:C6:30:CD:A4:18:EF:20:69:FF:AD:4F:DD:5F:46:3A:1B:69:AA
Da2df7ad7.060 81:3E:37:D8:92:B0:1F:77:9F:5C:B4:AB:73:AA:E7:F6:34:60:2F:FA
66 keyid:81:3E:37:D8:92:B0:1F:77:9F:5C:B4:AB:73:AA:E7:F6:34:60:2F:FA
/system/ca-certificates/files/
De48193cf.056 9D:93:C6:53:8B:5E:CA:AF:3F:9F:1E:0F:E5:99:95:BC:24:F6:94:8F
77 SHA1 Fingerprint=F9:B5:B6:32:45:5F:9C:BE:EC:57:5F:80:DC:E9:6E:2C:C7:B2:78:B7
D2add47b6.045 3D:E6:29:48:9B:EA:07:CA:21:44:4A:26:DE:6E:DE:D2:83:D0:9F:59
53 SHA1 Fingerprint=1F:24:C6:30:CD:A4:18:EF:20:69:FF:AD:4F:DD:5F:46:3A:1B:69:AA
/system/security/keystore2/apc_compat/
Dapc_compat.rs148 pub fn prompt_user_confirmation<F>( in prompt_user_confirmation()
154 cb: F, in prompt_user_confirmation() argument
157 F: FnOnce(u32, Option<&[u8]>, Option<&[u8]>) + 'static, in prompt_user_confirmation()
/system/libbase/
Dlogging_splitters.h31 template <typename F, typename... Args>
32 static void SplitByLines(const char* msg, const F& log_function, Args&&... args) { in SplitByLines()
47 template <typename F>
49 unsigned int line, const char* msg, const F& log_function) { in SplitByLogdChunks()

12345678910