/frameworks/native/libs/ftl/ |
D | mixins_test.cpp | 121 namespace traits { namespace 157 static_assert(traits::is_equatable_v<Id, Id>); 158 static_assert(!traits::is_equatable_v<Real, Real>); 159 static_assert(!traits::is_equatable_v<Id, Color>); 160 static_assert(!traits::is_equatable_v<Sequence, Id>); 161 static_assert(!traits::is_equatable_v<Id, std::int32_t>); 162 static_assert(!traits::is_equatable_v<std::chrono::seconds, Timeout>); 164 static_assert(traits::is_orderable_v<Color, Color>); 165 static_assert(!traits::is_orderable_v<Id, Id>); 166 static_assert(!traits::is_orderable_v<Real, Real>); [all …]
|
D | README.md | 27 - Type traits, with standard `_t` and `_v` suffixes.
|
/frameworks/rs/cpp/util/ |
D | TypeHelpers.h | 42 struct traits { 62 traits<T>::has_trivial_ctor && traits<U>::has_trivial_ctor, 64 traits<T>::has_trivial_dtor && traits<U>::has_trivial_dtor, 66 traits<T>::has_trivial_copy && traits<U>::has_trivial_copy, 68 traits<T>::has_trivial_move && traits<U>::has_trivial_move 134 if (!traits<TYPE>::has_trivial_ctor) { 143 if (!traits<TYPE>::has_trivial_dtor) { 153 if (!traits<TYPE>::has_trivial_copy) { 165 if (!traits<TYPE>::has_trivial_copy) { 179 if ((traits<TYPE>::has_trivial_dtor && traits<TYPE>::has_trivial_copy) [all …]
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | BinTree.h | 91 typedef Traits traits; typedef 92 typedef typename traits::pointer pointer; 93 typedef typename traits::reference reference; 98 typedef typename traits::nonconst_traits nonconst_traits; 99 typedef typename traits::const_traits const_traits; 183 typedef Traits traits; typedef 184 typedef typename traits::pointer pointer; 185 typedef typename traits::reference reference; 190 typedef typename traits::nonconst_traits nonconst_traits; 192 typedef typename traits::const_traits const_traits;
|
D | HashIterator.h | 246 typedef Traits traits; typedef 247 typedef typename traits::pointer pointer; 248 typedef typename traits::reference reference; 255 typedef typename traits::nonconst_traits nonconst_traits; 258 typedef typename traits::const_traits const_traits;
|
/frameworks/av/media/codec2/hal/plugin/ |
D | FilterWrapper.cpp | 64 LOG(WARNING) << "WrappedDecoderInterface: " << mFilters.back().traits.name in takeFilters() 557 LOG(VERBOSE) << "filtering disabled for " << filter.traits.name; in start() 560 LOG(VERBOSE) << "filtering enabled for " << filter.traits.name; in start() 818 std::vector<std::shared_ptr<const C2Component::Traits>> traits = in FilterWrapper() local 821 traits.begin(), in FilterWrapper() 822 traits.end(), in FilterWrapper() 827 for (size_t i = 0; i < traits.size(); ++i) { in FilterWrapper() 828 const std::shared_ptr<const C2Component::Traits> &trait = traits[i]; in FilterWrapper() 859 if (C2_OK != mStore->createComponent(filter.traits.name, &comp)) { in createFilters() 862 filters.push_back({comp, comp->intf(), filter.traits, filter.desc}); in createFilters() [all …]
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | GCFactory.h | 60 typedef Traits traits; typedef 61 typedef typename traits::pointer pointer; 62 typedef typename traits::reference reference; 66 typedef typename traits::nonconst_traits nonconst_traits; 68 typedef typename traits::const_traits const_traits;
|
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/common/ |
D | media_c2_hidl_test_common.cpp | 203 for (C2Component::Traits traits : components) { in getTestParameters() local 204 if (instance.compare(traits.owner)) continue; in getTestParameters() 206 (traits.domain != domain || traits.kind != kind)) { in getTestParameters() 209 if (traits.name.rfind(sComponentNamePrefix, 0) != 0) { in getTestParameters() 210 ALOGD("Skipping tests for %s. Prefix specified is %s", traits.name.c_str(), in getTestParameters() 214 parameters.push_back(std::make_tuple(instance, traits.name)); in getTestParameters()
|
/frameworks/av/media/codec2/vndk/util/ |
D | C2InterfaceUtils.cpp | 1311 C2Component::Traits *traits, in FillTraitsFromInterface() argument 1313 if (!traits) { in FillTraitsFromInterface() 1316 traits->name = intf->getName(); in FillTraitsFromInterface() 1323 traits->kind = kind.value; in FillTraitsFromInterface() 1324 traits->domain = domain.value; in FillTraitsFromInterface() 1329 traits->kind = in FillTraitsFromInterface() 1330 (traits->name.find("encoder") != std::string::npos) ? C2Component::KIND_ENCODER : in FillTraitsFromInterface() 1331 (traits->name.find("decoder") != std::string::npos) ? C2Component::KIND_DECODER : in FillTraitsFromInterface() 1335 uint32_t mediaTypeIndex = traits->kind == C2Component::KIND_ENCODER in FillTraitsFromInterface() 1353 traits->mediaType = in FillTraitsFromInterface() [all …]
|
/frameworks/av/media/codec2/hal/aidl/ |
D | ComponentStore.cpp | 313 std::vector<IComponentStore::ComponentTraits> *traits) { in listComponents() argument 316 traits->resize(c2traits.size()); in listComponents() 320 if (ToAidl(&traits->at(ix), *c2trait)) { in listComponents() 327 traits->resize(ix); in listComponents() 517 for (const auto& traits : traitsList) { in dump() local 518 dump(out, traits) << std::endl; in dump()
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/ |
D | ComponentStore.cpp | 294 hidl_vec<IComponentStore::ComponentTraits> traits(c2traits.size()); in listComponents() local 298 if (objcpy(&traits[ix], *c2trait)) { in listComponents() 305 traits.resize(ix); in listComponents() 306 _hidl_cb(Status::OK, traits); in listComponents() 505 for (const auto& traits : traitsList) { in debug() local 506 dump(out, traits) << std::endl; in debug()
|
/frameworks/av/media/codec2/hal/hidl/1.1/utils/ |
D | ComponentStore.cpp | 295 hidl_vec<IComponentStore::ComponentTraits> traits(c2traits.size()); in listComponents() local 299 if (objcpy(&traits[ix], *c2trait)) { in listComponents() 306 traits.resize(ix); in listComponents() 307 _hidl_cb(Status::OK, traits); in listComponents() 542 for (const auto& traits : traitsList) { in debug() local 543 dump(out, traits) << std::endl; in debug()
|
/frameworks/av/media/codec2/hal/hidl/1.2/utils/ |
D | ComponentStore.cpp | 293 hidl_vec<IComponentStore::ComponentTraits> traits(c2traits.size()); in listComponents() local 297 if (objcpy(&traits[ix], *c2trait)) { in listComponents() 304 traits.resize(ix); in listComponents() 305 _hidl_cb(Status::OK, traits); in listComponents() 576 for (const auto& traits : traitsList) { in debug() local 577 dump(out, traits) << std::endl; in debug()
|
/frameworks/av/media/codec2/vndk/ |
D | C2Store.cpp | 1095 std::shared_ptr<C2Component::Traits> traits(new (std::nothrow) C2Component::Traits); in init() local 1096 if (traits) { in init() 1097 if (!C2InterfaceUtils::FillTraitsFromInterface(traits.get(), intf)) { in init() 1103 switch (traits->domain) { in init() 1105 traits->rank = 8; in init() 1108 traits->rank = 512; in init() 1111 mTraits = traits; in init() 1257 std::shared_ptr<const C2Component::Traits> traits = module->getTraits(); in visitComponents() local 1258 if (traits) { in visitComponents() 1259 mComponentList.push_back(traits); in visitComponents() [all …]
|
D | C2DmaBufAllocator.cpp | 300 Traits traits = {"android.allocator.dmabuf", id, LINEAR, minUsage, maxUsage}; in C2DmaBufAllocator() local 301 mTraits = std::make_shared<Traits>(traits); in C2DmaBufAllocator() 325 Traits traits = {mTraits->name, mTraits->id, LINEAR, C2MemoryUsage(minUsage), in setUsageMapper() local 327 mTraits = std::make_shared<Traits>(traits); in setUsageMapper()
|
D | C2AllocatorIon.cpp | 493 Traits traits = { "android.allocator.ion", id, LINEAR, minUsage, maxUsage }; in C2AllocatorIon() local 494 mTraits = std::make_shared<Traits>(traits); in C2AllocatorIon() 526 Traits traits = { in setUsageMapper() local 530 mTraits = std::make_shared<Traits>(traits); in setUsageMapper()
|
D | C2AllocatorBlob.cpp | 158 Traits traits = {"android.allocator.blob", id, LINEAR, minUsage, maxUsage}; in C2AllocatorBlob() local 159 mTraits = std::make_shared<C2Allocator::Traits>(traits); in C2AllocatorBlob()
|
D | C2AllocatorGralloc.cpp | 1206 Traits traits = { "android.allocator.gralloc", id, C2Allocator::GRAPHIC, minUsage, maxUsage }; in Impl() local 1207 mTraits = std::make_shared<C2Allocator::Traits>(traits); in Impl() 1538 Traits traits = { "android.allocator.ahwb", id, C2Allocator::GRAPHIC, minUsage, maxUsage }; in Impl() local 1539 mTraits = std::make_shared<C2Allocator::Traits>(traits); in Impl()
|
/frameworks/av/media/codec2/hal/plugin/samples/ |
D | SampleFilterPlugin.cpp | 919 ComponentFactory(const std::shared_ptr<const C2Component::Traits> &traits) in ComponentFactory() argument 920 : mTraits(traits) { in ComponentFactory() 930 const std::shared_ptr<const C2Component::Traits> &traits, in ComponentFactoryImpl() 932 : ComponentFactory(traits), in ComponentFactoryImpl() 957 std::shared_ptr<C2Component::Traits> traits(new (std::nothrow) C2Component::Traits); in AddFactory() local 958 CHECK(C2InterfaceUtils::FillTraitsFromInterface(traits.get(), intf)) in AddFactory() 961 traits->name, in AddFactory() 962 new ComponentFactoryImpl<T>(traits, reflector)); in AddFactory()
|
/frameworks/av/services/audioflinger/datapath/ |
D | TrackMetrics.h | 89 const std::string& traits = {}, 100 .set(AMEDIAMETRICS_PROP_TRAITS, traits);
|
/frameworks/av/services/mediametrics/ |
D | AudioTypes.cpp | 700 std::string lookup<TRACK_TRAITS>(const std::string &traits) in lookup() argument 702 return validateStringFromMap(traits, getAudioTrackTraitsMap()); in lookup() 706 int32_t lookup<TRACK_TRAITS>(const std::string &traits) in lookup() argument 708 return flagsFromMap(traits, getAudioTrackTraitsMap()); in lookup()
|
/frameworks/av/media/codec2/hal/plugin/internal/ |
D | FilterWrapper.h | 55 const C2Component::Traits traits; member
|
/frameworks/av/media/codec2/hal/client/ |
D | client.cpp | 1394 std::vector<C2Component::Traits> traits; in _listComponents() local 1404 traits.resize(aidlTraits.size()); in _listComponents() 1407 if (!c2_aidl::utils::FromAidl(&traits[i], aidlTraits[i])) { in _listComponents() 1410 traits.clear(); in _listComponents() 1413 traits[i].owner = serviceName; in _listComponents() 1416 return traits; in _listComponents() 1419 [&traits, &serviceName](c2_hidl::Status s, in _listComponents() 1426 traits.resize(t.size()); in _listComponents() 1428 if (!c2_hidl::utils::objcpy(&traits[i], t[i])) { in _listComponents() 1432 traits[i].owner = serviceName; in _listComponents() [all …]
|
/frameworks/av/media/codec2/hal/aidl/include/codec2/aidl/ |
D | ComponentStore.h | 91 std::vector<IComponentStore::ComponentTraits>* traits) override;
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2InfoBuilder.cpp | 431 std::vector<Traits> traits = Codec2Client::ListComponents(); in buildMediaCodecList() local 515 for (const Traits& trait : traits) { in buildMediaCodecList()
|