/tools/tradefederation/contrib/src/com/android/framework/tests/ |
D | PackageManagerOTATests.java | 65 private static final String PACKAGE_NAME = "com.android.frameworks.coretests.version_test"; field in PackageManagerOTATests 89 getDevice().uninstallPackage(PACKAGE_NAME); in setUp() 91 String res = getDevice().executeShellCommand("pm path " + PACKAGE_NAME).trim(); in setUp() 146 mUtils.packageHasFlag(PACKAGE_NAME, " SYSTEM ")); in testSystemAppAddedNewerThanUpdate() 149 mUtils.packageHasPermission(PACKAGE_NAME, VIBRATE_PERMISSION)); in testSystemAppAddedNewerThanUpdate() 152 mUtils.packageHasPermission(PACKAGE_NAME, CACHE_PERMISSION)); in testSystemAppAddedNewerThanUpdate() 166 "Package should have FLAG_SYSTEM", mUtils.packageHasFlag(PACKAGE_NAME, " SYSTEM ")); in testSystemAppAddedNewerThanUpdate() 169 mUtils.packageHasPermission(PACKAGE_NAME, VIBRATE_PERMISSION)); in testSystemAppAddedNewerThanUpdate() 172 mUtils.packageHasPermission(PACKAGE_NAME, CACHE_PERMISSION)); in testSystemAppAddedNewerThanUpdate() 197 mUtils.packageHasFlag(PACKAGE_NAME, " SYSTEM ")); in testSystemAppAddedOlderThanUpdate() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | AppVersionFetcherTest.java | 34 private static final String PACKAGE_NAME = "mypackage"; field in AppVersionFetcherTest 52 AppVersionFetcher.fetch(mMockDevice, PACKAGE_NAME, AppVersionInfo.VERSION_CODE)); in testFetchVersionCode_valid() 63 AppVersionFetcher.fetch(mMockDevice, PACKAGE_NAME, AppVersionInfo.VERSION_NAME)); in testFetchVersionName_valid() 76 AppVersionFetcher.fetch(mMockDevice, PACKAGE_NAME, AppVersionInfo.VERSION_CODE)); in testFetchVersionCode_validMultipleLines() 87 AppVersionFetcher.fetch(mMockDevice, PACKAGE_NAME, AppVersionInfo.VERSION_NAME)); in testFetchVersionName_validMultipleLines() 98 AppVersionFetcher.fetch(mMockDevice, PACKAGE_NAME, AppVersionInfo.VERSION_CODE); in testFetchVersionCode_invalidResponse() 113 AppVersionFetcher.fetch(mMockDevice, PACKAGE_NAME, AppVersionInfo.VERSION_NAME); in testFetchVersionName_invalidResponse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | TestAppInstallSetupTest.java | 47 private static final String PACKAGE_NAME = "PACKAGE_NAME"; field in TestAppInstallSetupTest 78 return PACKAGE_NAME; in setUp() 129 return PACKAGE_NAME; in testSetupAndTeardown_install_package_only() 156 return PACKAGE_NAME; in testSetupAndTeardown_install_packages_only() 257 PACKAGE_NAME, fakeApk, SERIAL, failure); in testInstallFailure() 268 EasyMock.expect(mMockTestDevice.uninstallPackage(PACKAGE_NAME)).andReturn(null); in testInstallFailedUpdateIncompatible() 275 EasyMock.expect(mMockTestDevice.uninstallPackage(PACKAGE_NAME)).andReturn(null); in testInstallFailedUpdateIncompatible() 352 return PACKAGE_NAME; in testFindApk_override() 384 return PACKAGE_NAME; in testFindApk_override_onlyInBuild()
|
/tools/tradefederation/core/src/com/android/tradefed/device/helper/ |
D | TelephonyHelper.java | 41 public static final String PACKAGE_NAME = "android.telephony.utility"; field in TelephonyHelper 53 new TestDescription(PACKAGE_NAME + CLASS_NAME, METHOD_NAME); 107 runner.setMethodName(PACKAGE_NAME + CLASS_NAME, METHOD_NAME); in getSimInfo() 136 device.uninstallPackage(PACKAGE_NAME); in getSimInfo() 159 return new DefaultRemoteAndroidTestRunner(PACKAGE_NAME, AJUR_RUNNER, idevice); in createTestRunner()
|
/tools/tradefederation/core/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandler.java | 69 public static final String PACKAGE_NAME = "android.tradefed.contentprovider"; field in ContentProviderHandler 90 if (mDevice.isPackageInstalled(PACKAGE_NAME, Integer.toString(mDevice.getCurrentUser()))) { in setUp() 116 String.format("cmd appops set %s android:legacy_storage allow", PACKAGE_NAME)); in setUp() 119 mDevice.executeShellV2Command(String.format("cmd appops get %s", PACKAGE_NAME)); in setUp() 132 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/helper/ |
D | TelephonyHelperTest.java | 58 EasyMock.expect(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).andReturn(null); in testGetSimInfo() 107 EasyMock.expect(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).andReturn(null); in testGetSimInfo_instrumentationFailed() 135 EasyMock.expect(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).andReturn(null); in testGetSimInfo_simTest_not_run() 162 EasyMock.expect(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).andReturn(null); in testGetSimInfo_simTest_failed()
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiMonitorService.java | 53 public static final String PACKAGE_NAME = "com.android.tradefed.utils.wifi"; field in WifiMonitorService 54 public static final String ACTION_RECONNECT = PACKAGE_NAME + ".RECONNECT"; 55 public static final String ACTION_RECONNECT_COMPLETE = PACKAGE_NAME
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | DumpsysPackageStatsParser.java | 29 private static final Pattern PACKAGE_NAME = Pattern.compile("^\\s*Package \\[(.*)\\].*"); field in DumpsysPackageStatsParser 50 Matcher m = PACKAGE_NAME.matcher(line); in parse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 72 ContentProviderHandler.PACKAGE_NAME)); in testSetUp_install() 78 String.format("cmd appops get %s", ContentProviderHandler.PACKAGE_NAME)); in testSetUp_install() 88 .isPackageInstalled(ContentProviderHandler.PACKAGE_NAME, "0"); in testSetUp_alreadyInstalled()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | VellamoBenchmark.java | 40 private static final String PACKAGE_NAME = "com.quicinc.vellamo"; field in VellamoBenchmark 135 if (null == device.getProcessByName(PACKAGE_NAME)) { in run()
|
D | AppTransitionTests.java | 68 private static final String PACKAGE_NAME = "com.android.apptransition.tests"; field in AppTransitionTests 327 new RemoteAndroidTestRunner(PACKAGE_NAME, mRunnerName, mDevice.getIDevice()); in createRemoteAndroidTestRunner() 376 if (PACKAGE_NAME.equals(target.packageName)) { in queryRunnerName() 381 String.format("Unable to determine runner name for package: %s", PACKAGE_NAME)); in queryRunnerName()
|
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | GameCoreConfigurationXmlParser.java | 53 PACKAGE_NAME("packageName", null), enumConstant 154 getElement(element, Field.PACKAGE_NAME), in createApkInfo()
|
D | ApkInfo.java | 86 checkNotNull(packageName, Field.PACKAGE_NAME.getTag()); in ApkInfo()
|