/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | UserControlDisabledPackagesTest.java | 56 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()
|
D | ListForegroundAffiliatedUsersTest.java | 35 UserHandle currentUser = invokeStaticMethodWithShellPermissions(() -> getCurrentUser()); in testListForegroundAffiliatedUsers_onlyForegroundUser()
|
D | BaseDeviceOwnerTest.java | 129 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/ |
D | WifiMigrationTest.java | 106 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/ |
D | UserLifecycleJourneyStatsTests.java | 45 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/ |
D | CVE_2021_0602.java | 44 initialUserId = device.getCurrentUser(); in testPocCVE_2021_0602() 57 if (device.getCurrentUser() != initialUserId) { in testPocCVE_2021_0602()
|
D | CVE_2023_40092.java | 43 int primaryUserId = device.getCurrentUser(); in testPocCVE_2023_40092() 49 installPackage("CVE-2023-40092.apk", "--user " + device.getCurrentUser()); in testPocCVE_2023_40092()
|
D | CVE_2023_21277.java | 47 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21277() 53 int userId = device.getCurrentUser(); in testPocCVE_2023_21277()
|
D | CVE_2023_21238.java | 48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21238() 54 int userId = device.getCurrentUser(); in testPocCVE_2023_21238()
|
D | CVE_2023_40086.java | 49 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_40086() 60 int userId = device.getCurrentUser(); in testPocCVE_2023_40086()
|
D | CVE_2023_21279.java | 48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21279() 54 int userId = device.getCurrentUser(); in testPocCVE_2023_21279()
|
D | CVE_2023_21286.java | 48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21286() 54 int userId = device.getCurrentUser(); in testPocCVE_2023_21286()
|
D | TestLocationScanningServicesUsingSlices.java | 52 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/ |
D | PackageInstallationSessionReportedStatsTests.java | 76 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()
|
D | InstalledIncrementalPackageStatsTests.java | 60 String.valueOf(getDevice().getCurrentUser()))); in testInstalledIncrementalMetricsReported() 63 String.valueOf(getDevice().getCurrentUser()))); in testInstalledIncrementalMetricsReported()
|
D | ComponentStateChangedReportedStatsTests.java | 109 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()
|
D | PackageManagerStatsTestsBase.java | 72 "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/ |
D | BaseContextCrossProfileTest.java | 69 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/ |
D | CtsRootlessGpuDebugHostTest.java | 349 "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/ |
D | AppHibernationStatsTest.java | 84 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/ |
D | ProxyMediaRouter2HostSideTest.java | 75 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/ |
D | BaseMultiUserTest.java | 64 mInitialUserId = getDevice().getCurrentUser(); in setUp() 73 if (getDevice().getCurrentUser() != mInitialUserId) { in tearDown()
|
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/ |
D | LockPatternHelperHostTest.java | 36 String userId = String.valueOf(getDevice().getCurrentUser()); in testIsSecureApi()
|
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/ |
D | RunasPermissionsTest.java | 51 int currentUser = getDevice().getCurrentUser(); in testRunasCanConnectToAppsSocket()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 76 mInitialUserId = getDevice().getCurrentUser(); in setUp() 85 int currentUserId = getDevice().getCurrentUser(); in tearDown() 155 final int currentUserId = getDevice().getCurrentUser(); in assertSwitchToUser()
|