Home
last modified time | relevance | path

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

123456789

/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java84 public static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp()
110 public static void uninstallApp(@NonNull String packageName) { in uninstallApp()
121 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp()
132 public static void setAppOpByName(@NonNull String packageName, @NonNull String op, int mode) { in setAppOpByName()
149 public static boolean isPermissionGranted(@NonNull String packageName, in isPermissionGranted()
168 public static boolean isGranted(@NonNull String packageName, @NonNull String permission) in isGranted()
194 public static void grantPermission(@NonNull String packageName, @NonNull String permission) in grantPermission()
230 public static void revokePermission(@NonNull String packageName, @NonNull String permission) in revokePermission()
252 public static void clearAppState(@NonNull String packageName) { in clearAppState()
264 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()
104 public static Long getLongVersionCode(String packageName) { in getLongVersionCode()
123 public static String computePackageSignatureDigest(String packageName) in computePackageSignatureDigest()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackUtils.java93 public static RollbackInfo getAvailableRollback(String packageName) { in getAvailableRollback()
103 public static RollbackInfo getCommittedRollback(String packageName) { in getCommittedRollback()
153 String packageName) { in getUniqueRollbackInfoForPackage()
172 public static RollbackInfo waitForAvailableRollback(String packageName) in waitForAvailableRollback()
184 public static void waitForUnavailableRollback(String packageName) throws InterruptedException { in waitForUnavailableRollback()
189 private static boolean hasRollbackInclude(List<RollbackInfo> rollbacks, String packageName) { in hasRollbackInclude()
200 Supplier<List<RollbackInfo>> supplier, String packageName) throws InterruptedException { in waitForRollbackGone()
221 public static void sendCrashBroadcast(String packageName, in sendCrashBroadcast()
238 private static void launchPackageForCrash(String packageName) in launchPackageForCrash()
DRollback.java41 private Rollback(String packageName, long versionCode) { in Rollback()
57 public static Rollback from(String packageName, long versionCode) { in from()
73 public Rollback to(String packageName, long versionCode) { in to()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java61 public void addCompanionAppRoleHolder(String packageName) in addCompanionAppRoleHolder()
73 public void removeCompanionAppRoleHolder(String packageName) throws Exception { in removeCompanionAppRoleHolder()
93 private void addRoleHolderToMap(String role, String packageName) { in addRoleHolderToMap()
104 private void removeRoleHolderFromMap(String role, String packageName) { in removeRoleHolderFromMap()
127 private void addRoleHolder(String roleName, String packageName) throws InterruptedException { in addRoleHolder()
145 private void removeRoleHolder(String roleName, String packageName) in removeRoleHolder()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java172 void clearBackupDataInTransportForUser(String packageName, String transport, int userId) in clearBackupDataInTransportForUser()
179 void clearPackageDataAsUser(String packageName, int userId) throws DeviceNotAvailableException { in clearPackageDataAsUser()
190 void uninstallPackageAsUser(String packageName, int userId) throws DeviceNotAvailableException { in uninstallPackageAsUser()
199 void installExistingPackageAsUser(String packageName, int userId) in installExistingPackageAsUser()
210 void installExistingPackageAsUserWaitTillComplete(String packageName, int userId) in installExistingPackageAsUserWaitTillComplete()
217 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/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DIntentsResolutionHelper.java53 public void assertMatched(String packageName, String simpleClassName) { in assertMatched()
58 public void assertNotMatched(String packageName, String simpleClassName) { in assertNotMatched()
72 private Matcher<ResolveInfo> activity(String packageName, String simpleClassName) { in activity()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileTest.java246 private void explicitlySetInteractAcrossProfilesAppOp(String packageName, int mode) in explicitlySetInteractAcrossProfilesAppOp()
255 private boolean isPackageInstalledForUser(String packageName, UserHandle user) { in isPackageInstalledForUser()
269 String packageName, int mode, UserHandle userHandle) throws Exception { in explicitlySetInteractAcrossProfilesAppOp()
277 packageName, in explicitlySetInteractAcrossProfilesAppOp() local
282 private int getUidForPackageName(String packageName, UserHandle userHandle) throws Exception { in getUidForPackageName()
301 private int getCrossProfileAppOp(String packageName, UserHandle userHandle) throws Exception { in getCrossProfileAppOp()
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideNetworkTestCase.java86 protected void uninstallPackage(String packageName, boolean shouldSucceed) in uninstallPackage()
94 protected void assertPackageUninstalled(String packageName) throws DeviceNotAvailableException, in assertPackageUninstalled()
124 protected void runDeviceTests(String packageName, String testClassName) in runDeviceTests()
129 protected void runDeviceTests(String packageName, String testClassName, String methodName) in runDeviceTests()
169 protected int getUid(String packageName) throws DeviceNotAvailableException { in getUid()
/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()
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/
DSessionInspectorTest.java71 private int createSession(String packageName) throws Exception { in createSession()
77 private PackageInstaller.SessionInfo getSessionInfo(String packageName, int session) in getSessionInfo()
85 private void abandonSession(String packageName, int sessionId) throws Exception { in abandonSession()
/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()
460 private void uninstallPackageSyncIfExists(String packageName) throws Exception { in uninstallPackageSyncIfExists()
462 uninstallPackage(getDevice(), packageName); in uninstallPackageSyncIfExists() local
463 pollingCheck(() -> !isPackageInstalled(getDevice(), packageName), PACKAGE_OP_TIMEOUT, in uninstallPackageSyncIfExists() local
464 packageName + " should be uninstalled."); in uninstallPackageSyncIfExists() local
/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/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java75 public static long getInstalledVersion(String packageName) { in getInstalledVersion()
135 public static PackageInfo getPackageInfo(String packageName) { in getPackageInfo()
218 public static void processUserData(String packageName) { in processUserData()
267 public static int getUserDataVersion(String packageName) { in getUserDataVersion()
308 static boolean isSystemAppWithoutUpdate(String packageName) { in isSystemAppWithoutUpdate()
326 public static boolean isOnlyInstalledForUser(String packageName, int userIdToCheck, in isOnlyInstalledForUser()
/cts/tests/tests/packagewatchdog/src/android/packagewatchdog/cts/
DExplicitHealthCheckServiceTest.java64 public void onRequestHealthCheck(String packageName) { in onRequestHealthCheck()
69 public void onCancelHealthCheck(String packageName) { in onCancelHealthCheck()
/cts/tests/tests/appenumeration/app/source/src/android/appenumeration/cts/query/
DTestActivity.java88 final String packageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
91 final String packageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
138 final String packageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
142 final String packageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
156 private void awaitPackageBroadcast(RemoteCallback remoteCallback, String packageName, in awaitPackageBroadcast()
258 private void sendPackageInfo(RemoteCallback remoteCallback, String packageName) { in sendPackageInfo()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java58 String packageName = packageInfo.packageName; in testPackageSignatures() local
158 private boolean isWhitelistedPackage(String packageName) { in isWhitelistedPackage()
196 private void writeSignature(String packageName, String fileName) in writeSignature()
/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/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/
DExternalSourcesInstantAppsTest.kt31 private val packageName = InstrumentationRegistry.getTargetContext().packageName constant in android.packageinstaller.install_appop_denied.cts.ExternalSourcesInstantAppsTest
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DExternalSourcesInstantAppsTest.kt31 private val packageName = InstrumentationRegistry.getTargetContext().packageName constant
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/
DExternalSourcesInstantAppsTest.kt31 private val packageName = InstrumentationRegistry.getTargetContext().packageName constant in android.packageinstaller.install_appop_default.cts.ExternalSourcesInstantAppsTest

123456789