OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:imagecache
(Results
1 - 25
of
40
) sorted by null
1
2
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageCache.java
32
public class
ImageCache
{
33
private static final String TAG = "
ImageCache
";
37
* Creating a new
ImageCache
object using the specified parameters.
41
private
ImageCache
(float memCacheSizePercent) {
46
* Find and return an existing
ImageCache
stored in a {@link RetainFragment}, if not found a new
51
* @return An existing retained
ImageCache
object or a new one if one did not exist
53
public static
ImageCache
getInstance(
59
// See if we already have an
ImageCache
stored in RetainFragment
60
ImageCache
imageCache
= (ImageCache) mRetainFragment.getObject()
[
all
...]
/packages/apps/TV/src/com/android/tv/util/
ImageCache.java
29
public class
ImageCache
implements MemoryManageable {
34
private static final String TAG = "
ImageCache
";
40
* Creates a new
ImageCache
object with a given cache size percent.
44
private
ImageCache
(float memCacheSizePercent) {
63
private static
ImageCache
sImageCache;
66
* Returns an existing
ImageCache
, if it doesn't exist, a new one is created using the supplied
71
* @return An existing retained
ImageCache
object or a new one if one did not exist
73
public static synchronized
ImageCache
getInstance(float memCacheSizePercent) {
81
static
ImageCache
newInstance(float memCacheSizePercent) {
82
return new
ImageCache
(memCacheSizePercent)
[
all
...]
ImageLoader.java
196
ImageCache
imageCache
=
ImageCache
.getInstance();
197
ScaledBitmapInfo bitmapInfo =
imageCache
.get(uriString);
205
new LoadBitmapFromUriTask(context,
imageCache
, uriString, maxWidth, maxHeight));
268
private final
ImageCache
mImageCache;
304
public LoadBitmapTask(Context context,
ImageCache
imageCache
, String key, int maxHeight,
313
mImageCache =
imageCache
;
361
private LoadBitmapFromUriTask(Context context,
ImageCache
imageCache, String uriString
[
all
...]
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageCache.java
54
* {@link
ImageCache
#getInstance(android.support.v4.app.FragmentManager, ImageCacheParams)} to get an instance of this
58
public class
ImageCache
{
59
private static final String TAG = "
ImageCache
";
86
* Create a new
ImageCache
object using the specified parameters. This should not be
88
* {@link
ImageCache
#getInstance(android.support.v4.app.FragmentManager, ImageCacheParams)} to fetch an
ImageCache
93
private
ImageCache
(ImageCacheParams cacheParams) {
98
* Return an {@link
ImageCache
} instance. A {@link RetainFragment} is used to retain the
99
*
ImageCache
object across configuration changes such as a change in device orientation.
102
* @param cacheParams The cache parameters to use if the
ImageCache
needs instantiation
[
all
...]
ImageWorker.java
45
private
ImageCache
mImageCache;
46
private
ImageCache
.ImageCacheParams mImageCacheParams;
67
* disk cache will be used if an {@link
ImageCache
} has been added using
68
* {@link ImageWorker#addImageCache(android.support.v4.app.FragmentManager,
ImageCache
.ImageCacheParams)}. If the
111
* disk cache will be used if an {@link
ImageCache
} has been added using
112
* {@link ImageWorker#addImageCache(android.support.v4.app.FragmentManager,
ImageCache
.ImageCacheParams)}. If the
142
* Adds an {@link
ImageCache
} to this {@link ImageWorker} to handle disk and memory bitmap
148
ImageCache
.ImageCacheParams cacheParams) {
150
mImageCache =
ImageCache
.getInstance(fragmentManager, mImageCacheParams);
155
* Adds an {@link
ImageCache
} to this {@link ImageWorker} to handle disk and memory bitma
[
all
...]
ImageResizer.java
111
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
116
int reqWidth, int reqHeight,
ImageCache
cache) {
144
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
149
int reqWidth, int reqHeight,
ImageCache
cache) {
175
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
180
FileDescriptor fileDescriptor, int reqWidth, int reqHeight,
ImageCache
cache) {
202
private static void addInBitmapOptions(BitmapFactory.Options options,
ImageCache
cache) {
ImageFetcher.java
80
mHttpCacheDir =
ImageCache
.getDiskCacheDir(context, HTTP_CACHE_DIR);
94
if (
ImageCache
.getUsableSpace(mHttpCacheDir) > HTTP_CACHE_SIZE) {
193
final String key =
ImageCache
.hashKeyForDisk(data);
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageCache.java
54
* {@link
ImageCache
#getInstance(android.support.v4.app.FragmentManager, ImageCacheParams)} to get an instance of this
58
public class
ImageCache
{
59
private static final String TAG = "
ImageCache
";
86
* Create a new
ImageCache
object using the specified parameters. This should not be
88
* {@link
ImageCache
#getInstance(android.support.v4.app.FragmentManager, ImageCacheParams)} to fetch an
ImageCache
93
private
ImageCache
(ImageCacheParams cacheParams) {
98
* Return an {@link
ImageCache
} instance. A {@link RetainFragment} is used to retain the
99
*
ImageCache
object across configuration changes such as a change in device orientation.
102
* @param cacheParams The cache parameters to use if the
ImageCache
needs instantiation
[
all
...]
ImageWorker.java
45
private
ImageCache
mImageCache;
46
private
ImageCache
.ImageCacheParams mImageCacheParams;
67
* disk cache will be used if an {@link
ImageCache
} has been added using
68
* {@link ImageWorker#addImageCache(android.support.v4.app.FragmentManager,
ImageCache
.ImageCacheParams)}. If the
111
* disk cache will be used if an {@link
ImageCache
} has been added using
112
* {@link ImageWorker#addImageCache(android.support.v4.app.FragmentManager,
ImageCache
.ImageCacheParams)}. If the
142
* Adds an {@link
ImageCache
} to this {@link ImageWorker} to handle disk and memory bitmap
148
ImageCache
.ImageCacheParams cacheParams) {
150
mImageCache =
ImageCache
.getInstance(fragmentManager, mImageCacheParams);
155
* Adds an {@link
ImageCache
} to this {@link ImageWorker} to handle disk and memory bitma
[
all
...]
ImageResizer.java
111
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
116
int reqWidth, int reqHeight,
ImageCache
cache) {
144
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
149
int reqWidth, int reqHeight,
ImageCache
cache) {
175
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
180
FileDescriptor fileDescriptor, int reqWidth, int reqHeight,
ImageCache
cache) {
202
private static void addInBitmapOptions(BitmapFactory.Options options,
ImageCache
cache) {
ImageFetcher.java
80
mHttpCacheDir =
ImageCache
.getDiskCacheDir(context, HTTP_CACHE_DIR);
94
if (
ImageCache
.getUsableSpace(mHttpCacheDir) > HTTP_CACHE_SIZE) {
193
final String key =
ImageCache
.hashKeyForDisk(data);
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageCache.java
54
* {@link
ImageCache
#getInstance(android.support.v4.app.FragmentManager, ImageCacheParams)} to get an instance of this
58
public class
ImageCache
{
59
private static final String TAG = "
ImageCache
";
86
* Create a new
ImageCache
object using the specified parameters. This should not be
88
* {@link
ImageCache
#getInstance(android.support.v4.app.FragmentManager, ImageCacheParams)} to fetch an
ImageCache
93
private
ImageCache
(ImageCacheParams cacheParams) {
98
* Return an {@link
ImageCache
} instance. A {@link RetainFragment} is used to retain the
99
*
ImageCache
object across configuration changes such as a change in device orientation.
102
* @param cacheParams The cache parameters to use if the
ImageCache
needs instantiation
[
all
...]
ImageWorker.java
45
private
ImageCache
mImageCache;
46
private
ImageCache
.ImageCacheParams mImageCacheParams;
67
* disk cache will be used if an {@link
ImageCache
} has been added using
68
* {@link ImageWorker#addImageCache(android.support.v4.app.FragmentManager,
ImageCache
.ImageCacheParams)}. If the
111
* disk cache will be used if an {@link
ImageCache
} has been added using
112
* {@link ImageWorker#addImageCache(android.support.v4.app.FragmentManager,
ImageCache
.ImageCacheParams)}. If the
142
* Adds an {@link
ImageCache
} to this {@link ImageWorker} to handle disk and memory bitmap
148
ImageCache
.ImageCacheParams cacheParams) {
150
mImageCache =
ImageCache
.getInstance(fragmentManager, mImageCacheParams);
155
* Adds an {@link
ImageCache
} to this {@link ImageWorker} to handle disk and memory bitma
[
all
...]
ImageResizer.java
111
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
116
int reqWidth, int reqHeight,
ImageCache
cache) {
144
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
149
int reqWidth, int reqHeight,
ImageCache
cache) {
175
* @param cache The
ImageCache
used to find candidate bitmaps for use with inBitmap
180
FileDescriptor fileDescriptor, int reqWidth, int reqHeight,
ImageCache
cache) {
202
private static void addInBitmapOptions(BitmapFactory.Options options,
ImageCache
cache) {
ImageFetcher.java
80
mHttpCacheDir =
ImageCache
.getDiskCacheDir(context, HTTP_CACHE_DIR);
94
if (
ImageCache
.getUsableSpace(mHttpCacheDir) > HTTP_CACHE_SIZE) {
193
final String key =
ImageCache
.hashKeyForDisk(data);
/packages/apps/TV/tests/unit/src/com/android/tv/util/
ImageCacheTest.java
29
* Tests for {@link
ImageCache
}.
41
private
ImageCache
mImageCache;
46
mImageCache =
ImageCache
.newInstance(0.1f);
/frameworks/volley/src/test/java/com/android/volley/toolbox/
ImageLoaderTest.java
35
private ImageLoader.
ImageCache
mImageCache;
41
mImageCache = mock(ImageLoader.
ImageCache
.class);
82
ImageLoader.
ImageCache
.class));
/external/skia/bench/
ImageCacheBench.cpp
55
return "
imagecache
";
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/
ImageDetailActivity.java
40
import com.example.android.displayingbitmaps.util.
ImageCache
;
75
ImageCache
.ImageCacheParams cacheParams =
76
new
ImageCache
.ImageCacheParams(this, IMAGE_CACHE_DIR);
ImageGridFragment.java
46
import com.example.android.displayingbitmaps.util.
ImageCache
;
52
* implementation with the key addition being the ImageWorker class w/
ImageCache
to load children
81
ImageCache
.ImageCacheParams cacheParams =
82
new
ImageCache
.ImageCacheParams(getActivity(), IMAGE_CACHE_DIR);
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/
ImageDetailActivity.java
40
import com.example.android.displayingbitmaps.util.
ImageCache
;
75
ImageCache
.ImageCacheParams cacheParams =
76
new
ImageCache
.ImageCacheParams(this, IMAGE_CACHE_DIR);
ImageGridFragment.java
46
import com.example.android.displayingbitmaps.util.
ImageCache
;
52
* implementation with the key addition being the ImageWorker class w/
ImageCache
to load children
81
ImageCache
.ImageCacheParams cacheParams =
82
new
ImageCache
.ImageCacheParams(getActivity(), IMAGE_CACHE_DIR);
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
ImageDetailActivity.java
40
import com.example.android.displayingbitmaps.util.
ImageCache
;
75
ImageCache
.ImageCacheParams cacheParams =
76
new
ImageCache
.ImageCacheParams(this, IMAGE_CACHE_DIR);
ImageGridFragment.java
46
import com.example.android.displayingbitmaps.util.
ImageCache
;
52
* implementation with the key addition being the ImageWorker class w/
ImageCache
to load children
81
ImageCache
.ImageCacheParams cacheParams =
82
new
ImageCache
.ImageCacheParams(getActivity(), IMAGE_CACHE_DIR);
/frameworks/volley/src/main/java/com/android/volley/toolbox/
ImageLoader.java
50
private final
ImageCache
mCache;
74
public interface
ImageCache
{
82
* @param
imageCache
The cache to use as an L1 cache.
84
public ImageLoader(RequestQueue queue,
ImageCache
imageCache
) {
86
mCache =
imageCache
;
Completed in 8626 milliseconds
1
2