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