/frameworks/native/libs/ftl/ |
D | small_map_test.cpp | 30 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 …]
|
D | algorithm_test.cpp | 44 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/ |
D | small_map.h | 65 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/ |
D | DisplayMap.h | 28 using DisplayMap = ftl::SmallMap<Key, Value, kDisplayCapacity>; 32 using PhysicalDisplayMap = ftl::SmallMap<Key, Value, kPhysicalDisplayCapacity>;
|
/frameworks/native/services/surfaceflinger/ |
D | WindowInfosListenerInvoker.h | 64 ftl::SmallMap<wp<IBinder>, const std::pair<int64_t, sp<gui::IWindowInfosListener>>, 76 ftl::SmallMap<int64_t /* vsyncId */, UnackedState, 5> mUnackedState;
|
D | RefreshRateOverlay.h | 90 using BufferCache = ftl::SmallMap<Key, Buffers, 9>;
|
D | Layer.h | 960 ftl::SmallMap<ui::LayerStack, ftl::Future<FenceResult>, ui::kDisplayCapacity>
|
D | SurfaceFlinger.h | 1534 ftl::SmallMap<int64_t, sp<SurfaceControl>, 3> mMirrorMapForDebug;
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateStats.h | 77 using TotalTimes = ftl::SmallMap<std::string, std::chrono::milliseconds, 3>; 162 ftl::SmallMap<Fps, std::chrono::milliseconds, 2, FpsApproxEqual> mFpsTotalTimes;
|
D | VSyncDispatchTimerQueue.h | 143 ftl::SmallMap<CallbackToken, std::shared_ptr<VSyncDispatchTimerQueueEntry>, 5>;
|
D | VsyncConfiguration.h | 90 mutable ftl::SmallMap<Fps, VsyncConfigSet, 2, FpsApproxEqual> mOffsetsCache GUARDED_BY(mLock);
|
D | RefreshRateSelector.h | 531 ftl::SmallMap<Fps, ftl::Unit, 8, FpsApproxEqual> mAppOverrideNativeRefreshRates;
|
D | RefreshRateSelector.cpp | 1158 ftl::SmallMap<DisplayModeId, Fps, 8> maxRenderRateForMode; in rankFrameRates()
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | TransactionHandler.h | 42 ftl::SmallMap<IBinder* /* binder address */, uint64_t /* framenumber */, 15>
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | DisplayMode.h | 56 using DisplayModes = ftl::SmallMap<DisplayModeId, DisplayModePtr, 3>;
|