/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | SecondaryUsersTest.java | 60 int currentUser = -10000; // UserHandle.USER_NULL; in testSwitchToSecondaryUserBeforeBootComplete() local 73 currentUser = getDevice().getCurrentUser(); in testSwitchToSecondaryUserBeforeBootComplete() 74 isUserSecondary = getDevice().isUserSecondary(currentUser); in testSwitchToSecondaryUserBeforeBootComplete() 75 CLog.d("Current user: %d isSecondary: %b", currentUser, isUserSecondary); in testSwitchToSecondaryUserBeforeBootComplete() 81 POLL_INTERVAL_MS, currentUser); in testSwitchToSecondaryUserBeforeBootComplete() 89 assertWithMessage("Current user (%s) is a secondary user after boot", currentUser) in testSwitchToSecondaryUserBeforeBootComplete()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/ |
D | UserManagerHelperLiteTest.java | 69 UserHandle currentUser = TestApis.users().current().userHandle(); in testMultiplePropertiesForCurrentUser() local 71 expectWithMessage("User %s isEphemeralUser", currentUser).that( in testMultiplePropertiesForCurrentUser() 72 UserManagerHelper.isEphemeralUser(mUserManager, currentUser)).isFalse(); in testMultiplePropertiesForCurrentUser() 73 expectWithMessage("User %s isFullUser", currentUser).that( in testMultiplePropertiesForCurrentUser() 74 UserManagerHelper.isFullUser(mUserManager, currentUser)).isTrue(); in testMultiplePropertiesForCurrentUser() 75 expectWithMessage("User %s isGuestUser", currentUser).that( in testMultiplePropertiesForCurrentUser() 76 UserManagerHelper.isGuestUser(mUserManager, currentUser)).isFalse(); in testMultiplePropertiesForCurrentUser() 79 expectWithMessage("User %s isEnabledUser", currentUser).that( in testMultiplePropertiesForCurrentUser() 80 UserManagerHelper.isEnabledUser(mUserManager, currentUser)).isTrue(); in testMultiplePropertiesForCurrentUser() 83 expectWithMessage("User %s isInitializedUser", currentUser).that( in testMultiplePropertiesForCurrentUser() [all …]
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2022_20360.java | 43 int currentUser = -1; in testPocCVE_2022_20360() local 52 currentUser = device.getCurrentUser(); in testPocCVE_2022_20360() 71 if (currentUser != -1) { in testPocCVE_2022_20360() 73 device.switchUser(currentUser); in testPocCVE_2022_20360()
|
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/ |
D | RunasPermissionsTest.java | 51 int currentUser = getDevice().getCurrentUser(); in testRunasCanConnectToAppsSocket() local 54 TEST_APP_PACKAGE, currentUser, CONNECTOR_EXE_NAME)); in testRunasCanConnectToAppsSocket() 57 TEST_APP_PACKAGE, currentUser, CONNECTOR_EXE_NAME)); in testRunasCanConnectToAppsSocket()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | ListForegroundAffiliatedUsersTest.java | 35 UserHandle currentUser = invokeStaticMethodWithShellPermissions(() -> getCurrentUser()); in testListForegroundAffiliatedUsers_onlyForegroundUser() local 36 Log.d(TAG, "currentUser: " + currentUser + " users: " + users); in testListForegroundAffiliatedUsers_onlyForegroundUser() 38 assertWithMessage("foreground users").that(users).containsExactly(currentUser); in testListForegroundAffiliatedUsers_onlyForegroundUser()
|
D | BaseDeviceOwnerTest.java | 132 UserHandle currentUser = UserHandle.of(ActivityManager.getCurrentUser()); in getCurrentUser() local 133 Log.v(TAG, "getCurrentUser(): returning " + currentUser); in getCurrentUser() 134 return currentUser; in getCurrentUser()
|
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
D | AdditionalSubtypeLifecycleTest.java | 114 final UserReference currentUser = sDeviceState.initialUser(); in testPerUserAdditionalInputMethodSubtype() local 116 final int currentUserId = currentUser.id(); in testPerUserAdditionalInputMethodSubtype() 120 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testPerUserAdditionalInputMethodSubtype() 148 final UserReference currentUser = sDeviceState.initialUser(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() local 150 final int currentUserId = currentUser.id(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 154 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 163 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 188 final UserReference currentUser = sDeviceState.initialUser(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() local 190 final int currentUserId = currentUser.id(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() 194 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() [all …]
|
D | InputMethodServiceSwitchingTest.java | 73 final UserReference currentUser = sDeviceState.initialUser(); in testUninstallCurrentIme() local 74 final int currentUserId = currentUser.id(); in testUninstallCurrentIme() 76 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testUninstallCurrentIme() 87 TestApis.packages().find(Ime1Constants.PACKAGE).uninstall(currentUser); in testUninstallCurrentIme() 94 final UserReference currentUser = sDeviceState.initialUser(); in testDisableCurrentIme() local 95 final int currentUserId = currentUser.id(); in testDisableCurrentIme() 97 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testDisableCurrentIme()
|
D | ForceStopTest.java | 97 final UserReference currentUser = sDeviceState.initialUser(); in testImeRemainsEnabledAfterForceStopForCurrentUser() local 98 testImeRemainsEnabledAfterForceStopMain(currentUser, false /* selectIme */, in testImeRemainsEnabledAfterForceStopForCurrentUser() 107 final UserReference currentUser = sDeviceState.initialUser(); in testImeRemainsSelectedAndEnabledAfterForceStopForCurrentUser() local 108 testImeRemainsEnabledAfterForceStopMain(currentUser, true /* selectIme */, in testImeRemainsSelectedAndEnabledAfterForceStopForCurrentUser()
|
D | MultiUserTest.java | 125 final UserReference currentUser = sDeviceState.initialUser(); in testAdditionalUser() local 128 final int currentUserId = currentUser.id(); in testAdditionalUser() 165 currentUser.switchTo(); in testAdditionalUser() 192 final UserReference currentUser = sDeviceState.initialUser(); in testProfileUser() local 193 final UserReference profileUser = sDeviceState.workProfile(currentUser); in testProfileUser() 194 final int currentUserId = currentUser.id(); in testProfileUser() 207 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testProfileUser()
|
D | MultiUserMockImeTest.java | 89 final UserReference currentUser = sDeviceState.initialUser(); in testProfileSwitching() local 90 final UserReference workUser = sDeviceState.workProfile(currentUser); in testProfileSwitching() 91 final int currentUserId = currentUser.id(); in testProfileSwitching()
|
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | PermissionCheckerTest.kt | 38 private val currentUser = Process.myUserHandle() constant in android.attributionsource.cts.PermissionCheckerTest 51 HELPER_PACKAGE_NAME, HELPER_PERMISSION_NAME, currentUser in resetHelperPermissionState() 78 HELPER_PACKAGE_NAME, HELPER_PERMISSION_NAME, currentUser in testCheckPermissionForPreflight() 106 HELPER_PACKAGE_NAME, HELPER_PERMISSION_NAME, currentUser in testCheckPermissionForDataDelivery() 140 HELPER_PACKAGE_NAME, HELPER_PERMISSION_NAME, currentUser in testCheckPermissionForDataDeliveryFromDataSource()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/ |
D | HotwordMetricsTestUtils.java | 41 final int currentUser = device.getCurrentUser(); in getTestAppUid() local 43 "cmd package list packages -U --user " + currentUser + " " + TEST_PKG); in getTestAppUid()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageManagerStatsTestsBase.java | 82 final int currentUser = device.getCurrentUser(); in getAppUid() local 84 "cmd package list packages --match-libraries -U --user " + currentUser + " " in getAppUid() 92 + currentUser); in getAppUid()
|
/cts/hostsidetests/packagemanager/packagesetting/src/com/android/tests/packagesetting/host/ |
D | PackageSettingTest.java | 82 final int currentUser = getDevice().getCurrentUser(); in testFirstInstallTimeWithReboot() local 84 TEST_PACKAGE, currentUser); in testFirstInstallTimeWithReboot() 90 getFirstInstallTimeForUserFromDumpsys(TEST_PACKAGE, currentUser)); in testFirstInstallTimeWithReboot()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | UpdateOwnershipEnforcementMultiUserTest.kt | 36 private lateinit var currentUser: UserReference variable in android.packageinstaller.install.cts.UpdateOwnershipEnforcementMultiUserTest 50 currentUser = primaryUser in cacheUsers() 53 currentUser = UserReference.of(context.user) in cacheUsers()
|
/cts/common/device-side/bedstead/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/ |
D | UsersComponent.kt | 82 val currentUser = users().current() in <lambda>() constant 83 if (currentUser != user) { in <lambda>() 116 val currentUser = users().current() in <lambda>() constant 117 if (currentUser != user) { in <lambda>() 119 mOriginalSwitchedUser = currentUser in <lambda>() 446 val currentUser = users().current() in <lambda>() constant 449 if (user == currentUser) { in <lambda>()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | UserVisibilityVisibleBackgroundUsersOnDefaultDisplayTest.java | 85 UserReference currentUser = users().current(); in testStartUserInBackgroundOnSecondaryDisplay_defaultDisplay_currentUser() local 87 startVisibleBackgroundUser(currentUser, DEFAULT_DISPLAY); in testStartUserInBackgroundOnSecondaryDisplay_defaultDisplay_currentUser()
|
/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/ |
D | GpuWorkDumpsysTest.java | 60 int currentUser = getDevice().getCurrentUser(); in getTestAppUid() local 63 String.format("cmd package list packages -U --user %d %s", currentUser, TEST_PKG)); in getTestAppUid()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/ |
D | AppHibernationStatsTest.java | 146 List<StatsLog.EventMetricData> data, boolean isHibernating, int currentUser) { in assertUserLevelHibernationStateChangedEvent() argument 151 assertThat(atom.getUserId()).isEqualTo(currentUser); in assertUserLevelHibernationStateChangedEvent()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ActivityManagerTest.java | 87 final int currentUser = mActMan.getCurrentUser(); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission() local 101 ShellUtils.runShellCommand("am switch-user " + currentUser); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission() 118 final int currentUser = mActMan.getCurrentUser(); in testActivityManager_registerUidChangeObserver_allPermission() local 136 ShellUtils.runShellCommand("am switch-user " + currentUser); in testActivityManager_registerUidChangeObserver_allPermission()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/ |
D | AppExitHostTest.java | 147 final int currentUser = getDevice().getCurrentUser(); in getAppUid() local 149 "cmd package list packages -U --user " + currentUser + " " + pkgName); in getAppUid()
|
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/ |
D | BaseBlobStoreHostTest.java | 150 final int currentUser = getDevice().getCurrentUser(); in getAppUid() local 152 "cmd package list packages -U --user " + currentUser + " " + pkgName); in getAppUid()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 3103 int currentUser = ActivityManager.getCurrentUser(); in testInstallArchivedBroadcasts() local 3105 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_PACKAGE_ADDED in testInstallArchivedBroadcasts() 3108 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_PACKAGE_REMOVED in testInstallArchivedBroadcasts() 3111 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_UID_REMOVED in testInstallArchivedBroadcasts() 3279 int currentUser = ActivityManager.getCurrentUser(); in testInstallArchivedApiBroadcasts() local 3281 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_PACKAGE_ADDED in testInstallArchivedApiBroadcasts() 3284 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_PACKAGE_REMOVED in testInstallArchivedApiBroadcasts() 3287 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_UID_REMOVED in testInstallArchivedApiBroadcasts() 3414 final int currentUser = ActivityManager.getCurrentUser(); in testPackageRemovedBroadcastsSingleUser() local 3417 HELLO_WORLD_PACKAGE_NAME, currentUser, Intent.ACTION_PACKAGE_REMOVED in testPackageRemovedBroadcastsSingleUser() [all …]
|
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/ |
D | ActivityContext.java | 240 UserReference currentUser = TestApis.users().current(); in getWithContextInternal() local 297 currentUser.switchTo(); in getWithContextInternal()
|