Home
last modified time | relevance | path

Searched refs:getCurrentUser (Results 1 – 25 of 110) sorted by relevance

12345

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserControlDisabledPackagesTest.java56 Log.d(TAG, "Starting " + intent + " on user " + getCurrentUser().getIdentifier()); in testLaunchActivity()
57 mContext.startActivityAsUser(intent, getCurrentUser()); in testLaunchActivity()
107 getCurrentUser().getIdentifier()); in isPackageStopped()
111 + getCurrentUser().getIdentifier() + " = " in isPackageStopped()
118 getCurrentUser().getIdentifier()) in assertPackageStopped()
135 getCurrentUser().getIdentifier()) in assertPackageRunningState()
DListForegroundAffiliatedUsersTest.java35 UserHandle currentUser = invokeStaticMethodWithShellPermissions(() -> getCurrentUser()); in testListForegroundAffiliatedUsers_onlyForegroundUser()
DBaseDeviceOwnerTest.java129 protected final UserHandle getCurrentUser() { in getCurrentUser() method in BaseDeviceOwnerTest
132 UserHandle currentUser = UserHandle.of(ActivityManager.getCurrentUser()); in getCurrentUser()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiMigrationTest.java106 UserHandle.of(ActivityManager.getCurrentUser())); in testWifiMigrationConfigStore()
112 UserHandle.of(ActivityManager.getCurrentUser())); in testWifiMigrationConfigStore()
128 UserHandle.of(ActivityManager.getCurrentUser())); in testWifiMigrationConfigStore()
134 UserHandle.of(ActivityManager.getCurrentUser())); in testWifiMigrationConfigStore()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/
DUserLifecycleJourneyStatsTests.java45 assertExpectedEvents(data, getDevice().getCurrentUser(), in testCreateGuestUser()
55 assertExpectedEvents(data, getDevice().getCurrentUser(), in testRemoveGuestUser()
74 assertExpectedEvents(data, getDevice().getCurrentUser(), in testCreateFullUser()
84 assertExpectedEvents(data, getDevice().getCurrentUser(), in testRemoveFullUser()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2021_0602.java44 initialUserId = device.getCurrentUser(); in testPocCVE_2021_0602()
57 if (device.getCurrentUser() != initialUserId) { in testPocCVE_2021_0602()
DCVE_2023_40092.java43 int primaryUserId = device.getCurrentUser(); in testPocCVE_2023_40092()
49 installPackage("CVE-2023-40092.apk", "--user " + device.getCurrentUser()); in testPocCVE_2023_40092()
DCVE_2023_21277.java47 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21277()
53 int userId = device.getCurrentUser(); in testPocCVE_2023_21277()
DCVE_2023_21238.java48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21238()
54 int userId = device.getCurrentUser(); in testPocCVE_2023_21238()
DCVE_2023_40086.java49 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_40086()
60 int userId = device.getCurrentUser(); in testPocCVE_2023_40086()
DCVE_2023_21279.java48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21279()
54 int userId = device.getCurrentUser(); in testPocCVE_2023_21279()
DCVE_2023_21286.java48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21286()
54 int userId = device.getCurrentUser(); in testPocCVE_2023_21286()
DTestLocationScanningServicesUsingSlices.java52 mTestPkg + "/.PocDeviceAdminReceiver", mDevice.getCurrentUser())); in setUp()
61 mDevice.removeAdmin(mTestPkg + "/.PocDeviceAdminReceiver", mDevice.getCurrentUser()); in tearDown()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DPackageInstallationSessionReportedStatsTests.java76 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testPackageInstallationSessionReportedForApkSuccessWithReplace()
87 final int expectedUser = getDevice().getCurrentUser(); in testPackageInstallationSessionReportedForApkSuccessWithReplace()
199 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testPackageUninstalledReported()
203 String.valueOf(getDevice().getCurrentUser()))).isFalse(); in testPackageUninstalledReported()
214 final List<Integer> users = Collections.singletonList(getDevice().getCurrentUser()); in testPackageUninstalledReported()
230 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testPackageInstallationFailedVersionDowngradeReported()
246 final int expectedUser = getDevice().getCurrentUser(); in testPackageInstallationFailedVersionDowngradeReported()
286 final int expectedUser = getDevice().getCurrentUser(); in testPackageInstallationFailedInternalErrorReported()
DInstalledIncrementalPackageStatsTests.java60 String.valueOf(getDevice().getCurrentUser()))); in testInstalledIncrementalMetricsReported()
63 String.valueOf(getDevice().getCurrentUser()))); in testInstalledIncrementalMetricsReported()
DComponentStateChangedReportedStatsTests.java109 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedForWholeApp()
144 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedForLauncherActivity()
179 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedForNoLauncherActivity()
214 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedEnabledThenDisabled()
260 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedEnabledThenDisabledWholeApp()
307 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities()
DPackageManagerStatsTestsBase.java72 "pm install-incremental -t -g " + "--user " + getDevice().getCurrentUser() + " " in installPackageUsingIncremental()
82 final int currentUser = device.getCurrentUser(); in getAppUid()
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java69 mInitialUserId = getDevice().getCurrentUser(); in setFixedUsers()
76 if (getDevice().getCurrentUser() != mPrimaryUserId) { in setFixedUsers()
77 mFixedUsers.add(getDevice().getCurrentUser()); in setFixedUsers()
83 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown()
/cts/hostsidetests/gputools/src/android/gputools/cts/
DCtsRootlessGpuDebugHostTest.java349 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugLayerLoadVulkan()
352 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugLayerLoadVulkan()
383 "run-as", APP_NAME, "--user", Integer.toString(getDevice().getCurrentUser()), in testLayerNotLoadedVulkan()
432 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugNotEnabledVulkan()
461 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugWrongAppVulkan()
490 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugNoLayersEnabledVulkan()
543 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testSystemPropertyIgnoreVulkan()
546 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testSystemPropertyIgnoreVulkan()
644 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugLayerLoadGLES()
647 "run-as", DEBUG_APP, "--user", Integer.toString(getDevice().getCurrentUser()), in testDebugLayerLoadGLES()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java84 getDevice().getCurrentUser()); in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
104 getDevice().getCurrentUser()); in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating()
118 final int userId = getDevice().getCurrentUser(); in testUserLevelHibernatedApps()
/cts/hostsidetests/media/src/android/media/router/cts/
DProxyMediaRouter2HostSideTest.java75 assertThat(secondaryUser).isNotEqualTo(device.getCurrentUser()); in installApps()
77 installTestAppAsUser(testInformation, MEDIA_ROUTER_PROVIDER_1_APK, device.getCurrentUser()); in installApps()
82 device.getCurrentUser()); in installApps()
87 device.getCurrentUser()); in installApps()
/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java64 mInitialUserId = getDevice().getCurrentUser(); in setUp()
73 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown()
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/
DLockPatternHelperHostTest.java36 String userId = String.valueOf(getDevice().getCurrentUser()); in testIsSecureApi()
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
DRunasPermissionsTest.java51 int currentUser = getDevice().getCurrentUser(); in testRunasCanConnectToAppsSocket()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java76 mInitialUserId = getDevice().getCurrentUser(); in setUp()
85 int currentUserId = getDevice().getCurrentUser(); in tearDown()
155 final int currentUserId = getDevice().getCurrentUser(); in assertSwitchToUser()

12345