Home
last modified time | relevance | path

Searched refs:decltype (Results 1 – 25 of 120) sorted by relevance

12345

/hardware/interfaces/radio/aidl/compat/libradiocompat/
Dcollections.h34 std::vector<decltype(toAidl(T{}))> out(inp.size()); in toAidl()
50 hidl_vec<decltype(toHidl(T{}))> out(inp.size()); in toHidl()
66 std::vector<decltype(toAidl(T{}))> out(N); in toAidl()
79 std::optional<decltype(toAidl(T{}.value()))> toAidl(const T& opt) { in toAidl()
90 std::variant<bool, decltype(toAidl(T{}.value()))> toAidlVariant(const T& opt) { in toAidlVariant()
106 T toHidl(const std::optional<decltype(toAidl(T{}.value()))>& opt) { in toHidl()
/hardware/google/gfxstream/guest/android-emu/aemu/base/fit/
DDefer.h42 explicit DeferredAction(decltype(nullptr)) {} in DeferredAction()
84 DeferredAction& operator=(decltype(nullptr)) { in decltype() function
103 bool operator==(const DeferredAction<T>& action, decltype(nullptr)) {
107 bool operator==(decltype(nullptr), const DeferredAction<T>& action) {
111 bool operator!=(const DeferredAction<T>& action, decltype(nullptr)) {
115 bool operator!=(decltype(nullptr), const DeferredAction<T>& action) {
DFunction.h210 FunctionImpl(decltype(nullptr)) : Base(nullptr) {} in FunctionImpl()
227 std::is_convertible<decltype(std::declval<Callable&>()(std::declval<Args>()...)),
251 FunctionImpl& operator=(decltype(nullptr)) { in decltype() function
267 std::is_convertible<decltype(std::declval<Callable&>()(std::declval<Args>()...)),
329 decltype(nullptr)) {
333 bool operator==(decltype(nullptr),
339 decltype(nullptr)) {
343 bool operator!=(decltype(nullptr),
383 CallbackImpl(decltype(nullptr)) : Base(nullptr) {} in CallbackImpl()
397 std::is_convertible<decltype(std::declval<Callable&>()(std::declval<Args>()...)),
[all …]
DNullable.h34 struct IsComparableWithNull<T, decltype(std::declval<const T&>() == nullptr)>
57 std::is_constructible<T, decltype(nullptr)>::value &&
58 std::is_assignable<T&, decltype(nullptr)>::value &&
88 explicit constexpr Nullable(decltype(nullptr)) {}
115 constexpr Nullable& operator=(decltype(nullptr)) {
139 explicit constexpr Nullable(decltype(nullptr)) : mValue(nullptr) {}
193 constexpr Nullable& operator=(decltype(nullptr)) {
220 constexpr bool operator==(const Nullable<T>& lhs, decltype(nullptr)) {
224 constexpr bool operator!=(const Nullable<T>& lhs, decltype(nullptr)) {
229 constexpr bool operator==(decltype(nullptr), const Nullable<T>& rhs) {
[all …]
DFunctionInternal.h55 struct target<decltype(nullptr),
73 constexpr target_ops<Result, Args...> target<decltype(nullptr),
245 using null_target_type = target_type<decltype(nullptr)>;
252 function_base(decltype(nullptr)) { initialize_null_target(); }
258 std::is_convertible<decltype(std::declval<Callable&>()(std::declval<Args>()...)),
334 void assign(decltype(nullptr)) {
344 std::is_convertible<decltype(std::declval<Callable&>()(std::declval<Args>()...)),
/hardware/google/graphics/common/libhwc2.1/libvrr/
DExternalEventHandlerLoader.h36 reinterpret_cast<decltype(createExternalEventHandler)>( in ExternalEventHandlerLoader()
44 reinterpret_cast<decltype(mExternalEventHandlerDestructor)>( in ExternalEventHandlerLoader()
61 using RaiiLibrary = std::unique_ptr<void, decltype(dlclose)*>;
/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
Dtypes.h23 typedef decltype(nlmsghdr::nlmsg_type) nlmsgtype_t;
24 typedef decltype(nlattr::nla_type) nlattrtype_t;
/hardware/qcom/sm8150/display/libhistogram/
Dringbuffer.cpp61 std::unique_lock<decltype(mutex)> lk(mutex); in insert()
73 std::unique_lock<decltype(mutex)> lk(mutex); in resize()
83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative()
90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all()
96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after()
101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max()
107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after()
Dhistogram_collector.cpp146 std::unique_lock<decltype(mutex)> lk(mutex); in start()
157 std::unique_lock<decltype(mutex)> lk(mutex); in stop()
171 std::unique_lock<decltype(mutex)> lk(mutex); in notify_histogram_event()
188 std::unique_lock<decltype(mutex)> lk(mutex); in blob_processing_thread()
/hardware/qcom/sm7250/display/libhistogram/
Dringbuffer.cpp68 std::unique_lock<decltype(mutex)> lk(mutex); in insert()
84 std::unique_lock<decltype(mutex)> lk(mutex); in resize()
94 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative()
101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all()
106 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after()
111 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max()
117 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after()
Dhistogram_collector.cpp141 std::unique_lock<decltype(mutex)> lk(mutex); in start()
153 std::unique_lock<decltype(mutex)> lk(mutex); in stop()
167 std::unique_lock<decltype(mutex)> lk(mutex); in notify_histogram_event()
184 std::unique_lock<decltype(mutex)> lk(mutex); in blob_processing_thread()
/hardware/google/aemu/base/
DTypeTraits_unittest.cpp37 static_assert(is_callable_as<decltype(lambda), C*(bool)>::value, "lambda"); in TEST()
61 static_assert(is_callable_with_args<decltype(lambda), C*(bool)>::value, "lambda"); in TEST()
99 static_assert(is_range<decltype(arr)>::value, in TEST()
101 static_assert(is_range<decltype("string")>::value, in TEST()
DOptional_unittest.cpp205 static_assert(std::is_same<decltype(o), Optional<int>>::value, in TEST()
212 static_assert(std::is_same<decltype(o), Optional<std::vector<char>>>::value, in TEST()
220 static_assert(std::is_same<decltype(o), Optional<const char*>>::value, in TEST()
227 static_assert(std::is_same<decltype(o), Optional<std::string>>::value, in TEST()
234 static_assert(std::is_same<decltype(o), Optional<std::string>>::value, in TEST()
241 static_assert(std::is_same<decltype(o), Optional<std::string>>::value, in TEST()
251 decltype(o) o2 = std::move(o); in TEST()
258 decltype(o) o3; in TEST()
274 decltype(o) o1; in TEST()
275 decltype(o) o2 = std::move(o1); in TEST()
[all …]
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dconfirmationui_utils.h123 static int* f(const U* u, decltype(u->data())) {
126 static constexpr bool value = std::is_pointer<decltype(f((T*)nullptr, ""))>::value;
131 ByteBufferProxy(const T& buffer, decltype(buffer.data()) = nullptr)
133 static_assert(sizeof(decltype(*buffer.data())) == 1, "elements to large");
140 std::enable_if_t<!has_data<T>::value, decltype(buffer.c_str())> = nullptr)
142 static_assert(sizeof(decltype(*buffer.c_str())) == 1, "elements to large");
/hardware/google/gfxstream/guest/android-emu/aemu/base/
DTypeTraits.h68 std::is_same<typename details::dummy<decltype(std::declval<F>()(
88 !std::is_same<typename details::dummy<decltype(std::declval<F>()(
124 decltype(std::begin(
126 decltype(std::end(
/hardware/google/aemu/base/include/aemu/base/
DTypeTraits.h68 std::is_same<typename details::dummy<decltype(std::declval<F>()(
88 !std::is_same<typename details::dummy<decltype(std::declval<F>()(
124 decltype(std::begin(
126 decltype(std::end(
DStopwatch.h70 auto measure(Counter& time, Func&& f) -> decltype(f()) {
76 auto measureMs(Counter& time, Func&& f) -> decltype(f()) {
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_tags.h182 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \
186 ->const decltype(param.field_name)& { \
191 ->decltype(param.field_name)& { \
205 template <> struct TypedTag2ValueType<decltype(typed_tag)> { \ in MAKE_TAG_VALUE_ACCESSOR()
206 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR()
208 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \
209 ->const decltype(param.field_name)& { \
212 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \
213 ->decltype(param.field_name)& { \
/hardware/interfaces/health/utils/libhealth2impl/
DBinderHealth.cpp61 std::lock_guard<decltype(callbacks_lock_)> lock(callbacks_lock_); in registerCallback()
81 std::lock_guard<decltype(callbacks_lock_)> lock(callbacks_lock_); in registerCallback()
100 std::lock_guard<decltype(callbacks_lock_)> lock(callbacks_lock_); in unregisterCallbackInternal()
132 std::unique_lock<decltype(callbacks_lock_)> lock(callbacks_lock_); in OnHealthInfoChanged()
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dkeymint_tags.h170 decltype(static_cast<KeyParameterValue*>(nullptr) \
214 struct TypedTag2ValueType<decltype(typed_tag)> { \ in MAKE_TAG_VALUE_ACCESSOR()
216 decltype(static_cast<KeyParameterValue*>(nullptr) \ in MAKE_TAG_VALUE_ACCESSOR()
221 std::reference_wrapper<const typename TypedTag2ValueType<decltype(typed_tag)>::type>> \
222 accessTagValue(decltype(typed_tag), const KeyParameter& param) { \
231 std::reference_wrapper<typename TypedTag2ValueType<decltype(typed_tag)>::type>> \
232 accessTagValue(decltype(typed_tag), KeyParameter& param) { \
258 retval.value = KeyParameterValue::make<TypedTag2ValueType<decltype(ttag)>::unionTag>(
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dkeymaster_tags.h189 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \
193 ->const decltype(param.field_name)& { \
198 ->decltype(param.field_name)& { \
213 struct TypedTag2ValueType<decltype(typed_tag)> { \ in MAKE_TAG_VALUE_ACCESSOR()
214 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR()
216 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \
217 ->const decltype(param.field_name)& { \
220 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \
221 ->decltype(param.field_name)& { \
/hardware/interfaces/wifi/hostapd/1.0/vts/functional/
Dhostapd_hidl_call_util.h131 std::remove_reference<decltype(*strong_pointer)>::type::method##_cb>( \
132 &std::remove_reference<decltype(*strong_pointer)>::type::method, \
138 &std::remove_reference<decltype(*strong_pointer)>::type::method, \
/hardware/google/graphics/common/libhwc2.1/libdevice/
DDisplayColorLoader.h42 … getVersion = reinterpret_cast<decltype(getVersion)>(dlsym(libHandle, "GetInterfaceVersion")); in DisplayColorLoader()
52 … getDisplayColor = reinterpret_cast<decltype(getDisplayColor)>(dlsym(libHandle, entry)); in DisplayColorLoader()
/hardware/google/aemu/base/include/aemu/base/memory/
DOnDemand.h125 using ReturnT = decltype(std::declval<Callable>()());
166 decltype(std::declval<CompatibleArgsGetter>()()),
240 typename std::decay<decltype(mCtorArgsGetter())>::type; in construct()
293 decltype(std::declval<SimpleArgsGetter>()()),
306 decltype(std::declval<ArgsGetter>()()),
/hardware/interfaces/vibrator/1.3/example/
DVibrator.cpp68 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform()
75 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_1()
82 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_2()
104 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_3()

12345