| package android.test.mock { |
| |
| public deprecated class MockApplication extends android.app.Application { |
| ctor public MockApplication(); |
| } |
| |
| public class MockContentProvider extends android.content.ContentProvider { |
| ctor protected MockContentProvider(); |
| ctor public MockContentProvider(android.content.Context); |
| ctor public MockContentProvider(android.content.Context, java.lang.String, java.lang.String, android.content.pm.PathPermission[]); |
| method public android.content.ContentProviderResult[] applyBatch(java.util.ArrayList<android.content.ContentProviderOperation>); |
| method public int delete(android.net.Uri, java.lang.String, java.lang.String[]); |
| method public final android.content.IContentProvider getIContentProvider(); |
| method public java.lang.String getType(android.net.Uri); |
| method public android.net.Uri insert(android.net.Uri, android.content.ContentValues); |
| method public boolean onCreate(); |
| method public android.content.res.AssetFileDescriptor openTypedAssetFile(android.net.Uri, java.lang.String, android.os.Bundle); |
| method public android.database.Cursor query(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String); |
| method public int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]); |
| } |
| |
| public class MockContentResolver extends android.content.ContentResolver { |
| ctor public MockContentResolver(); |
| ctor public MockContentResolver(android.content.Context); |
| method protected android.content.IContentProvider acquireProvider(android.content.Context, java.lang.String); |
| method protected android.content.IContentProvider acquireUnstableProvider(android.content.Context, java.lang.String); |
| method public void addProvider(java.lang.String, android.content.ContentProvider); |
| method public boolean releaseProvider(android.content.IContentProvider); |
| method public boolean releaseUnstableProvider(android.content.IContentProvider); |
| method public void unstableProviderDied(android.content.IContentProvider); |
| } |
| |
| public class MockContext extends android.content.Context { |
| ctor public MockContext(); |
| method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int); |
| method public boolean canLoadUnsafeResources(); |
| method public int checkCallingOrSelfPermission(java.lang.String); |
| method public int checkCallingOrSelfUriPermission(android.net.Uri, int); |
| method public int checkCallingPermission(java.lang.String); |
| method public int checkCallingUriPermission(android.net.Uri, int); |
| method public int checkPermission(java.lang.String, int, int); |
| method public int checkPermission(java.lang.String, int, int, android.os.IBinder); |
| method public int checkSelfPermission(java.lang.String); |
| method public int checkUriPermission(android.net.Uri, int, int, int); |
| method public int checkUriPermission(android.net.Uri, int, int, int, android.os.IBinder); |
| method public int checkUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int); |
| method public void clearWallpaper(); |
| method public android.content.Context createApplicationContext(android.content.pm.ApplicationInfo, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.Context createConfigurationContext(android.content.res.Configuration); |
| method public android.content.Context createContextForSplit(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.Context createCredentialProtectedStorageContext(); |
| method public android.content.Context createDeviceProtectedStorageContext(); |
| method public android.content.Context createDisplayContext(android.view.Display); |
| method public android.content.Context createPackageContext(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.Context createPackageContextAsUser(java.lang.String, int, android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public java.lang.String[] databaseList(); |
| method public boolean deleteDatabase(java.lang.String); |
| method public boolean deleteFile(java.lang.String); |
| method public boolean deleteSharedPreferences(java.lang.String); |
| method public void enforceCallingOrSelfPermission(java.lang.String, java.lang.String); |
| method public void enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String); |
| method public void enforceCallingPermission(java.lang.String, java.lang.String); |
| method public void enforceCallingUriPermission(android.net.Uri, int, java.lang.String); |
| method public void enforcePermission(java.lang.String, int, int, java.lang.String); |
| method public void enforceUriPermission(android.net.Uri, int, int, int, java.lang.String); |
| method public void enforceUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int, java.lang.String); |
| method public java.lang.String[] fileList(); |
| method public android.content.Context getApplicationContext(); |
| method public android.content.pm.ApplicationInfo getApplicationInfo(); |
| method public android.content.res.AssetManager getAssets(); |
| method public java.lang.String getBasePackageName(); |
| method public java.io.File getCacheDir(); |
| method public java.lang.ClassLoader getClassLoader(); |
| method public java.io.File getCodeCacheDir(); |
| method public android.content.ContentResolver getContentResolver(); |
| method public java.io.File getDataDir(); |
| method public java.io.File getDatabasePath(java.lang.String); |
| method public java.io.File getDir(java.lang.String, int); |
| method public android.view.Display getDisplay(); |
| method public android.view.DisplayAdjustments getDisplayAdjustments(int); |
| method public java.io.File getExternalCacheDir(); |
| method public java.io.File[] getExternalCacheDirs(); |
| method public java.io.File getExternalFilesDir(java.lang.String); |
| method public java.io.File[] getExternalFilesDirs(java.lang.String); |
| method public java.io.File[] getExternalMediaDirs(); |
| method public java.io.File getFileStreamPath(java.lang.String); |
| method public java.io.File getFilesDir(); |
| method public android.os.Looper getMainLooper(); |
| method public java.io.File getNoBackupFilesDir(); |
| method public java.io.File getObbDir(); |
| method public java.io.File[] getObbDirs(); |
| method public java.lang.String getOpPackageName(); |
| method public java.lang.String getPackageCodePath(); |
| method public android.content.pm.PackageManager getPackageManager(); |
| method public java.lang.String getPackageName(); |
| method public java.lang.String getPackageResourcePath(); |
| method public java.io.File getPreloadsFileCache(); |
| method public android.content.res.Resources getResources(); |
| method public android.content.SharedPreferences getSharedPreferences(java.lang.String, int); |
| method public android.content.SharedPreferences getSharedPreferences(java.io.File, int); |
| method public java.io.File getSharedPreferencesPath(java.lang.String); |
| method public java.lang.Object getSystemService(java.lang.String); |
| method public java.lang.String getSystemServiceName(java.lang.Class<?>); |
| method public android.content.res.Resources.Theme getTheme(); |
| method public int getUserId(); |
| method public android.graphics.drawable.Drawable getWallpaper(); |
| method public int getWallpaperDesiredMinimumHeight(); |
| method public int getWallpaperDesiredMinimumWidth(); |
| method public void grantUriPermission(java.lang.String, android.net.Uri, int); |
| method public boolean isCredentialProtectedStorage(); |
| method public boolean isDeviceProtectedStorage(); |
| method public boolean moveDatabaseFrom(android.content.Context, java.lang.String); |
| method public boolean moveSharedPreferencesFrom(android.content.Context, java.lang.String); |
| method public java.io.FileInputStream openFileInput(java.lang.String) throws java.io.FileNotFoundException; |
| method public java.io.FileOutputStream openFileOutput(java.lang.String, int) throws java.io.FileNotFoundException; |
| method public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory); |
| method public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler); |
| method public android.graphics.drawable.Drawable peekWallpaper(); |
| method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter); |
| method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, int); |
| method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler); |
| method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler, int); |
| method public android.content.Intent registerReceiverAsUser(android.content.BroadcastReceiver, android.os.UserHandle, android.content.IntentFilter, java.lang.String, android.os.Handler); |
| method public void reloadSharedPreferences(); |
| method public void removeStickyBroadcast(android.content.Intent); |
| method public void removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle); |
| method public void revokeUriPermission(android.net.Uri, int); |
| method public void revokeUriPermission(java.lang.String, android.net.Uri, int); |
| method public void sendBroadcast(android.content.Intent); |
| method public void sendBroadcast(android.content.Intent, java.lang.String); |
| method public void sendBroadcast(android.content.Intent, java.lang.String, android.os.Bundle); |
| method public void sendBroadcast(android.content.Intent, java.lang.String, int); |
| method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle); |
| method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String); |
| method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.os.Bundle); |
| method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, int); |
| method public void sendBroadcastMultiplePermissions(android.content.Intent, java.lang.String[]); |
| method public void sendOrderedBroadcast(android.content.Intent, java.lang.String); |
| method public void sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendOrderedBroadcast(android.content.Intent, java.lang.String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendOrderedBroadcast(android.content.Intent, java.lang.String, int, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, int, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, int, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendStickyBroadcast(android.content.Intent); |
| method public void sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle); |
| method public void sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.os.Bundle); |
| method public void sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle); |
| method public void setTheme(int); |
| method public void setWallpaper(android.graphics.Bitmap) throws java.io.IOException; |
| method public void setWallpaper(java.io.InputStream) throws java.io.IOException; |
| method public void startActivities(android.content.Intent[]); |
| method public void startActivities(android.content.Intent[], android.os.Bundle); |
| method public void startActivity(android.content.Intent); |
| method public void startActivity(android.content.Intent, android.os.Bundle); |
| method public android.content.ComponentName startForegroundService(android.content.Intent); |
| method public android.content.ComponentName startForegroundServiceAsUser(android.content.Intent, android.os.UserHandle); |
| method public boolean startInstrumentation(android.content.ComponentName, java.lang.String, android.os.Bundle); |
| method public void startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int) throws android.content.IntentSender.SendIntentException; |
| method public void startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle) throws android.content.IntentSender.SendIntentException; |
| method public android.content.ComponentName startService(android.content.Intent); |
| method public android.content.ComponentName startServiceAsUser(android.content.Intent, android.os.UserHandle); |
| method public boolean stopService(android.content.Intent); |
| method public boolean stopServiceAsUser(android.content.Intent, android.os.UserHandle); |
| method public void unbindService(android.content.ServiceConnection); |
| method public void unregisterReceiver(android.content.BroadcastReceiver); |
| method public void updateDisplay(int); |
| } |
| |
| public deprecated class MockCursor implements android.database.Cursor { |
| ctor public MockCursor(); |
| method public void close(); |
| method public void copyStringToBuffer(int, android.database.CharArrayBuffer); |
| method public deprecated void deactivate(); |
| method public byte[] getBlob(int); |
| method public int getColumnCount(); |
| method public int getColumnIndex(java.lang.String); |
| method public int getColumnIndexOrThrow(java.lang.String); |
| method public java.lang.String getColumnName(int); |
| method public java.lang.String[] getColumnNames(); |
| method public int getCount(); |
| method public double getDouble(int); |
| method public android.os.Bundle getExtras(); |
| method public float getFloat(int); |
| method public int getInt(int); |
| method public long getLong(int); |
| method public android.net.Uri getNotificationUri(); |
| method public int getPosition(); |
| method public short getShort(int); |
| method public java.lang.String getString(int); |
| method public int getType(int); |
| method public boolean getWantsAllOnMoveCalls(); |
| method public boolean isAfterLast(); |
| method public boolean isBeforeFirst(); |
| method public boolean isClosed(); |
| method public boolean isFirst(); |
| method public boolean isLast(); |
| method public boolean isNull(int); |
| method public boolean move(int); |
| method public boolean moveToFirst(); |
| method public boolean moveToLast(); |
| method public boolean moveToNext(); |
| method public boolean moveToPosition(int); |
| method public boolean moveToPrevious(); |
| method public void registerContentObserver(android.database.ContentObserver); |
| method public void registerDataSetObserver(android.database.DataSetObserver); |
| method public deprecated boolean requery(); |
| method public android.os.Bundle respond(android.os.Bundle); |
| method public void setExtras(android.os.Bundle); |
| method public void setNotificationUri(android.content.ContentResolver, android.net.Uri); |
| method public void unregisterContentObserver(android.database.ContentObserver); |
| method public void unregisterDataSetObserver(android.database.DataSetObserver); |
| } |
| |
| public deprecated class MockDialogInterface implements android.content.DialogInterface { |
| ctor public MockDialogInterface(); |
| method public void cancel(); |
| method public void dismiss(); |
| } |
| |
| public deprecated class MockPackageManager extends android.content.pm.PackageManager { |
| ctor public MockPackageManager(); |
| method public void addCrossProfileIntentFilter(android.content.IntentFilter, int, int, int); |
| method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener); |
| method public void addPackageToPreferred(java.lang.String); |
| method public boolean addPermission(android.content.pm.PermissionInfo); |
| method public boolean addPermissionAsync(android.content.pm.PermissionInfo); |
| method public void addPreferredActivity(android.content.IntentFilter, int, android.content.ComponentName[], android.content.ComponentName); |
| method public boolean canRequestPackageInstalls(); |
| method public java.lang.String[] canonicalToCurrentPackageNames(java.lang.String[]); |
| method public int checkPermission(java.lang.String, java.lang.String); |
| method public int checkSignatures(java.lang.String, java.lang.String); |
| method public int checkSignatures(int, int); |
| method public void clearApplicationUserData(java.lang.String, android.content.pm.IPackageDataObserver); |
| method public void clearCrossProfileIntentFilters(int); |
| method public void clearInstantAppCookie(); |
| method public void clearPackagePreferredActivities(java.lang.String); |
| method public java.lang.String[] currentToCanonicalPackageNames(java.lang.String[]); |
| method public void deleteApplicationCacheFiles(java.lang.String, android.content.pm.IPackageDataObserver); |
| method public void deleteApplicationCacheFilesAsUser(java.lang.String, int, android.content.pm.IPackageDataObserver); |
| method public void deletePackage(java.lang.String, android.content.pm.IPackageDeleteObserver, int); |
| method public void deletePackageAsUser(java.lang.String, android.content.pm.IPackageDeleteObserver, int, int); |
| method public void extendVerificationTimeout(int, int, long); |
| method public void flushPackageRestrictionsAsUser(int); |
| method public void freeStorage(java.lang.String, long, android.content.IntentSender); |
| method public void freeStorageAndNotify(java.lang.String, long, android.content.pm.IPackageDataObserver); |
| method public android.graphics.drawable.Drawable getActivityBanner(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.graphics.drawable.Drawable getActivityBanner(android.content.Intent) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.graphics.drawable.Drawable getActivityIcon(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.graphics.drawable.Drawable getActivityIcon(android.content.Intent) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.ActivityInfo getActivityInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.graphics.drawable.Drawable getActivityLogo(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.graphics.drawable.Drawable getActivityLogo(android.content.Intent) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public java.util.List<android.content.IntentFilter> getAllIntentFilters(java.lang.String); |
| method public java.util.List<android.content.pm.PermissionGroupInfo> getAllPermissionGroups(int); |
| method public android.graphics.drawable.Drawable getApplicationBanner(android.content.pm.ApplicationInfo); |
| method public android.graphics.drawable.Drawable getApplicationBanner(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int getApplicationEnabledSetting(java.lang.String); |
| method public boolean getApplicationHiddenSettingAsUser(java.lang.String, android.os.UserHandle); |
| method public android.graphics.drawable.Drawable getApplicationIcon(android.content.pm.ApplicationInfo); |
| method public android.graphics.drawable.Drawable getApplicationIcon(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.ApplicationInfo getApplicationInfo(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.ApplicationInfo getApplicationInfoAsUser(java.lang.String, int, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public java.lang.CharSequence getApplicationLabel(android.content.pm.ApplicationInfo); |
| method public android.graphics.drawable.Drawable getApplicationLogo(android.content.pm.ApplicationInfo); |
| method public android.graphics.drawable.Drawable getApplicationLogo(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.ChangedPackages getChangedPackages(int); |
| method public int getComponentEnabledSetting(android.content.ComponentName); |
| method public android.graphics.drawable.Drawable getDefaultActivityIcon(); |
| method public java.lang.String getDefaultBrowserPackageNameAsUser(int); |
| method public android.graphics.drawable.Drawable getDrawable(java.lang.String, int, android.content.pm.ApplicationInfo); |
| method public android.content.ComponentName getHomeActivities(java.util.List<android.content.pm.ResolveInfo>); |
| method public int getInstallReason(java.lang.String, android.os.UserHandle); |
| method public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplications(int); |
| method public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int); |
| method public java.util.List<android.content.pm.PackageInfo> getInstalledPackages(int); |
| method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int); |
| method public java.lang.String getInstallerPackageName(java.lang.String); |
| method public java.lang.String getInstantAppAndroidId(java.lang.String, android.os.UserHandle); |
| method public byte[] getInstantAppCookie(); |
| method public int getInstantAppCookieMaxBytes(); |
| method public int getInstantAppCookieMaxSize(); |
| method public android.graphics.drawable.Drawable getInstantAppIcon(java.lang.String); |
| method public android.content.ComponentName getInstantAppInstallerComponent(); |
| method public android.content.ComponentName getInstantAppResolverSettingsComponent(); |
| method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps(); |
| method public android.content.pm.InstrumentationInfo getInstrumentationInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(java.lang.String); |
| method public int getIntentVerificationStatusAsUser(java.lang.String, int); |
| method public android.content.pm.KeySet getKeySetByAlias(java.lang.String, java.lang.String); |
| method public android.content.Intent getLaunchIntentForPackage(java.lang.String); |
| method public android.content.Intent getLeanbackLaunchIntentForPackage(java.lang.String); |
| method public int getMoveStatus(int); |
| method public java.lang.String getNameForUid(int); |
| method public java.lang.String[] getNamesForUids(int[]); |
| method public java.util.List<android.os.storage.VolumeInfo> getPackageCandidateVolumes(android.content.pm.ApplicationInfo); |
| method public android.os.storage.VolumeInfo getPackageCurrentVolume(android.content.pm.ApplicationInfo); |
| method public int[] getPackageGids(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int[] getPackageGids(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.PackageInfo getPackageInfo(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.PackageInfo getPackageInfo(android.content.pm.VersionedPackage, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.PackageInfo getPackageInfoAsUser(java.lang.String, int, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.PackageInstaller getPackageInstaller(); |
| method public void getPackageSizeInfoAsUser(java.lang.String, int, android.content.pm.IPackageStatsObserver); |
| method public int getPackageUid(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int getPackageUidAsUser(java.lang.String, int, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int getPackageUidAsUser(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public java.lang.String[] getPackagesForUid(int); |
| method public java.util.List<android.content.pm.PackageInfo> getPackagesHoldingPermissions(java.lang.String[], int); |
| method public java.lang.String getPermissionControllerPackageName(); |
| method public int getPermissionFlags(java.lang.String, java.lang.String, android.os.UserHandle); |
| method public android.content.pm.PermissionGroupInfo getPermissionGroupInfo(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int getPreferredActivities(java.util.List<android.content.IntentFilter>, java.util.List<android.content.ComponentName>, java.lang.String); |
| method public java.util.List<android.content.pm.PackageInfo> getPreferredPackages(int); |
| method public java.util.List<android.os.storage.VolumeInfo> getPrimaryStorageCandidateVolumes(); |
| method public android.os.storage.VolumeInfo getPrimaryStorageCurrentVolume(); |
| method public android.content.pm.ProviderInfo getProviderInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.pm.ActivityInfo getReceiverInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.res.Resources getResourcesForActivity(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.res.Resources getResourcesForApplication(android.content.pm.ApplicationInfo); |
| method public android.content.res.Resources getResourcesForApplication(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public android.content.res.Resources getResourcesForApplicationAsUser(java.lang.String, int); |
| method public android.content.pm.ServiceInfo getServiceInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public java.lang.String getServicesSystemSharedLibraryPackageName(); |
| method public java.util.List<android.content.pm.SharedLibraryInfo> getSharedLibraries(int); |
| method public java.util.List<android.content.pm.SharedLibraryInfo> getSharedLibrariesAsUser(int, int); |
| method public java.lang.String getSharedSystemSharedLibraryPackageName(); |
| method public android.content.pm.KeySet getSigningKeySet(java.lang.String); |
| method public android.content.pm.FeatureInfo[] getSystemAvailableFeatures(); |
| method public java.lang.String[] getSystemSharedLibraryNames(); |
| method public java.lang.CharSequence getText(java.lang.String, int, android.content.pm.ApplicationInfo); |
| method public int getUidForSharedUser(java.lang.String); |
| method public android.graphics.drawable.Drawable getUserBadgeForDensity(android.os.UserHandle, int); |
| method public android.graphics.drawable.Drawable getUserBadgeForDensityNoBackground(android.os.UserHandle, int); |
| method public android.graphics.drawable.Drawable getUserBadgedDrawableForDensity(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); |
| method public android.graphics.drawable.Drawable getUserBadgedIcon(android.graphics.drawable.Drawable, android.os.UserHandle); |
| method public java.lang.CharSequence getUserBadgedLabel(java.lang.CharSequence, android.os.UserHandle); |
| method public android.content.pm.VerifierDeviceIdentity getVerifierDeviceIdentity(); |
| method public android.content.res.XmlResourceParser getXml(java.lang.String, int, android.content.pm.ApplicationInfo); |
| method public void grantRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle); |
| method public boolean hasSystemFeature(java.lang.String); |
| method public boolean hasSystemFeature(java.lang.String, int); |
| method public int installExistingPackage(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int installExistingPackage(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public int installExistingPackageAsUser(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public void installPackage(android.net.Uri, android.app.PackageInstallObserver, int, java.lang.String); |
| method public boolean isInstantApp(); |
| method public boolean isInstantApp(java.lang.String); |
| method public boolean isPackageAvailable(java.lang.String); |
| method public boolean isPackageSuspendedForUser(java.lang.String, int); |
| method public boolean isPermissionReviewModeEnabled(); |
| method public boolean isPermissionRevokedByPolicy(java.lang.String, java.lang.String); |
| method public boolean isSafeMode(); |
| method public boolean isSignedBy(java.lang.String, android.content.pm.KeySet); |
| method public boolean isSignedByExactly(java.lang.String, android.content.pm.KeySet); |
| method public boolean isUpgrade(); |
| method public android.graphics.drawable.Drawable loadItemIcon(android.content.pm.PackageItemInfo, android.content.pm.ApplicationInfo); |
| method public android.graphics.drawable.Drawable loadUnbadgedItemIcon(android.content.pm.PackageItemInfo, android.content.pm.ApplicationInfo); |
| method public int movePackage(java.lang.String, android.os.storage.VolumeInfo); |
| method public int movePrimaryStorage(android.os.storage.VolumeInfo); |
| method public java.util.List<android.content.pm.ResolveInfo> queryBroadcastReceivers(android.content.Intent, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryBroadcastReceiversAsUser(android.content.Intent, int, int); |
| method public java.util.List<android.content.pm.ProviderInfo> queryContentProviders(java.lang.String, int, int); |
| method public java.util.List<android.content.pm.InstrumentationInfo> queryInstrumentation(java.lang.String, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentActivities(android.content.Intent, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentActivitiesAsUser(android.content.Intent, int, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentActivityOptions(android.content.ComponentName, android.content.Intent[], android.content.Intent, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentContentProviders(android.content.Intent, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentContentProvidersAsUser(android.content.Intent, int, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentServices(android.content.Intent, int); |
| method public java.util.List<android.content.pm.ResolveInfo> queryIntentServicesAsUser(android.content.Intent, int, int); |
| method public java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| method public void registerDexModule(java.lang.String, android.content.pm.PackageManager.DexModuleRegisterCallback); |
| method public void registerMoveCallback(android.content.pm.PackageManager.MoveCallback, android.os.Handler); |
| method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener); |
| method public void removePackageFromPreferred(java.lang.String); |
| method public void removePermission(java.lang.String); |
| method public void replacePreferredActivity(android.content.IntentFilter, int, android.content.ComponentName[], android.content.ComponentName); |
| method public android.content.pm.ResolveInfo resolveActivity(android.content.Intent, int); |
| method public android.content.pm.ResolveInfo resolveActivityAsUser(android.content.Intent, int, int); |
| method public android.content.pm.ProviderInfo resolveContentProvider(java.lang.String, int); |
| method public android.content.pm.ProviderInfo resolveContentProviderAsUser(java.lang.String, int, int); |
| method public android.content.pm.ResolveInfo resolveService(android.content.Intent, int); |
| method public void revokeRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle); |
| method public void setApplicationCategoryHint(java.lang.String, int); |
| method public void setApplicationEnabledSetting(java.lang.String, int, int); |
| method public boolean setApplicationHiddenSettingAsUser(java.lang.String, boolean, android.os.UserHandle); |
| method public void setComponentEnabledSetting(android.content.ComponentName, int, int); |
| method public boolean setDefaultBrowserPackageNameAsUser(java.lang.String, int); |
| method public void setInstallerPackageName(java.lang.String, java.lang.String); |
| method public boolean setInstantAppCookie(byte[]); |
| method public java.lang.String[] setPackagesSuspendedAsUser(java.lang.String[], boolean, int); |
| method public void setUpdateAvailable(java.lang.String, boolean); |
| method public boolean shouldShowRequestPermissionRationale(java.lang.String); |
| method public void unregisterMoveCallback(android.content.pm.PackageManager.MoveCallback); |
| method public void updateInstantAppCookie(byte[]); |
| method public boolean updateIntentVerificationStatusAsUser(java.lang.String, int, int); |
| method public void updatePermissionFlags(java.lang.String, java.lang.String, int, int, android.os.UserHandle); |
| method public void verifyIntentFilter(int, int, java.util.List<java.lang.String>); |
| method public void verifyPendingInstall(int, int); |
| } |
| |
| public deprecated class MockResources extends android.content.res.Resources { |
| ctor public MockResources(); |
| method public int getColor(int) throws android.content.res.Resources.NotFoundException; |
| method public android.content.res.ColorStateList getColorStateList(int) throws android.content.res.Resources.NotFoundException; |
| method public android.graphics.drawable.Drawable getDrawable(int) throws android.content.res.Resources.NotFoundException; |
| method public void updateConfiguration(android.content.res.Configuration, android.util.DisplayMetrics); |
| } |
| |
| } |
| |