Home
last modified time | relevance | path

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

12345678910>>...16

/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()
89 public static int getOpMode(String packageName, String opStr) in getOpMode()
112 public static boolean allowedOperationLogged(String packageName, String opStr) in allowedOperationLogged()
124 public static boolean rejectedOperationLogged(String packageName, String opStr) in rejectedOperationLogged()
135 private static String getOpState(String packageName, String opStr) throws IOException { in getOpState()
DPackageUtil.java47 public static boolean exists(String packageName) { in exists()
57 public static boolean exists(String packageName, String sha) { in exists()
70 public static boolean isSystemApp(String packageName) { in isSystemApp()
84 public static boolean isPrivilegedSystemApp(String packageName) { in isPrivilegedSystemApp()
95 public static String getVersionString(String packageName) { in getVersionString()
110 public static Long getLongVersionCode(String packageName) { in getLongVersionCode()
129 public static String computePackageSignatureDigest(String packageName) in computePackageSignatureDigest()
/cts/tests/AlarmManager/util/src/android/alarmmanager/util/
DUtils.java35 private static boolean isChangeEnabled(long changeId, String packageName, UserHandle user) { in isChangeEnabled()
46 public static void enableChange(long changeId, String packageName, int userId) { in enableChange()
60 public static void resetChange(long changeId, String packageName) { in resetChange()
64 public static int getPackageUid(String packageName) { in getPackageUid()
/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()
155 String packageName) { in getUniqueRollbackInfoForPackage()
174 public static RollbackInfo waitForAvailableRollback(String packageName) in waitForAvailableRollback()
186 public static void waitForUnavailableRollback(String packageName) throws InterruptedException { in waitForUnavailableRollback()
191 private static boolean hasRollbackInclude(List<RollbackInfo> rollbacks, String packageName) { in hasRollbackInclude()
202 Supplier<List<RollbackInfo>> supplier, String packageName) throws InterruptedException { in waitForRollbackGone()
223 public static void sendCrashBroadcast(String packageName, in sendCrashBroadcast()
240 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/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java76 String permission, int expected, String packageName, String activityName) in launchActivityAndCheckPermission()
93 String permission, int expected, String packageName, String activityName) in launchActivityAndRequestPermission()
102 String packageName, String activityName) throws Exception { in launchActivityAndRequestPermission()
130 String packageName, String activityName) { in launchActivityWithAction()
141 public static void checkPermission(String permission, int expected, String packageName) { in checkPermission()
142 checkPermission(getContext(), permission, expected, packageName); in checkPermission() local
146 String packageName) { in checkPermission()
154 private static void assertPermission(String permission, String packageName, int actual, in assertPermission()
165 public static void checkPermissionAndAppOps(String permission, int expected, String packageName) in checkPermissionAndAppOps()
167 checkPermissionAndAppOps(getContext(), permission, expected, packageName); in checkPermissionAndAppOps() local
[all …]
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java171 void clearBackupDataInTransportForUser(String packageName, String transport, int userId) in clearBackupDataInTransportForUser()
178 void clearPackageDataAsUser(String packageName, int userId) throws DeviceNotAvailableException { in clearPackageDataAsUser()
189 void uninstallPackageAsUser(String packageName, int userId) throws DeviceNotAvailableException { in uninstallPackageAsUser()
198 void installExistingPackageAsUser(String packageName, int userId) in installExistingPackageAsUser()
209 void installExistingPackageAsUserWaitTillComplete(String packageName, int userId) in installExistingPackageAsUserWaitTillComplete()
216 void checkDeviceTestAsUser(String packageName, String className, String testName, int userId) in checkDeviceTestAsUser()
DBaseBackupHostSideTest.java105 protected void checkDeviceTest(String packageName, String className, String testName) in checkDeviceTest()
111 protected void startActivityInPackageAndWait(String packageName, String className) in startActivityInPackageAndWait()
124 protected void clearBackupDataInLocalTransport(String packageName) in clearBackupDataInLocalTransport()
133 protected void clearPackageData(String packageName) throws DeviceNotAvailableException { in clearPackageData()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java61 public void setDialerRoleHolder(String packageName) in setDialerRoleHolder()
70 public void removeDialerRoleHolder(String packageName) throws Exception { in removeDialerRoleHolder()
89 private void addRoleHolder(String roleName, String packageName) throws InterruptedException { in addRoleHolder()
108 private void removeRoleHolder(String roleName, String packageName) in removeRoleHolder()
/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/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java48 final String packageName = getContext().getPackageName(); in testAllWalkingUpTreeReadOnly() local
88 final String packageName = getContext().getPackageName(); in testMountPointsNotWritable() local
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DRoleSecurityTest.java74 private void uninstallApp(String packageName) throws Exception { in uninstallApp()
78 private void runDeviceTestsAsUser(String packageName, String testClassName, in runDeviceTestsAsUser()
80 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTestsAsUser() local
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/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java115 String apkFileName, String packageName, String... options) throws Exception { in installPackageSync()
120 packageName + " should be installed."); in installPackageSync() local
140 private void disableAppCompatScalingForPackageIfNeeded(String packageName) throws Exception { in disableAppCompatScalingForPackageIfNeeded()
156 String apkFileName, String packageName, boolean instant) throws Exception { in installPossibleInstantPackage()
527 private void uninstallPackageSyncIfExists(String packageName) throws Exception { in uninstallPackageSyncIfExists()
529 uninstallPackage(getDevice(), packageName); in uninstallPackageSyncIfExists() local
530 pollingCheck(() -> !isPackageInstalled(getDevice(), packageName), PACKAGE_OP_TIMEOUT, in uninstallPackageSyncIfExists() local
531 packageName + " should be uninstalled."); in uninstallPackageSyncIfExists() local
/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/car/src/android/car/cts/
DCarWatchdogHostTest.java208 private void uploadStatsdConfig(String packageName) throws Exception { in uploadStatsdConfig()
219 private void verifyAtomIoOveruseStatsReported(String packageName, int overuseTimes) in verifyAtomIoOveruseStatsReported()
236 private void verifyAtomKillStatsReported(String packageName) in verifyAtomKillStatsReported()
281 private void overuseDiskIo(String packageName) throws Exception { in overuseDiskIo()
294 private long readForegroundBytesFromActivityDump(String packageName) throws Exception { in readForegroundBytesFromActivityDump()
337 private String fetchActivityDumpsys(String packageName) throws Exception { in fetchActivityDumpsys()
350 private void startMainActivity(String packageName) throws Exception { in startMainActivity()
/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/tests/ambientcontext/src/android/ambientcontext/cts/
DCtsAmbientContextDetectionService.java40 public void onStartDetection(AmbientContextEventRequest request, String packageName, in onStartDetection()
49 public void onStopDetection(String packageName) { in onStopDetection()
53 public void onQueryServiceStatus(int[] eventTypes, String packageName, in onQueryServiceStatus()
/cts/tests/translation/src/android/translation/cts/
DFakeTranslationStateCallback.java101 public void onStarted(ULocale sourceLocale, ULocale targetLocale, String packageName) { in onStarted()
113 public void onResumed(ULocale sourceLocale, ULocale targetLocale, String packageName) { in onResumed()
123 public void onPaused(String packageName) { in onPaused()
132 public void onFinished(String packageName) { in onFinished()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileTest.java256 private void explicitlySetInteractAcrossProfilesAppOp(String packageName, int mode) in explicitlySetInteractAcrossProfilesAppOp()
265 private boolean isPackageInstalledForUser(String packageName, UserHandle user) { in isPackageInstalledForUser()
279 String packageName, int mode, UserHandle userHandle) throws Exception { in explicitlySetInteractAcrossProfilesAppOp()
291 private int getUidForPackageName(String packageName, UserHandle userHandle) throws Exception { in getUidForPackageName()
310 private int getCrossProfileAppOp(String packageName, UserHandle userHandle) throws Exception { in getCrossProfileAppOp()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java84 public static long getInstalledVersion(String packageName) { in getInstalledVersion()
104 public static PackageInfo getPackageInfo(String packageName) { in getPackageInfo()
219 public static void processUserData(String packageName) { in processUserData()
268 public static int getUserDataVersion(String packageName) { in getUserDataVersion()
309 static boolean isSystemAppWithoutUpdate(String packageName) { in isSystemAppWithoutUpdate()
327 public static boolean isOnlyInstalledForUser(String packageName, int userIdToCheck, in isOnlyInstalledForUser()
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java94 protected Drawable getIconAsLauncher(String packageName, String shortcutId) { in getIconAsLauncher()
109 protected void assertIconDimensions(String packageName, in assertIconDimensions()
124 protected List<ShortcutInfo> getPackageShortcuts(String packageName) { in getPackageShortcuts()

12345678910>>...16