Searched refs:remoteItems (Results 1 – 1 of 1) sorted by relevance
123 @GuardedBy("mutex") private val remoteItems = mutableMapOf<Media, LoadResult>() constant in com.android.photopicker.features.cloudmedia.MediaPreloaderViewModel199 remoteItems.clear() in startPreload()202 remoteItems.put(item, LoadResult.QUEUED) in startPreload()207 if (remoteItems.isEmpty()) { in startPreload()223 completed = (selection.size - remoteItems.size), in startPreload()247 for (item in remoteItems.keys) { in startPreload()277 mutex.withLock { remoteItems.set(item, LoadResult.COMPLETED) } in preloadMediaItem()304 mutex.withLock { remoteItems.set(item, LoadResult.FAILED) } in preloadMediaItem()343 loadFailed = remoteItems.any { (_, loadResult) -> loadResult == LoadResult.FAILED } in monitorPreloadOperation()347 remoteItems.all { (_, loadResult) -> loadResult == LoadResult.COMPLETED } in monitorPreloadOperation()[all …]