Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/util/
DListInstrumentationParser.java53 public final String packageName; field in ListInstrumentationParser.InstrumentationTarget
57 public InstrumentationTarget(String packageName, String runnerName, String targetName) { in InstrumentationTarget() argument
58 this.packageName = packageName; in InstrumentationTarget()
70 return Objects.equals(this.packageName, that.packageName) in equals()
82 return Objects.hash(packageName, runnerName, targetName); in hashCode()
90 if (!this.packageName.equals(o.packageName)) { in compareTo()
91 return this.packageName.compareTo(o.packageName); in compareTo()
104 packageName, runnerName, targetName); in toString()
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()
DTestFilterHelper.java200 public boolean shouldRun(String packageName, Class<?> classObj, Method method) { in shouldRun() argument
203 if (!shouldRunFilter(packageName, className, methodName)) { in shouldRun()
226 || mIncludeFilters.contains(packageName); in shouldRun()
244 String packageName = classObj.getPackage().getName(); in shouldRun() local
248 if (!shouldRunFilter(packageName, className, methodName)) { in shouldRun()
257 || mIncludeFilters.contains(packageName); in shouldRun()
264 private boolean shouldRunFilter(String packageName, String className, String methodName) { in shouldRunFilter() argument
265 if (mExcludeFilters.contains(packageName)) { in shouldRunFilter()
267 CLog.i("Skip package %s because it was excluded", packageName); in shouldRunFilter()
/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/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationSerialTestTest.java60 final String packageName = "com.foo"; in testRun() local
68 listener.testRunStarted(packageName, 1); in testRun()
77 mockITest.setPackageName(packageName); in testRun()
87 mMockListener.testRunStarted(packageName, 1); in testRun()
107 final String packageName = "com.foo"; in testRun_runFailure() local
116 listener.testRunStarted(packageName, 1); in testRun_runFailure()
123 mockITest.setPackageName(packageName); in testRun_runFailure()
133 mMockListener.testRunStarted(packageName, 1); in testRun_runFailure()
/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/src/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetup.java212 String packageName = getAppPackageName(appFile); in addApkToInstalledList() local
213 if (packageName == null) { in addApkToInstalledList()
217 mPackagesInstalled.add(packageName); in addApkToInstalledList()
243 for (String packageName : mPackagesInstalled) { in tearDown()
244 String msg = device.uninstallPackage(packageName); in tearDown()
246 CLog.w(String.format("error uninstalling package '%s': %s", packageName, msg)); in tearDown()
DTestAppInstallSetup.java234 String packageName = parsePackageName(testAppFile, device.getDeviceDescriptor()); in setUp() local
240 uninstallPackage(device, packageName); in setUp()
250 mPackagesInstalled.add(packageName); in setUp()
272 for (String packageName : mPackagesInstalled) { in tearDown()
273 uninstallPackage(device, packageName); in tearDown()
312 private void uninstallPackage(ITestDevice device, String packageName) in uninstallPackage() argument
314 String msg = device.uninstallPackage(packageName); in uninstallPackage()
316 CLog.w(String.format("error uninstalling package '%s': %s", packageName, msg)); in uninstallPackage()
DAllTestAppsInstallSetup.java187 for (String packageName : mPackagesInstalled) { in tearDown()
188 String msg = device.uninstallPackage(packageName); in tearDown()
191 packageName, msg)); in tearDown()
DInstrumentationPreparer.java167 void setPackageName(String packageName) { in setPackageName() argument
168 mPackageName = packageName; in setPackageName()
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DPackageManagerHostTestUtils.java227 public boolean doesPackageExist(String packageName) throws DeviceNotAvailableException { in doesPackageExist() argument
228 String pkgGrep = mDevice.executeShellCommand(String.format("pm path %s", packageName)); in doesPackageExist()
239 public boolean doesAppExistOnDevice(String packageName) throws DeviceNotAvailableException { in doesAppExistOnDevice() argument
240 return doesRemoteFileExistContainingString(DEVICE_APP_PATH, packageName); in doesAppExistOnDevice()
250 public boolean doesAppExistOnSDCard(String packageName) throws DeviceNotAvailableException { in doesAppExistOnSDCard() argument
255 return doesRemoteFileExistContainingString(DEVICE_APP_PATH, packageName); in doesAppExistOnSDCard()
258 return doesRemoteFileExistContainingString(SDCARD_APP_PATH, packageName); in doesAppExistOnSDCard()
269 public boolean doesAppExistAsForwardLocked(String packageName) in doesAppExistAsForwardLocked() argument
271 return doesRemoteFileExistContainingString(mAppPrivatePath, packageName); in doesAppExistAsForwardLocked()
DPackageManagerOTATestUtils.java188 public boolean packageHasPermission(String packageName, String permission) in packageHasPermission() argument
190 String cmd = "dumpsys package " + packageName; in packageHasPermission()
215 public boolean packageHasFlag(String packageName, String flag) in packageHasFlag() argument
217 String cmd = "dumpsys package " + packageName; in packageHasFlag()
/tools/tradefederation/core/prod-tests/src/com/android/app/tests/
DAppLaunchTest.java97 String packageName = p.getPackageName(); in run() local
99 appApkFile.getAbsolutePath()), packageName); in run()
106 performLaunchTest(packageName, listener); in run()
130 private void performLaunchTest(String packageName, ITestInvocationListener listener) in performLaunchTest() argument
137 i.addInstrumentationArg("packageName", packageName); in performLaunchTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstrumentationPreparerTest.java59 final String packageName = "packageName"; in testRun() local
65 listener.testRunStarted(packageName, 1); in testRun()
86 final String packageName = "packageName"; in testRun_testFailed() local
92 listener.testRunStarted(packageName, 1); in testRun_testFailed()
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/
DDefaultRemoteAndroidTestRunner.java32 String packageName, String runnerName, IShellEnabledDevice remoteDevice) { in DefaultRemoteAndroidTestRunner() argument
33 super(packageName, runnerName, remoteDevice); in DefaultRemoteAndroidTestRunner()
/tools/tradefederation/core/src/com/android/tradefed/testtype/testdefs/
DInstrumentationTestDef.java35 public InstrumentationTestDef(String testName, String packageName) { in InstrumentationTestDef() argument
37 mPackage = packageName; in InstrumentationTestDef()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DAppInstallTest.java114 String packageName = parser.getPackageName(); in installAndTime() local
129 if (packageName != null) { in installAndTime()
130 CLog.d("Uninstalling: %s", packageName); in installAndTime()
131 mDevice.uninstallPackage(packageName); in installAndTime()
/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)
34 fun packageNameWithDefault() = packageName ?: "" in packageNameWithDefault()
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/
DDeviceTestRunOptions.java35 public DeviceTestRunOptions(String packageName) { in DeviceTestRunOptions() argument
36 this.mPackageName = packageName; in DeviceTestRunOptions()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DCodeCoverageTestBase.java314 if ((packageFilter.isEmpty() || packageFilter.contains(target.packageName)) && in getInstrumentationTargets()
353 IRemoteAndroidTestRunner internalCreateTestRunner(String packageName, String runnerName) { in internalCreateTestRunner() argument
354 return new RemoteAndroidTestRunner(packageName, runnerName, getDevice().getIDevice()); in internalCreateTestRunner()
363 target.packageName, target.runnerName); in createTestRunner()
434 ret.setPackageName(target.packageName); in createTest()
DInstalledInstrumentationsTest.java292 t.setPackageName(target.packageName); in buildTests()
336 private void sendCoverage(String packageName, String coverageTarget, in sendCoverage() argument
345 listener.testRunStarted(packageName, 0); in sendCoverage()
DInstrumentationTest.java295 public void setPackageName(String packageName) { in setPackageName() argument
296 mPackageName = packageName; in setPackageName()
623 IRemoteAndroidTestRunner createRemoteAndroidTestRunner(String packageName, String runnerName, in createRemoteAndroidTestRunner() argument
626 new DefaultRemoteAndroidTestRunner(packageName, runnerName, device); in createRemoteAndroidTestRunner()
692 if (mPackageName.equals(target.packageName)) { in queryRunnerName()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java300 public String uninstallPackage(final String packageName) throws DeviceNotAvailableException { in uninstallPackage() argument
306 CLog.d("Uninstalling %s", packageName); in uninstallPackage()
307 String result = getIDevice().uninstallPackage(packageName); in uninstallPackage()
312 performDeviceAction(String.format("uninstall %s", packageName), uninstallAction, in uninstallPackage()
737 public PackageInfo getAppPackageInfo(String packageName) throws DeviceNotAvailableException {
740 return action.mPkgInfoMap.get(packageName);
756 String packageName = m.group(2);
757 if (filter.accept(packageName, packagePath)) {
758 packages.add(packageName);
DITestDevice.java164 public String uninstallPackage(String packageName) throws DeviceNotAvailableException; in uninstallPackage() argument
382 public PackageInfo getAppPackageInfo(String packageName) throws DeviceNotAvailableException; in getAppPackageInfo() argument

12