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