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