Home
last modified time | relevance | path

Searched refs:TEST_PKG_NAME (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt107 private val TEST_PKG_NAME: String in <lambda>() constant in com.android.permissioncontroller.tests.mocking.permission.service.RuntimePermissionsUpgradeControllerTest
305 setPackages(PreinstalledPackage(TEST_PKG_NAME, Permission(SEND_SMS))) in <lambda>()
309 verifyWhitelisted(TEST_PKG_NAME, SEND_SMS) in <lambda>()
316 setPackages(PreinstalledPackage(TEST_PKG_NAME, Permission(ACCESS_FINE_LOCATION))) in <lambda>()
320 verifyNotWhitelisted(TEST_PKG_NAME, ACCESS_FINE_LOCATION) in <lambda>()
326 setPackages(Package(TEST_PKG_NAME, Permission(SEND_SMS))) in <lambda>()
330 verifyNotWhitelisted(TEST_PKG_NAME, SEND_SMS) in <lambda>()
336 setPackages(Package(TEST_PKG_NAME, Permission(SEND_SMS), Permission(READ_CALL_LOG))) in <lambda>()
340 verifyWhitelisted(TEST_PKG_NAME, SEND_SMS) in <lambda>()
341 verifyWhitelisted(TEST_PKG_NAME, READ_CALL_LOG) in <lambda>()
[all …]
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/events/
DDockPackageChangeReceiverTest.kt27 private const val TEST_PKG_NAME = "TEST_PKG_NAME" constant
68 whenever(uriMock.schemeSpecificPart).thenReturn(TEST_PKG_NAME) in onReceive_actionPackageRemoved_replacing_noop()
81 whenever(uriMock.schemeSpecificPart).thenReturn(TEST_PKG_NAME) in onReceive_actionPackageRemoved_notReplacing_packageRemovedCalled()
85 verify(dockInterfaceMock).packageRemoved(eq(TEST_PKG_NAME)) in onReceive_actionPackageRemoved_notReplacing_packageRemovedCalled()
94 whenever(uriMock.schemeSpecificPart).thenReturn(TEST_PKG_NAME) in onReceive_actionPackageAdded_replacing_noop()
107 whenever(uriMock.schemeSpecificPart).thenReturn(TEST_PKG_NAME) in onReceive_actionPackageAdded_notReplacing_packageAddedCalled()
111 verify(dockInterfaceMock).packageAdded(eq(TEST_PKG_NAME)) in onReceive_actionPackageAdded_notReplacing_packageAddedCalled()
118 whenever(uriMock.schemeSpecificPart).thenReturn(TEST_PKG_NAME) in onReceive_actionPackageChanged_isEnabled_noop()
119 whenever(packageManagerMock.getApplicationEnabledSetting(eq(TEST_PKG_NAME))) in onReceive_actionPackageChanged_isEnabled_noop()
131 whenever(uriMock.schemeSpecificPart).thenReturn(TEST_PKG_NAME) in onReceive_actionPackageChanged_isDisabled_packageRemovedCalled()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java65 private static final String TEST_PKG_NAME = "testPkg"; field in GraphicsDriverAppPreferenceControllerTest
182 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configDefault_shouldSetDefaultAttributes()
184 assertThat(preference.getKey()).isEqualTo(TEST_PKG_NAME); in createPreference_configDefault_shouldSetDefaultAttributes()
196 loadConfig(TEST_PKG_NAME, "", ""); in createPreference_configProduction_DRIVER_shouldSetProductionDriverAttributes()
198 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configProduction_DRIVER_shouldSetProductionDriverAttributes()
200 assertThat(preference.getKey()).isEqualTo(TEST_PKG_NAME); in createPreference_configProduction_DRIVER_shouldSetProductionDriverAttributes()
212 loadConfig("", TEST_PKG_NAME, ""); in createPreference_configPRERELEASE_DRIVER_shouldSetPrereleaseDriverAttributes()
214 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configPRERELEASE_DRIVER_shouldSetPrereleaseDriverAttributes()
216 assertThat(preference.getKey()).isEqualTo(TEST_PKG_NAME); in createPreference_configPRERELEASE_DRIVER_shouldSetPrereleaseDriverAttributes()
228 loadConfig("", "", TEST_PKG_NAME); in createPreference_configSystem_shouldSetSystemAttributes()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLocationPermissionCheckerTest.java75 private static final String TEST_PKG_NAME = "com.google.somePackage"; field in LocationPermissionCheckerTest
109 when(mMockPkgMgr.getApplicationInfoAsUser(eq(TEST_PKG_NAME), eq(0), any())) in setupMocks()
112 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_WIFI_SCAN, mUid, TEST_PKG_NAME, in setupMocks()
115 eq(TEST_PKG_NAME), eq(TEST_FEATURE_ID), nullable(String.class))) in setupMocks()
118 eq(TEST_PKG_NAME), eq(TEST_FEATURE_ID), nullable(String.class))) in setupMocks()
121 doThrow(new SecurityException("Package " + TEST_PKG_NAME + " doesn't belong" in setupMocks()
123 .when(mMockAppOps).checkPackage(mUid, TEST_PKG_NAME); in setupMocks()
212 TEST_PKG_NAME, TEST_FEATURE_ID, mUid, null);
229 TEST_PKG_NAME, TEST_FEATURE_ID, mUid, null);
244 TEST_PKG_NAME, TEST_FEATURE_ID, mUid, null));
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/emergency/
DMoreSettingsPreferenceControllerTest.java48 private static final String TEST_PKG_NAME = "test_pkg"; field in MoreSettingsPreferenceControllerTest
52 .setPackage(TEST_PKG_NAME);
74 TEST_PKG_NAME); in constructor_hasPackageConfig_shouldSetIntent()
88 TEST_PKG_NAME); in getAvailabilityStatus_whenIntentSet_shouldReturnAvailable()
111 TEST_PKG_NAME); in getAvailabilityStatus_noSuitableIntent_shouldReturnUnsupportedDevice()
125 TEST_PKG_NAME); in getAvailabilityStatus_intentForANonSystemApp_shouldReturnUnsupportedDevice()
138 info.activityInfo.packageName = TEST_PKG_NAME; in prepareCustomIntent()
151 info.activityInfo.packageName = TEST_PKG_NAME; in prepareCustomIntentForANonSystemApp()
DEmergencyGestureEntrypointPreferenceControllerTest.java48 private static final String TEST_PKG_NAME = "test_pkg"; field in EmergencyGestureEntrypointPreferenceControllerTest
51 .setPackage(TEST_PKG_NAME);
76 TEST_PKG_NAME); in constructor_hasCustomPackageConfig_shouldSetIntent()
115 TEST_PKG_NAME); in getAvailabilityStatus_noSuitableIntent_shouldReturnAvailable()
127 info.activityInfo.packageName = TEST_PKG_NAME; in prepareCustomIntent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DPrioritizeAppPerformancePreferenceControllerTest.java70 private static final String TEST_PKG_NAME = "test.package.name"; field in PrioritizeAppPerformancePreferenceControllerTest
121 packageInfo.packageName = TEST_PKG_NAME; in setUp()
124 packageInfo.applicationInfo.packageName = TEST_PKG_NAME; in setUp()
137 new PackageKillableState(TEST_PKG_NAME, TEST_USER_ID, KILLABLE_STATE_YES))); in onCreate_prioritizeAppPerformance_withKillableStateYes()
149 new PackageKillableState(TEST_PKG_NAME, TEST_USER_ID, KILLABLE_STATE_NO))); in onCreate_prioritizeAppPerformance_withKillableStateNo()
161 TEST_PKG_NAME, TEST_USER_ID, KILLABLE_STATE_NEVER))); in onCreate_prioritizeAppPerformance_withKillableStateNever()
173 new PackageKillableState(TEST_PKG_NAME, TEST_USER_ID, KILLABLE_STATE_NO))); in callChangeListener_turnOffPrioritizeAppPerformance()
180 TEST_PKG_NAME, UserHandle.getUserHandleForUid(TEST_UID), true); in callChangeListener_turnOffPrioritizeAppPerformance()
189 new PackageKillableState(TEST_PKG_NAME, TEST_USER_ID, KILLABLE_STATE_YES))); in callChangeListener_turnOnPrioritizeAppPerformance()
201 TEST_PKG_NAME, UserHandle.getUserHandleForUid(TEST_UID), false); in callChangeListener_turnOnPrioritizeAppPerformance()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppSettingPreferenceControllerTest.java42 private static final String TEST_PKG_NAME = "test_pkg"; field in AppSettingPreferenceControllerTest
46 .setClassName(TEST_PKG_NAME, TEST_CLASS_NAME);
49 .setPackage(TEST_PKG_NAME);
64 mController.setPackageName(TEST_PKG_NAME).setParentFragment(mParent); in setUp()
87 info.activityInfo.packageName = TEST_PKG_NAME; in getAvailabilityStatus_hasAppSetting_shouldBeAvailable()
105 info.activityInfo.packageName = TEST_PKG_NAME; in clickPreference_hasAppSetting_shouldLaunchIntent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/performance/
DPerfImpactingAppsPreferenceControllerTest.java87 private static final String TEST_PKG_NAME = "test.package.name"; field in PerfImpactingAppsPreferenceControllerTest
91 TEST_PKG_NAME + ";" + TEST_PRIVILEGE_PKG_NAME;
137 new PackageKillableState(TEST_PKG_NAME, TEST_USER_ID, in setUp()
161 (new File(mContext.getDataDir(), TEST_PKG_NAME)).delete(); in tearDown()
186 .isEqualTo(Uri.parse("package:" + TEST_PKG_NAME)); in onPreferenceClick_primaryAppAction_sendAppDetailIntent()
204 verify(mMockCarWatchdogManager).setKillablePackageAsUser(TEST_PKG_NAME, in onPreferenceClick_showConfirmationDialog_prioritizeApp()
298 resolveInfo1.activityInfo.applicationInfo.packageName = TEST_PKG_NAME; in getResultInfos()
300 File appFile = new File(mContext.getDataDir(), TEST_PKG_NAME); in getResultInfos()
301 assertWithMessage("%s dir", TEST_PKG_NAME).that(appFile.mkdir()).isTrue(); in getResultInfos()
DPerfImpactingAppsItemManagerTest.java46 private static final String TEST_PKG_NAME = "test.package.name"; field in PerfImpactingAppsItemManagerTest
48 private static final String TEST_DISABLED_PACKAGES_SETTING_STRING = TEST_PKG_NAME + ";"
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DNoProcessOutgoingCallPermissionTest.java67 private static final String TEST_PKG_NAME = "android.permissionpolicy.cts.receivecallbroadcast"; field in NoProcessOutgoingCallPermissionTest
99 mContext.startActivity(new Intent().setComponent(new ComponentName(TEST_PKG_NAME, in testProcessOutgoingCall()
100 TEST_PKG_NAME + ".ProcessOutgoingCallReceiver$BaseActivity")) in testProcessOutgoingCall()
126 runShellCommand("pm uninstall " + TEST_PKG_NAME); in endCall()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/src/com/android/adservices/tests/cts/topics/appupdate/
DAppUpdateTest.java116 private static final String TEST_PKG_NAME = "com.android.adservices.tests.cts.topics.testapp1"; field in AppUpdateTest
117 private static final String TEST_ACTIVITY_NAME = TEST_PKG_NAME + ".MainActivity";
119 new ComponentName(TEST_PKG_NAME, TEST_ACTIVITY_NAME);
295 runShellCommand("pm uninstall --user %d %s", mUserId, TEST_PKG_NAME); in uninstallTestSampleApp()