| 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 | |
| Christopher Tate | f1977b4 | 2014-03-24 16:25:51 -0700 | [diff] [blame] | 19 | import android.app.PackageInstallObserver; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 20 | import android.content.ComponentName; |
| 21 | import android.content.Intent; |
| 22 | import android.content.IntentFilter; |
| Suchi Amalapurapu | 1ccac75 | 2009-06-12 10:09:58 -0700 | [diff] [blame] | 23 | import android.content.IntentSender; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 24 | import android.content.pm.ActivityInfo; |
| 25 | import android.content.pm.ApplicationInfo; |
| Anonymous Coward | ceb1b0b | 2012-04-24 10:35:16 -0700 | [diff] [blame] | 26 | import android.content.pm.ContainerEncryptionParams; |
| Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 27 | import android.content.pm.FeatureInfo; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 28 | import android.content.pm.IPackageDataObserver; |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 29 | import android.content.pm.IPackageDeleteObserver; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 30 | import android.content.pm.IPackageInstallObserver; |
| 31 | import android.content.pm.IPackageStatsObserver; |
| 32 | import android.content.pm.InstrumentationInfo; |
| Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 33 | import android.content.pm.IntentFilterVerificationInfo; |
| dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 34 | import android.content.pm.KeySet; |
| Anonymous Coward | ceb1b0b | 2012-04-24 10:35:16 -0700 | [diff] [blame] | 35 | import android.content.pm.ManifestDigest; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 36 | import android.content.pm.PackageInfo; |
| Jeff Sharkey | 3a44f3f | 2014-04-28 17:36:31 -0700 | [diff] [blame] | 37 | import android.content.pm.PackageInstaller; |
| Nicolas Prevot | 7f7b0c7 | 2014-06-23 15:59:38 +0100 | [diff] [blame] | 38 | import android.content.pm.PackageItemInfo; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 39 | import android.content.pm.PackageManager; |
| 40 | import android.content.pm.PermissionGroupInfo; |
| 41 | import android.content.pm.PermissionInfo; |
| 42 | import android.content.pm.ProviderInfo; |
| 43 | import android.content.pm.ResolveInfo; |
| 44 | import android.content.pm.ServiceInfo; |
| rich cannings | 706e8ba | 2012-08-20 13:20:14 -0700 | [diff] [blame] | 45 | import android.content.pm.VerificationParams; |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 46 | import android.content.pm.VerifierDeviceIdentity; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | import android.content.res.Resources; |
| 48 | import android.content.res.XmlResourceParser; |
| Svetoslav | c7d62f0 | 2014-09-04 15:39:54 -0700 | [diff] [blame] | 49 | import android.graphics.Rect; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 50 | import android.graphics.drawable.Drawable; |
| 51 | import android.net.Uri; |
| Jeff Sharkey | 620b32b | 2015-04-23 19:36:02 -0700 | [diff] [blame] | 52 | import android.os.Handler; |
| Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 53 | import android.os.UserHandle; |
| Jeff Sharkey | e2d45be | 2015-04-15 17:14:12 -0700 | [diff] [blame] | 54 | import android.os.storage.VolumeInfo; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 55 | |
| 56 | import java.util.List; |
| 57 | |
| 58 | /** |
| 59 | * 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] | 60 | * {@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] | 61 | * need. |
| 62 | */ |
| 63 | public class MockPackageManager extends PackageManager { |
| 64 | |
| 65 | @Override |
| 66 | public PackageInfo getPackageInfo(String packageName, int flags) |
| 67 | throws NameNotFoundException { |
| 68 | throw new UnsupportedOperationException(); |
| 69 | } |
| 70 | |
| 71 | @Override |
| Dianne Hackborn | 4709693 | 2010-02-11 15:57:09 -0800 | [diff] [blame] | 72 | public String[] currentToCanonicalPackageNames(String[] names) { |
| 73 | throw new UnsupportedOperationException(); |
| 74 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 75 | |
| Dianne Hackborn | 4709693 | 2010-02-11 15:57:09 -0800 | [diff] [blame] | 76 | @Override |
| 77 | public String[] canonicalToCurrentPackageNames(String[] names) { |
| 78 | throw new UnsupportedOperationException(); |
| 79 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 80 | |
| Dianne Hackborn | 4709693 | 2010-02-11 15:57:09 -0800 | [diff] [blame] | 81 | @Override |
| Mihai Preda | eae850c | 2009-05-13 10:13:48 +0200 | [diff] [blame] | 82 | public Intent getLaunchIntentForPackage(String packageName) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 83 | throw new UnsupportedOperationException(); |
| 84 | } |
| Mihai Preda | eae850c | 2009-05-13 10:13:48 +0200 | [diff] [blame] | 85 | |
| 86 | @Override |
| Jose Lima | 970417c | 2014-04-10 10:42:19 -0700 | [diff] [blame] | 87 | public Intent getLeanbackLaunchIntentForPackage(String packageName) { |
| 88 | throw new UnsupportedOperationException(); |
| 89 | } |
| 90 | |
| 91 | @Override |
| 92 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 93 | public int[] getPackageGids(String packageName) throws NameNotFoundException { |
| 94 | throw new UnsupportedOperationException(); |
| 95 | } |
| 96 | |
| Dianne Hackborn | a06de0f | 2012-12-11 16:34:47 -0800 | [diff] [blame] | 97 | /** @hide */ |
| 98 | @Override |
| 99 | public int getPackageUid(String packageName, int userHandle) |
| 100 | throws NameNotFoundException { |
| 101 | throw new UnsupportedOperationException(); |
| 102 | } |
| 103 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 104 | @Override |
| 105 | public PermissionInfo getPermissionInfo(String name, int flags) |
| 106 | throws NameNotFoundException { |
| 107 | throw new UnsupportedOperationException(); |
| 108 | } |
| 109 | |
| 110 | @Override |
| 111 | public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) |
| 112 | throws NameNotFoundException { |
| 113 | throw new UnsupportedOperationException(); |
| 114 | } |
| 115 | |
| 116 | @Override |
| 117 | public PermissionGroupInfo getPermissionGroupInfo(String name, |
| 118 | int flags) throws NameNotFoundException { |
| 119 | throw new UnsupportedOperationException(); |
| 120 | } |
| 121 | |
| 122 | @Override |
| 123 | public List<PermissionGroupInfo> getAllPermissionGroups(int flags) { |
| 124 | throw new UnsupportedOperationException(); |
| 125 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 126 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 127 | @Override |
| 128 | public ApplicationInfo getApplicationInfo(String packageName, int flags) |
| 129 | throws NameNotFoundException { |
| 130 | throw new UnsupportedOperationException(); |
| 131 | } |
| 132 | |
| 133 | @Override |
| 134 | public ActivityInfo getActivityInfo(ComponentName className, int flags) |
| 135 | throws NameNotFoundException { |
| 136 | throw new UnsupportedOperationException(); |
| 137 | } |
| 138 | |
| 139 | @Override |
| 140 | public ActivityInfo getReceiverInfo(ComponentName className, int flags) |
| 141 | throws NameNotFoundException { |
| 142 | throw new UnsupportedOperationException(); |
| 143 | } |
| 144 | |
| 145 | @Override |
| 146 | public ServiceInfo getServiceInfo(ComponentName className, int flags) |
| 147 | throws NameNotFoundException { |
| 148 | throw new UnsupportedOperationException(); |
| 149 | } |
| 150 | |
| 151 | @Override |
| Dianne Hackborn | 361199b | 2010-08-30 17:42:07 -0700 | [diff] [blame] | 152 | public ProviderInfo getProviderInfo(ComponentName className, int flags) |
| 153 | throws NameNotFoundException { |
| 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 List<PackageInfo> getInstalledPackages(int flags) { |
| 159 | throw new UnsupportedOperationException(); |
| 160 | } |
| 161 | |
| Dianne Hackborn | e799175 | 2013-01-16 17:56:46 -0800 | [diff] [blame] | 162 | @Override |
| 163 | public List<PackageInfo> getPackagesHoldingPermissions(String[] permissions, |
| 164 | int flags) { |
| 165 | throw new UnsupportedOperationException(); |
| 166 | } |
| 167 | |
| Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame] | 168 | /** @hide */ |
| 169 | @Override |
| 170 | public List<PackageInfo> getInstalledPackages(int flags, int userId) { |
| 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 checkPermission(String permName, String pkgName) { |
| 176 | throw new UnsupportedOperationException(); |
| 177 | } |
| 178 | |
| 179 | @Override |
| 180 | public boolean addPermission(PermissionInfo info) { |
| 181 | throw new UnsupportedOperationException(); |
| 182 | } |
| 183 | |
| 184 | @Override |
| Dianne Hackborn | d7c0968 | 2010-03-30 10:42:20 -0700 | [diff] [blame] | 185 | public boolean addPermissionAsync(PermissionInfo info) { |
| 186 | throw new UnsupportedOperationException(); |
| 187 | } |
| 188 | |
| 189 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 190 | public void removePermission(String name) { |
| 191 | throw new UnsupportedOperationException(); |
| 192 | } |
| 193 | |
| Dianne Hackborn | e639da7 | 2012-02-21 15:11:13 -0800 | [diff] [blame] | 194 | /** @hide */ |
| 195 | @Override |
| Svet Ganov | 8c7f700 | 2015-05-07 10:48:44 -0700 | [diff] [blame] | 196 | public void grantRuntimePermission(String packageName, String permissionName, |
| 197 | UserHandle user) { |
| Dianne Hackborn | e639da7 | 2012-02-21 15:11:13 -0800 | [diff] [blame] | 198 | throw new UnsupportedOperationException(); |
| 199 | } |
| 200 | |
| 201 | /** @hide */ |
| 202 | @Override |
| Svet Ganov | 8c7f700 | 2015-05-07 10:48:44 -0700 | [diff] [blame] | 203 | public void revokeRuntimePermission(String packageName, String permissionName, |
| 204 | UserHandle user) { |
| 205 | throw new UnsupportedOperationException(); |
| 206 | } |
| 207 | |
| 208 | /** @hide */ |
| 209 | @Override |
| 210 | public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { |
| 211 | throw new UnsupportedOperationException(); |
| 212 | } |
| 213 | |
| 214 | /** @hide */ |
| 215 | @Override |
| 216 | public void updatePermissionFlags(String permissionName, String packageName, |
| 217 | int flagMask, int flagValues, UserHandle user) { |
| Dianne Hackborn | e639da7 | 2012-02-21 15:11:13 -0800 | [diff] [blame] | 218 | throw new UnsupportedOperationException(); |
| 219 | } |
| 220 | |
| Svetoslav | 20770dd | 2015-05-29 15:43:04 -0700 | [diff] [blame] | 221 | /** @hide */ |
| 222 | @Override |
| 223 | public boolean shouldShowRequestPermissionRationale(String permission) { |
| 224 | throw new UnsupportedOperationException(); |
| 225 | } |
| 226 | |
| Svetoslav | f7c06eb | 2015-06-10 18:43:22 -0700 | [diff] [blame^] | 227 | /** @hide */ |
| 228 | @Override |
| 229 | public void addOnPermissionsChangeListener(OnPermissionsChangedListener listener) { |
| 230 | throw new UnsupportedOperationException(); |
| 231 | } |
| 232 | |
| 233 | /** @hide */ |
| 234 | @Override |
| 235 | public void removeOnPermissionsChangeListener(OnPermissionsChangedListener listener) { |
| 236 | throw new UnsupportedOperationException(); |
| 237 | } |
| 238 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 239 | @Override |
| 240 | public int checkSignatures(String pkg1, String pkg2) { |
| 241 | throw new UnsupportedOperationException(); |
| 242 | } |
| 243 | |
| 244 | @Override |
| Dianne Hackborn | 766cbfe | 2009-08-12 18:33:39 -0700 | [diff] [blame] | 245 | public int checkSignatures(int uid1, int uid2) { |
| 246 | throw new UnsupportedOperationException(); |
| 247 | } |
| 248 | |
| 249 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 250 | public String[] getPackagesForUid(int uid) { |
| 251 | throw new UnsupportedOperationException(); |
| 252 | } |
| 253 | |
| 254 | @Override |
| 255 | public String getNameForUid(int uid) { |
| 256 | throw new UnsupportedOperationException(); |
| 257 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 258 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 259 | /** |
| 260 | * @hide - to match hiding in superclass |
| 261 | */ |
| 262 | @Override |
| 263 | public int getUidForSharedUser(String sharedUserName) { |
| 264 | throw new UnsupportedOperationException(); |
| 265 | } |
| 266 | |
| 267 | @Override |
| 268 | public List<ApplicationInfo> getInstalledApplications(int flags) { |
| 269 | throw new UnsupportedOperationException(); |
| 270 | } |
| 271 | |
| 272 | @Override |
| 273 | public ResolveInfo resolveActivity(Intent intent, int flags) { |
| 274 | throw new UnsupportedOperationException(); |
| 275 | } |
| 276 | |
| Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 277 | /** @hide */ |
| 278 | @Override |
| 279 | public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { |
| 280 | throw new UnsupportedOperationException(); |
| 281 | } |
| 282 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 283 | @Override |
| 284 | public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { |
| 285 | throw new UnsupportedOperationException(); |
| 286 | } |
| 287 | |
| Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame] | 288 | /** @hide */ |
| 289 | @Override |
| Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 290 | public List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, |
| Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame] | 291 | int flags, int userId) { |
| 292 | throw new UnsupportedOperationException(); |
| 293 | } |
| 294 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 295 | @Override |
| 296 | public List<ResolveInfo> queryIntentActivityOptions(ComponentName caller, |
| 297 | Intent[] specifics, Intent intent, int flags) { |
| 298 | throw new UnsupportedOperationException(); |
| 299 | } |
| 300 | |
| 301 | @Override |
| 302 | public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { |
| 303 | throw new UnsupportedOperationException(); |
| 304 | } |
| 305 | |
| Amith Yamasani | f203aee | 2012-08-29 18:41:53 -0700 | [diff] [blame] | 306 | /** @hide */ |
| 307 | @Override |
| 308 | public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags, int userId) { |
| 309 | throw new UnsupportedOperationException(); |
| 310 | } |
| 311 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 312 | @Override |
| 313 | public ResolveInfo resolveService(Intent intent, int flags) { |
| 314 | throw new UnsupportedOperationException(); |
| 315 | } |
| 316 | |
| 317 | @Override |
| 318 | public List<ResolveInfo> queryIntentServices(Intent intent, int flags) { |
| 319 | throw new UnsupportedOperationException(); |
| 320 | } |
| 321 | |
| Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 322 | /** @hide */ |
| 323 | @Override |
| 324 | public List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { |
| 325 | throw new UnsupportedOperationException(); |
| 326 | } |
| 327 | |
| Jeff Sharkey | 85f5f81 | 2013-10-07 10:16:12 -0700 | [diff] [blame] | 328 | /** @hide */ |
| 329 | @Override |
| 330 | public List<ResolveInfo> queryIntentContentProvidersAsUser( |
| 331 | Intent intent, int flags, int userId) { |
| 332 | throw new UnsupportedOperationException(); |
| 333 | } |
| 334 | |
| 335 | @Override |
| 336 | public List<ResolveInfo> queryIntentContentProviders(Intent intent, int flags) { |
| 337 | throw new UnsupportedOperationException(); |
| 338 | } |
| 339 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 340 | @Override |
| 341 | public ProviderInfo resolveContentProvider(String name, int flags) { |
| 342 | throw new UnsupportedOperationException(); |
| 343 | } |
| 344 | |
| Alexandra Gherghina | 0363c3e | 2014-06-23 13:34:59 +0100 | [diff] [blame] | 345 | /** @hide */ |
| 346 | @Override |
| 347 | public ProviderInfo resolveContentProviderAsUser(String name, int flags, int userId) { |
| 348 | throw new UnsupportedOperationException(); |
| 349 | } |
| 350 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 351 | @Override |
| 352 | public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { |
| 353 | throw new UnsupportedOperationException(); |
| 354 | } |
| 355 | |
| 356 | @Override |
| 357 | public InstrumentationInfo getInstrumentationInfo(ComponentName className, int flags) |
| 358 | throws NameNotFoundException { |
| 359 | throw new UnsupportedOperationException(); |
| 360 | } |
| 361 | |
| 362 | @Override |
| 363 | public List<InstrumentationInfo> queryInstrumentation( |
| 364 | String targetPackage, int flags) { |
| 365 | throw new UnsupportedOperationException(); |
| 366 | } |
| 367 | |
| 368 | @Override |
| 369 | public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { |
| 370 | throw new UnsupportedOperationException(); |
| 371 | } |
| 372 | |
| 373 | @Override |
| 374 | public Drawable getActivityIcon(ComponentName activityName) |
| 375 | throws NameNotFoundException { |
| 376 | throw new UnsupportedOperationException(); |
| 377 | } |
| 378 | |
| 379 | @Override |
| 380 | public Drawable getActivityIcon(Intent intent) throws NameNotFoundException { |
| 381 | throw new UnsupportedOperationException(); |
| 382 | } |
| 383 | |
| 384 | @Override |
| 385 | public Drawable getDefaultActivityIcon() { |
| 386 | throw new UnsupportedOperationException(); |
| 387 | } |
| 388 | |
| 389 | @Override |
| Jose Lima | f78e312 | 2014-03-06 12:13:15 -0800 | [diff] [blame] | 390 | public Drawable getActivityBanner(ComponentName activityName) |
| 391 | throws NameNotFoundException { |
| 392 | throw new UnsupportedOperationException(); |
| 393 | } |
| 394 | |
| 395 | @Override |
| 396 | public Drawable getActivityBanner(Intent intent) throws NameNotFoundException { |
| 397 | throw new UnsupportedOperationException(); |
| 398 | } |
| 399 | |
| 400 | @Override |
| 401 | public Drawable getApplicationBanner(ApplicationInfo info) { |
| 402 | throw new UnsupportedOperationException(); |
| 403 | } |
| 404 | |
| 405 | @Override |
| 406 | public Drawable getApplicationBanner(String packageName) throws NameNotFoundException { |
| 407 | throw new UnsupportedOperationException(); |
| 408 | } |
| 409 | |
| 410 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 411 | public Drawable getApplicationIcon(ApplicationInfo info) { |
| 412 | throw new UnsupportedOperationException(); |
| 413 | } |
| 414 | |
| 415 | @Override |
| 416 | public Drawable getApplicationIcon(String packageName) throws NameNotFoundException { |
| 417 | throw new UnsupportedOperationException(); |
| 418 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 419 | |
| Adam Powell | 81cd2e9 | 2010-04-21 16:35:18 -0700 | [diff] [blame] | 420 | @Override |
| 421 | public Drawable getActivityLogo(ComponentName activityName) throws NameNotFoundException { |
| 422 | throw new UnsupportedOperationException(); |
| 423 | } |
| 424 | |
| 425 | @Override |
| 426 | public Drawable getActivityLogo(Intent intent) throws NameNotFoundException { |
| 427 | throw new UnsupportedOperationException(); |
| 428 | } |
| 429 | |
| 430 | @Override |
| 431 | public Drawable getApplicationLogo(ApplicationInfo info) { |
| 432 | throw new UnsupportedOperationException(); |
| 433 | } |
| 434 | |
| 435 | @Override |
| 436 | public Drawable getApplicationLogo(String packageName) throws NameNotFoundException { |
| 437 | throw new UnsupportedOperationException(); |
| 438 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 439 | |
| 440 | @Override |
| Svetoslav | c7d62f0 | 2014-09-04 15:39:54 -0700 | [diff] [blame] | 441 | public Drawable getUserBadgedIcon(Drawable icon, UserHandle user) { |
| 442 | throw new UnsupportedOperationException(); |
| 443 | } |
| 444 | |
| 445 | @Override |
| 446 | public Drawable getUserBadgedDrawableForDensity(Drawable drawable, UserHandle user, |
| 447 | Rect badgeLocation, |
| 448 | int badgeDensity) { |
| 449 | throw new UnsupportedOperationException(); |
| 450 | } |
| 451 | |
| 452 | /** @hide */ |
| 453 | @Override |
| 454 | public Drawable getUserBadgeForDensity(UserHandle user, int density) { |
| 455 | throw new UnsupportedOperationException(); |
| 456 | } |
| 457 | |
| 458 | @Override |
| 459 | public CharSequence getUserBadgedLabel(CharSequence label, UserHandle user) { |
| 460 | throw new UnsupportedOperationException(); |
| 461 | } |
| 462 | |
| 463 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 464 | public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { |
| 465 | throw new UnsupportedOperationException(); |
| 466 | } |
| 467 | |
| 468 | @Override |
| 469 | public XmlResourceParser getXml(String packageName, int resid, |
| 470 | ApplicationInfo appInfo) { |
| 471 | throw new UnsupportedOperationException(); |
| 472 | } |
| 473 | |
| 474 | @Override |
| 475 | public CharSequence getApplicationLabel(ApplicationInfo info) { |
| 476 | throw new UnsupportedOperationException(); |
| 477 | } |
| 478 | |
| 479 | @Override |
| 480 | public Resources getResourcesForActivity(ComponentName activityName) |
| 481 | throws NameNotFoundException { |
| 482 | throw new UnsupportedOperationException(); |
| 483 | } |
| 484 | |
| 485 | @Override |
| 486 | public Resources getResourcesForApplication(ApplicationInfo app) { |
| 487 | throw new UnsupportedOperationException(); |
| 488 | } |
| 489 | |
| 490 | @Override |
| 491 | public Resources getResourcesForApplication(String appPackageName) |
| 492 | throws NameNotFoundException { |
| 493 | throw new UnsupportedOperationException(); |
| 494 | } |
| 495 | |
| Amith Yamasani | 98edc95 | 2012-09-25 14:09:27 -0700 | [diff] [blame] | 496 | /** @hide */ |
| 497 | @Override |
| 498 | public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) { |
| 499 | throw new UnsupportedOperationException(); |
| 500 | } |
| 501 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 502 | @Override |
| 503 | public PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags) { |
| 504 | throw new UnsupportedOperationException(); |
| 505 | } |
| 506 | |
| Dianne Hackborn | ade3eca | 2009-05-11 18:54:45 -0700 | [diff] [blame] | 507 | /** |
| 508 | * @hide - to match hiding in superclass |
| 509 | */ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 510 | @Override |
| 511 | public void installPackage(Uri packageURI, IPackageInstallObserver observer, |
| Jacek Surazski | 65e1317 | 2009-04-28 15:26:38 +0200 | [diff] [blame] | 512 | int flags, String installerPackageName) { |
| 513 | throw new UnsupportedOperationException(); |
| 514 | } |
| Suchi Amalapurapu | 8946dd3 | 2010-02-19 09:19:34 -0800 | [diff] [blame] | 515 | |
| Dianne Hackborn | 880119b | 2010-11-18 22:26:40 -0800 | [diff] [blame] | 516 | @Override |
| 517 | public void setInstallerPackageName(String targetPackage, |
| 518 | String installerPackageName) { |
| 519 | throw new UnsupportedOperationException(); |
| 520 | } |
| 521 | |
| Jacek Surazski | 65e1317 | 2009-04-28 15:26:38 +0200 | [diff] [blame] | 522 | @Override |
| 523 | public String getInstallerPackageName(String packageName) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 524 | throw new UnsupportedOperationException(); |
| 525 | } |
| 526 | |
| Jeff Sharkey | 620b32b | 2015-04-23 19:36:02 -0700 | [diff] [blame] | 527 | /** {@hide} */ |
| 528 | @Override |
| 529 | public int getMoveStatus(int moveId) { |
| 530 | throw new UnsupportedOperationException(); |
| 531 | } |
| 532 | |
| 533 | /** {@hide} */ |
| 534 | @Override |
| 535 | public void registerMoveCallback(MoveCallback callback, Handler handler) { |
| 536 | throw new UnsupportedOperationException(); |
| 537 | } |
| 538 | |
| 539 | /** {@hide} */ |
| 540 | @Override |
| 541 | public void unregisterMoveCallback(MoveCallback callback) { |
| 542 | throw new UnsupportedOperationException(); |
| 543 | } |
| 544 | |
| 545 | /** {@hide} */ |
| 546 | @Override |
| 547 | public int movePackage(String packageName, VolumeInfo vol) { |
| 548 | throw new UnsupportedOperationException(); |
| 549 | } |
| 550 | |
| 551 | /** {@hide} */ |
| 552 | @Override |
| 553 | public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { |
| 554 | throw new UnsupportedOperationException(); |
| 555 | } |
| 556 | |
| 557 | /** {@hide} */ |
| 558 | @Override |
| 559 | public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { |
| 560 | throw new UnsupportedOperationException(); |
| 561 | } |
| 562 | |
| 563 | /** {@hide} */ |
| 564 | @Override |
| 565 | public int movePrimaryStorage(VolumeInfo vol) { |
| 566 | throw new UnsupportedOperationException(); |
| 567 | } |
| 568 | |
| 569 | /** {@hide} */ |
| 570 | @Override |
| 571 | public VolumeInfo getPrimaryStorageCurrentVolume() { |
| 572 | throw new UnsupportedOperationException(); |
| 573 | } |
| 574 | |
| 575 | /** {@hide} */ |
| 576 | @Override |
| 577 | public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { |
| 578 | throw new UnsupportedOperationException(); |
| 579 | } |
| 580 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 581 | /** |
| 582 | * @hide - to match hiding in superclass |
| 583 | */ |
| 584 | @Override |
| 585 | public void clearApplicationUserData( |
| 586 | String packageName, IPackageDataObserver observer) { |
| 587 | throw new UnsupportedOperationException(); |
| 588 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 589 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 590 | /** |
| 591 | * @hide - to match hiding in superclass |
| 592 | */ |
| 593 | @Override |
| 594 | public void deleteApplicationCacheFiles( |
| 595 | String packageName, IPackageDataObserver observer) { |
| 596 | throw new UnsupportedOperationException(); |
| 597 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 598 | |
| Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 599 | /** {@hide} */ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 600 | @Override |
| Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 601 | public void freeStorageAndNotify(String volumeUuid, long idealStorageSize, |
| 602 | IPackageDataObserver observer) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 603 | throw new UnsupportedOperationException(); |
| 604 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 605 | |
| Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 606 | /** {@hide} */ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 607 | @Override |
| Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 608 | public void freeStorage(String volumeUuid, long idealStorageSize, IntentSender pi) { |
| Suchi Amalapurapu | 1ccac75 | 2009-06-12 10:09:58 -0700 | [diff] [blame] | 609 | throw new UnsupportedOperationException(); |
| 610 | } |
| 611 | |
| 612 | /** |
| 613 | * @hide - to match hiding in superclass |
| 614 | */ |
| 615 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 616 | public void deletePackage( |
| 617 | String packageName, IPackageDeleteObserver observer, int flags) { |
| 618 | throw new UnsupportedOperationException(); |
| 619 | } |
| 620 | |
| 621 | @Override |
| 622 | public void addPackageToPreferred(String packageName) { |
| 623 | throw new UnsupportedOperationException(); |
| 624 | } |
| 625 | |
| 626 | @Override |
| 627 | public void removePackageFromPreferred(String packageName) { |
| 628 | throw new UnsupportedOperationException(); |
| 629 | } |
| 630 | |
| 631 | @Override |
| 632 | public List<PackageInfo> getPreferredPackages(int flags) { |
| 633 | throw new UnsupportedOperationException(); |
| 634 | } |
| 635 | |
| 636 | @Override |
| 637 | public void setComponentEnabledSetting(ComponentName componentName, |
| 638 | int newState, int flags) { |
| 639 | throw new UnsupportedOperationException(); |
| 640 | } |
| 641 | |
| 642 | @Override |
| 643 | public int getComponentEnabledSetting(ComponentName componentName) { |
| 644 | throw new UnsupportedOperationException(); |
| 645 | } |
| 646 | |
| 647 | @Override |
| 648 | public void setApplicationEnabledSetting(String packageName, int newState, int flags) { |
| 649 | throw new UnsupportedOperationException(); |
| 650 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 651 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 652 | @Override |
| 653 | public int getApplicationEnabledSetting(String packageName) { |
| 654 | throw new UnsupportedOperationException(); |
| 655 | } |
| 656 | |
| 657 | @Override |
| 658 | public void addPreferredActivity(IntentFilter filter, |
| 659 | int match, ComponentName[] set, ComponentName activity) { |
| 660 | throw new UnsupportedOperationException(); |
| 661 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 662 | |
| Satish Sampath | 8dbe612 | 2009-06-02 23:35:54 +0100 | [diff] [blame] | 663 | /** |
| 664 | * @hide - to match hiding in superclass |
| 665 | */ |
| 666 | @Override |
| 667 | public void replacePreferredActivity(IntentFilter filter, |
| 668 | int match, ComponentName[] set, ComponentName activity) { |
| 669 | throw new UnsupportedOperationException(); |
| 670 | } |
| 671 | |
| 672 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 673 | @Override |
| 674 | public void clearPackagePreferredActivities(String packageName) { |
| 675 | throw new UnsupportedOperationException(); |
| 676 | } |
| 677 | |
| 678 | /** |
| 679 | * @hide - to match hiding in superclass |
| 680 | */ |
| 681 | @Override |
| Dianne Hackborn | 0c38049 | 2012-08-20 17:23:30 -0700 | [diff] [blame] | 682 | public void getPackageSizeInfo(String packageName, int userHandle, |
| 683 | IPackageStatsObserver observer) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 684 | throw new UnsupportedOperationException(); |
| 685 | } |
| 686 | |
| 687 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 688 | public int getPreferredActivities(List<IntentFilter> outFilters, |
| 689 | List<ComponentName> outActivities, String packageName) { |
| 690 | throw new UnsupportedOperationException(); |
| 691 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 692 | |
| Christopher Tate | a2a0850d | 2013-09-05 16:38:58 -0700 | [diff] [blame] | 693 | /** @hide - hidden in superclass */ |
| 694 | @Override |
| 695 | public ComponentName getHomeActivities(List<ResolveInfo> outActivities) { |
| 696 | throw new UnsupportedOperationException(); |
| 697 | } |
| 698 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 699 | @Override |
| 700 | public String[] getSystemSharedLibraryNames() { |
| 701 | throw new UnsupportedOperationException(); |
| 702 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 703 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 704 | @Override |
| Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 705 | public FeatureInfo[] getSystemAvailableFeatures() { |
| 706 | throw new UnsupportedOperationException(); |
| 707 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 708 | |
| Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 709 | @Override |
| Dianne Hackborn | 039c68e | 2009-09-26 16:39:23 -0700 | [diff] [blame] | 710 | public boolean hasSystemFeature(String name) { |
| 711 | throw new UnsupportedOperationException(); |
| 712 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 713 | |
| Dianne Hackborn | 039c68e | 2009-09-26 16:39:23 -0700 | [diff] [blame] | 714 | @Override |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 715 | public boolean isSafeMode() { |
| 716 | throw new UnsupportedOperationException(); |
| 717 | } |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 718 | |
| dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 719 | /** @hide */ |
| dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 720 | @Override |
| 721 | public KeySet getKeySetByAlias(String packageName, String alias) { |
| 722 | throw new UnsupportedOperationException(); |
| 723 | } |
| 724 | |
| dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 725 | /** @hide */ |
| dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 726 | @Override |
| 727 | public KeySet getSigningKeySet(String packageName) { |
| 728 | throw new UnsupportedOperationException(); |
| 729 | } |
| 730 | |
| dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 731 | /** @hide */ |
| dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 732 | @Override |
| 733 | public boolean isSignedBy(String packageName, KeySet ks) { |
| 734 | throw new UnsupportedOperationException(); |
| 735 | } |
| 736 | |
| dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 737 | /** @hide */ |
| dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 738 | @Override |
| 739 | public boolean isSignedByExactly(String packageName, KeySet ks) { |
| 740 | throw new UnsupportedOperationException(); |
| 741 | } |
| 742 | |
| Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 743 | /** |
| 744 | * @hide |
| 745 | */ |
| 746 | @Override |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 747 | public void installPackageWithVerification(Uri packageURI, IPackageInstallObserver observer, |
| 748 | int flags, String installerPackageName, Uri verificationURI, |
| Rich Cannings | e1d7c71 | 2012-08-08 12:46:06 -0700 | [diff] [blame] | 749 | ManifestDigest manifestDigest, ContainerEncryptionParams encryptionParams) { |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 750 | throw new UnsupportedOperationException(); |
| 751 | } |
| 752 | |
| rich cannings | 706e8ba | 2012-08-20 13:20:14 -0700 | [diff] [blame] | 753 | /** |
| 754 | * @hide |
| 755 | */ |
| 756 | @Override |
| 757 | public void installPackageWithVerificationAndEncryption(Uri packageURI, |
| 758 | IPackageInstallObserver observer, int flags, String installerPackageName, |
| 759 | VerificationParams verificationParams, ContainerEncryptionParams encryptionParams) { |
| 760 | throw new UnsupportedOperationException(); |
| 761 | } |
| 762 | |
| Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 763 | /** |
| 764 | * @hide |
| 765 | */ |
| 766 | @Override |
| Amith Yamasani | e5bcff6 | 2014-07-19 15:44:09 -0700 | [diff] [blame] | 767 | public boolean setApplicationHiddenSettingAsUser(String packageName, boolean hidden, |
| Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 768 | UserHandle user) { |
| 769 | return false; |
| 770 | } |
| 771 | |
| 772 | /** |
| 773 | * @hide |
| 774 | */ |
| 775 | @Override |
| Amith Yamasani | e5bcff6 | 2014-07-19 15:44:09 -0700 | [diff] [blame] | 776 | public boolean getApplicationHiddenSettingAsUser(String packageName, UserHandle user) { |
| Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 777 | return false; |
| 778 | } |
| 779 | |
| 780 | /** |
| 781 | * @hide |
| 782 | */ |
| 783 | @Override |
| Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 784 | public int installExistingPackage(String packageName) |
| 785 | throws NameNotFoundException { |
| 786 | throw new UnsupportedOperationException(); |
| 787 | } |
| 788 | |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 789 | @Override |
| Kenny Root | 3a9b5fb | 2011-09-20 14:15:38 -0700 | [diff] [blame] | 790 | public void verifyPendingInstall(int id, int verificationCode) { |
| Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 791 | throw new UnsupportedOperationException(); |
| 792 | } |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 793 | |
| rich cannings | d9ef3e5 | 2012-08-22 14:28:05 -0700 | [diff] [blame] | 794 | @Override |
| 795 | public void extendVerificationTimeout(int id, int verificationCodeAtTimeout, |
| 796 | long millisecondsToDelay) { |
| 797 | throw new UnsupportedOperationException(); |
| 798 | } |
| 799 | |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 800 | /** |
| 801 | * @hide |
| 802 | */ |
| 803 | @Override |
| Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 804 | public void verifyIntentFilter(int id, int verificationCode, List<String> outFailedDomains) { |
| 805 | throw new UnsupportedOperationException(); |
| 806 | } |
| 807 | |
| 808 | /** |
| 809 | * @hide |
| 810 | */ |
| 811 | @Override |
| 812 | public int getIntentVerificationStatus(String packageName, int userId) { |
| 813 | throw new UnsupportedOperationException(); |
| 814 | } |
| 815 | |
| 816 | /** |
| 817 | * @hide |
| 818 | */ |
| 819 | @Override |
| 820 | public boolean updateIntentVerificationStatus(String packageName, int status, int userId) { |
| 821 | throw new UnsupportedOperationException(); |
| 822 | } |
| 823 | |
| 824 | /** |
| 825 | * @hide |
| 826 | */ |
| 827 | @Override |
| 828 | public List<IntentFilterVerificationInfo> getIntentFilterVerifications(String packageName) { |
| 829 | throw new UnsupportedOperationException(); |
| 830 | } |
| 831 | |
| Fabrice Di Meglio | 0788595 | 2015-04-06 19:41:28 -0700 | [diff] [blame] | 832 | @Override |
| 833 | public List<IntentFilter> getAllIntentFilters(String packageName) { |
| 834 | throw new UnsupportedOperationException(); |
| 835 | } |
| 836 | |
| Fabrice Di Meglio | 6227172 | 2015-04-10 17:24:02 -0700 | [diff] [blame] | 837 | @Override |
| 838 | public String getDefaultBrowserPackageName(int userId) { |
| 839 | throw new UnsupportedOperationException(); |
| 840 | } |
| 841 | |
| 842 | @Override |
| 843 | public boolean setDefaultBrowserPackageName(String packageName, int userId) { |
| 844 | throw new UnsupportedOperationException(); |
| 845 | } |
| 846 | |
| Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 847 | /** |
| 848 | * @hide |
| 849 | */ |
| 850 | @Override |
| Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 851 | public VerifierDeviceIdentity getVerifierDeviceIdentity() { |
| 852 | throw new UnsupportedOperationException(); |
| 853 | } |
| Christopher Tate | f1977b4 | 2014-03-24 16:25:51 -0700 | [diff] [blame] | 854 | |
| 855 | /** |
| 856 | * @hide |
| 857 | */ |
| 858 | @Override |
| Jeff Hao | 9f60c08 | 2014-10-28 18:51:07 -0700 | [diff] [blame] | 859 | public boolean isUpgrade() { |
| 860 | throw new UnsupportedOperationException(); |
| 861 | } |
| 862 | |
| 863 | /** |
| 864 | * @hide |
| 865 | */ |
| 866 | @Override |
| Christopher Tate | f1977b4 | 2014-03-24 16:25:51 -0700 | [diff] [blame] | 867 | public void installPackage(Uri packageURI, PackageInstallObserver observer, |
| 868 | int flags, String installerPackageName) { |
| 869 | throw new UnsupportedOperationException(); |
| 870 | } |
| 871 | |
| 872 | /** |
| 873 | * @hide |
| 874 | */ |
| 875 | @Override |
| 876 | public void installPackageWithVerification(Uri packageURI, |
| 877 | PackageInstallObserver observer, int flags, String installerPackageName, |
| 878 | Uri verificationURI, ManifestDigest manifestDigest, |
| 879 | ContainerEncryptionParams encryptionParams) { |
| 880 | throw new UnsupportedOperationException(); |
| 881 | } |
| 882 | |
| 883 | /** |
| 884 | * @hide |
| 885 | */ |
| 886 | @Override |
| 887 | public void installPackageWithVerificationAndEncryption(Uri packageURI, |
| 888 | PackageInstallObserver observer, int flags, String installerPackageName, |
| 889 | VerificationParams verificationParams, ContainerEncryptionParams encryptionParams) { |
| 890 | throw new UnsupportedOperationException(); |
| 891 | } |
| Nicolas Prevot | c79586e | 2014-05-06 12:47:57 +0100 | [diff] [blame] | 892 | |
| 893 | /** |
| 894 | * @hide |
| 895 | */ |
| 896 | @Override |
| Nicolas Prevot | 63798c5 | 2014-05-27 13:22:38 +0100 | [diff] [blame] | 897 | public void addCrossProfileIntentFilter(IntentFilter filter, int sourceUserId, int targetUserId, |
| 898 | int flags) { |
| Nicolas Prevot | 8194899 | 2014-05-16 18:25:26 +0100 | [diff] [blame] | 899 | throw new UnsupportedOperationException(); |
| 900 | } |
| 901 | |
| 902 | /** |
| 903 | * @hide |
| 904 | */ |
| 905 | @Override |
| 906 | public void clearCrossProfileIntentFilters(int sourceUserId) { |
| 907 | throw new UnsupportedOperationException(); |
| 908 | } |
| 909 | |
| Jeff Sharkey | 3a44f3f | 2014-04-28 17:36:31 -0700 | [diff] [blame] | 910 | /** {@hide} */ |
| Jeff Sharkey | 16c8e3f | 2014-07-24 17:08:17 -0700 | [diff] [blame] | 911 | public PackageInstaller getPackageInstaller() { |
| Jeff Sharkey | 6c833e0 | 2014-07-14 22:44:30 -0700 | [diff] [blame] | 912 | throw new UnsupportedOperationException(); |
| 913 | } |
| 914 | |
| 915 | /** {@hide} */ |
| 916 | @Override |
| 917 | public boolean isPackageAvailable(String packageName) { |
| Jeff Sharkey | 3a44f3f | 2014-04-28 17:36:31 -0700 | [diff] [blame] | 918 | throw new UnsupportedOperationException(); |
| 919 | } |
| Alexandra Gherghina | 6e2ae25 | 2014-06-12 16:03:58 +0100 | [diff] [blame] | 920 | |
| 921 | /** |
| 922 | * @hide |
| 923 | */ |
| Nicolas Prevot | 7f7b0c7 | 2014-06-23 15:59:38 +0100 | [diff] [blame] | 924 | public Drawable loadItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) { |
| Nicolas Prevot | 88cc346 | 2014-05-14 14:51:48 +0100 | [diff] [blame] | 925 | throw new UnsupportedOperationException(); |
| 926 | } |
| Benjamin Franz | ec2d48b | 2014-10-01 15:38:43 +0100 | [diff] [blame] | 927 | |
| 928 | /** |
| 929 | * @hide |
| 930 | */ |
| 931 | public Drawable loadUnbadgedItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) { |
| 932 | throw new UnsupportedOperationException(); |
| 933 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 934 | } |