Home
last modified time | relevance | path

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

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiBasedCodebase.kt156 var packageName: String? = null in <lambda>() variable
163 packageName = packageStatement.packageName in <lambda>()
168 this.hiddenPackages[packageName] = true in <lambda>()
170 if (packageDocs[packageName] != null) { in <lambda>()
178 packageDocs[packageName] = text in <lambda>()
197 if (packageName == null) { in <lambda>()
198 packageName = getPackageName(psiClass) in <lambda>()
347 val packageName = qualifiedName.removeSuffix(".package-info") in <lambda>() constant
348 var list = packageToClasses[packageName] in <lambda>()
351 packageToClasses[packageName] = list in <lambda>()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationSerialTestTest.java69 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/src/com/android/tradefed/util/
DListInstrumentationParser.java57 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()
DTestFilterHelper.java217 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()
DAppVersionFetcher.java54 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()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java357 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/tradefederation/core/src/com/android/tradefed/targetprep/
DTestAppInstallSetup.java374 for (String packageName : mPackagesInstalled) { in tearDown()
376 uninstallPackage(getDevice(), packageName); in tearDown() local
424 ITestDevice testDevice, String packageName, List<File> apkFiles) in installSinglePackage() argument
431 CLog.d("Installing apk %s with %s ...", packageName, apkFiles); in installSinglePackage()
437 uninstallPackage(testDevice, packageName); in installSinglePackage()
446 packageName, apkFiles, testDevice.getSerialNumber(), result), in installSinglePackage()
452 mPackagesInstalled.add(packageName); in installSinglePackage()
580 protected void uninstallPackage(ITestDevice device, String packageName) in uninstallPackage() argument
582 String msg = device.uninstallPackage(packageName); in uninstallPackage()
584 CLog.w(String.format("error uninstalling package '%s': %s", packageName, msg)); in uninstallPackage()
DInstallApexModuleTargetPreparer.java362 String packageName = in installTrain() local
364 mApkInstalled.add(packageName); in installTrain()
382 String packageName = parsePackageName(moduleFile, device.getDeviceDescriptor()); in installTrain() local
383 apkPackageNames.add(packageName); in installTrain()
538 protected String getModuleKeywordFromApexPackageName(String packageName) { in getModuleKeywordFromApexPackageName() argument
539 String[] components = packageName.split("\\."); in getModuleKeywordFromApexPackageName()
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/
DIsolationFilter.java69 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/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetup.java220 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()
DAllTestAppsInstallSetup.java208 for (String packageName : mPackagesInstalled) { in tearDown()
209 String msg = device.uninstallPackage(packageName); in tearDown()
212 packageName, msg)); in tearDown()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt789 val packageName = field.containingClass().containingPackage().qualifiedName() in <lambda>() constant
792 packageName == "android.app.admin" -> "android.app.extra" in <lambda>()
793 else -> "$packageName.extra" in <lambda>()
2280 fun packageContainsSegment(packageName: String?, segment: String): Boolean { in <lambda>()
2281 packageName ?: return false in <lambda>()
2282 return (packageName.contains(segment) && in <lambda>()
2283 (packageName.contains(".$segment.") || packageName.endsWith(".$segment"))) in <lambda>()
2286 fun skipPackage(packageName: String?): Boolean { in <lambda>()
2287 packageName ?: return false in <lambda>()
2289 if (packageContainsSegment(packageName, segment)) { in <lambda>()
/tools/loganalysis/src/com/android/loganalysis/parser/
DDumpsysPackageStatsParser.java45 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/loganalysis/src/com/android/loganalysis/item/
DLocationDumpsItem.java67 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/tests/src/com/android/tradefed/targetprep/
DInstrumentationPreparerTest.java66 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/contrib/src/com/android/performance/tests/
DAppInstallTest.java173 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()
DHermeticLaunchTest.java283 String packageName, String runnerName, IDevice device) in createRemoteAndroidTestRunner() argument
286 new RemoteAndroidTestRunner(packageName, runnerName, device); in createRemoteAndroidTestRunner()
334 if (mPackageName.equals(target.packageName)) { in queryRunnerName()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java216 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/test_framework/com/android/tradefed/testtype/
DInstrumentationTest.java374 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()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java779 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/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DApkInfo.java75 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/util/
DListInstrumentationParserTest.java119 actualTarget.packageName, actualTarget.runnerName, actualTarget.targetName)); in validateInstrumentationTargets()
130 return Objects.equals(expected.packageName, actual.packageName) && in areTargetsEqual()
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt25 val packageName: String? constant
30 packageName = getPackage(withoutComments)
35 fun packageNameWithDefault() = packageName ?: "" in packageNameWithDefault()
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java171 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/result/ddmlib/
DDefaultRemoteAndroidTestRunner.java33 String packageName, String runnerName, IShellEnabledDevice remoteDevice) { in DefaultRemoteAndroidTestRunner() argument
34 super(packageName, runnerName, remoteDevice); in DefaultRemoteAndroidTestRunner()

123