summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorSuchi Amalapurapu <asuchitra@google.com>2009-06-12 10:09:58 -0700
committerSuchi Amalapurapu <asuchitra@google.com>2009-06-17 11:31:26 -0700
commit1ccac75e1f1b97eccb916a8de04fc1012b30f6e5 (patch)
tree181c91a427de2ea609eff1f42c3970a441225b45 /test-runner
parentef29f6afb4746eae8263ab901a5d3677bc04574b (diff)
downloadframeworks_base-1ccac75e1f1b97eccb916a8de04fc1012b30f6e5.zip
frameworks_base-1ccac75e1f1b97eccb916a8de04fc1012b30f6e5.tar.gz
frameworks_base-1ccac75e1f1b97eccb916a8de04fc1012b30f6e5.tar.bz2
Remove circular dependency in PackageManager. api freeStorage uses PendingIntent from android.app
Create a new public IntentSender class that can be used by PackageManager instead. This new class uses IIntentSender internally and can only be created by PendingIntent for now. Provide a new getIntentSender api in PendingIntent to create an instance of this class. Move IIntentSender and IIntentReceiver from android.app to android.content Change imports of IIntentSender and IIntentReceiver to reflect the new package name The PackageManager api has been named as freeStorageWithIntent and will be renamed as freeStorage once the older api(which has been deprecated) will be removed shortly.
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/android/test/mock/MockPackageManager.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-runner/android/test/mock/MockPackageManager.java b/test-runner/android/test/mock/MockPackageManager.java
index 6ef5539..5e7802d 100644
--- a/test-runner/android/test/mock/MockPackageManager.java
+++ b/test-runner/android/test/mock/MockPackageManager.java
@@ -20,6 +20,7 @@ import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Intent;
import android.content.IntentFilter;
+import android.content.IntentSender;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.IPackageDeleteObserver;
@@ -345,6 +346,15 @@ public class MockPackageManager extends PackageManager {
* @hide - to match hiding in superclass
*/
@Override
+ public void freeStorageWithIntent(
+ long idealStorageSize, IntentSender pi) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @hide - to match hiding in superclass
+ */
+ @Override
public void deletePackage(
String packageName, IPackageDeleteObserver observer, int flags) {
throw new UnsupportedOperationException();