Lines Matching refs:uniqueId

43 sptr<Surface> SurfaceUtils::GetSurface(uint64_t uniqueId)  in GetSurface()  argument
46 if (surfaceCache_.count(uniqueId) == 0) { in GetSurface()
47 BLOGE("Cannot find surface, uniqueId: %{public}" PRIu64 ".", uniqueId); in GetSurface()
50 sptr<Surface> surface = surfaceCache_[uniqueId].promote(); in GetSurface()
52 BLOGE("surface is nullptr, uniqueId: %{public}" PRIu64 ".", uniqueId); in GetSurface()
58 SurfaceError SurfaceUtils::Add(uint64_t uniqueId, const wptr<Surface> &surface) in Add() argument
64 if (surfaceCache_.count(uniqueId) == 0) { in Add()
65 surfaceCache_[uniqueId] = surface; in Add()
68 BLOGD("the surface already existed, uniqueId: %{public}" PRIu64, uniqueId); in Add()
72 SurfaceError SurfaceUtils::Remove(uint64_t uniqueId) in Remove() argument
75 if (surfaceCache_.count(uniqueId) == 0) { in Remove()
76 BLOGD("Delete failed without surface, uniqueId %{public}" PRIu64, uniqueId); in Remove()
79 surfaceCache_.erase(uniqueId); in Remove()
299 void* SurfaceUtils::GetNativeWindow(uint64_t uniqueId) in GetNativeWindow() argument
302 if (nativeWindowCache_.count(uniqueId) == 0) { in GetNativeWindow()
303 BLOGE("Cannot find nativeWindow, uniqueId %" PRIu64 ".", uniqueId); in GetNativeWindow()
306 return nativeWindowCache_[uniqueId]; in GetNativeWindow()
309 SurfaceError SurfaceUtils::AddNativeWindow(uint64_t uniqueId, void *nativeWidow) in AddNativeWindow() argument
315 if (nativeWindowCache_.count(uniqueId) == 0) { in AddNativeWindow()
316 nativeWindowCache_[uniqueId] = nativeWidow; in AddNativeWindow()
319 BLOGD("the nativeWidow already existed, uniqueId %" PRIu64, uniqueId); in AddNativeWindow()
323 SurfaceError SurfaceUtils::RemoveNativeWindow(uint64_t uniqueId) in RemoveNativeWindow() argument
326 nativeWindowCache_.erase(uniqueId); in RemoveNativeWindow()