Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 83) sorted by relevance

1234

/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/
DJvmtiAttachingHostTest.java71 public void run(ITestDevice device, String pkg, String apk, String abiName); in run() argument
86 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { in testJvmtiAttachDuringBind() argument
88 runAttachTestCmd(device, pkg, "--attach-agent-bind " + AGENT); in testJvmtiAttachDuringBind()
96 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { in testJvmtiAttachEarly() argument
99 "run-as " + pkg + " --user " + mCurrentUser + " pwd"); in testJvmtiAttachEarly()
113 installLibToDataData(device, pkg, abiName, apk, pwd, AGENT, in testJvmtiAttachEarly()
115 runAttachTestCmd(device, pkg, "--attach-agent " + agentInDataData); in testJvmtiAttachEarly()
123 runJvmtiAgentLoadTest((ITestDevice device, String pkg, String apk, String abiName) -> { in testJvmtiAgentStartupAgents() argument
126 startup_dir = getPwd(device, pkg) + "/" + STARTUP_AGENT_DIR; in testJvmtiAgentStartupAgents()
128 "run-as " + pkg + " --user " + mCurrentUser + " mkdir -p " + startup_dir); in testJvmtiAgentStartupAgents()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java90 for (PackageInfo pkg : allPackages) { in collectDeviceInfo()
92 store.addResult(NAME, pkg.packageName); in collectDeviceInfo()
93 store.addResult(VERSION_NAME, pkg.versionName); in collectDeviceInfo()
95 collectPermissions(store, pm, pkg); in collectDeviceInfo()
96 collectionApplicationInfo(store, pm, pkg); in collectDeviceInfo()
99 defaultNotificationListeners.contains(pkg.packageName)); in collectDeviceInfo()
101 store.addResult(IS_ACTIVE_ADMIN, deviceAdminPackages.contains(pkg.packageName)); in collectDeviceInfo()
105 isDefaultAccessibilityComponent = pkg.packageName.equals( in collectDeviceInfo()
111 String sha256_cert = PackageUtil.computePackageSignatureDigest(pkg.packageName); in collectDeviceInfo()
121 PackageInfo pkg) throws IOException in collectPermissions() argument
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DProcStatsValidationTests.java301 …for (ProcessStatsPackageProto pkg : d.getProcStats().getProcStatsSection().getPackageStatsList()) {
302 if (pkg.getPackage().equals(statsdPkgName)) {
304 LogUtil.CLog.d(pkg.toString());
305 for (ProcessStatsProto process : pkg.getProcessStatsList()) {
326 for (ProcessStatsPackageProto pkg : processStatsPackageProtoList) {
327 if (pkg.getPackage().equals(statsdPkgName)) {
329 LogUtil.CLog.d(pkg.toString());
330 for (ProcessStatsProto process : pkg.getProcessStatsList()) {
408 …for (ProcessStatsPackageProto pkg : d.getProcStatsPkgProc().getProcStatsSection().getPackageStatsL… in testProcStatsPkgProcStats()
409 if (pkg.getPackage().equals(statsdPkgName)) { in testProcStatsPkgProcStats()
[all …]
DBatteryStatsValidationTests.java153 for (Package pkg : uidProto.getPackagesList()) { in testServiceStartCount()
154 if (pkg.getName().equals(DEVICE_SIDE_TEST_PACKAGE)) { in testServiceStartCount()
155 for (Service svc : pkg.getServicesList()) { in testServiceStartCount()
197 for (Package pkg : uidProto.getPackagesList()) { in testServiceLaunchCount()
198 if (pkg.getName().equals(DEVICE_SIDE_TEST_PACKAGE)) { in testServiceLaunchCount()
199 for (Service svc : pkg.getServicesList()) { in testServiceLaunchCount()
/cts/tests/app/src/android/app/cts/
DConditionTest.java88 String pkg = this.getClass().getPackage().toString(); in testIsValidId_noScheme() local
89 Uri uri = new Uri.Builder().authority(pkg).build(); in testIsValidId_noScheme()
90 assertFalse(Condition.isValidId(uri, pkg)); in testIsValidId_noScheme()
94 String pkg = this.getClass().getPackage().toString(); in testIsValidId_wrongAuthority() local
95 Uri uri = new Uri.Builder().authority(pkg).scheme(Condition.SCHEME).build(); in testIsValidId_wrongAuthority()
100 String pkg = this.getClass().getPackage().toString(); in testIsValidId() local
101 Uri uri = new Uri.Builder().authority(pkg).scheme(Condition.SCHEME).build(); in testIsValidId()
102 assertTrue(Condition.isValidId(uri, pkg)); in testIsValidId()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiCoverage.java31 public void addPackage(ApiPackage pkg) { in addPackage() argument
32 mPackages.put(pkg.getName(), pkg); in addPackage() local
46 ApiPackage pkg = entry.getValue(); in resolveSuperClasses() local
47 pkg.resolveSuperClasses(mPackages); in resolveSuperClasses()
DXmlReport.java62 for (ApiPackage pkg : packages) { in printXmlReport()
63 if (packageFilter.accept(pkg.getName()) && pkg.getTotalMethods() > 0) { in printXmlReport()
64 int pkgTotal = pkg.getTotalMethods(); in printXmlReport()
66 int pkgTotalCovered = pkg.getNumCoveredMethods(); in printXmlReport()
68 out.println("<package name=\"" + pkg.getName() in printXmlReport()
72 + Math.round(pkg.getCoveragePercentage()) in printXmlReport()
75 List<ApiClass> classes = new ArrayList<ApiClass>(pkg.getClasses()); in printXmlReport()
DTestCaseReport.java191 for (String pkg : pkgList) { in isTargetClass()
192 if (className.startsWith(pkg)) { in isTargetClass()
491 for (TestSuite.Package pkg : ts.getPackagesList()) { in printTestSuite()
492 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in printTestSuite()
497 pkg.getName(), in printTestSuite()
504 pkg.getName(), in printTestSuite()
526 for (TestSuite.Package pkg : ts.getPackagesList()) { in printTestSuiteSummary()
529 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in printTestSuiteSummary()
534 pkg.getName(), in printTestSuiteSummary()
545 "%s,%s,%d,%s,%d\n", pkg.getName(), methodCnt, i++, pkg.getType(), classCnt); in printTestSuiteSummary()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DExternalStorageHostTest.java52 public final String pkg; field in ExternalStorageHostTest.Config
55 public Config(String apk, String pkg, String clazz) { in Config() argument
57 this.pkg = pkg; in Config()
489 updatePermissions(config.pkg, user, new String[] { in doMediaSandboxed()
493 updatePermissions(MEDIA_FULL.pkg, user, new String[] { in doMediaSandboxed()
500 runDeviceTests(MEDIA_FULL.pkg, MEDIA_FULL.clazz, "testStageFiles", user); in doMediaSandboxed()
503 runDeviceTests(config.pkg, config.clazz, "testSandboxed", user); in doMediaSandboxed()
505 runDeviceTests(config.pkg, config.clazz, "testNotSandboxed", user); in doMediaSandboxed()
508 runDeviceTests(MEDIA_FULL.pkg, MEDIA_FULL.clazz, "testClearFiles", user); in doMediaSandboxed()
528 updatePermissions(config.pkg, user, new String[] { in doMediaNone()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DProviderPermissionTest.java242 for (PackageInfo pkg : pkgs) { in testWriteMediaStorage()
243 final boolean isSystem = pkg.applicationInfo.uid == android.os.Process.SYSTEM_UID; in testWriteMediaStorage()
244 final boolean hasFrontDoor = pm.getLaunchIntentForPackage(pkg.packageName) != null; in testWriteMediaStorage()
246 pkg.packageName) == PackageManager.PERMISSION_GRANTED; in testWriteMediaStorage()
249 final boolean requestsStorage = contains(pkg.requestedPermissions, in testWriteMediaStorage()
252 fail("Found " + pkg.packageName + " holding WRITE_MEDIA_STORAGE permission " in testWriteMediaStorage()
258 pkg.packageName) == PackageManager.PERMISSION_GRANTED; in testWriteMediaStorage()
263 flags = pm.getPermissionFlags(WRITE_EXTERNAL_STORAGE, pkg.packageName, in testWriteMediaStorage()
273 fail("Found " + pkg.packageName + " holding WRITE_EXTERNAL_STORAGE in a " in testWriteMediaStorage()
DShellPermissionTest.java68 String pkg = pkgs[0]; in testBlacklistedPermissions() local
70 final PackageInfo packageInfo = pm.getPackageInfo(pkg, PackageManager.GET_PERMISSIONS); in testBlacklistedPermissions()
71 assertNotNull("No permissions found for " + pkg, packageInfo.requestedPermissions); in testBlacklistedPermissions()
74 Log.d(LOG_TAG, "SHELL as " + pkg + " uses permission " + permission); in testBlacklistedPermissions()
75 assertFalse("SHELL as " + pkg + " contains the illegal permission " + permission, in testBlacklistedPermissions()
DAppIdleStatePermissionTest.java54 for (PackageInfo pkg : holding) { in testChangeAppIdleStatePermission()
55 int uid = pm.getApplicationInfo(pkg.packageName, 0).uid; in testChangeAppIdleStatePermission()
57 pkgNames += pkg.packageName + "\n"; in testChangeAppIdleStatePermission()
DRemovePermissionTest.java91 private void uninstallApp(String pkg) throws InterruptedException { in uninstallApp() argument
93 "pm uninstall " + pkg); in uninstallApp()
100 private void grantPermission(String pkg, String permission) { in grantPermission() argument
102 pkg, permission); in grantPermission()
/cts/libs/helpers/core/src/com/android/cts/helpers/
DDeviceInteractionHelperRule.java166 for (String pkg : searchPath.split(":")) { in buildPackageList()
167 if (pkg.isEmpty()) { in buildPackageList()
173 info = pm.getApplicationInfo(pkg, PackageManager.GET_META_DATA); in buildPackageList()
175 Log.w(LOG_TAG, String.format("Unable to find helper package %s", pkg)); in buildPackageList()
178 mLoadPackages.add(pkg); in buildPackageList()
182 Log.w(LOG_TAG, String.format("Helper apk %s is missing meta-data.", pkg)); in buildPackageList()
187 Log.w(LOG_TAG, String.format("Helper apk %s does not set a class prefix", pkg)); in buildPackageList()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java470 private void testSmsAccessAboutDefaultApp(String pkg) in testSmsAccessAboutDefaultApp() argument
473 assertNotEquals(pkg, originalSmsApp); in testSmsAccessAboutDefaultApp()
474 assertCanAccessSms(pkg); in testSmsAccessAboutDefaultApp()
476 setSmsApp(pkg); in testSmsAccessAboutDefaultApp()
477 assertCanAccessSms(pkg); in testSmsAccessAboutDefaultApp()
479 resetReadWriteSmsAppOps(pkg); in testSmsAccessAboutDefaultApp()
484 private void resetReadWriteSmsAppOps(String pkg) throws Exception { in resetReadWriteSmsAppOps() argument
485 setModeForOps(pkg, AppOpsManager.MODE_DEFAULT, in resetReadWriteSmsAppOps()
489 private void setModeForOps(String pkg, int mode, String... ops) throws Exception { in setModeForOps() argument
493 int uid = getPackageUid(pkg); in setModeForOps()
[all …]
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java104 for (PackageInfo pkg : installedPackages) { in privappPermissionsNeedToBeWhitelisted()
105 String packageName = pkg.packageName; in privappPermissionsNeedToBeWhitelisted()
106 if (!pkg.applicationInfo.isPrivilegedApp() in privappPermissionsNeedToBeWhitelisted()
126 if (pkg.requestedPermissions != null) { in privappPermissionsNeedToBeWhitelisted()
127 for (int i = 0; i < pkg.requestedPermissions.length; i++) { in privappPermissionsNeedToBeWhitelisted()
128 String permission = pkg.requestedPermissions[i]; in privappPermissionsNeedToBeWhitelisted()
131 (pkg.requestedPermissionsFlags[i] & REQUESTED_PERMISSION_GRANTED) in privappPermissionsNeedToBeWhitelisted()
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsPanelTest.java90 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in cleanUp()
201 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in internetPanel_seeMoreButton_launchesIntoSettings()
285 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchPanel()
293 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in launchPanel()
299 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in pressDone()
307 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in pressSeeMore()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DHevcYuv420BitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun, boolean enforce) { in HevcYuv420BitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun, enforce); in HevcYuv420BitstreamsTest()
DH264Yuv420_8bitBpBitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun, boolean enforce) { in H264Yuv420_8bitBpBitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun, enforce); in H264Yuv420_8bitBpBitstreamsTest()
DVp9Yuv420BitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun, boolean enforce) { in Vp9Yuv420BitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun, enforce); in Vp9Yuv420BitstreamsTest()
DVp8BitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun, boolean enforce) { in Vp8BitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun, enforce); in Vp8BitstreamsTest()
DH264Yuv420_8bitHpBitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun, boolean enforce) { in H264Yuv420_8bitHpBitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun, enforce); in H264Yuv420_8bitHpBitstreamsTest()
DH264Yuv420_8bitMpBitstreamsTest.java32 BitstreamPackage pkg, BitstreamPackage packageToRun, boolean enforce) { in H264Yuv420_8bitMpBitstreamsTest() argument
33 super(prefix, path, pkg, packageToRun, enforce); in H264Yuv420_8bitMpBitstreamsTest()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DBroadcastTestBase.java137 String pkg, String cls) throws Exception { in startTestAndWaitForBroadcast() argument
140 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast() local
179 String pkg, String cls) in startTestAndWaitForChange() argument
188 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForChange() local
/cts/hostsidetests/incident/src/com/android/server/cts/
DPackageIncidentTest.java67 for (PackageProto pkg : dump.getPackagesList()) { in testPackageServiceDump()
68 if (pkg.getName().equals(DEVICE_SIDE_TEST_PACKAGE)) { in testPackageServiceDump()
69 testPackage = pkg; in testPackageServiceDump()

1234