Home
last modified time | relevance | path

Searched refs:SmallMap (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/libs/ftl/
Dsmall_map_test.cpp30 using ftl::SmallMap;
33 TEST(SmallMap, Example) { in TEST() argument
34 ftl::SmallMap<int, std::string, 3> map; in TEST()
56 EXPECT_EQ(map, SmallMap(ftl::init::map(-1, "xyz"sv)(0, "nil"sv)(42, "???"sv)(123, "abc"sv))); in TEST()
59 TEST(SmallMap, Construct) { in TEST() argument
62 SmallMap<int, std::string, 2> map; in TEST()
69 SmallMap<int, std::string, 5> map = in TEST()
76 EXPECT_EQ(map, SmallMap(ftl::init::map(123, "abc"sv)(456, "def"sv)(789, "ghi"sv))); in TEST()
80 SmallMap<int, std::string, 5> map = in TEST()
87 EXPECT_EQ(map, SmallMap(ftl::init::map(42, "???"sv)(123, "abc"sv)(-1, ""sv))); in TEST()
[all …]
Dalgorithm_test.cpp44 const ftl::SmallMap map = ftl::init::map<int, ftl::StaticVector<std::string_view, 3>>( in TEST()
64 const ftl::SmallMap map = ftl::init::map(13, "tiramisu"sv)(14, "upside-down cake"sv); in TEST()
/frameworks/native/include/ftl/
Dsmall_map.h65 class SmallMap final {
69 friend class SmallMap; variable
86 SmallMap() = default;
101 SmallMap(InitializerList<U, std::index_sequence<Sizes...>, Types...>&& list) in SmallMap() function
108 SmallMap(SmallMap<Q, W, M, E> other) : map_(std::move(other.map_)) {} in SmallMap() function
167 const_iterator find(const key_type& key) const { return const_cast<SmallMap&>(*this).find(key); } in find()
269 SmallMap(InitializerList<KeyValue<K, V, E>, std::index_sequence<Sizes...>, Types...>&&)
270 -> SmallMap<K, V, sizeof...(Sizes), E>;
274 bool operator==(const SmallMap<K, V, N, E>& lhs, const SmallMap<Q, W, M, E>& rhs) {
289 inline bool operator!=(const SmallMap<K, V, N, E>& lhs, const SmallMap<Q, W, M, E>& rhs) {
/frameworks/native/libs/ui/include/ui/
DDisplayMap.h28 using DisplayMap = ftl::SmallMap<Key, Value, kDisplayCapacity>;
32 using PhysicalDisplayMap = ftl::SmallMap<Key, Value, kPhysicalDisplayCapacity>;
/frameworks/native/services/surfaceflinger/
DWindowInfosListenerInvoker.h64 ftl::SmallMap<wp<IBinder>, const std::pair<int64_t, sp<gui::IWindowInfosListener>>,
76 ftl::SmallMap<int64_t /* vsyncId */, UnackedState, 5> mUnackedState;
DRefreshRateOverlay.h90 using BufferCache = ftl::SmallMap<Key, Buffers, 9>;
DLayer.h960 ftl::SmallMap<ui::LayerStack, ftl::Future<FenceResult>, ui::kDisplayCapacity>
DSurfaceFlinger.h1534 ftl::SmallMap<int64_t, sp<SurfaceControl>, 3> mMirrorMapForDebug;
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h77 using TotalTimes = ftl::SmallMap<std::string, std::chrono::milliseconds, 3>;
162 ftl::SmallMap<Fps, std::chrono::milliseconds, 2, FpsApproxEqual> mFpsTotalTimes;
DVSyncDispatchTimerQueue.h143 ftl::SmallMap<CallbackToken, std::shared_ptr<VSyncDispatchTimerQueueEntry>, 5>;
DVsyncConfiguration.h90 mutable ftl::SmallMap<Fps, VsyncConfigSet, 2, FpsApproxEqual> mOffsetsCache GUARDED_BY(mLock);
DRefreshRateSelector.h531 ftl::SmallMap<Fps, ftl::Unit, 8, FpsApproxEqual> mAppOverrideNativeRefreshRates;
DRefreshRateSelector.cpp1158 ftl::SmallMap<DisplayModeId, Fps, 8> maxRenderRateForMode; in rankFrameRates()
/frameworks/native/services/surfaceflinger/FrontEnd/
DTransactionHandler.h42 ftl::SmallMap<IBinder* /* binder address */, uint64_t /* framenumber */, 15>
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h56 using DisplayModes = ftl::SmallMap<DisplayModeId, DisplayModePtr, 3>;