Home
last modified time | relevance | path

Searched refs:PACKAGE_NAME (Results 1 – 25 of 49) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DContentProviderClientTest.java62 private static final String PACKAGE_NAME = "android.content.cts"; field in ContentProviderClientTest
110 verify(mIContentProvider).query(PACKAGE_NAME, URI, null, ARGS, mICancellationSignal); in testQuery()
114 when(mIContentProvider.query(PACKAGE_NAME, URI, null, ARGS, mICancellationSignal)) in testQueryTimeout()
119 verify(mIContentProvider).query(PACKAGE_NAME, URI, null, ARGS, mICancellationSignal); in testQueryTimeout()
125 verify(mIContentProvider, never()).query(PACKAGE_NAME, URI, null, ARGS, in testQueryAlreadyCancelled()
159 verify(mIContentProvider).canonicalize(PACKAGE_NAME, URI); in testCanonicalize()
163 when(mIContentProvider.canonicalize(PACKAGE_NAME, URI)) in testCanonicalizeTimeout()
168 verify(mIContentProvider).canonicalize(PACKAGE_NAME, URI); in testCanonicalizeTimeout()
173 verify(mIContentProvider).uncanonicalize(PACKAGE_NAME, URI); in testUncanonicalize()
177 when(mIContentProvider.uncanonicalize(PACKAGE_NAME, URI)) in testUncanonicalizeTimeout()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java87 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageManagerTest
124 new ComponentName(PACKAGE_NAME, cmpActivityName), null, activityIntent, 0); in testQuery()
129 new ComponentName(PACKAGE_NAME, ACTIVITY_NAME), null, activityIntent, 0); in testQuery()
165 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery()
166 List<ProviderInfo> providers = mPackageManager.queryContentProviders(PACKAGE_NAME, in testQuery()
241 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetInfo()
244 CharSequence appText = mPackageManager.getText(PACKAGE_NAME, discriptionRes, appInfo); in testGetInfo()
246 ComponentName activityName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetInfo()
247 ComponentName serviceName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testGetInfo()
248 ComponentName receiverName = new ComponentName(PACKAGE_NAME, RECEIVER_NAME); in testGetInfo()
[all …]
DApplicationInfo_DisplayNameComparatorTest.java29 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()
DPackageStatsTest.java27 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageStatsTest
36 PackageStats stats = new PackageStats(PACKAGE_NAME); in testPackageStats()
37 assertEquals(PACKAGE_NAME, stats.packageName); in testPackageStats()
DPackageItemInfo_DisplayNameComparatorTest.java31 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageItemInfo_DisplayNameComparatorTest
39 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testDisplayNameComparator()
43 componentName = new ComponentName(PACKAGE_NAME, CMPACTIVITY_NAME); in testDisplayNameComparator()
DPackageItemInfoIconTest.java48 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageItemInfoIconTest
78 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testFromAppInfo()
92 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testFromActivity()
120 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testDelegatedFromAppInfo()
142 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in getTestItemInfo()
DProviderInfoTest.java36 private static final String PACKAGE_NAME = "android.content.cts"; field in ProviderInfoTest
45 ApplicationInfo appInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testProviderInfo()
46 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
/cts/tests/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/
DTestAlarmScheduler.java32 private static final String PACKAGE_NAME = "android.alarmmanager.alarmtestapp.cts"; field in TestAlarmScheduler
34 public static final String ACTION_SET_ALARM = PACKAGE_NAME + ".action.SET_ALARM";
35 public static final String EXTRA_TRIGGER_TIME = PACKAGE_NAME + ".extra.TRIGGER_TIME";
36 public static final String EXTRA_REPEAT_INTERVAL = PACKAGE_NAME + ".extra.REPEAT_INTERVAL";
37 public static final String EXTRA_TYPE = PACKAGE_NAME + ".extra.TYPE";
38 public static final String EXTRA_ALLOW_WHILE_IDLE = PACKAGE_NAME + ".extra.ALLOW_WHILE_IDLE";
39 public static final String ACTION_SET_ALARM_CLOCK = PACKAGE_NAME + ".action.SET_ALARM_CLOCK";
40 public static final String EXTRA_ALARM_CLOCK_INFO = PACKAGE_NAME + ".extra.ALARM_CLOCK_INFO";
41 public static final String ACTION_CANCEL_ALL_ALARMS = PACKAGE_NAME + ".action.CANCEL_ALARMS";
DTestAlarmReceiver.java26 private static final String PACKAGE_NAME = "android.alarmmanager.alarmtestapp.cts"; field in TestAlarmReceiver
27 public static final String ACTION_REPORT_ALARM_EXPIRED = PACKAGE_NAME + ".action.ALARM_EXPIRED";
28 public static final String EXTRA_ALARM_COUNT = PACKAGE_NAME + ".extra.ALARM_COUNT";
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/
DConstants.java21 String PACKAGE_NAME = "com.android.cts.forcestophelper"; field
23 String ACTION_ALARM = PACKAGE_NAME + ".action.ACTION_ALARM";
24 String EXTRA_ON_TASK_REMOVED = PACKAGE_NAME + ".extra.ON_TASK_REMOVED";
25 String EXTRA_ON_ALARM = PACKAGE_NAME + ".extra.ON_ALARM";
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobSchedulerReceiver.java33 private static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobSchedulerReceiver
35 public static final String EXTRA_JOB_ID_KEY = PACKAGE_NAME + ".extra.JOB_ID";
36 public static final String EXTRA_ALLOW_IN_IDLE = PACKAGE_NAME + ".extra.ALLOW_IN_IDLE";
37 public static final String EXTRA_REQUIRE_NETWORK_ANY = PACKAGE_NAME
39 public static final String ACTION_SCHEDULE_JOB = PACKAGE_NAME + ".action.SCHEDULE_JOB";
40 public static final String ACTION_CANCEL_JOBS = PACKAGE_NAME + ".action.CANCEL_JOBS";
DTestJobService.java26 private static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobService
27 public static final String ACTION_JOB_STARTED = PACKAGE_NAME + ".action.JOB_STARTED";
28 public static final String ACTION_JOB_STOPPED = PACKAGE_NAME + ".action.JOB_STOPPED";
29 public static final String JOB_PARAMS_EXTRA_KEY = PACKAGE_NAME + ".extra.JOB_PARAMETERS";
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DClearDeviceOwnerTest.java35 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()
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobSchedulerReceiver.java33 private static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobSchedulerReceiver
35 public static final String EXTRA_JOB_ID_KEY = PACKAGE_NAME + ".extra.JOB_ID";
36 public static final String EXTRA_ALLOW_IN_IDLE = PACKAGE_NAME + ".extra.ALLOW_IN_IDLE";
37 public static final String ACTION_SCHEDULE_JOB = PACKAGE_NAME + ".action.SCHEDULE_JOB";
38 public static final String ACTION_CANCEL_JOBS = PACKAGE_NAME + ".action.CANCEL_JOBS";
DTestJobService.java26 private static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobService
27 public static final String ACTION_JOB_STARTED = PACKAGE_NAME + ".action.JOB_STARTED";
28 public static final String ACTION_JOB_STOPPED = PACKAGE_NAME + ".action.JOB_STOPPED";
29 public static final String JOB_PARAMS_EXTRA_KEY = PACKAGE_NAME + ".extra.JOB_PARAMETERS";
/cts/tests/framework/base/windowmanager/appPrereleaseSdk/src/android/server/wm/prerelease/
DComponents.java24 private static final String PACKAGE_NAME = Components.class.getPackage().getName(); field in Components
27 PACKAGE_NAME, PACKAGE_NAME + ".MainActivity");
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DLockTaskTest.java59 private static final String PACKAGE_NAME = LockTaskTest.class.getPackage().getName(); field in LockTaskTest
61 new ComponentName(PACKAGE_NAME, BasicAdminReceiver.class.getName());
226 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testStartLockTask()
242 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testCannotFinish()
256 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testUpdateWhitelisting()
274 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME, in testUpdateWhitelisting_twoTasks()
291 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testUpdateWhitelisting_twoTasks()
308 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testStartActivity_withinTask()
329 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME, in testStartActivity_outsideTaskWhitelisted()
348 mDevicePolicyManager.setLockTaskPackages(ADMIN_COMPONENT, new String[] { PACKAGE_NAME }); in testStartActivity_outsideTaskNonWhitelisted()
[all …]
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
DBaseProfileOwnerTest.java29 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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DBaseDeviceAdminTest.java65 public static final String PACKAGE_NAME = BasicAdminReceiver.class.getPackage().getName(); field in BaseDeviceAdminTest
67 PACKAGE_NAME, BasicAdminReceiver.class.getName());
89 mDevicePolicyManager.isProfileOwnerApp(PACKAGE_NAME) || in setUp()
90 mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME)); in setUp()
129 return mDevicePolicyManager.isDeviceOwnerApp(PACKAGE_NAME); in isDeviceOwner()
DDevicePolicyLoggingTest.java48 public static final String PACKAGE_NAME = "com.android.cts.permissionapp"; field in DevicePolicyLoggingTest
140 PACKAGE_NAME, READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testSetPermissionGrantStateLogged()
141 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, PACKAGE_NAME, in testSetPermissionGrantStateLogged()
143 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, PACKAGE_NAME, in testSetPermissionGrantStateLogged()
169 mDevicePolicyManager.setUninstallBlocked(ADMIN_RECEIVER_COMPONENT, PACKAGE_NAME, true); in testSetUninstallBlockedLogged()
170 mDevicePolicyManager.setUninstallBlocked(ADMIN_RECEIVER_COMPONENT, PACKAGE_NAME, false); in testSetUninstallBlockedLogged()
DPersistentIntentResolvingTest.java52 PACKAGE_NAME); in tearDown()
85 PACKAGE_NAME); in testAddAndClearPersistentPreferredActivitiesYieldsResolverActivity()
124 ComponentName targetComponent = new ComponentName(PACKAGE_NAME, in addPersistentPreferredActivity()
/cts/hostsidetests/os/src/android/os/cts/
DPowerManagerTests.java36 private static final String PACKAGE_NAME = "android.os.powermanagertests"; field in PowerManagerTests
41 private static final String CACHED_REGEXP = "Proc # [0-9]+: cch.*" + PACKAGE_NAME;
73 makeCachedProcess(PACKAGE_NAME); in testCachedProcessReleasesWakeLock()
86 mDevice.executeShellCommand("am make-uid-idle " + PACKAGE_NAME); in testCachedProcessReleasesWakeLock()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUseEmbeddedDexTest.java30 private static final String PACKAGE_NAME = "com.android.cts.useembeddeddex"; field in UseEmbeddedDexTest
62 new InstallMultiple().inheritFrom(PACKAGE_NAME).addApk(APK_SPLIT_CANONICAL).run(); in testCanonicalInstallWithBaseThenSplit()
68 new InstallMultiple().inheritFrom(PACKAGE_NAME).addApk(APK_SPLIT_COMPRESSED_DEX) in testBadInstallWithBaseThenDexCompressedSplit()
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java50 private static final String PACKAGE_NAME = "com.android.cts.usb.serialtest"; field in TestUsbTest
51 private static final String TEST_CLASS_NAME = PACKAGE_NAME + ".UsbSerialTest";
71 mDevice.uninstallPackage(PACKAGE_NAME); in setUp()
91 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown()
96 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(PACKAGE_NAME, CTS_RUNNER, in runTestOnDevice()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsActivityTest.java43 private static final String PACKAGE_NAME = "android.widget.cts"; field in RemoteViewsActivityTest
57 RemoteViews orig = new RemoteViews(PACKAGE_NAME, R.layout.remote_view_test_good); in testGood()
83 RemoteViews orig = new RemoteViews(PACKAGE_NAME, R.layout.remote_view_test_bad_1); in testDerivedClass()
112 RemoteViews orig = new RemoteViews(PACKAGE_NAME, R.layout.remote_view_test_bad_2); in testWebView()

12