Home
last modified time | relevance | path

Searched defs:packageName (Results 1 – 25 of 169) sorted by relevance

1234567

/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java80 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/
DAmUtils.java29 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()
DAppOpsUtils.java47 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()
DPackageUtil.java41 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/
DAppOpsUtils.java46 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()
DAmUtils.java27 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()
DPackageUtil.java41 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/
DCtsRoleManagerAdapter.java63 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/
DBaseMultiUserBackupHostSideTest.java159 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()
DBaseBackupHostSideTest.java106 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/
DHostsideNetworkTestCase.java85 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/
DUtils.java47 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/
DInputMethodServiceLifecycleTest.java110 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/
DUtils.java40 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()
DBaseAppSecurityTest.java69 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/
DValues.java37 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/
DUtils.java35 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/
DShortcutManagerDeviceTestBase.java95 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/
DPackageSignatureTest.java57 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/
DOverlayManagerTest.java60 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/
DShortcutManagerLauncherCallbackTest.java58 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/
DInvalidSyncAuthoritiesHostTest.java75 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/
DAttestationPackageInfo.java28 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/
DDefaultSmsAppHelper.java25 String packageName = in ensureDefaultSmsApp() local
/cts/tests/tests/media/src/android/media/cts/
DUtils.java50 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()

1234567