Home
last modified time | relevance | path

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

12345678910

/system/libbase/include/android-base/
Dscopeguard.h26 template <typename F>
29 constexpr 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/media/audio_utils/include/audio_utils/
Dintrinsic_utils.h121 template<typename T, typename F>
122 static inline T vdupn(F f) { in vdupn()
158 template<typename T, typename F>
159 static inline T vld1(const F *f) { in vld1()
179 constexpr size_t subelements = sizeof(element_type) / sizeof(F); in vld1()
191 f += sizeof(r1) / sizeof(F); in vld1()
204 template<typename T, typename S, typename F>
205 static inline T vmla(T a, S b, F c) { in vmla()
213 template<typename T, typename F>
214 static inline T vmla(T a, T b, F c) { in vmla()
[all …]
DBiquadFilter.h61 template <typename T, typename F>
63 F coef_[5]; // these are stored with the denominator a's negated.
80 BiquadDirect2Transpose(const F& b0, const F& b1, const F& b2, const F& a1, const F& a2,
98 const F b0 = coef_[0]; // b0 in process()
99 const F b1 = coef_[1]; // b1 in process()
100 const F b2 = coef_[2]; // b2 in process()
101 const F negativeA1 = coef_[3]; // -a1 in process()
102 const F negativeA2 = coef_[4]; // -a2 in process()
233 template <typename T, typename F, bool SEPARATE_CHANNEL_OPTIMIZATION = false>
235 F coef_[5]; // these are stored as state-space converted.
[all …]
DTimestampVerifier.h34 template <typename F /* frame count */, typename T /* time units */>
47 constexpr TimestampVerifier(const F (&frames)[N], const T (&timeNs)[N], uint32_t sampleRate) { in TimestampVerifier()
61 constexpr void add(F frames, T timeNs, uint32_t sampleRate) { in add()
139 const F newFrames = mTimestampEstimator.getYFromX((double)timeNs * 1e-9); in add()
251 using FrameTime = struct { F mFrames; T mTimeNs; }; // a "constexpr" pair
307 typename std::make_signed<F>::type, typename std::make_signed<T>::type>( in sub()
/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/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/librustutils/
Dsystem_properties.rs139 pub fn read<T, F>(&mut self, mut f: F) -> Result<T> in read()
141 F: FnMut(&str, &str) -> anyhow::Result<T>, in read()
269 pub fn foreach<F>(mut f: F) -> Result<()> in foreach()
271 F: FnMut(&str, &str), in foreach()
273 extern "C" fn read_callback<F: FnMut(&str, &str)>( in foreach()
284 let ptr = res_p as *mut F; in foreach()
291 extern "C" fn foreach_callback<F: FnMut(&str, &str)>( in foreach()
300 Some(read_callback::<F>), in foreach()
310 Some(foreach_callback::<F>), in foreach()
/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/libvintf/
DRuntimeInfo-target.cpp176 using F = RuntimeInfo::FetchFlag; in fetchAllInformation() typedef
180 {F::CPU_VERSION | F::KERNEL_FCM, &RF::fetchVersion, "/proc/version"}, in fetchAllInformation()
181 {F::CONFIG_GZ, &RF::fetchKernelConfigs, "/proc/config.gz"}, in fetchAllInformation()
182 {F::CPU_INFO, &RF::fetchCpuInfo, "/proc/cpuinfo"}, in fetchAllInformation()
183 {F::POLICYVERS, &RF::fetchKernelSepolicyVers, "kernel sepolicy version"}, in fetchAllInformation()
184 {F::AVB, &RF::fetchAvb, "avb version"}, in fetchAllInformation()
DVintfObjectUtils.h30 template <typename T, typename F>
32 const F& fetchAllInformation) { in Get()
/system/media/audio_utils/benchmarks/
Dbiquad_filter_benchmark.cpp419 template <typename F>
425 std::vector<F> input(DATA_SIZE * channelCount); in BM_BiquadFilter()
426 std::vector<F> output(DATA_SIZE * channelCount); in BM_BiquadFilter()
427 std::array<F, android::audio_utils::kBiquadNumCoefs> coefs; in BM_BiquadFilter()
431 const F amplitude = isSubnormal ? std::numeric_limits<F>::min() * 0.1 : 1.; in BM_BiquadFilter()
441 F, true /* SAME_COEF_PER_CHANNEL */, StateSpaceChannelOptimizedOptions> in BM_BiquadFilter()
/system/security/keystore2/src/
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()
Draw_device.rs106 pub fn create_and_store_key<F>( in create_and_store_key()
111 creator: F, in create_and_store_key() argument
114 F: FnOnce(&Strong<dyn IKeyMintDevice>) -> Result<KeyCreationResult, binder::Status>, in create_and_store_key()
175 pub fn lookup_or_generate_key<F>( in lookup_or_generate_key()
181 validate_characteristics: F, in lookup_or_generate_key() argument
184 F: FnOnce(&[KeyCharacteristics]) -> bool, in lookup_or_generate_key()
256 fn upgrade_keyblob_if_required_with<'a, T, F>( in upgrade_keyblob_if_required_with()
261 f: F, in upgrade_keyblob_if_required_with() argument
264 F: Fn(&[u8]) -> Result<T, Error>, in upgrade_keyblob_if_required_with()
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()
/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
78 SHA1 Fingerprint=F9:B5:B6:32:45:5F:9C:BE:EC:57:5F:80:DC:E9:6E:2C:C7:B2:78:B7
De7c037b4.044 31:0A:90:8F:B6:C6:9D:D2:44:4B:80:B5:A2:E6:1F:B1:12:4F:1B:95
53 SHA1 Fingerprint=39:B4:6C:D5:FE:80:06:EB:E2:2F:4A:BB:08:33:A0:AF:DB:B9:DD:84
D2add47b6.045 3D:E6:29:48:9B:EA:07:CA:21:44:4A:26:DE:6E:DE:D2:83:D0:9F:59
54 SHA1 Fingerprint=1F:24:C6:30:CD:A4:18:EF:20:69:FF:AD:4F:DD:5F:46:3A:1B:69:AA
D5f9a69fa.047 01:B9:2F:EF:BF:11:86:60:F2:4F:D0:41:6E:AB:73:1F:E7:D2:6E:49
56 SHA1 Fingerprint=62:FF:D9:9E:C0:65:0D:03:CE:75:93:D2:ED:3F:2D:32:C9:E3:E5:4A
/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()
/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/keymaster/include/keymaster/
Dandroid_keymaster_utils.h256 template <class F> class final_action {
258 explicit final_action(F f) : f_(std::move(f)) {} in final_action()
262 F f_;
265 template <class F> inline final_action<F> finally(const F& f) { in finally()
266 return final_action<F>(f); in finally()

12345678910