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