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