Lines Matching refs:Result
70 public Result getThumbnail(Uri uri, Point size) { in getThumbnail()
75 return Result.obtainMiss(); in getThumbnail()
83 return Result.obtain(Result.CACHE_HIT_EXACT, size, entry); in getThumbnail()
95 return Result.obtain(Result.CACHE_HIT_LARGER, otherSize, entry); in getThumbnail()
108 return Result.obtain(Result.CACHE_HIT_SMALLER, otherSize, entry); in getThumbnail()
114 return Result.obtainMiss(); in getThumbnail()
186 public static final class Result { class in ThumbnailCache
210 private static final Pools.SimplePool<Result> sPool = new Pools.SimplePool<>(1);
217 private static Result obtainMiss() { in obtainMiss()
221 private static Result obtain(@Status int status, Point size, Entry entry) { in obtain()
225 private static Result obtain(@Status int status, @Nullable Bitmap thumbnail, in obtain()
229 Result instance = sPool.acquire(); in obtain()
230 instance = (instance != null ? instance : new Result()); in obtain()
240 private Result() {} in Result() method in ThumbnailCache.Result