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