/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 80 public static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp() 102 public static void uninstallApp(@NonNull String packageName) { in uninstallApp() 113 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp() 124 public static void setAppOpByName(@NonNull String packageName, @NonNull String op, int mode) { in setAppOpByName() 140 public static boolean isPermissionGranted(@NonNull String packageName, in isPermissionGranted() 159 public static boolean isGranted(@NonNull String packageName, @NonNull String permission) in isGranted() 185 public static void grantPermission(@NonNull String packageName, @NonNull String permission) in grantPermission() 219 public static void revokePermission(@NonNull String packageName, @NonNull String permission) in revokePermission() 239 public static void clearAppState(@NonNull String packageName) { in clearAppState() 251 public static int getPermissionFlags(@NonNull String packageName, @NonNull String permission) { in getPermissionFlags() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AmUtils.java | 29 public static void runMakeUidIdle(String packageName) { in runMakeUidIdle() 34 public static void runKill(String packageName) throws Exception { in runKill() 38 public static void runKill(String packageName, boolean wait) throws Exception { in runKill() 49 private static boolean isProcessRunning(String packageName) { in isProcessRunning() 61 public static void setStandbyBucket(String packageName, int value) { in setStandbyBucket() 70 public static int getStandbyBucket(String packageName) { in getStandbyBucket()
|
D | AppOpsUtils.java | 47 public static String reset(String packageName) throws IOException { in reset() 54 public static String setOpMode(String packageName, String opStr, int mode) in setOpMode() 80 public static int getOpMode(String packageName, String opStr) in getOpMode() 103 public static boolean allowedOperationLogged(String packageName, String opStr) in allowedOperationLogged() 115 public static boolean rejectedOperationLogged(String packageName, String opStr) in rejectedOperationLogged() 126 private static String getOpState(String packageName, String opStr) throws IOException { in getOpState()
|
D | PackageUtil.java | 41 public static boolean exists(String packageName) { in exists() 51 public static boolean exists(String packageName, String sha) { in exists() 64 public static boolean isSystemApp(String packageName) { in isSystemApp() 78 public static boolean isPrivilegedSystemApp(String packageName) { in isPrivilegedSystemApp() 89 public static String getVersionString(String packageName) { in getVersionString() 105 public static String computePackageSignatureDigest(String packageName) in computePackageSignatureDigest()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | AppOpsUtils.java | 46 public static String reset(String packageName) throws IOException { in reset() 53 public static String setOpMode(String packageName, String opStr, int mode) in setOpMode() 79 public static int getOpMode(String packageName, String opStr) in getOpMode() 102 public static boolean allowedOperationLogged(String packageName, String opStr) in allowedOperationLogged() 114 public static boolean rejectedOperationLogged(String packageName, String opStr) in rejectedOperationLogged() 125 private static String getOpState(String packageName, String opStr) throws IOException { in getOpState()
|
D | AmUtils.java | 27 public static void runMakeUidIdle(String packageName) { in runMakeUidIdle() 32 public static void runKill(String packageName) throws Exception { in runKill() 36 public static void runKill(String packageName, boolean wait) throws Exception { in runKill() 47 private static boolean isProcessRunning(String packageName) { in isProcessRunning() 59 public static void setStandbyBucket(String packageName, int value) { in setStandbyBucket()
|
D | PackageUtil.java | 41 public static boolean exists(String packageName) { in exists() 51 public static boolean exists(String packageName, String sha) { in exists() 64 public static boolean isSystemApp(String packageName) { in isSystemApp() 75 public static String getVersionString(String packageName) { in getVersionString() 91 public static String computePackageSignatureDigest(String packageName) in computePackageSignatureDigest()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRoleManagerAdapter.java | 63 public void addCompanionAppRoleHolder(String packageName) in addCompanionAppRoleHolder() 75 public void removeCompanionAppRoleHolder(String packageName) throws Exception { in removeCompanionAppRoleHolder() 86 public void addAutomotiveRoleHolder(String packageName) in addAutomotiveRoleHolder() 98 public void removeAutomotiveRoleHolder(String packageName) throws Exception { in removeAutomotiveRoleHolder() 126 private void addRoleHolderToMap(String role, String packageName) { in addRoleHolderToMap() 137 private void removeRoleHolderFromMap(String role, String packageName) { in removeRoleHolderFromMap() 160 private void addRoleHolder(String roleName, String packageName) throws InterruptedException { in addRoleHolder() 178 private void removeRoleHolder(String roleName, String packageName) in removeRoleHolder()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseMultiUserBackupHostSideTest.java | 159 void clearBackupDataInTransportForUser(String packageName, String transport, int userId) in clearBackupDataInTransportForUser() 166 void clearPackageDataAsUser(String packageName, int userId) throws DeviceNotAvailableException { in clearPackageDataAsUser() 177 void uninstallPackageAsUser(String packageName, int userId) throws DeviceNotAvailableException { in uninstallPackageAsUser() 186 void installExistingPackageAsUser(String packageName, int userId) in installExistingPackageAsUser() 197 void installExistingPackageAsUserWaitTillComplete(String packageName, int userId) in installExistingPackageAsUserWaitTillComplete() 204 void checkDeviceTestAsUser(String packageName, String className, String testName, int userId) in checkDeviceTestAsUser()
|
D | BaseBackupHostSideTest.java | 106 protected void checkDeviceTest(String packageName, String className, String testName) in checkDeviceTest() 112 protected void startActivityInPackageAndWait(String packageName, String className) in startActivityInPackageAndWait() 125 protected void clearBackupDataInLocalTransport(String packageName) in clearBackupDataInLocalTransport() 134 protected void clearPackageData(String packageName) throws DeviceNotAvailableException { in clearPackageData()
|
/cts/hostsidetests/net/src/com/android/cts/net/ |
D | HostsideNetworkTestCase.java | 85 protected void uninstallPackage(String packageName, boolean shouldSucceed) in uninstallPackage() 93 protected void assertPackageUninstalled(String packageName) throws DeviceNotAvailableException, in assertPackageUninstalled() 123 protected void runDeviceTests(String packageName, String testClassName) in runDeviceTests() 128 protected void runDeviceTests(String packageName, String testClassName, String methodName) in runDeviceTests() 168 protected int getUid(String packageName) throws DeviceNotAvailableException { in getUid()
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | Utils.java | 47 public static long getInstalledVersion(String packageName) { in getInstalledVersion() 75 private static RollbackInfo getRollback(List<RollbackInfo> rollbacks, String packageName) { in getRollback() 108 public static RollbackInfo getAvailableRollback(String packageName) { in getAvailableRollback() 118 public static RollbackInfo getCommittedRollback(String packageName) { in getCommittedRollback() 137 public static void uninstall(String packageName) throws InterruptedException, IOException { in uninstall()
|
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | InputMethodServiceLifecycleTest.java | 110 String apkFileName, String packageName, String... options) throws Exception { in installPackageSync() 115 packageName + " should be installed."); in installPackageSync() local 132 String apkFileName, String packageName, boolean instant) throws Exception { in installPossibleInstantPackage() 423 private void uninstallPackageSyncIfExists(String packageName) throws Exception { in uninstallPackageSyncIfExists() 425 uninstallPackage(getDevice(), packageName); in uninstallPackageSyncIfExists() local 426 pollingCheck(() -> !isPackageInstalled(getDevice(), packageName), PACKAGE_OP_TIMEOUT, in uninstallPackageSyncIfExists() local 427 packageName + " should be uninstalled."); in uninstallPackageSyncIfExists() local
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | Utils.java | 40 public static void runDeviceTestsAsCurrentUser(ITestDevice device, String packageName, in runDeviceTestsAsCurrentUser() 46 public static void runDeviceTestsAsCurrentUser(ITestDevice device, String packageName, in runDeviceTestsAsCurrentUser() 53 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 58 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 64 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 69 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 77 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests()
|
D | BaseAppSecurityTest.java | 69 protected void runDeviceTests(String packageName, String testClassName, in runDeviceTests() 78 Utils.runDeviceTestsAsCurrentUser(getDevice(), packageName, testClassName, testMethodName, in runDeviceTests() local 82 protected boolean isAppVisibleForUser(String packageName, int userId, in isAppVisibleForUser()
|
/cts/tests/tests/batterysaving/common/src/android/os/cts/batterysaving/common/ |
D | Values.java | 37 public static ComponentName getCommReceiver(String packageName) { in getCommReceiver() 41 public static ComponentName getTestService(String packageName) { in getTestService()
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
D | Utils.java | 35 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 40 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 46 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 51 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() 59 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests()
|
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ |
D | ShortcutManagerDeviceTestBase.java | 95 protected Drawable getIconAsLauncher(String packageName, String shortcutId) { in getIconAsLauncher() 110 protected void assertIconDimensions(String packageName, in assertIconDimensions() 125 protected List<ShortcutInfo> getPackageShortcuts(String packageName) { in getPackageShortcuts()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 57 String packageName = packageInfo.packageName; in testPackageSignatures() local 126 private boolean isWhitelistedPackage(String packageName) { in isWhitelistedPackage() 164 private void writeSignature(String packageName, String fileName) in writeSignature()
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 60 String packageName = "overlay source package name"; in testSetEnabled() local 72 String packageName = "overlay source package name"; in testSetEnabledExclusiveInCategory() local
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherCallbackTest.java | 58 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() 62 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() 66 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() 80 String packageName, List<ShortcutInfo> shortcuts, UserHandle user) { in onShortcutsChanged()
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | InvalidSyncAuthoritiesHostTest.java | 75 private void runDeviceTests(String packageName, String testClassName, String testMethodName) in runDeviceTests() 77 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName); in runDeviceTests() local
|
/cts/tests/security/src/android/keystore/cts/ |
D | AttestationPackageInfo.java | 28 private final String packageName; field in AttestationPackageInfo 31 public AttestationPackageInfo(String packageName, long version) { in AttestationPackageInfo()
|
/cts/tests/tests/rcs/src/android/telephony/ims/cts/ |
D | DefaultSmsAppHelper.java | 25 String packageName = in ensureDefaultSmsApp() local
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 50 public static void enableAppOps(String packageName, String operation, in enableAppOps() 55 public static void disableAppOps(String packageName, String operation, in disableAppOps() 81 private static void setAppOps(String packageName, String operation, in setAppOps() 108 protected static void toggleNotificationPolicyAccess(String packageName, in toggleNotificationPolicyAccess()
|