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