The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.test.mock; |
| 18 | |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 19 | import android.annotation.NonNull; |
Christopher Tate | f1977b4 | 2014-03-24 16:25:51 -0700 | [diff] [blame] | 20 | import android.app.PackageInstallObserver; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 21 | import android.content.ComponentName; |
| 22 | import android.content.Intent; |
| 23 | import android.content.IntentFilter; |
Suchi Amalapurapu | 1ccac75 | 2009-06-12 10:09:58 -0700 | [diff] [blame] | 24 | import android.content.IntentSender; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 25 | import android.content.pm.ActivityInfo; |
| 26 | import android.content.pm.ApplicationInfo; |
Todd Kennedy | 9106c64 | 2017-02-08 14:16:53 -0800 | [diff] [blame] | 27 | import android.content.pm.ChangedPackages; |
Svetoslav Ganov | 096d304 | 2017-01-30 16:34:13 -0800 | [diff] [blame] | 28 | import android.content.pm.InstantAppInfo; |
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; |
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 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 323 | /** |
| 324 | * @hide - to match hiding in superclass |
| 325 | */ |
| 326 | @Override |
| 327 | public int getUidForSharedUser(String sharedUserName) { |
| 328 | throw new UnsupportedOperationException(); |
| 329 | } |
| 330 | |
| 331 | @Override |
| 332 | public List<ApplicationInfo> getInstalledApplications(int flags) { |
| 333 | throw new UnsupportedOperationException(); |
| 334 | } |
| 335 | |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 336 | /** @hide */ |
| 337 | @Override |
Bartosz Fabianowski | 1133424 | 2016-11-17 20:49:16 +0100 | [diff] [blame] | 338 | public List<ApplicationInfo> getInstalledApplicationsAsUser(int flags, int userId) { |
| 339 | throw new UnsupportedOperationException(); |
| 340 | } |
| 341 | |
| 342 | /** @hide */ |
| 343 | @Override |
Svetoslav Ganov | 096d304 | 2017-01-30 16:34:13 -0800 | [diff] [blame] | 344 | public List<InstantAppInfo> getInstantApps() { |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 345 | throw new UnsupportedOperationException(); |
| 346 | } |
| 347 | |
| 348 | /** @hide */ |
| 349 | @Override |
Svetoslav Ganov | 096d304 | 2017-01-30 16:34:13 -0800 | [diff] [blame] | 350 | public Drawable getInstantAppIcon(String packageName) { |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 351 | throw new UnsupportedOperationException(); |
| 352 | } |
| 353 | |
Todd Kennedy | 1270513 | 2016-01-05 15:17:57 -0800 | [diff] [blame] | 354 | /** @hide */ |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 355 | @Override |
Svetoslav Ganov | 096d304 | 2017-01-30 16:34:13 -0800 | [diff] [blame] | 356 | public byte[] getInstantAppCookie() { |
| 357 | throw new UnsupportedOperationException(); |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 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 boolean isInstantApp() { |
| 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 |
David Christie | 31a1655 | 2017-03-01 15:08:45 -0800 | [diff] [blame] | 368 | public boolean isInstantApp(String packageName) { |
| 369 | throw new UnsupportedOperationException(); |
| 370 | } |
| 371 | |
| 372 | /** @hide */ |
| 373 | @Override |
Svetoslav Ganov | 345ffa5 | 2017-04-18 16:08:41 -0700 | [diff] [blame] | 374 | public int getInstantAppCookieMaxBytes() { |
| 375 | throw new UnsupportedOperationException(); |
| 376 | } |
| 377 | |
| 378 | /** @hide */ |
| 379 | @Override |
Svetoslav Ganov | 096d304 | 2017-01-30 16:34:13 -0800 | [diff] [blame] | 380 | public int getInstantAppCookieMaxSize() { |
| 381 | throw new UnsupportedOperationException(); |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 382 | } |
| 383 | |
Todd Kennedy | 1270513 | 2016-01-05 15:17:57 -0800 | [diff] [blame] | 384 | /** @hide */ |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 385 | @Override |
Svetoslav Ganov | 345ffa5 | 2017-04-18 16:08:41 -0700 | [diff] [blame] | 386 | public void clearInstantAppCookie() { |
| 387 | throw new UnsupportedOperationException(); |
| 388 | } |
| 389 | |
| 390 | /** @hide */ |
| 391 | @Override |
| 392 | public void updateInstantAppCookie(@NonNull byte[] cookie) { |
| 393 | throw new UnsupportedOperationException(); |
| 394 | } |
| 395 | |
| 396 | /** @hide */ |
| 397 | @Override |
Svetoslav Ganov | 096d304 | 2017-01-30 16:34:13 -0800 | [diff] [blame] | 398 | public boolean setInstantAppCookie(@NonNull byte[] cookie) { |
| 399 | throw new UnsupportedOperationException(); |
Svet Ganov | 2acf063 | 2015-11-24 19:10:59 -0800 | [diff] [blame] | 400 | } |
| 401 | |
Todd Kennedy | 9106c64 | 2017-02-08 14:16:53 -0800 | [diff] [blame] | 402 | /** @hide */ |
| 403 | @Override |
| 404 | public ChangedPackages getChangedPackages(int sequenceNumber) { |
| 405 | throw new UnsupportedOperationException(); |
| 406 | } |
| 407 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 408 | @Override |
| 409 | public ResolveInfo resolveActivity(Intent intent, int flags) { |
| 410 | throw new UnsupportedOperationException(); |
| 411 | } |
| 412 | |
Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 413 | /** @hide */ |
| 414 | @Override |
| 415 | public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { |
| 416 | throw new UnsupportedOperationException(); |
| 417 | } |
| 418 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 419 | @Override |
| 420 | public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { |
| 421 | throw new UnsupportedOperationException(); |
| 422 | } |
| 423 | |
Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame] | 424 | /** @hide */ |
| 425 | @Override |
Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 426 | public List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, |
Amith Yamasani | 151ec4c | 2012-09-07 19:25:16 -0700 | [diff] [blame] | 427 | int flags, int userId) { |
| 428 | throw new UnsupportedOperationException(); |
| 429 | } |
| 430 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 431 | @Override |
| 432 | public List<ResolveInfo> queryIntentActivityOptions(ComponentName caller, |
| 433 | Intent[] specifics, Intent intent, int flags) { |
| 434 | throw new UnsupportedOperationException(); |
| 435 | } |
| 436 | |
| 437 | @Override |
| 438 | public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { |
| 439 | throw new UnsupportedOperationException(); |
| 440 | } |
| 441 | |
Amith Yamasani | f203aee | 2012-08-29 18:41:53 -0700 | [diff] [blame] | 442 | /** @hide */ |
| 443 | @Override |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 444 | public List<ResolveInfo> queryBroadcastReceiversAsUser(Intent intent, int flags, int userId) { |
Amith Yamasani | f203aee | 2012-08-29 18:41:53 -0700 | [diff] [blame] | 445 | throw new UnsupportedOperationException(); |
| 446 | } |
| 447 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 448 | @Override |
| 449 | public ResolveInfo resolveService(Intent intent, int flags) { |
| 450 | throw new UnsupportedOperationException(); |
| 451 | } |
| 452 | |
| 453 | @Override |
| 454 | public List<ResolveInfo> queryIntentServices(Intent intent, int flags) { |
| 455 | throw new UnsupportedOperationException(); |
| 456 | } |
| 457 | |
Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 458 | /** @hide */ |
| 459 | @Override |
| 460 | public List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { |
| 461 | throw new UnsupportedOperationException(); |
| 462 | } |
| 463 | |
Jeff Sharkey | 85f5f81 | 2013-10-07 10:16:12 -0700 | [diff] [blame] | 464 | /** @hide */ |
| 465 | @Override |
| 466 | public List<ResolveInfo> queryIntentContentProvidersAsUser( |
| 467 | Intent intent, int flags, int userId) { |
| 468 | throw new UnsupportedOperationException(); |
| 469 | } |
| 470 | |
| 471 | @Override |
| 472 | public List<ResolveInfo> queryIntentContentProviders(Intent intent, int flags) { |
| 473 | throw new UnsupportedOperationException(); |
| 474 | } |
| 475 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 476 | @Override |
| 477 | public ProviderInfo resolveContentProvider(String name, int flags) { |
| 478 | throw new UnsupportedOperationException(); |
| 479 | } |
| 480 | |
Alexandra Gherghina | 0363c3e | 2014-06-23 13:34:59 +0100 | [diff] [blame] | 481 | /** @hide */ |
| 482 | @Override |
| 483 | public ProviderInfo resolveContentProviderAsUser(String name, int flags, int userId) { |
| 484 | throw new UnsupportedOperationException(); |
| 485 | } |
| 486 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 487 | @Override |
| 488 | public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { |
| 489 | throw new UnsupportedOperationException(); |
| 490 | } |
| 491 | |
| 492 | @Override |
| 493 | public InstrumentationInfo getInstrumentationInfo(ComponentName className, int flags) |
| 494 | throws NameNotFoundException { |
| 495 | throw new UnsupportedOperationException(); |
| 496 | } |
| 497 | |
| 498 | @Override |
| 499 | public List<InstrumentationInfo> queryInstrumentation( |
| 500 | String targetPackage, int flags) { |
| 501 | throw new UnsupportedOperationException(); |
| 502 | } |
| 503 | |
| 504 | @Override |
| 505 | public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { |
| 506 | throw new UnsupportedOperationException(); |
| 507 | } |
| 508 | |
| 509 | @Override |
| 510 | public Drawable getActivityIcon(ComponentName activityName) |
| 511 | throws NameNotFoundException { |
| 512 | throw new UnsupportedOperationException(); |
| 513 | } |
| 514 | |
| 515 | @Override |
| 516 | public Drawable getActivityIcon(Intent intent) throws NameNotFoundException { |
| 517 | throw new UnsupportedOperationException(); |
| 518 | } |
| 519 | |
| 520 | @Override |
| 521 | public Drawable getDefaultActivityIcon() { |
| 522 | throw new UnsupportedOperationException(); |
| 523 | } |
| 524 | |
| 525 | @Override |
Jose Lima | f78e312 | 2014-03-06 12:13:15 -0800 | [diff] [blame] | 526 | public Drawable getActivityBanner(ComponentName activityName) |
| 527 | throws NameNotFoundException { |
| 528 | throw new UnsupportedOperationException(); |
| 529 | } |
| 530 | |
| 531 | @Override |
| 532 | public Drawable getActivityBanner(Intent intent) throws NameNotFoundException { |
| 533 | throw new UnsupportedOperationException(); |
| 534 | } |
| 535 | |
| 536 | @Override |
| 537 | public Drawable getApplicationBanner(ApplicationInfo info) { |
| 538 | throw new UnsupportedOperationException(); |
| 539 | } |
| 540 | |
| 541 | @Override |
| 542 | public Drawable getApplicationBanner(String packageName) throws NameNotFoundException { |
| 543 | throw new UnsupportedOperationException(); |
| 544 | } |
| 545 | |
| 546 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 547 | public Drawable getApplicationIcon(ApplicationInfo info) { |
| 548 | throw new UnsupportedOperationException(); |
| 549 | } |
| 550 | |
| 551 | @Override |
| 552 | public Drawable getApplicationIcon(String packageName) throws NameNotFoundException { |
| 553 | throw new UnsupportedOperationException(); |
| 554 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 555 | |
Adam Powell | 81cd2e9 | 2010-04-21 16:35:18 -0700 | [diff] [blame] | 556 | @Override |
| 557 | public Drawable getActivityLogo(ComponentName activityName) throws NameNotFoundException { |
| 558 | throw new UnsupportedOperationException(); |
| 559 | } |
| 560 | |
| 561 | @Override |
| 562 | public Drawable getActivityLogo(Intent intent) throws NameNotFoundException { |
| 563 | throw new UnsupportedOperationException(); |
| 564 | } |
| 565 | |
| 566 | @Override |
| 567 | public Drawable getApplicationLogo(ApplicationInfo info) { |
| 568 | throw new UnsupportedOperationException(); |
| 569 | } |
| 570 | |
| 571 | @Override |
| 572 | public Drawable getApplicationLogo(String packageName) throws NameNotFoundException { |
| 573 | throw new UnsupportedOperationException(); |
| 574 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 575 | |
| 576 | @Override |
Svetoslav | c7d62f0 | 2014-09-04 15:39:54 -0700 | [diff] [blame] | 577 | public Drawable getUserBadgedIcon(Drawable icon, UserHandle user) { |
| 578 | throw new UnsupportedOperationException(); |
| 579 | } |
| 580 | |
| 581 | @Override |
| 582 | public Drawable getUserBadgedDrawableForDensity(Drawable drawable, UserHandle user, |
| 583 | Rect badgeLocation, |
| 584 | int badgeDensity) { |
| 585 | throw new UnsupportedOperationException(); |
| 586 | } |
| 587 | |
| 588 | /** @hide */ |
| 589 | @Override |
| 590 | public Drawable getUserBadgeForDensity(UserHandle user, int density) { |
| 591 | throw new UnsupportedOperationException(); |
| 592 | } |
| 593 | |
Selim Cinek | e6ff946 | 2016-01-15 15:07:06 -0800 | [diff] [blame] | 594 | /** @hide */ |
| 595 | @Override |
| 596 | public Drawable getUserBadgeForDensityNoBackground(UserHandle user, int density) { |
| 597 | throw new UnsupportedOperationException(); |
| 598 | } |
| 599 | |
Svetoslav | c7d62f0 | 2014-09-04 15:39:54 -0700 | [diff] [blame] | 600 | @Override |
| 601 | public CharSequence getUserBadgedLabel(CharSequence label, UserHandle user) { |
| 602 | throw new UnsupportedOperationException(); |
| 603 | } |
| 604 | |
| 605 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 606 | public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { |
| 607 | throw new UnsupportedOperationException(); |
| 608 | } |
| 609 | |
| 610 | @Override |
| 611 | public XmlResourceParser getXml(String packageName, int resid, |
| 612 | ApplicationInfo appInfo) { |
| 613 | throw new UnsupportedOperationException(); |
| 614 | } |
| 615 | |
| 616 | @Override |
| 617 | public CharSequence getApplicationLabel(ApplicationInfo info) { |
| 618 | throw new UnsupportedOperationException(); |
| 619 | } |
| 620 | |
| 621 | @Override |
| 622 | public Resources getResourcesForActivity(ComponentName activityName) |
| 623 | throws NameNotFoundException { |
| 624 | throw new UnsupportedOperationException(); |
| 625 | } |
| 626 | |
| 627 | @Override |
| 628 | public Resources getResourcesForApplication(ApplicationInfo app) { |
| 629 | throw new UnsupportedOperationException(); |
| 630 | } |
| 631 | |
| 632 | @Override |
| 633 | public Resources getResourcesForApplication(String appPackageName) |
| 634 | throws NameNotFoundException { |
| 635 | throw new UnsupportedOperationException(); |
| 636 | } |
| 637 | |
Amith Yamasani | 98edc95 | 2012-09-25 14:09:27 -0700 | [diff] [blame] | 638 | /** @hide */ |
| 639 | @Override |
| 640 | public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) { |
| 641 | throw new UnsupportedOperationException(); |
| 642 | } |
| 643 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 644 | @Override |
| 645 | public PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags) { |
| 646 | throw new UnsupportedOperationException(); |
| 647 | } |
| 648 | |
Dianne Hackborn | ade3eca | 2009-05-11 18:54:45 -0700 | [diff] [blame] | 649 | /** |
| 650 | * @hide - to match hiding in superclass |
| 651 | */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 652 | @Override |
| 653 | public void installPackage(Uri packageURI, IPackageInstallObserver observer, |
Jacek Surazski | 65e1317 | 2009-04-28 15:26:38 +0200 | [diff] [blame] | 654 | int flags, String installerPackageName) { |
| 655 | throw new UnsupportedOperationException(); |
| 656 | } |
Suchi Amalapurapu | 8946dd3 | 2010-02-19 09:19:34 -0800 | [diff] [blame] | 657 | |
Dianne Hackborn | 880119b | 2010-11-18 22:26:40 -0800 | [diff] [blame] | 658 | @Override |
| 659 | public void setInstallerPackageName(String targetPackage, |
| 660 | String installerPackageName) { |
| 661 | throw new UnsupportedOperationException(); |
| 662 | } |
| 663 | |
Todd Kennedy | ab53289 | 2017-03-08 14:19:49 -0800 | [diff] [blame] | 664 | /** @hide */ |
| 665 | @Override |
| 666 | public void setUpdateAvailable(String packageName, boolean updateAvailable) { |
| 667 | throw new UnsupportedOperationException(); |
| 668 | } |
| 669 | |
Jacek Surazski | 65e1317 | 2009-04-28 15:26:38 +0200 | [diff] [blame] | 670 | @Override |
| 671 | public String getInstallerPackageName(String packageName) { |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 672 | throw new UnsupportedOperationException(); |
| 673 | } |
| 674 | |
Jeff Sharkey | 620b32b | 2015-04-23 19:36:02 -0700 | [diff] [blame] | 675 | /** {@hide} */ |
| 676 | @Override |
| 677 | public int getMoveStatus(int moveId) { |
| 678 | throw new UnsupportedOperationException(); |
| 679 | } |
| 680 | |
| 681 | /** {@hide} */ |
| 682 | @Override |
| 683 | public void registerMoveCallback(MoveCallback callback, Handler handler) { |
| 684 | throw new UnsupportedOperationException(); |
| 685 | } |
| 686 | |
| 687 | /** {@hide} */ |
| 688 | @Override |
| 689 | public void unregisterMoveCallback(MoveCallback callback) { |
| 690 | throw new UnsupportedOperationException(); |
| 691 | } |
| 692 | |
| 693 | /** {@hide} */ |
| 694 | @Override |
| 695 | public int movePackage(String packageName, VolumeInfo vol) { |
| 696 | throw new UnsupportedOperationException(); |
| 697 | } |
| 698 | |
| 699 | /** {@hide} */ |
| 700 | @Override |
| 701 | public VolumeInfo getPackageCurrentVolume(ApplicationInfo app) { |
| 702 | throw new UnsupportedOperationException(); |
| 703 | } |
| 704 | |
| 705 | /** {@hide} */ |
| 706 | @Override |
| 707 | public List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app) { |
| 708 | throw new UnsupportedOperationException(); |
| 709 | } |
| 710 | |
| 711 | /** {@hide} */ |
| 712 | @Override |
| 713 | public int movePrimaryStorage(VolumeInfo vol) { |
| 714 | throw new UnsupportedOperationException(); |
| 715 | } |
| 716 | |
| 717 | /** {@hide} */ |
| 718 | @Override |
| 719 | public VolumeInfo getPrimaryStorageCurrentVolume() { |
| 720 | throw new UnsupportedOperationException(); |
| 721 | } |
| 722 | |
| 723 | /** {@hide} */ |
| 724 | @Override |
| 725 | public List<VolumeInfo> getPrimaryStorageCandidateVolumes() { |
| 726 | throw new UnsupportedOperationException(); |
| 727 | } |
| 728 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 729 | /** |
| 730 | * @hide - to match hiding in superclass |
| 731 | */ |
| 732 | @Override |
| 733 | public void clearApplicationUserData( |
| 734 | String packageName, IPackageDataObserver observer) { |
| 735 | throw new UnsupportedOperationException(); |
| 736 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 737 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 738 | /** |
| 739 | * @hide - to match hiding in superclass |
| 740 | */ |
| 741 | @Override |
| 742 | public void deleteApplicationCacheFiles( |
| 743 | String packageName, IPackageDataObserver observer) { |
| 744 | throw new UnsupportedOperationException(); |
| 745 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 746 | |
Suprabh Shukla | 78c9eb8 | 2016-04-12 15:51:35 -0700 | [diff] [blame] | 747 | /** |
| 748 | * @hide - to match hiding in superclass |
| 749 | */ |
| 750 | @Override |
| 751 | public void deleteApplicationCacheFilesAsUser(String packageName, int userId, |
| 752 | IPackageDataObserver observer) { |
| 753 | throw new UnsupportedOperationException(); |
| 754 | } |
| 755 | |
Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 756 | /** {@hide} */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 757 | @Override |
Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 758 | public void freeStorageAndNotify(String volumeUuid, long idealStorageSize, |
| 759 | IPackageDataObserver observer) { |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 760 | throw new UnsupportedOperationException(); |
| 761 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 762 | |
Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 763 | /** {@hide} */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 764 | @Override |
Jeff Sharkey | 529f91f | 2015-04-18 20:23:13 -0700 | [diff] [blame] | 765 | public void freeStorage(String volumeUuid, long idealStorageSize, IntentSender pi) { |
Suchi Amalapurapu | 1ccac75 | 2009-06-12 10:09:58 -0700 | [diff] [blame] | 766 | throw new UnsupportedOperationException(); |
| 767 | } |
| 768 | |
| 769 | /** |
| 770 | * @hide - to match hiding in superclass |
| 771 | */ |
| 772 | @Override |
Svet Ganov | 6788212 | 2016-12-11 16:36:34 -0800 | [diff] [blame] | 773 | public void deletePackage(String packageName, IPackageDeleteObserver observer, int flags) { |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 774 | throw new UnsupportedOperationException(); |
| 775 | } |
| 776 | |
Nicolas Prevot | 9a80e53 | 2015-09-23 15:49:28 +0100 | [diff] [blame] | 777 | /** |
| 778 | * @hide - to match hiding in superclass |
| 779 | */ |
| 780 | @Override |
Svet Ganov | 6788212 | 2016-12-11 16:36:34 -0800 | [diff] [blame] | 781 | public void deletePackageAsUser(String packageName, IPackageDeleteObserver observer, |
| 782 | int flags, int userId) { |
Nicolas Prevot | 9a80e53 | 2015-09-23 15:49:28 +0100 | [diff] [blame] | 783 | throw new UnsupportedOperationException(); |
| 784 | } |
| 785 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 786 | @Override |
| 787 | public void addPackageToPreferred(String packageName) { |
| 788 | throw new UnsupportedOperationException(); |
| 789 | } |
| 790 | |
| 791 | @Override |
| 792 | public void removePackageFromPreferred(String packageName) { |
| 793 | throw new UnsupportedOperationException(); |
| 794 | } |
| 795 | |
| 796 | @Override |
| 797 | public List<PackageInfo> getPreferredPackages(int flags) { |
| 798 | throw new UnsupportedOperationException(); |
| 799 | } |
| 800 | |
| 801 | @Override |
| 802 | public void setComponentEnabledSetting(ComponentName componentName, |
| 803 | int newState, int flags) { |
| 804 | throw new UnsupportedOperationException(); |
| 805 | } |
| 806 | |
| 807 | @Override |
| 808 | public int getComponentEnabledSetting(ComponentName componentName) { |
| 809 | throw new UnsupportedOperationException(); |
| 810 | } |
| 811 | |
| 812 | @Override |
| 813 | public void setApplicationEnabledSetting(String packageName, int newState, int flags) { |
| 814 | throw new UnsupportedOperationException(); |
| 815 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 816 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 817 | @Override |
| 818 | public int getApplicationEnabledSetting(String packageName) { |
| 819 | throw new UnsupportedOperationException(); |
| 820 | } |
| 821 | |
Sudheer Shanka | bbb3ff2 | 2015-07-09 15:39:23 +0100 | [diff] [blame] | 822 | /** @hide */ |
| 823 | @Override |
| 824 | public void flushPackageRestrictionsAsUser(int userId) { |
| 825 | throw new UnsupportedOperationException(); |
| 826 | } |
| 827 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 828 | @Override |
| 829 | public void addPreferredActivity(IntentFilter filter, |
| 830 | int match, ComponentName[] set, ComponentName activity) { |
| 831 | throw new UnsupportedOperationException(); |
| 832 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 833 | |
Satish Sampath | 8dbe612 | 2009-06-02 23:35:54 +0100 | [diff] [blame] | 834 | /** |
| 835 | * @hide - to match hiding in superclass |
| 836 | */ |
| 837 | @Override |
| 838 | public void replacePreferredActivity(IntentFilter filter, |
| 839 | int match, ComponentName[] set, ComponentName activity) { |
| 840 | throw new UnsupportedOperationException(); |
| 841 | } |
| 842 | |
| 843 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 844 | @Override |
| 845 | public void clearPackagePreferredActivities(String packageName) { |
| 846 | throw new UnsupportedOperationException(); |
| 847 | } |
| 848 | |
| 849 | /** |
| 850 | * @hide - to match hiding in superclass |
| 851 | */ |
| 852 | @Override |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 853 | public void getPackageSizeInfoAsUser(String packageName, int userHandle, |
Dianne Hackborn | 0c38049 | 2012-08-20 17:23:30 -0700 | [diff] [blame] | 854 | IPackageStatsObserver observer) { |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 855 | throw new UnsupportedOperationException(); |
| 856 | } |
| 857 | |
| 858 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 859 | public int getPreferredActivities(List<IntentFilter> outFilters, |
| 860 | List<ComponentName> outActivities, String packageName) { |
| 861 | throw new UnsupportedOperationException(); |
| 862 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 863 | |
Christopher Tate | a2a0850d | 2013-09-05 16:38:58 -0700 | [diff] [blame] | 864 | /** @hide - hidden in superclass */ |
| 865 | @Override |
| 866 | public ComponentName getHomeActivities(List<ResolveInfo> outActivities) { |
| 867 | throw new UnsupportedOperationException(); |
| 868 | } |
| 869 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 870 | @Override |
| 871 | public String[] getSystemSharedLibraryNames() { |
| 872 | throw new UnsupportedOperationException(); |
| 873 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 874 | |
Svet Ganov | 6788212 | 2016-12-11 16:36:34 -0800 | [diff] [blame] | 875 | @Override |
| 876 | public @NonNull List<SharedLibraryInfo> getSharedLibraries(int flags) { |
| 877 | throw new UnsupportedOperationException(); |
| 878 | } |
| 879 | |
| 880 | /** @hide */ |
| 881 | @Override |
| 882 | public @NonNull List<SharedLibraryInfo> getSharedLibrariesAsUser(int flags, int userId) { |
| 883 | throw new UnsupportedOperationException(); |
| 884 | } |
| 885 | |
Svet Ganov | d7b1f411 | 2016-02-09 18:49:23 -0800 | [diff] [blame] | 886 | /** @hide */ |
| 887 | @Override |
Svetoslav Ganov | a9c2500 | 2016-04-13 19:25:56 -0700 | [diff] [blame] | 888 | public @NonNull String getServicesSystemSharedLibraryPackageName() { |
| 889 | throw new UnsupportedOperationException(); |
| 890 | } |
| 891 | |
| 892 | /** @hide */ |
| 893 | @Override |
| 894 | public @NonNull String getSharedSystemSharedLibraryPackageName() { |
Svet Ganov | d7b1f411 | 2016-02-09 18:49:23 -0800 | [diff] [blame] | 895 | throw new UnsupportedOperationException(); |
| 896 | } |
| 897 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 898 | @Override |
Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 899 | public FeatureInfo[] getSystemAvailableFeatures() { |
| 900 | throw new UnsupportedOperationException(); |
| 901 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 902 | |
Dianne Hackborn | 4923734 | 2009-08-27 20:08:01 -0700 | [diff] [blame] | 903 | @Override |
Dianne Hackborn | 039c68e | 2009-09-26 16:39:23 -0700 | [diff] [blame] | 904 | public boolean hasSystemFeature(String name) { |
| 905 | throw new UnsupportedOperationException(); |
| 906 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 907 | |
Dianne Hackborn | 039c68e | 2009-09-26 16:39:23 -0700 | [diff] [blame] | 908 | @Override |
Jeff Sharkey | 115d2c1 | 2016-02-15 17:25:57 -0700 | [diff] [blame] | 909 | public boolean hasSystemFeature(String name, int version) { |
| 910 | throw new UnsupportedOperationException(); |
| 911 | } |
| 912 | |
| 913 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 914 | public boolean isSafeMode() { |
| 915 | throw new UnsupportedOperationException(); |
| 916 | } |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 917 | |
dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 918 | /** @hide */ |
dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 919 | @Override |
| 920 | public KeySet getKeySetByAlias(String packageName, String alias) { |
| 921 | throw new UnsupportedOperationException(); |
| 922 | } |
| 923 | |
dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 924 | /** @hide */ |
dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 925 | @Override |
| 926 | public KeySet getSigningKeySet(String packageName) { |
| 927 | throw new UnsupportedOperationException(); |
| 928 | } |
| 929 | |
dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 930 | /** @hide */ |
dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 931 | @Override |
| 932 | public boolean isSignedBy(String packageName, KeySet ks) { |
| 933 | throw new UnsupportedOperationException(); |
| 934 | } |
| 935 | |
dcashman | c6f2249 | 2014-08-14 09:54:51 -0700 | [diff] [blame] | 936 | /** @hide */ |
dcashman | 9d2f441 | 2014-06-09 09:27:54 -0700 | [diff] [blame] | 937 | @Override |
| 938 | public boolean isSignedByExactly(String packageName, KeySet ks) { |
| 939 | throw new UnsupportedOperationException(); |
| 940 | } |
| 941 | |
Andrei Stingaceanu | 1e28391 | 2015-11-26 15:26:28 +0000 | [diff] [blame] | 942 | /** @hide */ |
| 943 | @Override |
Andrei Stingaceanu | eb84b18 | 2016-01-26 18:39:55 +0000 | [diff] [blame] | 944 | public String[] setPackagesSuspendedAsUser(String[] packageNames, boolean hidden, int userId) { |
Andrei Stingaceanu | 355b232 | 2016-02-12 16:43:51 +0000 | [diff] [blame] | 945 | throw new UnsupportedOperationException(); |
| 946 | } |
| 947 | |
| 948 | /** @hide */ |
| 949 | @Override |
| 950 | public boolean isPackageSuspendedForUser(String packageName, int userId) { |
| 951 | throw new UnsupportedOperationException(); |
Andrei Stingaceanu | 1e28391 | 2015-11-26 15:26:28 +0000 | [diff] [blame] | 952 | } |
| 953 | |
Jeff Sharkey | 9bc89af | 2017-01-11 11:25:50 -0700 | [diff] [blame] | 954 | /** @hide */ |
| 955 | @Override |
| 956 | public void setApplicationCategoryHint(String packageName, int categoryHint) { |
| 957 | throw new UnsupportedOperationException(); |
| 958 | } |
| 959 | |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 960 | /** |
| 961 | * @hide |
| 962 | */ |
| 963 | @Override |
Amith Yamasani | e5bcff6 | 2014-07-19 15:44:09 -0700 | [diff] [blame] | 964 | public boolean setApplicationHiddenSettingAsUser(String packageName, boolean hidden, |
Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 965 | UserHandle user) { |
| 966 | return false; |
| 967 | } |
| 968 | |
| 969 | /** |
| 970 | * @hide |
| 971 | */ |
| 972 | @Override |
Amith Yamasani | e5bcff6 | 2014-07-19 15:44:09 -0700 | [diff] [blame] | 973 | public boolean getApplicationHiddenSettingAsUser(String packageName, UserHandle user) { |
Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 974 | return false; |
| 975 | } |
| 976 | |
| 977 | /** |
| 978 | * @hide |
| 979 | */ |
| 980 | @Override |
Nicolas Prevot | 9a80e53 | 2015-09-23 15:49:28 +0100 | [diff] [blame] | 981 | public int installExistingPackage(String packageName) throws NameNotFoundException { |
| 982 | throw new UnsupportedOperationException(); |
| 983 | } |
| 984 | |
| 985 | /** |
| 986 | * @hide |
| 987 | */ |
| 988 | @Override |
Sunny Goyal | a31a74b | 2017-05-11 15:59:19 -0700 | [diff] [blame] | 989 | public int installExistingPackage(String packageName, int installReason) |
| 990 | throws NameNotFoundException { |
| 991 | throw new UnsupportedOperationException(); |
| 992 | } |
| 993 | |
| 994 | /** |
| 995 | * @hide |
| 996 | */ |
| 997 | @Override |
Nicolas Prevot | 9a80e53 | 2015-09-23 15:49:28 +0100 | [diff] [blame] | 998 | public int installExistingPackageAsUser(String packageName, int userId) |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 999 | throws NameNotFoundException { |
| 1000 | throw new UnsupportedOperationException(); |
| 1001 | } |
| 1002 | |
Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 1003 | @Override |
Kenny Root | 3a9b5fb | 2011-09-20 14:15:38 -0700 | [diff] [blame] | 1004 | public void verifyPendingInstall(int id, int verificationCode) { |
Kenny Root | 5ab2157 | 2011-07-27 11:11:19 -0700 | [diff] [blame] | 1005 | throw new UnsupportedOperationException(); |
| 1006 | } |
Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 1007 | |
rich cannings | d9ef3e5 | 2012-08-22 14:28:05 -0700 | [diff] [blame] | 1008 | @Override |
| 1009 | public void extendVerificationTimeout(int id, int verificationCodeAtTimeout, |
| 1010 | long millisecondsToDelay) { |
| 1011 | throw new UnsupportedOperationException(); |
| 1012 | } |
| 1013 | |
Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 1014 | /** |
| 1015 | * @hide |
| 1016 | */ |
| 1017 | @Override |
Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 1018 | public void verifyIntentFilter(int id, int verificationCode, List<String> outFailedDomains) { |
| 1019 | throw new UnsupportedOperationException(); |
| 1020 | } |
| 1021 | |
| 1022 | /** |
| 1023 | * @hide |
| 1024 | */ |
| 1025 | @Override |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 1026 | public int getIntentVerificationStatusAsUser(String packageName, int userId) { |
Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 1027 | throw new UnsupportedOperationException(); |
| 1028 | } |
| 1029 | |
| 1030 | /** |
| 1031 | * @hide |
| 1032 | */ |
| 1033 | @Override |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 1034 | public boolean updateIntentVerificationStatusAsUser(String packageName, int status, int userId) { |
Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 1035 | throw new UnsupportedOperationException(); |
| 1036 | } |
| 1037 | |
| 1038 | /** |
| 1039 | * @hide |
| 1040 | */ |
| 1041 | @Override |
| 1042 | public List<IntentFilterVerificationInfo> getIntentFilterVerifications(String packageName) { |
| 1043 | throw new UnsupportedOperationException(); |
| 1044 | } |
| 1045 | |
Fabrice Di Meglio | 0788595 | 2015-04-06 19:41:28 -0700 | [diff] [blame] | 1046 | @Override |
| 1047 | public List<IntentFilter> getAllIntentFilters(String packageName) { |
| 1048 | throw new UnsupportedOperationException(); |
| 1049 | } |
| 1050 | |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 1051 | /** {@removed} */ |
| 1052 | @Deprecated |
Fabrice Di Meglio | 6227172 | 2015-04-10 17:24:02 -0700 | [diff] [blame] | 1053 | public String getDefaultBrowserPackageName(int userId) { |
| 1054 | throw new UnsupportedOperationException(); |
| 1055 | } |
| 1056 | |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 1057 | /** {@hide} */ |
Fabrice Di Meglio | 6227172 | 2015-04-10 17:24:02 -0700 | [diff] [blame] | 1058 | @Override |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 1059 | public String getDefaultBrowserPackageNameAsUser(int userId) { |
| 1060 | throw new UnsupportedOperationException(); |
| 1061 | } |
| 1062 | |
| 1063 | /** {@removed} */ |
| 1064 | @Deprecated |
Fabrice Di Meglio | 6227172 | 2015-04-10 17:24:02 -0700 | [diff] [blame] | 1065 | public boolean setDefaultBrowserPackageName(String packageName, int userId) { |
| 1066 | throw new UnsupportedOperationException(); |
| 1067 | } |
| 1068 | |
Jeff Sharkey | e06b4d1 | 2016-01-06 14:51:50 -0700 | [diff] [blame] | 1069 | /** {@hide} */ |
| 1070 | @Override |
| 1071 | public boolean setDefaultBrowserPackageNameAsUser(String packageName, int userId) { |
| 1072 | throw new UnsupportedOperationException(); |
| 1073 | } |
| 1074 | |
Fabrice Di Meglio | 1c1b471 | 2014-11-19 17:12:32 -0800 | [diff] [blame] | 1075 | /** |
| 1076 | * @hide |
| 1077 | */ |
| 1078 | @Override |
Kenny Root | 0aaa0d9 | 2011-09-12 16:42:55 -0700 | [diff] [blame] | 1079 | public VerifierDeviceIdentity getVerifierDeviceIdentity() { |
| 1080 | throw new UnsupportedOperationException(); |
| 1081 | } |
Christopher Tate | f1977b4 | 2014-03-24 16:25:51 -0700 | [diff] [blame] | 1082 | |
| 1083 | /** |
| 1084 | * @hide |
| 1085 | */ |
| 1086 | @Override |
Jeff Hao | 9f60c08 | 2014-10-28 18:51:07 -0700 | [diff] [blame] | 1087 | public boolean isUpgrade() { |
| 1088 | throw new UnsupportedOperationException(); |
| 1089 | } |
| 1090 | |
| 1091 | /** |
| 1092 | * @hide |
| 1093 | */ |
| 1094 | @Override |
Christopher Tate | f1977b4 | 2014-03-24 16:25:51 -0700 | [diff] [blame] | 1095 | public void installPackage(Uri packageURI, PackageInstallObserver observer, |
| 1096 | int flags, String installerPackageName) { |
| 1097 | throw new UnsupportedOperationException(); |
| 1098 | } |
| 1099 | |
| 1100 | /** |
| 1101 | * @hide |
| 1102 | */ |
| 1103 | @Override |
Nicolas Prevot | 63798c5 | 2014-05-27 13:22:38 +0100 | [diff] [blame] | 1104 | public void addCrossProfileIntentFilter(IntentFilter filter, int sourceUserId, int targetUserId, |
| 1105 | int flags) { |
Nicolas Prevot | 8194899 | 2014-05-16 18:25:26 +0100 | [diff] [blame] | 1106 | throw new UnsupportedOperationException(); |
| 1107 | } |
| 1108 | |
| 1109 | /** |
| 1110 | * @hide |
| 1111 | */ |
| 1112 | @Override |
| 1113 | public void clearCrossProfileIntentFilters(int sourceUserId) { |
| 1114 | throw new UnsupportedOperationException(); |
| 1115 | } |
| 1116 | |
Jeff Sharkey | 3a44f3f | 2014-04-28 17:36:31 -0700 | [diff] [blame] | 1117 | /** {@hide} */ |
Jeff Sharkey | 16c8e3f | 2014-07-24 17:08:17 -0700 | [diff] [blame] | 1118 | public PackageInstaller getPackageInstaller() { |
Jeff Sharkey | 6c833e0 | 2014-07-14 22:44:30 -0700 | [diff] [blame] | 1119 | throw new UnsupportedOperationException(); |
| 1120 | } |
| 1121 | |
| 1122 | /** {@hide} */ |
| 1123 | @Override |
| 1124 | public boolean isPackageAvailable(String packageName) { |
Jeff Sharkey | 3a44f3f | 2014-04-28 17:36:31 -0700 | [diff] [blame] | 1125 | throw new UnsupportedOperationException(); |
| 1126 | } |
Alexandra Gherghina | 6e2ae25 | 2014-06-12 16:03:58 +0100 | [diff] [blame] | 1127 | |
| 1128 | /** |
| 1129 | * @hide |
| 1130 | */ |
Nicolas Prevot | 7f7b0c7 | 2014-06-23 15:59:38 +0100 | [diff] [blame] | 1131 | public Drawable loadItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) { |
Nicolas Prevot | 88cc346 | 2014-05-14 14:51:48 +0100 | [diff] [blame] | 1132 | throw new UnsupportedOperationException(); |
| 1133 | } |
Benjamin Franz | ec2d48b | 2014-10-01 15:38:43 +0100 | [diff] [blame] | 1134 | |
| 1135 | /** |
| 1136 | * @hide |
| 1137 | */ |
| 1138 | public Drawable loadUnbadgedItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) { |
| 1139 | throw new UnsupportedOperationException(); |
| 1140 | } |
Bartosz Fabianowski | a34f53f | 2017-01-11 18:08:47 +0100 | [diff] [blame] | 1141 | |
| 1142 | /** |
| 1143 | * @hide |
| 1144 | */ |
| 1145 | public int getInstallReason(String packageName, UserHandle user) { |
| 1146 | throw new UnsupportedOperationException(); |
| 1147 | } |
Chad Brubaker | 336ae5b | 2017-03-24 15:53:09 -0700 | [diff] [blame] | 1148 | |
| 1149 | /** |
| 1150 | * @hide |
| 1151 | */ |
| 1152 | @Override |
| 1153 | public ComponentName getInstantAppResolverSettingsComponent() { |
| 1154 | throw new UnsupportedOperationException(); |
| 1155 | } |
Todd Kennedy | 801e659 | 2017-04-12 14:10:12 -0700 | [diff] [blame] | 1156 | |
| 1157 | /** |
| 1158 | * @hide |
| 1159 | */ |
| 1160 | @Override |
| 1161 | public ComponentName getInstantAppInstallerComponent() { |
| 1162 | throw new UnsupportedOperationException(); |
| 1163 | } |
Chad Brubaker | 0d277a7 | 2017-04-12 16:56:53 -0700 | [diff] [blame] | 1164 | |
| 1165 | /** |
| 1166 | * @hide |
| 1167 | */ |
| 1168 | public String getInstantAppAndroidId(String packageName, UserHandle user) { |
| 1169 | throw new UnsupportedOperationException(); |
| 1170 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1171 | } |