2018-12-26 19:55:07 -08:00
|
|
|
// Signature format: 2.0
|
2018-07-31 16:54:41 +09:00
|
|
|
package android.test.mock {
|
|
|
|
|
2019-02-11 03:09:10 -08:00
|
|
|
public class MockContext extends android.content.Context {
|
|
|
|
method public android.view.Display getDisplay();
|
2019-02-20 23:08:45 +08:00
|
|
|
method public int getDisplayId();
|
2019-02-11 03:09:10 -08:00
|
|
|
}
|
|
|
|
|
2018-12-26 19:55:07 -08:00
|
|
|
@Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
|
2018-07-31 16:54:41 +09:00
|
|
|
method public boolean arePermissionsIndividuallyControlled();
|
2018-12-26 19:55:07 -08:00
|
|
|
method public String getDefaultBrowserPackageNameAsUser(int);
|
|
|
|
method public int getInstallReason(String, android.os.UserHandle);
|
2018-07-31 16:54:41 +09:00
|
|
|
method public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int);
|
|
|
|
method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
|
2018-12-26 19:55:07 -08:00
|
|
|
method public String[] getNamesForUids(int[]);
|
|
|
|
method public String getPermissionControllerPackageName();
|
2019-02-11 16:29:19 -08:00
|
|
|
method public int getPermissionFlags(String, String, android.os.UserHandle);
|
2018-12-26 19:55:07 -08:00
|
|
|
method @NonNull public String getServicesSystemSharedLibraryPackageName();
|
|
|
|
method @NonNull public String getSharedSystemSharedLibraryPackageName();
|
|
|
|
method public void grantRuntimePermission(String, String, android.os.UserHandle);
|
|
|
|
method public void revokeRuntimePermission(String, String, android.os.UserHandle);
|
2019-02-11 16:29:19 -08:00
|
|
|
method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle);
|
2018-07-31 16:54:41 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|