Home
last modified time | relevance | path

Searched refs:packageName (Results 1 – 25 of 88) sorted by relevance

1234

/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/
DUtils.java36 public static void runDeviceTests(ITestDevice device, String packageName) in runDeviceTests() argument
38 runDeviceTests(device, packageName, null, null, USER_OWNER); in runDeviceTests()
41 public static void runDeviceTests(ITestDevice device, String packageName, int userId) in runDeviceTests() argument
43 runDeviceTests(device, packageName, null, null, userId); in runDeviceTests()
46 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName) in runDeviceTests() argument
48 runDeviceTests(device, packageName, testClassName, null, USER_OWNER); in runDeviceTests()
51 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
53 runDeviceTests(device, packageName, testClassName, null, userId); in runDeviceTests()
56 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
58 runDeviceTests(device, packageName, testClassName, testMethodName, USER_OWNER); in runDeviceTests()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DUtils.java28 public static void enableAppOps(String packageName, String operation, in enableAppOps() argument
30 setAppOps(packageName, operation, instrumentation, true); in enableAppOps()
33 public static void disableAppOps(String packageName, String operation, in disableAppOps() argument
35 setAppOps(packageName, operation, instrumentation, false); in disableAppOps()
44 private static void setAppOps(String packageName, String operation, in setAppOps() argument
48 cmd.append(packageName); in setAppOps()
56 query.append(packageName); in setAppOps()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java52 String packageName = packageInfo.packageName; in testPackageSignatures() local
53 if (packageName != null && !isWhitelistedPackage(packageName)) { in testPackageSignatures()
56 badPackages.add(packageInfo.packageName); in testPackageSignatures()
109 private boolean isWhitelistedPackage(String packageName) { in isWhitelistedPackage() argument
112 return packageName.startsWith("com.android.cts") in isWhitelistedPackage()
113 || WHITELISTED_PACKAGES.contains(packageName); in isWhitelistedPackage()
147 private void writeSignature(String packageName, String fileName) in writeSignature() argument
150 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in writeSignature()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java173 String packageName = params.getString(PACKAGE_EXTRA); in eventExists() local
174 Log.i(TAG, "checking for " + packageName + " " + user); in eventExists()
178 if (event.first.equals(packageName) && event.second.equals(user)) { in eventExists()
179 Log.i(TAG, "Event exists " + packageName + " for user " + user); in eventExists()
196 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument
197 Log.i(TAG, "package removed event " + packageName + " " + user); in onPackageRemoved()
199 mPackagesRemoved.put(new Pair(packageName, user)); in onPackageRemoved()
205 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() argument
206 Log.i(TAG, "package added event " + packageName + " " + user); in onPackageAdded()
208 mPackagesAdded.put(new Pair(packageName, user)); in onPackageAdded()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DSetPolicyActivity.java83 String packageName = intent.getStringExtra(EXTRA_PACKAGE_NAME); in handleIntent() local
85 packageName); in handleIntent()
86 Log.i(TAG, "Added cross-profile widget provider for package:" + packageName in handleIntent()
89 String packageName = intent.getStringExtra(EXTRA_PACKAGE_NAME); in handleIntent() local
91 packageName); in handleIntent()
92 Log.i(TAG, "Removed cross-profile widget provider for package:" + packageName in handleIntent()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyVpnService.java41 String packageName = getPackageName(); in onStartCommand() local
42 String cmd = intent.getStringExtra(packageName + ".cmd"); in onStartCommand()
46 start(packageName, intent); in onStartCommand()
52 private void start(String packageName, Intent intent) { in start() argument
55 String addresses = intent.getStringExtra(packageName + ".addresses"); in start()
71 String routes = intent.getStringExtra(packageName + ".routes"); in start()
87 String allowed = intent.getStringExtra(packageName + ".allowedapplications"); in start()
102 String disallowed = intent.getStringExtra(packageName + ".disallowedapplications"); in start()
/cts/tools/signature-tools/src/signature/model/util/
DModelUtil.java103 public static IPackage getPackage(IApi api, String packageName) { in getPackage() argument
105 if (packageName.equals(aPackage.getName())) { in getPackage()
120 String packageName = null; in getPackageName() local
122 packageName = ""; in getPackageName()
124 packageName = classIdentifier.substring(0, lastIndexOfSlash); in getPackageName()
126 return packageName; in getPackageName()
DTypePool.java55 public SigClassDefinition getClass(String packageName, String className) { in getClass() argument
56 String key = packageName + "<>" + className; in getClass()
59 clazz = new SigClassDefinition(packageName, className); in getClass()
65 public IClassReference getClassReference(String packageName, in getClassReference() argument
67 return new SigClassReference(getClass(packageName, className)); in getClassReference()
DITypeFactory.java39 public SigClassDefinition getClass(String packageName, String className); in getClass() argument
41 public IClassReference getClassReference(String packageName, in getClassReference() argument
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfo_DisplayNameComparatorTest.java51 info1.packageName = PACKAGE_NAME; in testCompare()
52 info2.packageName = PACKAGE_NAME; in testCompare()
56 info2.packageName = PACKAGE_NAME + ".2"; in testCompare()
60 info1.packageName = PACKAGE_NAME + ".1"; in testCompare()
DPackageStatsTest.java35 assertEquals(PACKAGE_NAME, stats.packageName); in testPackageStats()
57 assertEquals(expected.packageName, actual.packageName); in checkInfoSame()
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java87 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
91 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
110 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
114 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
132 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForType()
148 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetAccessibilityServiceList()
152 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) in testGetAccessibilityServiceList()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DCtsInstrumentationApkTest.java69 public void addInstallApk(String apkFileName, String packageName) { in addInstallApk() argument
71 mUninstallPackages.add(packageName); in addInstallApk()
112 for (String packageName : mUninstallPackages) { in run()
113 Log.d(LOG_TAG, String.format("Uninstalling %s on %s", packageName, in run()
115 testDevice.uninstallPackage(packageName); in run()
/cts/tests/tests/dpi/src/android/dpi/cts/
DDefaultManifestAttributesTest.java41 protected String packageName; field in DefaultManifestAttributesTest
54 packageName = getPackageName(); in setUp()
58 appInfo = pm.getApplicationInfo(packageName, 0); in setUp()
/cts/tools/signature-tools/src/signature/model/impl/
DSigClassDefinition.java54 private String packageName; field in SigClassDefinition
56 public SigClassDefinition(String packageName, String name) { in SigClassDefinition() argument
57 this.packageName = packageName; in SigClassDefinition()
74 return packageName; in getPackageName()
78 return Arrays.asList(packageName.split("\\.")); in getPackageFragments()
82 return packageName + "." + name; in getQualifiedName()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DPackageFilter.java38 public boolean accept(String packageName) { in accept() argument
43 if (packageName.startsWith(filter)) { in accept()
DApiPackage.java89 String packageName = superClassName.substring(0, superClassName.lastIndexOf('.')); in resolveSuperClasses() local
92 if (packageMap.containsKey(packageName)) { in resolveSuperClasses()
93 ApiPackage apiPackage = packageMap.get(packageName); in resolveSuperClasses()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlAppSwitchTest.java125 String packageName = info.baseActivity.getPackageName(); in setReplicaIslandTask() local
126 if (packageName.contentEquals(REPLICA_ISLAND_PACKAGE)) { in setReplicaIslandTask()
140 String packageName = info.baseActivity.getPackageName(); in isReplicaIslandRunning() local
141 if (packageName.contentEquals(REPLICA_ISLAND_PACKAGE)) { in isReplicaIslandRunning()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java47 final String packageName = getContext().getPackageName(); in testAllWalkingUpTreeReadOnly() local
54 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeReadOnly()
57 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeReadOnly()
/cts/tests/tests/content/src/android/content/cts/
DIntent_ShortcutIconResourceTest.java60 mShortcutIconResource.packageName); in testFromContext()
73 assertEquals(mShortcutIconResource.packageName, target.packageName); in testWriteToParcel()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTelecomAvailabilityTest.java88 && TELECOM_PACKAGE_NAME.equals(resolveInfo.activityInfo.packageName)) { in testTelecomHandlesCallIntents()
91 && TELEPHONY_PACKAGE_NAME.equals(resolveInfo.activityInfo.packageName)) { in testTelecomHandlesCallIntents()
120 if (TELECOM_PACKAGE_NAME.equals(info.packageName)) { in findMatchingPackages()
/cts/tools/signature-tools/src/signature/converter/dex/
DDexFactory.java43 for (String packageName : packageNames) { in loadApi()
44 if (aPackage.getName().equals(packageName)) { in loadApi()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DEditorInfoTest.java44 info.packageName = "com.android.cts.view"; in testEditorInfo()
67 assertEquals(info.packageName, targetInfo.packageName); in testEditorInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/video/
DVideoPresentation.java55 String packageName = getContext().getPackageName(); in onCreate() local
56 Uri uri = Uri.parse("android.resource://" + packageName + "/" + R.raw.test_video); in onCreate()
/cts/tests/tests/content/src/android/content/res/cts/
DResourceNameTest.java34 final String packageName = res.getResourcePackageName(R.configVarying.simple); in testGetResourceName() local
35 assertEquals("com.android.cts.content", packageName); in testGetResourceName()

1234