/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ListInstrumentationParser.java | 57 public final String packageName; field in ListInstrumentationParser.InstrumentationTarget 61 public InstrumentationTarget(String packageName, String runnerName, String targetName) { in InstrumentationTarget() argument 62 this.packageName = packageName; in InstrumentationTarget() 74 return Objects.equals(this.packageName, that.packageName) in equals() 86 return Objects.hash(packageName, runnerName, targetName); in hashCode() 94 if (!this.packageName.equals(o.packageName)) { in compareTo() 95 return this.packageName.compareTo(o.packageName); in compareTo() 108 packageName, runnerName, targetName); in toString()
|
D | AppVersionFetcher.java | 54 public static String fetch(ITestDevice device, String packageName, AppVersionInfo info) in fetch() argument 58 return fetchVersionCode(device, packageName); in fetch() 60 return fetchVersionName(device, packageName); in fetch() 66 private static String fetchVersionName(ITestDevice device, String packageName) in fetchVersionName() argument 69 String.format("%s %s | grep versionName=", DUMP_PACKAGE_COMMAND, packageName); in fetchVersionName() 74 private static String fetchVersionCode(ITestDevice device, String packageName) in fetchVersionCode() argument 77 String.format("%s %s | grep versionCode=", DUMP_PACKAGE_COMMAND, packageName); in fetchVersionCode()
|
D | TestFilterHelper.java | 217 public boolean shouldRun(String packageName, Class<?> classObj, Method method) { in shouldRun() argument 220 if (!shouldRunFilter(packageName, className, methodName)) { in shouldRun() 243 || mIncludeFilters.contains(packageName); in shouldRun() 274 String packageName = classObj.getPackage().getName(); in shouldRun() local 277 if (!shouldRunFilter(packageName, className, methodName)) { in shouldRun() 286 || mIncludeFilters.contains(packageName); in shouldRun() 296 private boolean shouldRunFilter(String packageName, String className, String methodName) { in shouldRunFilter() argument 297 if (mExcludeFilters.contains(packageName)) { in shouldRunFilter()
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | DumpsysPackageStatsParser.java | 45 String packageName = null; in parse() local 52 packageName = m.group(1); in parse() 65 if (packageName != null && versionCode != null) { in parse() 67 packageName, in parse() 70 packageName = null; in parse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationSerialTestTest.java | 69 final String packageName = "com.foo"; in testRun() local 77 listener.testRunStarted(packageName, 1); in testRun() 87 mockITest.setPackageName(packageName); in testRun() 97 mMockListener.testRunStarted(packageName, 0, 1); in testRun() 117 final String packageName = "com.foo"; in testRun_runFailure() local 126 listener.testRunStarted(packageName, 1); in testRun_runFailure() 134 mockITest.setPackageName(packageName); in testRun_runFailure() 144 mMockListener.testRunStarted(packageName, 0); in testRun_runFailure() 146 mMockListener.testRunStarted(packageName, 0, 1); in testRun_runFailure() 148 mMockListener.testRunStarted(packageName, 0, 2); in testRun_runFailure() [all …]
|
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/ |
D | IsolationFilter.java | 69 String packageName = getPackageName(desc); in checkFilters() local 72 return this.checkIncludeFilters(packageName, className, methodName) in checkFilters() 73 && this.checkExcludeFilters(packageName, className, methodName); in checkFilters() 82 private boolean checkIncludeFilters(String packageName, String className, String methodName) { in checkIncludeFilters() argument 86 || mIncludeFilters.contains(packageName); in checkIncludeFilters() 89 private boolean checkExcludeFilters(String packageName, String className, String methodName) { in checkExcludeFilters() argument 92 || mExcludeFilters.contains(packageName)); in checkExcludeFilters()
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
D | LocationDumpsItem.java | 67 public LocationInfoItem(String packageName, int effective, int min, int max, in LocationInfoItem() argument 70 setAttribute(PACKAGE, packageName); in LocationInfoItem() 132 public void addLocationClient(String packageName, int effective, int min, int max, in addLocationClient() argument 134 mLocationClients.add(new LocationInfoItem(packageName, effective, min, max, priority, in addLocationClient()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | InstallAllTestZipAppsSetup.java | 220 String packageName = getAppPackageName(appFile); in addApkToInstalledList() local 221 if (packageName == null) { in addApkToInstalledList() 225 mPackagesInstalled.add(packageName); in addApkToInstalledList() 251 for (String packageName : mPackagesInstalled) { in tearDown() 252 String msg = device.uninstallPackage(packageName); in tearDown() 254 CLog.w(String.format("error uninstalling package '%s': %s", packageName, msg)); in tearDown()
|
D | AllTestAppsInstallSetup.java | 208 for (String packageName : mPackagesInstalled) { in tearDown() 209 String msg = device.uninstallPackage(packageName); in tearDown() 212 packageName, msg)); in tearDown()
|
D | InstrumentationPreparer.java | 168 void setPackageName(String packageName) { in setPackageName() argument 169 mPackageName = packageName; in setPackageName()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | AppIncrementalInstallTest.java | 146 String packageName = parser.getPackageName(); in installAndTime() local 147 if (packageName == null || packageName.length() == 0) { in installAndTime() 185 CLog.d("Uninstalling: %s", packageName); in installAndTime() 186 mDevice.uninstallPackage(packageName); in installAndTime()
|
D | AppInstallTest.java | 173 String packageName = parser.getPackageName(); in installAndTime() local 234 if (mUninstallAfter && packageName != null) { in installAndTime() 235 CLog.d("Uninstalling: %s", packageName); in installAndTime() 236 mDevice.uninstallPackage(packageName); in installAndTime()
|
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | ApkInfo.java | 75 String packageName, in ApkInfo() argument 86 checkNotNull(packageName, Field.PACKAGE_NAME.getTag()); in ApkInfo() 91 this.mPackageName = packageName; in ApkInfo()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | InstrumentationPreparerTest.java | 66 final String packageName = "packageName"; in testRun() local 72 listener.testRunStarted(packageName, 1); in testRun() 91 final String packageName = "packageName"; in testRun_testFailed() local 97 listener.testRunStarted(packageName, 1); in testRun_testFailed()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/ |
D | DefaultRemoteAndroidTestRunner.java | 33 String packageName, String runnerName, IShellEnabledDevice remoteDevice) { in DefaultRemoteAndroidTestRunner() argument 34 super(packageName, runnerName, remoteDevice); in DefaultRemoteAndroidTestRunner()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ListInstrumentationParserTest.java | 119 actualTarget.packageName, actualTarget.runnerName, actualTarget.targetName)); in validateInstrumentationTargets() 130 return Objects.equals(expected.packageName, actual.packageName) && in areTargetsEqual()
|
/tools/tradefederation/contrib/src/com/android/scenario/ |
D | AppSetup.java | 74 for (String packageName : mAppsToKillWhenFinished) { in run() 75 getDevice().executeShellCommand(String.format(KILL_APP_COMMAND_TEMPLATE, packageName)); in run()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | ITestDevice.java | 216 public String uninstallPackage(String packageName) throws DeviceNotAvailableException; in uninstallPackage() argument 590 public boolean isPackageInstalled(String packageName) throws DeviceNotAvailableException; in isPackageInstalled() argument 602 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument 629 public PackageInfo getAppPackageInfo(String packageName) throws DeviceNotAvailableException; in getAppPackageInfo() argument
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 357 public String uninstallPackage(final String packageName) throws DeviceNotAvailableException { in uninstallPackage() argument 363 CLog.d("Uninstalling %s", packageName); in uninstallPackage() 364 String result = getIDevice().uninstallPackage(packageName); in uninstallPackage() 369 performDeviceAction(String.format("uninstall %s", packageName), uninstallAction, in uninstallPackage() 998 public boolean isPackageInstalled(String packageName) throws DeviceNotAvailableException { in isPackageInstalled() argument 999 return getInstalledPackageNames(packageName, null).contains(packageName); in isPackageInstalled() 1004 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument 1006 return getInstalledPackageNames(packageName, userId).contains(packageName); in isPackageInstalled() 1093 public PackageInfo getAppPackageInfo(String packageName) throws DeviceNotAvailableException { in getAppPackageInfo() argument 1096 return action.mPkgInfoMap.get(packageName); in getAppPackageInfo() [all …]
|
/tools/platform-compat/java/android/processor/compat/changeid/ |
D | ChangeIdProcessor.java | 171 private Change createChange(String packageName, String enclosingElementName, Element element) { in createChange() argument 208 .javaPackage(packageName) in createChange() 209 .qualifiedClass(packageName + "." + enclosingElementName) in createChange()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparer.java | 359 String packageName = in installTrain() local 361 mApkInstalled.add(packageName); in installTrain() 379 String packageName = parsePackageName(moduleFile, device.getDeviceDescriptor()); in installTrain() local 380 apkPackageNames.add(packageName); in installTrain() 535 protected String getModuleKeywordFromApexPackageName(String packageName) { in getModuleKeywordFromApexPackageName() argument 536 String[] components = packageName.split("\\."); in getModuleKeywordFromApexPackageName()
|
/tools/ndkports/src/main/kotlin/com/android/ndkports/ |
D | PrefabPackageBuilder.kt | 54 private val packageName = packageComponents.joinToString(".") in <lambda>() constant in com.android.ndkports.PrefabPackageBuilder 173 "package" to packageName, in <lambda>()
|
/tools/platform-compat/java/android/processor/compat/ |
D | SingleAnnotationProcessor.java | 192 String packageName = elements.getPackageOf(element).toString(); in getEnclosingElementName() local 193 return fullQualifiedName.substring(packageName.length() + 1); in getEnclosingElementName()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/ |
D | BaseHostJUnit4Test.java | 779 String packageName, String runnerName, ITestDevice device) in createTestRunner() argument 785 if (packageName.equals(target.packageName)) { in createTestRunner() 794 return new DefaultRemoteAndroidTestRunner(packageName, runnerName, device.getIDevice()); in createTestRunner()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | InstrumentationTest.java | 374 public void setPackageName(String packageName) { in setPackageName() argument 375 mPackageName = packageName; in setPackageName() 682 IRemoteAndroidTestRunner createRemoteAndroidTestRunner(String packageName, String runnerName, in createRemoteAndroidTestRunner() argument 685 new DefaultRemoteAndroidTestRunner(packageName, runnerName, device); in createRemoteAndroidTestRunner() 770 if (mPackageName.equals(target.packageName)) { in queryRunnerName()
|