/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 47 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageManagerTest 74 new ComponentName(PACKAGE_NAME, cmpActivityName), null, activityIntent, 0); in testQuery() 79 new ComponentName(PACKAGE_NAME, ACTIVITY_NAME), null, activityIntent, 0); in testQuery() 115 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery() 116 List<ProviderInfo> providers = mPackageManager.queryContentProviders(PACKAGE_NAME, in testQuery() 190 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetInfo() 193 CharSequence appText = mPackageManager.getText(PACKAGE_NAME, discriptionRes, appInfo); in testGetInfo() 195 ComponentName activityName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetInfo() 196 ComponentName serviceName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testGetInfo() 197 ComponentName receiverName = new ComponentName(PACKAGE_NAME, RECEIVER_NAME); in testGetInfo() [all …]
|
D | ApplicationInfo_DisplayNameComparatorTest.java | 29 private static final String PACKAGE_NAME = "android.content.cts"; field in ApplicationInfo_DisplayNameComparatorTest 51 info1.packageName = PACKAGE_NAME; in testCompare() 52 info2.packageName = PACKAGE_NAME; in testCompare() 55 info1 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testCompare() 56 info2.packageName = PACKAGE_NAME + ".2"; in testCompare() 60 info1.packageName = PACKAGE_NAME + ".1"; in testCompare() 61 info2 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testCompare()
|
D | PackageItemInfo_DisplayNameComparatorTest.java | 29 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageItemInfo_DisplayNameComparatorTest 37 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testDisplayNameComparator() 41 componentName = new ComponentName(PACKAGE_NAME, CMPACTIVITY_NAME); in testDisplayNameComparator()
|
D | PackageStatsTest.java | 25 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageStatsTest 34 PackageStats stats = new PackageStats(PACKAGE_NAME); in testPackageStats() 35 assertEquals(PACKAGE_NAME, stats.packageName); in testPackageStats()
|
D | ProviderInfoTest.java | 34 private static final String PACKAGE_NAME = "android.content.cts"; field in ProviderInfoTest 43 ApplicationInfo appInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testProviderInfo() 44 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
|
D | ServiceInfoTest.java | 28 private static final String PACKAGE_NAME = "android.content.cts"; field in ServiceInfoTest 33 ComponentName componentName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testServiceInfo()
|
D | InstrumentationInfoTest.java | 28 private static final String PACKAGE_NAME = "android.content.cts"; field in InstrumentationInfoTest 34 ComponentName componentName = new ComponentName(PACKAGE_NAME, INSTRUMENTATION_NAME); in testInstrumentationInfo()
|
D | ResolveInfoTest.java | 29 private static final String PACKAGE_NAME = "android.content.cts"; field in ResolveInfoTest 40 intent.setComponent(new ComponentName(PACKAGE_NAME, ACTIVITY_NAME)); in testResolveInfo()
|
D | PackageItemInfoTest.java | 33 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageItemInfoTest 95 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in getTestItemInfo()
|
D | ComponentInfoTest.java | 40 private final String PACKAGE_NAME = "android.content.cts"; field in ComponentInfoTest 198 mComponentInfo.packageName = PACKAGE_NAME; in testLoadLabel() 208 mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); in testLoadLabel()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ClearDeviceOwnerTest.java | 35 public static final String PACKAGE_NAME = BasicAdminReceiver.class.getPackage().getName(); field in ClearDeviceOwnerTest 37 PACKAGE_NAME, BasicAdminReceiver.class.getName()); 50 assertTrue("App is not device owner", mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME)); in setUp() 55 mDevicePolicyManager.clearDeviceOwnerApp(PACKAGE_NAME); in tearDown() 56 assertFalse(mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME)); in tearDown()
|
D | BasePackageInstallTest.java | 49 public static final String PACKAGE_NAME = BasePackageInstallTest.class.getPackage().getName(); field in BasePackageInstallTest 99 if (mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME) || in tearDown() 100 mDevicePolicyManager.isProfileOwnerApp(PACKAGE_NAME)) { in tearDown() 115 return new ComponentName(PACKAGE_NAME, BasicAdminReceiver.class.getName()); in getWho()
|
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
D | BaseProfileOwnerTest.java | 29 public static final String PACKAGE_NAME = BaseProfileOwnerTest.class.getPackage().getName(); field in BaseProfileOwnerTest 45 assertTrue(dpm.isProfileOwnerApp(PACKAGE_NAME)); in assertProfileOwner() 49 return new ComponentName(PACKAGE_NAME, BasicAdminReceiver.class.getName()); in getWho()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskTest.java | 47 private static final String PACKAGE_NAME = LockTaskTest.class.getPackage().getName(); field in LockTaskTest 49 new ComponentName(PACKAGE_NAME, BaseDeviceOwnerTest.BasicAdminReceiver.class.getName()); 178 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testStartLockTask() 194 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testCannotFinish() 208 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testUpdateWhitelisting() 226 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testStartActivity_withinTask() 247 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME, in testStartActivity_outsideTaskWhitelisted() 267 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testStartActivity_outsideTaskNonWhitelisted() 284 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testManifestArgument_whitelisted() 313 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testManifestArgument_cannotFinish() [all …]
|
D | BaseDeviceOwnerTest.java | 89 public static final String PACKAGE_NAME = BaseDeviceOwnerTest.class.getPackage().getName(); field in BaseDeviceOwnerTest 105 assertTrue(dpm.isDeviceOwnerApp(PACKAGE_NAME)); in assertDeviceOwner() 110 return new ComponentName(PACKAGE_NAME, BasicAdminReceiver.class.getName()); in getWho()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | BaseDeviceAdminTest.java | 42 public static final String PACKAGE_NAME = BasicAdminReceiver.class.getPackage().getName(); field in BaseDeviceAdminTest 44 PACKAGE_NAME, BasicAdminReceiver.class.getName()); 65 mDevicePolicyManager.isProfileOwnerApp(PACKAGE_NAME) || in setUp() 66 mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME)); in setUp()
|
D | PersistentIntentResolvingTest.java | 52 PACKAGE_NAME); in tearDown() 85 PACKAGE_NAME); in testAddAndClearPersistentPreferredActivitiesYieldsResolverActivity() 124 ComponentName targetComponent = new ComponentName(PACKAGE_NAME, in addPersistentPreferredActivity()
|
D | ClearProfileOwnerNegativeTest.java | 32 if (mDevicePolicyManager.isProfileOwnerApp(BaseDeviceAdminTest.PACKAGE_NAME)) { in tearDown()
|
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/ |
D | AlertWindowsTests.java | 33 private static final String PACKAGE_NAME = "android.server.alertwindowapp"; field in AlertWindowsTests 69 setAlertWindowPermission(PACKAGE_NAME, false); in tearDown() 71 executeShellCommand("am force-stop " + PACKAGE_NAME); in tearDown() 78 runAlertWindowTest(PACKAGE_NAME, ACTIVITY_NAME, true /* hasAlertWindowPermission */, in testAlertWindowAllowed() 83 runAlertWindowTest(PACKAGE_NAME, ACTIVITY_NAME, false /* hasAlertWindowPermission */, in testAlertWindowDisallowed()
|
/cts/hostsidetests/usb/src/com/android/cts/usb/ |
D | TestUsbTest.java | 44 private static final String PACKAGE_NAME = "com.android.cts.usb.serialtest"; field in TestUsbTest 64 mDevice.uninstallPackage(PACKAGE_NAME); in setUp() 74 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown() 113 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(PACKAGE_NAME, CTS_RUNNER, in testUsbSerial()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsActivityTest.java | 42 private static final String PACKAGE_NAME = "android.widget.cts"; field in RemoteViewsActivityTest 56 RemoteViews orig = new RemoteViews(PACKAGE_NAME, R.layout.remote_view_test_good); in testGood() 82 RemoteViews orig = new RemoteViews(PACKAGE_NAME, R.layout.remote_view_test_bad_1); in testDerivedClass() 111 RemoteViews orig = new RemoteViews(PACKAGE_NAME, R.layout.remote_view_test_bad_2); in testWebView()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PackageManagerRequiringPermissionsTest.java | 31 private static final String PACKAGE_NAME = "android"; field in PackageManagerRequiringPermissionsTest 49 mPackageManager.setApplicationEnabledSetting(PACKAGE_NAME, in testSetApplicationEnabledSetting()
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | BasePackageInstallTest.java | 53 public static final String PACKAGE_NAME = SilentPackageInstallTest.class.getPackage().getName(); field in BasePackageInstallTest 110 if (mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME) || in tearDown() 111 mDevicePolicyManager.isProfileOwnerApp(PACKAGE_NAME)) { in tearDown() 127 return new ComponentName(PACKAGE_NAME, BasicAdminReceiver.class.getName()); in getWho()
|
D | InstallReasonTest.java | 30 assertEquals(PackageManager.INSTALL_REASON_UNKNOWN, getInstallReason(PACKAGE_NAME)); in testInstallReason()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ParentProfileTest.java | 84 private static final String PACKAGE_NAME = DevicePolicyManager.class.getPackage().getName(); field in ParentProfileTest 96 List<Method> methods = CurrentApiHelper.getPublicApis(PACKAGE_NAME, CLASS_NAME); in testParentProfileApiDisabled()
|