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