From 3dec7d563a2f3e1eb967ce2054a00b6620e3558c Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Mon, 2 Mar 2009 22:54:33 -0800 Subject: auto import from //depot/cupcake/@137055 --- test-runner/android/test/mock/MockContentProvider.java | 7 +++++++ test-runner/android/test/mock/MockPackageManager.java | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'test-runner/android') diff --git a/test-runner/android/test/mock/MockContentProvider.java b/test-runner/android/test/mock/MockContentProvider.java index 9c00ecf..d04fc44 100644 --- a/test-runner/android/test/mock/MockContentProvider.java +++ b/test-runner/android/test/mock/MockContentProvider.java @@ -19,6 +19,7 @@ package android.test.mock; import android.content.ContentValues; import android.content.IContentProvider; import android.content.ISyncAdapter; +import android.content.res.AssetFileDescriptor; import android.database.Cursor; import android.database.CursorWindow; import android.database.IBulkCursor; @@ -82,6 +83,12 @@ public class MockContentProvider implements IContentProvider { } @SuppressWarnings("unused") + public AssetFileDescriptor openAssetFile(Uri uri, String mode) + throws FileNotFoundException { + throw new UnsupportedOperationException("unimplemented mock method"); + } + + @SuppressWarnings("unused") public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) throws RemoteException { throw new UnsupportedOperationException("unimplemented mock method"); diff --git a/test-runner/android/test/mock/MockPackageManager.java b/test-runner/android/test/mock/MockPackageManager.java index 57e7e41..ea190e2 100644 --- a/test-runner/android/test/mock/MockPackageManager.java +++ b/test-runner/android/test/mock/MockPackageManager.java @@ -34,6 +34,7 @@ import android.content.pm.PermissionInfo; import android.content.pm.ProviderInfo; import android.content.pm.ResolveInfo; import android.content.pm.ServiceInfo; +import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Resources; import android.content.res.XmlResourceParser; import android.graphics.drawable.Drawable; @@ -56,6 +57,12 @@ public class MockPackageManager extends PackageManager { } @Override + public Intent getLaunchIntentForPackage(String packageName) + throws NameNotFoundException { + throw new UnsupportedOperationException(); + } + + @Override public int[] getPackageGids(String packageName) throws NameNotFoundException { throw new UnsupportedOperationException(); } -- cgit v1.1