/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInstallerArchiveTest.java | 113 private static final String PACKAGE_NAME = "android.content.cts.mocklauncherapp"; field in PackageInstallerArchiveTest 117 private static final String ACTIVITY_NAME = PACKAGE_NAME + ".Launcher"; 175 uninstallPackage(PACKAGE_NAME); in uninstall() 183 installPackage(PACKAGE_NAME, APK_PATH); in archiveApp_dataIsKept() 199 mPackageInstaller.requestArchive(PACKAGE_NAME, in archiveApp_dataIsKept() 202 PACKAGE_NAME); in archiveApp_dataIsKept() 223 installPackage(PACKAGE_NAME, APK_PATH); in archiveApp_getApplicationIcon() 227 mPackageInstaller.requestArchive(PACKAGE_NAME, in archiveApp_getApplicationIcon() 233 ApplicationInfo applicationInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_getApplicationIcon() 244 installPackage(PACKAGE_NAME, APK_PATH); in archiveApp_getApplicationIcon_compatOptionsOn() [all …]
|
D | ApplicationInfo_DisplayNameComparatorTest.java | 31 private static final String PACKAGE_NAME = "android.content.cts"; field in ApplicationInfo_DisplayNameComparatorTest 53 info1.packageName = PACKAGE_NAME; in testCompare() 54 info2.packageName = PACKAGE_NAME; in testCompare() 57 info1 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare() 59 info2.packageName = PACKAGE_NAME + ".2"; in testCompare() 63 info1.packageName = PACKAGE_NAME + ".1"; in testCompare() 64 info2 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare()
|
D | PackageInstallerArchiveMultiUserTest.java | 79 private static final String PACKAGE_NAME = "android.content.cts.mocklauncherapp"; field in PackageInstallerArchiveMultiUserTest 113 uninstallPackage(PACKAGE_NAME); in uninstall() 126 assertTrue(isAppInstalledForUser(PACKAGE_NAME, mPrimaryUser)); in archiveApp_broadcast_multiuser() 127 assertTrue(isAppInstalledForUser(PACKAGE_NAME, mSecondaryUser)); in archiveApp_broadcast_multiuser() 131 PACKAGE_NAME, mPrimaryUser.id(), Intent.ACTION_PACKAGE_REMOVED); in archiveApp_broadcast_multiuser() 134 PACKAGE_NAME, mSecondaryUser.id(), Intent.ACTION_PACKAGE_REMOVED); in archiveApp_broadcast_multiuser() 137 PACKAGE_NAME, mPrimaryUser.id(), Intent.ACTION_PACKAGE_FULLY_REMOVED); in archiveApp_broadcast_multiuser() 140 PACKAGE_NAME, mSecondaryUser.id(), Intent.ACTION_PACKAGE_FULLY_REMOVED); in archiveApp_broadcast_multiuser() 143 PACKAGE_NAME, mPrimaryUser.id(), Intent.ACTION_UID_REMOVED); in archiveApp_broadcast_multiuser() 146 PACKAGE_NAME, mSecondaryUser.id(), Intent.ACTION_UID_REMOVED); in archiveApp_broadcast_multiuser() [all …]
|
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobSchedulerReceiver.java | 41 static final String PACKAGE_NAME = "android.jobscheduler.cts.jobtestapp"; field in TestJobSchedulerReceiver 50 PACKAGE_NAME + ".action.SCHEDULE_RESULT"; 51 public static final String EXTRA_SCHEDULE_RESULT = PACKAGE_NAME + ".extra.SCHEDULE_RESULT"; 53 public static final String EXTRA_JOB_ID_KEY = PACKAGE_NAME + ".extra.JOB_ID"; 54 public static final String EXTRA_ALLOW_IN_IDLE = PACKAGE_NAME + ".extra.ALLOW_IN_IDLE"; 55 public static final String EXTRA_DEADLINE = PACKAGE_NAME + ".extra.DEADLINE"; 57 PACKAGE_NAME + ".extra.REQUIRED_NETWORK_TYPE"; 59 PACKAGE_NAME + ".extra.REQUIRES_STORAGE_NOT_LOW"; 60 public static final String EXTRA_AS_EXPEDITED = PACKAGE_NAME + ".extra.AS_EXPEDITED"; 61 public static final String EXTRA_AS_USER_INITIATED = PACKAGE_NAME + ".extra.AS_USER_INITIATED"; [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | UseEmbeddedDexTest.java | 36 private static final String PACKAGE_NAME = "com.android.cts.useembeddeddex"; field in UseEmbeddedDexTest 54 getDevice().uninstallPackage(PACKAGE_NAME); in tearDown() 71 getDevice().executeShellCommand("cmd package compile -f -m speed " + PACKAGE_NAME); in testIsolatedService() 72 runDeviceTests(PACKAGE_NAME, PACKAGE_NAME + ".EmbeddedDexTest", "testIsolatedService"); in testIsolatedService() 79 getDevice().executeShellCommand("cmd package compile -f -m speed " + PACKAGE_NAME); in testIsolatedService_perProcess() 80 runDeviceTests(PACKAGE_NAME, PACKAGE_NAME + ".EmbeddedDexTest", "testIsolatedService"); in testIsolatedService_perProcess() 121 new InstallMultiple().inheritFrom(PACKAGE_NAME).addFile(APK_SPLIT_CANONICAL).run(); in testCanonicalInstallWithBaseThenSplit() 128 new InstallMultiple().inheritFrom(PACKAGE_NAME).addFile(APK_SPLIT_CANONICAL).run(); in testCanonicalInstallWithBaseThenSplit_perProcess() 134 new InstallMultiple().inheritFrom(PACKAGE_NAME).addFile(APK_SPLIT_COMPRESSED_DEX) in testBadInstallWithBaseThenDexCompressedSplit() 142 new InstallMultiple().inheritFrom(PACKAGE_NAME).addFile(APK_SPLIT_COMPRESSED_DEX) in testBadInstallWithBaseThenDexCompressedSplit_perProcess()
|
/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 …]
|
D | PolicyKeysTest.java | 53 private static final String PACKAGE_NAME = "packageName"; field in PolicyKeysTest 82 POLICY_KEY, PACKAGE_NAME, PERMISSION_NAME); in packagePermissionPolicyKey_getPackageName_returnsCorrectPackageName() 84 assertThat(key.getPackageName()).isEqualTo(PACKAGE_NAME); in packagePermissionPolicyKey_getPackageName_returnsCorrectPackageName() 92 POLICY_KEY, PACKAGE_NAME, PERMISSION_NAME); in packagePermissionPolicyKey_getPermissionName_returnsCorrectPermissionName() 101 PackagePolicyKey key = new PackagePolicyKey(POLICY_KEY, PACKAGE_NAME); in packagePolicyKey_getPackageName_returnsCorrectPackageName() 103 assertThat(key.getPackageName()).isEqualTo(PACKAGE_NAME); in packagePolicyKey_getPackageName_returnsCorrectPackageName()
|
/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/tests/companion/uicommon/src/android/companion/cts/uicommon/ |
D | CompanionDeviceManagerUi.kt | 125 private const val PACKAGE_NAME = "com.android.companiondevicemanager" in click() constant 129 private val CONFIRMATION_UI = By.pkg(PACKAGE_NAME) in click() 130 .res(PACKAGE_NAME, "activity_confirmation") in click() 138 By.pkg(PACKAGE_NAME).clazz(".Button").clickable(true) in click() 139 private val POSITIVE_BUTTON = By.copy(CLICKABLE_BUTTON).res(PACKAGE_NAME, "btn_positive") in click() 140 private val NEGATIVE_BUTTON = By.copy(CLICKABLE_BUTTON).res(PACKAGE_NAME, "btn_negative") in click() 141 private val NEGATIVE_BUTTON_MULTIPLE_DEVICES = By.pkg(PACKAGE_NAME) in click() 142 .res(PACKAGE_NAME, "negative_multiple_devices_layout") in click() 144 private val DEVICE_LIST = By.res(PACKAGE_NAME, "device_list") in click() 145 private val DEVICE_LIST_ITEM = By.res(PACKAGE_NAME, "list_item_device") in click() [all …]
|
/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 EXTRA_TEST_FGS = PACKAGE_NAME + ".extra.TEST_FGS"; 44 public static final String ACTION_CANCEL_ALL_ALARMS = PACKAGE_NAME + ".action.CANCEL_ALARMS";
|
D | TestAlarmReceiver.java | 27 private static final String PACKAGE_NAME = "android.alarmmanager.alarmtestapp.cts"; field in TestAlarmReceiver 30 public static final String ACTION_REPORT_ALARM_EXPIRED = PACKAGE_NAME + ".action.ALARM_EXPIRED"; 31 public static final String EXTRA_ALARM_COUNT = PACKAGE_NAME + ".extra.ALARM_COUNT"; 32 public static final String EXTRA_ID = PACKAGE_NAME + ".extra.ID";
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/ |
D | DragDropCompatTest.java | 33 static final String PACKAGE_NAME = "android.server.wm.cts"; field in DragDropCompatTest 37 executeShellCommand("am compat enable --no-kill DOWNSCALED" + " " + PACKAGE_NAME); in setUp() 38 executeShellCommand("am compat enable --no-kill DOWNSCALE_50" + " " + PACKAGE_NAME); in setUp() 49 executeShellCommand("am compat disable --no-kill DOWNSCALED " + PACKAGE_NAME); in tearDown() 50 executeShellCommand("am compat disable --no-kill DOWNSCALE_50" + " " + PACKAGE_NAME); in tearDown()
|
/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/app/src/android/app/cts/ |
D | ChainedInstrumentationFirst.java | 25 static final String PACKAGE_NAME = "android.app.cts"; field in ChainedInstrumentationFirst 28 super(new ComponentName(PACKAGE_NAME, PACKAGE_NAME + ".ChainedInstrumentationSecond")); in ChainedInstrumentationFirst()
|
/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/tests/tests/appop/src/android/app/appops/cts/ |
D | DiscreteAppopsTest.kt | 65 private const val PACKAGE_NAME = "android.app.appops.cts.appfordiscretetest" in <lambda>() constant 88 private val uid = context.packageManager.getPackageUid(PACKAGE_NAME, 0) in <lambda>() 106 appOpsManager.noteOp(OPSTR_FINE_LOCATION, uid, PACKAGE_NAME, null, null) in <lambda>() 138 val serviceIntent = Intent().setComponent(ComponentName(PACKAGE_NAME, in <lambda>() 139 "$PACKAGE_NAME.AppOpsForegroundControlService")) in <lambda>() 193 noteOp(OPSTR_RESERVED_FOR_TESTING, uid, PACKAGE_NAME, null, null) in <lambda>() 211 assertThat(packageOps.packageName).isEqualTo(PACKAGE_NAME) in <lambda>() 235 assertThat(packageOps.packageName).isEqualTo(PACKAGE_NAME) in <lambda>() 259 assertThat(packageOps.packageName).isEqualTo(PACKAGE_NAME) in <lambda>() 271 noteOp(OPSTR_RESERVED_FOR_TESTING, uid, PACKAGE_NAME, null, null) in <lambda>() [all …]
|
/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/tests/widget/src/android/widget/cts/ |
D | RemoteViewsFixedCollectionAdapterTest.java | 85 private static final String PACKAGE_NAME = "android.widget.cts"; field in RemoteViewsFixedCollectionAdapterTest 114 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_adapters); in setUp() 134 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling() 135 .addItem(5 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_gravity)) in testParcelingAndUnparceling() 170 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling_afterAttaching() 171 .addItem(5 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_gravity)) in testParcelingAndUnparceling_afterAttaching() 174 RemoteViews parent = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testParcelingAndUnparceling_afterAttaching() 197 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling_multiplePackages() 203 RemoteViews parent = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testParcelingAndUnparceling_multiplePackages() 216 assertEquals(PACKAGE_NAME, unparceled.getItemView(0).mApplication.packageName); in testParcelingAndUnparceling_multiplePackages() [all …]
|
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobSchedulerReceiver.java | 33 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";
|
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/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/ |
D | RequestReceiver.java | 32 public static final String PACKAGE_NAME = "android.alarmmanager.alarmtestapp.cts.common"; field in RequestReceiver 35 PACKAGE_NAME + ".action.GET_CAN_SCHEDULE_EXACT_ALARM"; 37 PACKAGE_NAME + ".action.SET_EXACT_PI"; 39 PACKAGE_NAME + ".action.SET_EXACT_CALLBACK"; 41 PACKAGE_NAME + ".action.SET_EXACT_AND_AWI"; 43 PACKAGE_NAME + ".action.SET_ALARM_CLOCK";
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | PreserveLegacyStorageHostTest.java | 44 private static final String PACKAGE_NAME = "android.scopedstorage.cts.legacy.preserve"; field in PreserveLegacyStorageHostTest 57 uninstallPackage(PACKAGE_NAME); in tearDown() 71 "appops get " + PACKAGE_NAME + " LEGACY_STORAGE"); in testPreserveLegacy() 77 "appops get " + PACKAGE_NAME + " LEGACY_STORAGE"); in testPreserveLegacy() 85 "appops get " + PACKAGE_NAME + " LEGACY_STORAGE"); in testPreserveLegacy()
|
/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/tests/credentials/src/android/credentials/cts/unittests/selection/ |
D | CancelSelectionRequestTest.java | 50 private static final String PACKAGE_NAME = "mock_package"; field in CancelSelectionRequestTest 57 PACKAGE_NAME); in testConstructor() 59 assertThat(cancelUiRequest.getPackageName()).isEqualTo(PACKAGE_NAME); in testConstructor() 69 PACKAGE_NAME); in testWriteToParcel() 72 assertThat(cancelUiRequest2.getPackageName()).isEqualTo(PACKAGE_NAME); in testWriteToParcel()
|