summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android
diff options
context:
space:
mode:
authorRay Chen <raychen@google.com>2009-10-05 14:34:24 -0700
committerRay Chen <raychen@google.com>2009-10-06 16:18:49 -0700
commit28f3595372cfbff1a2e5e83bf59d8dff76e14215 (patch)
tree489fecf77b4abcae6a9d75d6647bd5d96b2fa668 /tests/src/com/android
parent5569ee858ef994970191798f326c91f95b4f91cd (diff)
downloadLegacyCamera-28f3595372cfbff1a2e5e83bf59d8dff76e14215.zip
LegacyCamera-28f3595372cfbff1a2e5e83bf59d8dff76e14215.tar.gz
LegacyCamera-28f3595372cfbff1a2e5e83bf59d8dff76e14215.tar.bz2
Utilize group id to request & cancel thumbnail requests.
Diffstat (limited to 'tests/src/com/android')
-rw-r--r--tests/src/com/android/camera/BitmapManagerUnitTests.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/com/android/camera/BitmapManagerUnitTests.java b/tests/src/com/android/camera/BitmapManagerUnitTests.java
index fc1ade1..7878b74 100644
--- a/tests/src/com/android/camera/BitmapManagerUnitTests.java
+++ b/tests/src/com/android/camera/BitmapManagerUnitTests.java
@@ -75,7 +75,7 @@ public class BitmapManagerUnitTests extends AndroidTestCase {
assertTrue(mBitmapManager.canThreadDecoding(t));
// Disallow thread t to decode.
- mBitmapManager.cancelThreadDecoding(t);
+ mBitmapManager.cancelThreadDecoding(t, mContext.getContentResolver());
assertFalse(mBitmapManager.canThreadDecoding(t));
// Allow thread t to decode again.
@@ -96,7 +96,7 @@ public class BitmapManagerUnitTests extends AndroidTestCase {
public void testCancelDecoding() {
DecodeThread t = new DecodeThread();
- mBitmapManager.cancelThreadDecoding(t);
+ mBitmapManager.cancelThreadDecoding(t, mContext.getContentResolver());
try {
t.start();
t.join();
@@ -108,7 +108,7 @@ public class BitmapManagerUnitTests extends AndroidTestCase {
public void testAllowDecoding() {
DecodeThread t = new DecodeThread();
- mBitmapManager.cancelThreadDecoding(t);
+ mBitmapManager.cancelThreadDecoding(t, mContext.getContentResolver());
mBitmapManager.allowThreadDecoding(t);
try {
t.start();
@@ -123,7 +123,7 @@ public class BitmapManagerUnitTests extends AndroidTestCase {
DecodeThread t1 = new DecodeThread();
DecodeThread t2 = new DecodeThread();
mBitmapManager.allowThreadDecoding(t1);
- mBitmapManager.cancelThreadDecoding(t2);
+ mBitmapManager.cancelThreadDecoding(t2, mContext.getContentResolver());
t1.start();
t2.start();