Home
last modified time | relevance | path

Searched refs:try_emplace (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/native/libs/ftl/
Dsmall_map_test.cpp208 const auto [it, ok] = map.try_emplace(123, "abc"); in TYPED_TEST()
213 const auto [it, ok] = map.try_emplace(42, 3u, '?'); in TYPED_TEST()
218 const auto [it, ok] = map.try_emplace(-1); in TYPED_TEST()
229 const auto [it, ok] = map.try_emplace(42, "!!!"); in TYPED_TEST()
240 const auto [it, ok] = map.try_emplace(999, "xyz"); in TYPED_TEST()
288 EXPECT_TRUE(map.try_emplace(3, "abc").second); in TYPED_TEST()
289 EXPECT_TRUE(map.try_emplace(4, "d").second); in TYPED_TEST()
386 map.try_emplace(4, '4'); in TEST()
417 map.try_emplace(4, '4'); in TEST()
432 EXPECT_TRUE(map.try_emplace(3, '3').second); in TEST()
[all …]
/frameworks/base/libs/androidfw/tests/
DGeneric_bench.cpp49 benchmark::DoNotOptimize(map.try_emplace(val)); in BM_hashmap_try_emplace_same()
75 map.try_emplace(i++); in BM_hashmap_try_emplace_diff()
104 benchmark::DoNotOptimize(map.try_emplace(val)); in BM_treemap_try_emplace_same()
130 map.try_emplace(i++); in BM_treemap_try_emplace_diff()
/frameworks/native/services/surfaceflinger/
DWindowInfosListenerInvoker.cpp48 mWindowInfosListeners.try_emplace(asBinder, in addWindowInfosListener()
124 auto [it, _] = mUnackedState.try_emplace(update.vsyncId, in windowInfosChanged()
DRefreshRateOverlay.cpp245 .try_emplace({refreshIntFps, renderIntFps, transformHint, idle}, in getOrCreateBuffers()
/frameworks/native/services/inputflinger/
DInputDeviceMetricsCollector.cpp285 mActiveUsageSessions.try_emplace(deviceId, mUsageSessionTimeout, eventTime); in onInputDeviceUsage()
341 mActiveSessionsBySource.try_emplace(source, eventTime, eventTime); in recordUsage()
358 auto [activeUidIt, inserted] = mActiveSessionsByUid.try_emplace(uid, timestamp, timestamp); in recordInteraction()
DPointerChoreographer.cpp314 mDrawingTabletPointersByDevice.try_emplace(args.deviceId, in processDrawingTabletEventLocked()
358 mTouchPointersByDevice.try_emplace(args.deviceId, mTouchControllerConstructor); in processTouchscreenAndStylusEventLocked()
397 mStylusPointersByDevice.try_emplace(args.deviceId, in processStylusHoverEventLocked()
606 mMousePointersByDisplay.try_emplace(displayId, in updatePointerControllersLocked()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplayMode.h70 clones.try_emplace(id, cloneForDisplay(displayId, modePtr)); in cloneForDisplay()
/frameworks/native/include/ftl/
Dsmall_map.h177 std::pair<iterator, bool> try_emplace(const key_type& key, Args&&... args) { in try_emplace() function
224 const auto [it, ok] = try_emplace(key, std::forward<Args>(args)...); in emplace_or_replace()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraTestInstance.cc132 if (mInputRenderers.try_emplace(streamId, renderer).second) { in onStreamConfigured()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_ExcludeDolbyVisionTest.cpp32 modes.try_emplace(displayMode->getId(), displayMode); in injectDisplayModes()
DSurfaceFlinger_SetPowerModeInternalTest.cpp398 mFlinger.mutableHwcDisplayData().try_emplace(displayId); in TEST_F()
DSurfaceFlinger_NotifyExpectedPresentTest.cpp91 results.try_emplace(id, in composite()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp214 targets.try_emplace(pacesetterPtr->displayId, &pacesetterPtr->targeterPtr->target()); in onFrameSignal()
230 targets.try_emplace(id, &targeter.target()); in onFrameSignal()
247 targeters.try_emplace(pacesetterPtr->displayId, pacesetterPtr->targeterPtr.get()); in onFrameSignal()
253 targeters.try_emplace(id, &targeter); in onFrameSignal()
1170 modeChoices.try_emplace(*mPacesetterDisplayId, in chooseDisplayModes()
1184 modeChoices.try_emplace(id, DisplayModeChoice::from(std::move(rankedFrameRates))); in chooseDisplayModes()
DVsyncConfiguration.cpp55 const auto [it, _] = mOffsetsCache.try_emplace(fps, constructOffsets(fps.getPeriodNsecs())); in getConfigsForRefreshRateLocked()
DRefreshRateSelector.cpp212 ratesMap.try_emplace(Key{fps, mode->getGroup()}, it); in createFrameRateModes()
1168 const auto [iter, _] = maxRenderRateForMode.try_emplace(frameRateMode.modePtr->getId(), in rankFrameRates()
1324 mAppOverrideNativeRefreshRates.try_emplace(mode->getPeakFps(), ftl::unit); in updateDisplayModes()
/frameworks/av/media/codec2/sfplugin/
DPipelineWatcher.cpp67 (void)mFramesInPipeline.try_emplace(frameIndex, std::move(buffers), queuedAt); in onWorkQueued()
DC2NodeImpl.cpp67 auto it = jobs->queues.try_emplace(comp, comp).first; in queue()
/frameworks/base/cmds/idmap2/libidmap2/
DResourceMapping.cpp178 auto[iter, inserted] = target_map_.try_emplace(target_resource, ConfigMap()); in AddMapping()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h204 (modes.try_emplace(modePtrs->getId(), modePtrs), ...); in makeModes()
/frameworks/av/media/codec2/hal/aidl/
DBufferTypes.cpp306 foundConnection = mConnections.try_emplace( in send()
/frameworks/native/services/inputflinger/dispatcher/
DTouchedWindow.cpp242 auto [stateIt, _] = mDeviceStates.try_emplace(deviceId); in trySetDownTimeInTarget()
/frameworks/base/libs/input/
DPointerController.cpp223 mLocked.spotControllers.try_emplace(displayId, displayId, mContext); in setSpots()
/frameworks/libs/binary_translation/native_bridge/
Dnative_bridge.cc282 exported_namespaces_.try_emplace(std::string(name), in GetExportedNamespace()
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
Dtypes.cpp386 foundConnection = mConnections.try_emplace( in send()
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerLifecycleManager.cpp47 auto [it, inserted] = mIdToLayer.try_emplace(layer.id, References{.owner = layer}); in addLayers()

12