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