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