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