/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobSchedulerReceiver.java | 34 private static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobSchedulerReceiver 37 PACKAGE_NAME + ".action.SCHEDULE_RESULT"; 38 public static final String EXTRA_SCHEDULE_RESULT = PACKAGE_NAME + ".extra.SCHEDULE_RESULT"; 40 public static final String EXTRA_JOB_ID_KEY = PACKAGE_NAME + ".extra.JOB_ID"; 41 public static final String EXTRA_ALLOW_IN_IDLE = PACKAGE_NAME + ".extra.ALLOW_IN_IDLE"; 43 PACKAGE_NAME + ".extra.REQUIRED_NETWORK_TYPE"; 44 public static final String EXTRA_AS_EXPEDITED = PACKAGE_NAME + ".extra.AS_EXPEDITED"; 46 PACKAGE_NAME + ".extra.REQUEST_JOB_UID_STATE"; 47 public static final String ACTION_SCHEDULE_JOB = PACKAGE_NAME + ".action.SCHEDULE_JOB"; 48 public static final String ACTION_CANCEL_JOBS = PACKAGE_NAME + ".action.CANCEL_JOBS";
|
D | TestJobService.java | 35 private static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobService 36 public static final String ACTION_JOB_STARTED = PACKAGE_NAME + ".action.JOB_STARTED"; 37 public static final String ACTION_JOB_STOPPED = PACKAGE_NAME + ".action.JOB_STOPPED"; 38 public static final String JOB_PARAMS_EXTRA_KEY = PACKAGE_NAME + ".extra.JOB_PARAMETERS"; 39 public static final String JOB_PROC_STATE_KEY = PACKAGE_NAME + ".extra.PROC_STATE"; 40 public static final String JOB_CAPABILITIES_KEY = PACKAGE_NAME + ".extra.CAPABILITIES"; 41 public static final String JOB_OOM_SCORE_ADJ_KEY = PACKAGE_NAME + ".extra.OOM_SCORE_ADJ";
|
/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/ |
D | TestCommsReceiver.java | 33 public static final String PACKAGE_NAME = "com.android.suspendapps.testdeviceadmin"; field in TestCommsReceiver 34 public static final String ACTION_UNSUSPEND = PACKAGE_NAME + ".action.UNSUSPEND"; 35 public static final String ACTION_SUSPEND = PACKAGE_NAME + ".action.SUSPEND"; 36 public static final String ACTION_BLOCK_UNINSTALL = PACKAGE_NAME + ".action.BLOCK_UNINSTALL"; 38 PACKAGE_NAME + ".action.UNBLOCK_UNINSTALL"; 40 PACKAGE_NAME + ".action.ADD_USER_RESTRICTION"; 42 PACKAGE_NAME + ".action.CLEAR_USER_RESTRICTION"; 43 public static final String EXTRA_USER_RESTRICTION = PACKAGE_NAME + ".extra.USER_RESTRICTION"; 50 final ComponentName deviceAdmin = new ComponentName(PACKAGE_NAME, in onReceive()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AppUriAuthenticationPolicyTest.java | 40 private final static String PACKAGE_NAME = "com.android.test"; field in AppUriAuthenticationPolicyTest 46 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) 53 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) in getAppAndUrisMappings_returnsMapping() 58 assertThat(appToUris.containsKey(PACKAGE_NAME)).isTrue(); in getAppAndUrisMappings_returnsMapping() 59 Map<Uri, String> urisToAlias = appToUris.get(PACKAGE_NAME); in getAppAndUrisMappings_returnsMapping() 68 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 69 .addAppAndUriMapping(PACKAGE_NAME, URI2, ALIAS) in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 73 Map<Uri, String> urisToAlias = appToUris.get(PACKAGE_NAME); in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 85 PACKAGE_NAME, /* uris= */ null, ALIAS); in addAppAndUriMapping_nullUri_throwException() 106 new AppUriAuthenticationPolicy.Builder().addAppAndUriMapping(PACKAGE_NAME, in addAppAndUriMapping_nullAlias_throwException() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
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 | PackageManagerTest.java | 120 private static final String PACKAGE_NAME = "android.content.cts"; field in PackageManagerTest 191 new ComponentName(PACKAGE_NAME, cmpActivityName), null, activityIntent, 0); in testQuery() 196 new ComponentName(PACKAGE_NAME, ACTIVITY_NAME), null, activityIntent, 0); in testQuery() 232 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery() 233 List<ProviderInfo> providers = mPackageManager.queryContentProviders(PACKAGE_NAME, in testQuery() 308 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetInfo() 311 CharSequence appText = mPackageManager.getText(PACKAGE_NAME, discriptionRes, appInfo); in testGetInfo() 313 ComponentName activityName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetInfo() 314 ComponentName serviceName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testGetInfo() 315 ComponentName receiverName = new ComponentName(PACKAGE_NAME, RECEIVER_NAME); in testGetInfo() [all …]
|
D | PackageItemInfo_DisplayNameComparatorTest.java | 31 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()
|
D | PackageStatsTest.java | 27 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()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ActivityPermissionRationaleTest.java | 50 private static final String PACKAGE_NAME = "android.permission.cts.appthatrunsrationaletests"; field in ActivityPermissionRationaleTest 64 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flag, flag); in setUp() 69 runShellCommand("pm uninstall " + PACKAGE_NAME); in unInstallApp() 77 intent.setComponent(new ComponentName(PACKAGE_NAME, PACKAGE_NAME + ".TestActivity")); in assertAppShowRationaleIs() 89 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, in clearData() 95 sUiAuto.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME); in permissionGrantedNoRationale() 103 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in policyFixedNoRationale() 111 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in userFixedNoRationale() 118 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, in notUserSetNoRationale() 127 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in userSetNeedRationale()
|
D | PermissionUpdateListenerTest.java | 47 private static final String PACKAGE_NAME = field in PermissionUpdateListenerTest 60 sUid = sPm.getPackageUid(PACKAGE_NAME, 0); in installApp() 65 runShellCommand("pm uninstall " + PACKAGE_NAME); in unInstallApp() 95 sPm.revokeRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in grantNotifiesListener() 97 sPm.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in grantNotifiesListener() 108 sPm.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in revokeNotifiesListener() 110 sPm.revokeRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in revokeNotifiesListener() 123 sPm.updatePermissionFlags(PERMISSION_NAME, PACKAGE_NAME, flag, flag, in updateFlagsNotifiesListener()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | UseEmbeddedDexTest.java | 31 private static final String PACKAGE_NAME = "com.android.cts.useembeddeddex"; field in UseEmbeddedDexTest 41 getDevice().uninstallPackage(PACKAGE_NAME); in tearDown() 52 getDevice().executeShellCommand("cmd package compile -f -m speed " + PACKAGE_NAME); in testIsolatedService() 53 runDeviceTests(PACKAGE_NAME, PACKAGE_NAME + ".EmbeddedDexTest", "testIsolatedService"); in testIsolatedService() 75 new InstallMultiple().inheritFrom(PACKAGE_NAME).addFile(APK_SPLIT_CANONICAL).run(); in testCanonicalInstallWithBaseThenSplit() 81 new InstallMultiple().inheritFrom(PACKAGE_NAME).addFile(APK_SPLIT_COMPRESSED_DEX) in testBadInstallWithBaseThenDexCompressedSplit()
|
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/ |
D | Constants.java | 21 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/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/ |
D | TestAlarmScheduler.java | 34 private static final String PACKAGE_NAME = "android.alarmmanager.alarmtestapp.cts"; field in TestAlarmScheduler 36 public static final String ACTION_SET_ALARM = PACKAGE_NAME + ".action.SET_ALARM"; 37 public static final String EXTRA_TRIGGER_TIME = PACKAGE_NAME + ".extra.TRIGGER_TIME"; 38 public static final String EXTRA_REPEAT_INTERVAL = PACKAGE_NAME + ".extra.REPEAT_INTERVAL"; 39 public static final String EXTRA_WINDOW_LENGTH = PACKAGE_NAME + ".extra.WINDOW_LENGTH"; 40 public static final String EXTRA_TYPE = PACKAGE_NAME + ".extra.TYPE"; 41 public static final String ACTION_SET_ALARM_CLOCK = PACKAGE_NAME + ".action.SET_ALARM_CLOCK"; 42 public static final String EXTRA_ALARM_CLOCK_INFO = PACKAGE_NAME + ".extra.ALARM_CLOCK_INFO"; 43 public static final String ACTION_CANCEL_ALL_ALARMS = PACKAGE_NAME + ".action.CANCEL_ALARMS";
|
D | TestAlarmReceiver.java | 26 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"; 29 public static final String EXTRA_ID = PACKAGE_NAME + ".extra.ID";
|
D | PermissionStateChangedReceiver.java | 32 private static final String PACKAGE_NAME = "android.alarmmanager.alarmtestapp.cts"; field in PermissionStateChangedReceiver 36 public static String ACTION_FGS_START_RESULT = PACKAGE_NAME + ".action.FGS_START_RESULT"; 37 public static String EXTRA_FGS_START_RESULT = PACKAGE_NAME + ".extra.FGS_START_RESULT";
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsFixedCollectionAdapterTest.java | 82 private static final String PACKAGE_NAME = "android.widget.cts"; field in RemoteViewsFixedCollectionAdapterTest 105 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_adapters); in setUp() 125 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling() 126 .addItem(5 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_gravity)) in testParcelingAndUnparceling() 161 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling_afterAttaching() 162 .addItem(5 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_gravity)) in testParcelingAndUnparceling_afterAttaching() 165 RemoteViews parent = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testParcelingAndUnparceling_afterAttaching() 188 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling_multiplePackages() 194 RemoteViews parent = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testParcelingAndUnparceling_multiplePackages() 207 assertEquals(PACKAGE_NAME, unparceled.getItemView(0).mApplication.packageName); in testParcelingAndUnparceling_multiplePackages() [all …]
|
/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()
|
/cts/tests/framework/base/windowmanager/appPrereleaseSdk/src/android/server/wm/prerelease/ |
D | Components.java | 24 private static final String PACKAGE_NAME = Components.class.getPackage().getName(); field in Components 27 PACKAGE_NAME, PACKAGE_NAME + ".MainActivity");
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | PreserveLegacyStorageHostTest.java | 40 private static final String PACKAGE_NAME = "android.scopedstorage.cts.legacy.preserve"; field in PreserveLegacyStorageHostTest 53 uninstallPackage(PACKAGE_NAME); in tearDown() 63 "appops get " + PACKAGE_NAME + " LEGACY_STORAGE"); in testPreserveLegacy() 69 "appops get " + PACKAGE_NAME + " LEGACY_STORAGE"); in testPreserveLegacy() 77 "appops get " + PACKAGE_NAME + " LEGACY_STORAGE"); in testPreserveLegacy()
|
/cts/hostsidetests/settings/app/DeviceOwnerApp/src/com/google/android/cts/deviceowner/ |
D | ClearDeviceOwnerTest.java | 64 boolean isPoBefore = dpm.isProfileOwnerApp(DeviceOwnerTest.PACKAGE_NAME); in removeProfileOwnerIfNeeeded() 66 Log.d(TAG, "Clearing " + DeviceOwnerTest.PACKAGE_NAME + " as profile owner"); in removeProfileOwnerIfNeeeded() 69 boolean isPo = dpm.isDeviceOwnerApp(DeviceOwnerTest.PACKAGE_NAME); in removeProfileOwnerIfNeeeded() 87 .isDeviceOwnerApp(DeviceOwnerTest.PACKAGE_NAME); in removeDeviceOwner() 89 Log.d(TAG, "Clearing " + DeviceOwnerTest.PACKAGE_NAME + " as device owner"); in removeDeviceOwner() 90 dpm.clearDeviceOwnerApp(DeviceOwnerTest.PACKAGE_NAME); in removeDeviceOwner() 92 boolean isDo = dpm.isDeviceOwnerApp(DeviceOwnerTest.PACKAGE_NAME); in removeDeviceOwner() 98 assertWithMessage("%s is device owner", DeviceOwnerTest.PACKAGE_NAME).that(isDo).isFalse(); in removeDeviceOwner()
|
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobService.java | 26 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/suspendapps/tests/src/android/suspendapps/cts/ |
D | Constants.java | 23 String PACKAGE_NAME = "android.suspendapps.cts"; field 24 String TEST_APP_PACKAGE_NAME = com.android.suspendapps.suspendtestapp.Constants.PACKAGE_NAME; 30 String DEVICE_ADMIN_PACKAGE = TestCommsReceiver.PACKAGE_NAME;
|
/cts/hostsidetests/packagemanager/preferredactivity/apps/testapp/src/com/android/cts/packagemanager/preferredactivity/app/ |
D | PreferredActivityDeviceTests.java | 40 private static final String PACKAGE_NAME = field in PreferredActivityDeviceTests 42 private static final String ACTIVITY_NAME = PACKAGE_NAME + ".MainActivity"; 51 final ComponentName[] componentName = {new ComponentName(PACKAGE_NAME, ACTIVITY_NAME)}; in testAddOnePreferredActivity() 66 mPackageManager.getPreferredActivities(outFilters, outActivities, PACKAGE_NAME); in testHasPreferredActivities()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | PowerManagerTests.java | 36 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/tests/app/src/android/app/cts/ |
D | ActivityManagerApi29Test.java | 75 private static final String PACKAGE_NAME = "android.app.cts.activitymanager.api29"; field in ActivityManagerApi29Test 94 PACKAGE_NAME, PACKAGE_NAME + SERVICE_NAME); 98 sUid = sContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0).uid; 111 CtsAppTestUtils.makeUidIdle(sInstrumentation, PACKAGE_NAME); in setUp() 115 PermissionUtils.getAppOp(PACKAGE_NAME, ACCESS_COARSE_LOCATION)); in setUp() 135 CtsAppTestUtils.makeUidIdle(sInstrumentation, PACKAGE_NAME); in tearDown() 151 .setClassName(PACKAGE_NAME, PACKAGE_NAME + SIMPLE_ACTIVITY) in startSimpleActivity() 288 .setPackageName(PACKAGE_NAME) in testAppOpsHistoricalOps() 294 .getUidOps(sUid).getPackageOps(PACKAGE_NAME) in testAppOpsHistoricalOps() 354 () -> sAppOps.noteOp(opStr, sUid, PACKAGE_NAME, in noteOp()
|