| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.test.mock; |
| 18 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 19 | import android.content.ComponentName; |
| 20 | import android.content.Intent; |
| 21 | import android.content.IntentFilter; |
| Suchi Amalapurapu | 1ccac75 | 2009-06-12 10:09:58 -0700 | [diff] [blame] | 22 | import android.content.IntentSender; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 23 | import android.content.pm.ActivityInfo; |
| 24 | import android.content.pm.ApplicationInfo; |
| Anonymous Coward | ceb1b0b | 2012-04-24 10:35:16 -0700 | [diff] [blame] | 25 | import android.content.pm.ContainerEncryptionParams; |
| Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 26 | import android.content.pm.FeatureInfo; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 27 | import android.content.pm.IPackageDataObserver; |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 28 | import android.content.pm.IPackageDeleteObserver; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | import android.content.pm.IPackageInstallObserver; |
| Suchi Amalapurapu | 8946dd3 | 2010-02-19 09:19:34 -0800 | [diff] [blame] | 30 | import android.content.pm.IPackageMoveObserver; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 31 | import android.content.pm.IPackageStatsObserver; |
| 32 | import android.content.pm.InstrumentationInfo; |
| Anonymous Coward | ceb1b0b | 2012-04-24 10:35:16 -0700 | [diff] [blame] | 33 | import android.content.pm.ManifestDigest; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 34 | import android.content.pm.PackageInfo; |
| 35 | import android.content.pm.PackageManager; |
| 36 | import android.content.pm.PermissionGroupInfo; |
| 37 | import android.content.pm.PermissionInfo; |
| 38 | import android.content.pm.ProviderInfo; |
| 39 | import android.content.pm.ResolveInfo; |
| 40 | import android.content.pm.ServiceInfo; |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 41 | import android.content.pm.UserInfo; |
| rich cannings | 706e8ba | 2012-08-20 13:20:14 -0700 | [diff] [blame] | 42 | import android.content.pm.VerificationParams; |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 43 | import android.content.pm.VerifierDeviceIdentity; |
| Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 44 | import android.content.pm.PackageManager.NameNotFoundException; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | import android.content.res.Resources; |
| 46 | import android.content.res.XmlResourceParser; |
| 47 | import android.graphics.drawable.Drawable; |
| 48 | import android.net.Uri; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 49 | |
| 50 | import java.util.List; |
| 51 | |
| 52 | /** |
| 53 | * A mock {@link android.content.pm.PackageManager} class. All methods are non-functional and throw |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 54 | * {@link java.lang.UnsupportedOperationException}. Override it to provide the operations that you |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 55 | * need. |
| 56 | */ |
| 57 | public class MockPackageManager extends PackageManager { |
| 58 | |
| 59 | @Override |
| 60 | public PackageInfo getPackageInfo(String packageName, int flags) |
| 61 | throws NameNotFoundException { |
| 62 | throw new UnsupportedOperationException(); |
| 63 | } |
| 64 | |
| 65 | @Override |
| Dianne Hackborn | 4709693 | 2010-02-11 15:57:09 -0800 | [diff] [blame] | 66 | public String[] currentToCanonicalPackageNames(String[] names) { |
| 67 | throw new UnsupportedOperationException(); |
| 68 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 69 | |
| Dianne Hackborn | 4709693 | 2010-02-11 15:57:09 -0800 | [diff] [blame] | 70 | @Override |
| 71 | public String[] canonicalToCurrentPackageNames(String[] names) { |
| 72 | throw new UnsupportedOperationException(); |
| 73 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 74 | |
| Dianne Hackborn | 4709693 | 2010-02-11 15:57:09 -0800 | [diff] [blame] | 75 | @Override |
| Mihai Preda | eae850c | 2009-05-13 10:13:48 +0200 | [diff] [blame] | 76 | public Intent getLaunchIntentForPackage(String packageName) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 77 | throw new UnsupportedOperationException(); |
| 78 | } |
| Mihai Preda | eae850c | 2009-05-13 10:13:48 +0200 | [diff] [blame] | 79 | |
| 80 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 81 | public int[] getPackageGids(String packageName) throws NameNotFoundException { |
| 82 | throw new UnsupportedOperationException(); |
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public PermissionInfo getPermissionInfo(String name, int flags) |
| 87 | throws NameNotFoundException { |
| 88 | throw new UnsupportedOperationException(); |
| 89 | } |
| 90 | |
| 91 | @Override |
| 92 | public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) |
| 93 | throws NameNotFoundException { |
| 94 | throw new UnsupportedOperationException(); |
| 95 | } |
| 96 | |
| 97 | @Override |
| 98 | public PermissionGroupInfo getPermissionGroupInfo(String name, |
| 99 | int flags) throws NameNotFoundException { |
| 100 | throw new UnsupportedOperationException(); |
| 101 | } |
| 102 | |
| 103 | @Override |
| 104 | public List<PermissionGroupInfo> getAllPermissionGroups(int flags) { |
| 105 | throw new UnsupportedOperationException(); |
| 106 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 107 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 108 | @Override |
| 109 | public ApplicationInfo getApplicationInfo(String packageName, int flags) |
| 110 | throws NameNotFoundException { |
| 111 | throw new UnsupportedOperationException(); |
| 112 | } |
| 113 | |
| 114 | @Override |
| 115 | public ActivityInfo getActivityInfo(ComponentName className, int flags) |
| 116 | throws NameNotFoundException { |
| 117 | throw new UnsupportedOperationException(); |
| 118 | } |
| 119 | |
| 120 | @Override |
| 121 | public ActivityInfo getReceiverInfo(ComponentName className, int flags) |
| 122 | throws NameNotFoundException { |
| 123 | throw new UnsupportedOperationException(); |
| 124 | } |
| 125 | |
| 126 | @Override |
| 127 | public ServiceInfo getServiceInfo(ComponentName className, int flags) |
| 128 | throws NameNotFoundException { |
| 129 | throw new UnsupportedOperationException(); |
| 130 | } |
| 131 | |
| 132 | @Override |
| Dianne Hackborn | 361199b | 2010-08-30 17:42:07 -0700 | [diff] [blame] | 133 | public ProviderInfo getProviderInfo(ComponentName className, int flags) |
| 134 | throws NameNotFoundException { |
| 135 | throw new UnsupportedOperationException(); |
| 136 | } |
| 137 | |
| 138 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 139 | public List<PackageInfo> getInstalledPackages(int flags) { |
| 140 | throw new UnsupportedOperationException(); |
| 141 | } |
| 142 | |
| Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame^] | 143 | /** @hide */ |
| 144 | @Override |
| 145 | public List<PackageInfo> getInstalledPackages(int flags, int userId) { |
| 146 | throw new UnsupportedOperationException(); |
| 147 | } |
| 148 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 149 | @Override |
| 150 | public int checkPermission(String permName, String pkgName) { |
| 151 | throw new UnsupportedOperationException(); |
| 152 | } |
| 153 | |
| 154 | @Override |
| 155 | public boolean addPermission(PermissionInfo info) { |
| 156 | throw new UnsupportedOperationException(); |
| 157 | } |
| 158 | |
| 159 | @Override |
| Dianne Hackborn | d7c0968 | 2010-03-30 10:42:20 -0700 | [diff] [blame] | 160 | public boolean addPermissionAsync(PermissionInfo info) { |
| 161 | throw new UnsupportedOperationException(); |
| 162 | } |
| 163 | |
| 164 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 165 | public void removePermission(String name) { |
| 166 | throw new UnsupportedOperationException(); |
| 167 | } |
| 168 | |
| Dianne Hackborn | e639da7 | 2012-02-21 15:11:13 -0800 | [diff] [blame] | 169 | /** @hide */ |
| 170 | @Override |
| 171 | public void grantPermission(String packageName, String permissionName) { |
| 172 | throw new UnsupportedOperationException(); |
| 173 | } |
| 174 | |
| 175 | /** @hide */ |
| 176 | @Override |
| 177 | public void revokePermission(String packageName, String permissionName) { |
| 178 | throw new UnsupportedOperationException(); |
| 179 | } |
| 180 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 181 | @Override |
| 182 | public int checkSignatures(String pkg1, String pkg2) { |
| 183 | throw new UnsupportedOperationException(); |
| 184 | } |
| 185 | |
| 186 | @Override |
| Dianne Hackborn | 766cbfe | 2009-08-12 18:33:39 -0700 | [diff] [blame] | 187 | public int checkSignatures(int uid1, int uid2) { |
| 188 | throw new UnsupportedOperationException(); |
| 189 | } |
| 190 | |
| 191 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 192 | public String[] getPackagesForUid(int uid) { |
| 193 | throw new UnsupportedOperationException(); |
| 194 | } |
| 195 | |
| 196 | @Override |
| 197 | public String getNameForUid(int uid) { |
| 198 | throw new UnsupportedOperationException(); |
| 199 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 200 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 201 | /** |
| 202 | * @hide - to match hiding in superclass |
| 203 | */ |
| 204 | @Override |
| 205 | public int getUidForSharedUser(String sharedUserName) { |
| 206 | throw new UnsupportedOperationException(); |
| 207 | } |
| 208 | |
| 209 | @Override |
| 210 | public List<ApplicationInfo> getInstalledApplications(int flags) { |
| 211 | throw new UnsupportedOperationException(); |
| 212 | } |
| 213 | |
| 214 | @Override |
| 215 | public ResolveInfo resolveActivity(Intent intent, int flags) { |
| 216 | throw new UnsupportedOperationException(); |
| 217 | } |
| 218 | |
| 219 | @Override |
| 220 | public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { |
| 221 | throw new UnsupportedOperationException(); |
| 222 | } |
| 223 | |
| Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame^] | 224 | /** @hide */ |
| 225 | @Override |
| 226 | public List<ResolveInfo> queryIntentActivitiesForUser(Intent intent, |
| 227 | int flags, int userId) { |
| 228 | throw new UnsupportedOperationException(); |
| 229 | } |
| 230 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 231 | @Override |
| 232 | public List<ResolveInfo> queryIntentActivityOptions(ComponentName caller, |
| 233 | Intent[] specifics, Intent intent, int flags) { |
| 234 | throw new UnsupportedOperationException(); |
| 235 | } |
| 236 | |
| 237 | @Override |
| 238 | public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { |
| 239 | throw new UnsupportedOperationException(); |
| 240 | } |
| 241 | |
| Amith Yamasani | f203aee | 2012-08-29 18:41:53 -0700 | [diff] [blame] | 242 | /** @hide */ |
| 243 | @Override |
| 244 | public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags, int userId) { |
| 245 | throw new UnsupportedOperationException(); |
| 246 | } |
| 247 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 248 | @Override |
| 249 | public ResolveInfo resolveService(Intent intent, int flags) { |
| 250 | throw new UnsupportedOperationException(); |
| 251 | } |
| 252 | |
| 253 | @Override |
| 254 | public List<ResolveInfo> queryIntentServices(Intent intent, int flags) { |
| 255 | throw new UnsupportedOperationException(); |
| 256 | } |
| 257 | |
| 258 | @Override |
| 259 | public ProviderInfo resolveContentProvider(String name, int flags) { |
| 260 | throw new UnsupportedOperationException(); |
| 261 | } |
| 262 | |
| 263 | @Override |
| 264 | public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { |
| 265 | throw new UnsupportedOperationException(); |
| 266 | } |
| 267 | |
| 268 | @Override |
| 269 | public InstrumentationInfo getInstrumentationInfo(ComponentName className, int flags) |
| 270 | throws NameNotFoundException { |
| 271 | throw new UnsupportedOperationException(); |
| 272 | } |
| 273 | |
| 274 | @Override |
| 275 | public List<InstrumentationInfo> queryInstrumentation( |
| 276 | String targetPackage, int flags) { |
| 277 | throw new UnsupportedOperationException(); |
| 278 | } |
| 279 | |
| 280 | @Override |
| 281 | public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { |
| 282 | throw new UnsupportedOperationException(); |
| 283 | } |
| 284 | |
| 285 | @Override |
| 286 | public Drawable getActivityIcon(ComponentName activityName) |
| 287 | throws NameNotFoundException { |
| 288 | throw new UnsupportedOperationException(); |
| 289 | } |
| 290 | |
| 291 | @Override |
| 292 | public Drawable getActivityIcon(Intent intent) throws NameNotFoundException { |
| 293 | throw new UnsupportedOperationException(); |
| 294 | } |
| 295 | |
| 296 | @Override |
| 297 | public Drawable getDefaultActivityIcon() { |
| 298 | throw new UnsupportedOperationException(); |
| 299 | } |
| 300 | |
| 301 | @Override |
| 302 | public Drawable getApplicationIcon(ApplicationInfo info) { |
| 303 | throw new UnsupportedOperationException(); |
| 304 | } |
| 305 | |
| 306 | @Override |
| 307 | public Drawable getApplicationIcon(String packageName) throws NameNotFoundException { |
| 308 | throw new UnsupportedOperationException(); |
| 309 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 310 | |
| Adam Powell | 81cd2e9 | 2010-04-21 16:35:18 -0700 | [diff] [blame] | 311 | @Override |
| 312 | public Drawable getActivityLogo(ComponentName activityName) throws NameNotFoundException { |
| 313 | throw new UnsupportedOperationException(); |
| 314 | } |
| 315 | |
| 316 | @Override |
| 317 | public Drawable getActivityLogo(Intent intent) throws NameNotFoundException { |
| 318 | throw new UnsupportedOperationException(); |
| 319 | } |
| 320 | |
| 321 | @Override |
| 322 | public Drawable getApplicationLogo(ApplicationInfo info) { |
| 323 | throw new UnsupportedOperationException(); |
| 324 | } |
| 325 | |
| 326 | @Override |
| 327 | public Drawable getApplicationLogo(String packageName) throws NameNotFoundException { |
| 328 | throw new UnsupportedOperationException(); |
| 329 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 330 | |
| 331 | @Override |
| 332 | public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { |
| 333 | throw new UnsupportedOperationException(); |
| 334 | } |
| 335 | |
| 336 | @Override |
| 337 | public XmlResourceParser getXml(String packageName, int resid, |
| 338 | ApplicationInfo appInfo) { |
| 339 | throw new UnsupportedOperationException(); |
| 340 | } |
| 341 | |
| 342 | @Override |
| 343 | public CharSequence getApplicationLabel(ApplicationInfo info) { |
| 344 | throw new UnsupportedOperationException(); |
| 345 | } |
| 346 | |
| 347 | @Override |
| 348 | public Resources getResourcesForActivity(ComponentName activityName) |
| 349 | throws NameNotFoundException { |
| 350 | throw new UnsupportedOperationException(); |
| 351 | } |
| 352 | |
| 353 | @Override |
| 354 | public Resources getResourcesForApplication(ApplicationInfo app) { |
| 355 | throw new UnsupportedOperationException(); |
| 356 | } |
| 357 | |
| 358 | @Override |
| 359 | public Resources getResourcesForApplication(String appPackageName) |
| 360 | throws NameNotFoundException { |
| 361 | throw new UnsupportedOperationException(); |
| 362 | } |
| 363 | |
| 364 | @Override |
| 365 | public PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags) { |
| 366 | throw new UnsupportedOperationException(); |
| 367 | } |
| 368 | |
| Dianne Hackborn | ade3eca | 2009-05-11 18:54:45 -0700 | [diff] [blame] | 369 | /** |
| 370 | * @hide - to match hiding in superclass |
| 371 | */ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 372 | @Override |
| 373 | public void installPackage(Uri packageURI, IPackageInstallObserver observer, |
| Jacek Surazski | 65e1317 | 2009-04-28 15:26:38 +0200 | [diff] [blame] | 374 | int flags, String installerPackageName) { |
| 375 | throw new UnsupportedOperationException(); |
| 376 | } |
| Suchi Amalapurapu | 8946dd3 | 2010-02-19 09:19:34 -0800 | [diff] [blame] | 377 | |
| Dianne Hackborn | 880119b | 2010-11-18 22:26:40 -0800 | [diff] [blame] | 378 | @Override |
| 379 | public void setInstallerPackageName(String targetPackage, |
| 380 | String installerPackageName) { |
| 381 | throw new UnsupportedOperationException(); |
| 382 | } |
| 383 | |
| Suchi Amalapurapu | 8946dd3 | 2010-02-19 09:19:34 -0800 | [diff] [blame] | 384 | /** |
| 385 | * @hide - to match hiding in superclass |
| 386 | */ |
| 387 | @Override |
| 388 | public void movePackage(String packageName, IPackageMoveObserver observer, int flags) { |
| 389 | throw new UnsupportedOperationException(); |
| 390 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 391 | |
| Jacek Surazski | 65e1317 | 2009-04-28 15:26:38 +0200 | [diff] [blame] | 392 | @Override |
| 393 | public String getInstallerPackageName(String packageName) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 394 | throw new UnsupportedOperationException(); |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * @hide - to match hiding in superclass |
| 399 | */ |
| 400 | @Override |
| 401 | public void clearApplicationUserData( |
| 402 | String packageName, IPackageDataObserver observer) { |
| 403 | throw new UnsupportedOperationException(); |
| 404 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 405 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 406 | /** |
| 407 | * @hide - to match hiding in superclass |
| 408 | */ |
| 409 | @Override |
| 410 | public void deleteApplicationCacheFiles( |
| 411 | String packageName, IPackageDataObserver observer) { |
| 412 | throw new UnsupportedOperationException(); |
| 413 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 414 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 415 | /** |
| 416 | * @hide - to match hiding in superclass |
| 417 | */ |
| 418 | @Override |
| 419 | public void freeStorageAndNotify( |
| 420 | long idealStorageSize, IPackageDataObserver observer) { |
| 421 | throw new UnsupportedOperationException(); |
| 422 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 423 | |
| 424 | /** |
| 425 | * @hide - to match hiding in superclass |
| 426 | */ |
| 427 | @Override |
| Suchi Amalapurapu | bc806f6 | 2009-06-17 15:18:19 -0700 | [diff] [blame] | 428 | public void freeStorage( |
| Suchi Amalapurapu | 1ccac75 | 2009-06-12 10:09:58 -0700 | [diff] [blame] | 429 | long idealStorageSize, IntentSender pi) { |
| 430 | throw new UnsupportedOperationException(); |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * @hide - to match hiding in superclass |
| 435 | */ |
| 436 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 437 | public void deletePackage( |
| 438 | String packageName, IPackageDeleteObserver observer, int flags) { |
| 439 | throw new UnsupportedOperationException(); |
| 440 | } |
| 441 | |
| 442 | @Override |
| 443 | public void addPackageToPreferred(String packageName) { |
| 444 | throw new UnsupportedOperationException(); |
| 445 | } |
| 446 | |
| 447 | @Override |
| 448 | public void removePackageFromPreferred(String packageName) { |
| 449 | throw new UnsupportedOperationException(); |
| 450 | } |
| 451 | |
| 452 | @Override |
| 453 | public List<PackageInfo> getPreferredPackages(int flags) { |
| 454 | throw new UnsupportedOperationException(); |
| 455 | } |
| 456 | |
| 457 | @Override |
| 458 | public void setComponentEnabledSetting(ComponentName componentName, |
| 459 | int newState, int flags) { |
| 460 | throw new UnsupportedOperationException(); |
| 461 | } |
| 462 | |
| 463 | @Override |
| 464 | public int getComponentEnabledSetting(ComponentName componentName) { |
| 465 | throw new UnsupportedOperationException(); |
| 466 | } |
| 467 | |
| 468 | @Override |
| 469 | public void setApplicationEnabledSetting(String packageName, int newState, int flags) { |
| 470 | throw new UnsupportedOperationException(); |
| 471 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 472 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 473 | @Override |
| 474 | public int getApplicationEnabledSetting(String packageName) { |
| 475 | throw new UnsupportedOperationException(); |
| 476 | } |
| 477 | |
| 478 | @Override |
| 479 | public void addPreferredActivity(IntentFilter filter, |
| 480 | int match, ComponentName[] set, ComponentName activity) { |
| 481 | throw new UnsupportedOperationException(); |
| 482 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 483 | |
| Satish Sampath | 8dbe612 | 2009-06-02 23:35:54 +0100 | [diff] [blame] | 484 | /** |
| 485 | * @hide - to match hiding in superclass |
| 486 | */ |
| 487 | @Override |
| 488 | public void replacePreferredActivity(IntentFilter filter, |
| 489 | int match, ComponentName[] set, ComponentName activity) { |
| 490 | throw new UnsupportedOperationException(); |
| 491 | } |
| 492 | |
| 493 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 494 | @Override |
| 495 | public void clearPackagePreferredActivities(String packageName) { |
| 496 | throw new UnsupportedOperationException(); |
| 497 | } |
| 498 | |
| 499 | /** |
| 500 | * @hide - to match hiding in superclass |
| 501 | */ |
| 502 | @Override |
| Dianne Hackborn | 0c38049 | 2012-08-20 17:23:30 -0700 | [diff] [blame] | 503 | public void getPackageSizeInfo(String packageName, int userHandle, |
| 504 | IPackageStatsObserver observer) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 505 | throw new UnsupportedOperationException(); |
| 506 | } |
| 507 | |
| 508 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 509 | public int getPreferredActivities(List<IntentFilter> outFilters, |
| 510 | List<ComponentName> outActivities, String packageName) { |
| 511 | throw new UnsupportedOperationException(); |
| 512 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 513 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 514 | @Override |
| 515 | public String[] getSystemSharedLibraryNames() { |
| 516 | throw new UnsupportedOperationException(); |
| 517 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 518 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 519 | @Override |
| Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 520 | public FeatureInfo[] getSystemAvailableFeatures() { |
| 521 | throw new UnsupportedOperationException(); |
| 522 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 523 | |
| Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 524 | @Override |
| Dianne Hackborn | 039c68e | 2009-09-26 16:39:23 -0700 | [diff] [blame] | 525 | public boolean hasSystemFeature(String name) { |
| 526 | throw new UnsupportedOperationException(); |
| 527 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 528 | |
| Dianne Hackborn | 039c68e | 2009-09-26 16:39:23 -0700 | [diff] [blame] | 529 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 530 | public boolean isSafeMode() { |
| 531 | throw new UnsupportedOperationException(); |
| 532 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 533 | |
| 534 | /** |
| 535 | * @hide |
| 536 | */ |
| 537 | @Override |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 538 | public void installPackageWithVerification(Uri packageURI, IPackageInstallObserver observer, |
| 539 | int flags, String installerPackageName, Uri verificationURI, |
| Rich Cannings | e1d7c71 | 2012-08-08 12:46:06 -0700 | [diff] [blame] | 540 | ManifestDigest manifestDigest, ContainerEncryptionParams encryptionParams) { |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 541 | throw new UnsupportedOperationException(); |
| 542 | } |
| 543 | |
| rich cannings | 706e8ba | 2012-08-20 13:20:14 -0700 | [diff] [blame] | 544 | /** |
| 545 | * @hide |
| 546 | */ |
| 547 | @Override |
| 548 | public void installPackageWithVerificationAndEncryption(Uri packageURI, |
| 549 | IPackageInstallObserver observer, int flags, String installerPackageName, |
| 550 | VerificationParams verificationParams, ContainerEncryptionParams encryptionParams) { |
| 551 | throw new UnsupportedOperationException(); |
| 552 | } |
| 553 | |
| Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 554 | /** |
| 555 | * @hide |
| 556 | */ |
| 557 | @Override |
| 558 | public int installExistingPackage(String packageName) |
| 559 | throws NameNotFoundException { |
| 560 | throw new UnsupportedOperationException(); |
| 561 | } |
| 562 | |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 563 | @Override |
| Kenny Root | 3a9b5fb | 2011-09-20 14:15:38 -0700 | [diff] [blame] | 564 | public void verifyPendingInstall(int id, int verificationCode) { |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 565 | throw new UnsupportedOperationException(); |
| 566 | } |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 567 | |
| rich cannings | d9ef3e5 | 2012-08-22 14:28:05 -0700 | [diff] [blame] | 568 | @Override |
| 569 | public void extendVerificationTimeout(int id, int verificationCodeAtTimeout, |
| 570 | long millisecondsToDelay) { |
| 571 | throw new UnsupportedOperationException(); |
| 572 | } |
| 573 | |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 574 | /** |
| 575 | * @hide |
| 576 | */ |
| 577 | @Override |
| 578 | public VerifierDeviceIdentity getVerifierDeviceIdentity() { |
| 579 | throw new UnsupportedOperationException(); |
| 580 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 581 | } |