/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
D | Utils.java | 36 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/ |
D | Utils.java | 28 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/ |
D | PackageSignatureTest.java | 52 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/ |
D | LauncherCallbackTestsService.java | 173 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/ |
D | SetPolicyActivity.java | 83 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/ |
D | MyVpnService.java | 41 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/ |
D | ModelUtil.java | 103 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()
|
D | TypePool.java | 55 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()
|
D | ITypeFactory.java | 39 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/ |
D | ApplicationInfo_DisplayNameComparatorTest.java | 51 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()
|
D | PackageStatsTest.java | 35 assertEquals(PACKAGE_NAME, stats.packageName); in testPackageStats() 57 assertEquals(expected.packageName, actual.packageName); in checkInfoSame()
|
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityManagerTest.java | 87 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/ |
D | CtsInstrumentationApkTest.java | 69 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/ |
D | DefaultManifestAttributesTest.java | 41 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/ |
D | SigClassDefinition.java | 54 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/ |
D | PackageFilter.java | 38 public boolean accept(String packageName) { in accept() argument 43 if (packageName.startsWith(filter)) { in accept()
|
D | ApiPackage.java | 89 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/ |
D | GlAppSwitchTest.java | 125 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/ |
D | ReadExternalStorageTest.java | 47 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/ |
D | Intent_ShortcutIconResourceTest.java | 60 mShortcutIconResource.packageName); in testFromContext() 73 assertEquals(mShortcutIconResource.packageName, target.packageName); in testWriteToParcel()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 88 && 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/ |
D | DexFactory.java | 43 for (String packageName : packageNames) { in loadApi() 44 if (aPackage.getName().equals(packageName)) { in loadApi()
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | EditorInfoTest.java | 44 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/ |
D | VideoPresentation.java | 55 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/ |
D | ResourceNameTest.java | 34 final String packageName = res.getResourcePackageName(R.configVarying.simple); in testGetResourceName() local 35 assertEquals("com.android.cts.content", packageName); in testGetResourceName()
|