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