Lines Matching defs:uniqueId
43 sptr<Surface> SurfaceUtils::GetSurface(uint64_t uniqueId)
46 auto iter = surfaceCache_.find(uniqueId);
48 BLOGE("Cannot find surface, uniqueId: %{public}" PRIu64 ".", uniqueId);
53 BLOGE("surface is nullptr, uniqueId: %{public}" PRIu64 ".", uniqueId);
59 SurfaceError SurfaceUtils::Add(uint64_t uniqueId, const wptr<Surface> &surface)
65 if (surfaceCache_.count(uniqueId) == 0) {
66 surfaceCache_[uniqueId] = surface;
69 BLOGD("the surface already existed, uniqueId: %{public}" PRIu64, uniqueId);
73 SurfaceError SurfaceUtils::Remove(uint64_t uniqueId)
76 auto iter = surfaceCache_.find(uniqueId);
78 BLOGD("Cannot find surface, uniqueId: %{public}" PRIu64 ".", uniqueId);
301 void* SurfaceUtils::GetNativeWindow(uint64_t uniqueId)
304 auto iter = nativeWindowCache_.find(uniqueId);
306 BLOGE("Cannot find nativeWindow, uniqueId %{public}" PRIu64 ".", uniqueId);
312 SurfaceError SurfaceUtils::AddNativeWindow(uint64_t uniqueId, void *nativeWidow)
318 if (nativeWindowCache_.count(uniqueId) == 0) {
319 nativeWindowCache_[uniqueId] = nativeWidow;
322 BLOGD("the nativeWidow already existed, uniqueId %" PRIu64, uniqueId);
326 SurfaceError SurfaceUtils::RemoveNativeWindow(uint64_t uniqueId)
329 nativeWindowCache_.erase(uniqueId);