Home
last modified time | relevance | path

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

12345

/system/core/libutils/
DSingleton_test.cpp45 using has_fn_t = decltype(&singletonHasInstance); in TEST()
46 using get_fn_t = decltype(&singletonGetInstanceContents); in TEST()
47 using set_fn_t = decltype(&singletonSetInstanceContents); in TEST()
/system/iorap/src/common/
Dintrospection.h72 static constexpr decltype(auto) value(U&& v) {
86 static constexpr void set_value(typename decltype(struct_t)::type& s,
87 typename decltype(type)::type&& value) {
88 s.*member = std::forward<typename decltype(type)::type>(value);
Dtype.h139 #define STATIC_FAIL_DT(var, msg) STATIC_FAIL(decltype(var), msg)
163 constexpr decltype(auto) aliasing_forward(U&& val) noexcept { in decltype() function
/system/netd/libnetdutils/
DDumpWriter.cpp40 if (mIndentLevel < std::numeric_limits<decltype(mIndentLevel)>::max()) { in incIndent()
46 if (mIndentLevel > std::numeric_limits<decltype(mIndentLevel)>::min()) { in decIndent()
/system/keymaster/ng/include/
Dkeymaster_tags.h201 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \
205 ->const decltype(param.field_name)& { \
210 ->decltype(param.field_name)& { \
224 template <> struct TypedTag2ValueType<decltype(typed_tag)> { \ in MAKE_TAG_VALUE_ACCESSOR()
225 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR()
227 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \
228 ->const decltype(param.field_name)& { \
231 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \
232 ->decltype(param.field_name)& { \
/system/nvram/messages/include/nvram/messages/
Dproto.hpp172 static decltype(static_cast<T>(declval<From>()), true_type()) test(int);
177 static constexpr bool value = decltype(test<To>(0))::value;
251 typename IndexSequence = decltype(
260 using FieldSpecs = typename remove_const<decltype(kFieldSpecList)>::Type;
290 using FieldSpecType = typename remove_const<decltype(kFieldSpec)>::Type;
432 decltype(
/system/core/libunwindstack/tools/
Dunwind_for_offline.cpp77 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("regs.txt", "w+"), &fclose); in SaveRegs()
110 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file_name.c_str(), "w+"), &fclose); in SaveStack()
150 std::unique_ptr<FILE, decltype(&fclose)> output(fopen(cur_name.c_str(), "w+"), &fclose); in CreateElfFromMemory()
175 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(info->name.c_str(), "r"), &fclose); in CopyElfFromFile()
181 std::unique_ptr<FILE, decltype(&fclose)> output(fopen(cur_name.c_str(), "w+"), &fclose); in CopyElfFromFile()
309 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("maps.txt", "w+"), &fclose); in SaveData()
/system/update_engine/payload_consumer/
Dmtd_file_descriptor.h55 std::unique_ptr<MtdReadContext, decltype(&mtd_read_close)> read_ctx_;
56 std::unique_ptr<MtdWriteContext, decltype(&mtd_write_close)> write_ctx_;
/system/media/audio_utils/tests/
Dstatistics_tests.cpp109 EXPECT_NEAR((e), (v), abs((e) * std::numeric_limits<decltype(e)>::epsilon() * 8))
335 static_assert(std::is_trivially_copyable<decltype(stat)>::value, in TEST()
399 static_assert(std::is_trivially_copyable<decltype(stat)>::value, in TEST()
401 static_assert(std::is_trivially_copyable<decltype(stat_outer)>::value, in TEST()
403 static_assert(std::is_trivially_copyable<decltype(stat_outer_ut)>::value, in TEST()
406 static_assert(std::is_trivially_copyable<decltype(stat_array)>::value, in TEST()
408 static_assert(std::is_trivially_copyable<decltype(stat_array_ut)>::value, in TEST()
444 static_assert(std::is_trivially_copyable<decltype(fit)>::value, in TEST()
Dtimestampverifier_tests.cpp53 static_assert(std::is_trivially_copyable<decltype(tv)>::value, in TEST()
55 static_assert(std::is_trivially_destructible<decltype(tv)>::value, in TEST()
/system/connectivity/wificond/scanning/offload/
Dhidl_call_util.h126 std::remove_reference<decltype(*strong_pointer)>::type::method##_cb>( \
127 &std::remove_reference<decltype(*strong_pointer)>::type::method, \
/system/core/base/include/android-base/
Dunique_fd.h141 -> decltype(T::Tag(fd, old_tag, new_tag), void()) {
152 static auto close(int fd, void* tag_value) -> decltype(T::Close(fd, tag_value), void()) {
157 static auto close(int fd, void*) -> decltype(T::Close(fd), void()) {
Dmacros.h28 decltype(exp) _rc; \
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Dsee_helper.h290 decltype(sns_client_init) *sns_client_init;
291 decltype(sns_client_deinit) *sns_client_deinit;
292 decltype(sns_client_send) *sns_client_send;
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc124 static decltype(functionName) *fptr = nullptr; \
126 fptr = reinterpret_cast<decltype(fptr)>( \
/system/extras/iotop/
Dtaskstats.cpp32 std::unique_ptr<nl_sock, decltype(&nl_socket_free)> nl( in Open()
130 std::unique_ptr<nl_msg, decltype(&nlmsg_free)> message(nlmsg_alloc(), in GetStats()
142 std::unique_ptr<nl_cb, decltype(&nl_cb_put)> callbacks( in GetStats()
Dtasklist.cpp32 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(name.c_str()), closedir); in ScanPidsInDir()
/system/core/init/
Dmount_handler.h54 std::unique_ptr<FILE, decltype(&fclose)> fp_;
Dbootchart.cpp60 static std::unique_ptr<FILE, decltype(&fclose)> fopen_unique(const char* filename, in fopen_unique()
62 std::unique_ptr<FILE, decltype(&fclose)> result(fopen(filename, mode), fclose); in fopen_unique()
Duevent_listener.cpp152 std::unique_ptr<DIR, decltype(&closedir)> d2(fdopendir(fd), closedir); in RegenerateUeventsForDir()
168 std::unique_ptr<DIR, decltype(&closedir)> d(opendir(path.c_str()), closedir); in RegenerateUeventsForPath()
/system/core/libvndksupport/tests/
Dlinker_test.cpp37 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir); in find_sphal_lib()
/system/core/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp49 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(fdinfo.c_str(), "re"), fclose}; in ReadDmaBufFdInfo()
169 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(mapspath.c_str(), "re"), fclose}; in ReadDmaBufMapRefs()
212 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in ReadDmaBufInfo()
/system/libvintf/test/
DVintfObjectRecoveryTest.cpp29 auto dir = std::unique_ptr<DIR, decltype(&closedir)>(opendir(path), &closedir); in directoryEmpty()
/system/extras/simpleperf/
DCallChainJoiner.h92 typedef std::unordered_set<CacheNode*, decltype(&CacheNodeHash), decltype(&CacheNodeEqual)>
/system/core/base/
Dscopeguard_test.cpp44 { decltype(scopeguard) new_guard(std::move(scopeguard)); } in TEST()

12345