Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 1 | // Signature format: 2.0 |
Sundong Ahn | f24779c | 2018-07-31 16:54:41 +0900 | [diff] [blame] | 2 | package android.test.mock { |
| 3 | |
Wale Ogunwale | 691af68 | 2019-02-11 03:09:10 -0800 | [diff] [blame] | 4 | public class MockContext extends android.content.Context { |
| 5 | method public android.view.Display getDisplay(); |
| 6 | } |
| 7 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 8 | @Deprecated public class MockPackageManager extends android.content.pm.PackageManager { |
Sundong Ahn | f24779c | 2018-07-31 16:54:41 +0900 | [diff] [blame] | 9 | method public boolean arePermissionsIndividuallyControlled(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 10 | method public String getDefaultBrowserPackageNameAsUser(int); |
| 11 | method public int getInstallReason(String, android.os.UserHandle); |
Sundong Ahn | f24779c | 2018-07-31 16:54:41 +0900 | [diff] [blame] | 12 | method public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int); |
| 13 | method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 14 | method public String[] getNamesForUids(int[]); |
| 15 | method public String getPermissionControllerPackageName(); |
Philip P. Moltmann | 3e49617 | 2019-02-11 16:29:19 -0800 | [diff] [blame] | 16 | method public int getPermissionFlags(String, String, android.os.UserHandle); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 17 | method @NonNull public String getServicesSystemSharedLibraryPackageName(); |
| 18 | method @NonNull public String getSharedSystemSharedLibraryPackageName(); |
| 19 | method public void grantRuntimePermission(String, String, android.os.UserHandle); |
| 20 | method public void revokeRuntimePermission(String, String, android.os.UserHandle); |
Philip P. Moltmann | 3e49617 | 2019-02-11 16:29:19 -0800 | [diff] [blame] | 21 | method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle); |
Sundong Ahn | f24779c | 2018-07-31 16:54:41 +0900 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | } |
| 25 | |