/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/ |
D | UserLifecycleEventStatsTests.java | 38 String userName = "TestUser_" + System.currentTimeMillis(); in testCreateGuestUser() local 39 int userId = userCreate(userName, true); in testCreateGuestUser() 47 String userName = "TestUser_" + System.currentTimeMillis(); in testRemoveGuestUser() local 48 int userId = removeGuestUser(userName, true); in testRemoveGuestUser() 64 String userName = "FullUser_" + System.currentTimeMillis(); in testCreateFullUser() local 65 int userId = userCreate(userName, false); in testCreateFullUser() 73 String userName = "FullUser_" + System.currentTimeMillis(); in testRemoveFullUser() local 74 int userId = removeGuestUser(userName, false); in testRemoveFullUser()
|
D | UserLifecycleJourneyStatsTests.java | 42 String userName = "TestUser_" + System.currentTimeMillis(); in testCreateGuestUser() local 43 int userId = userCreate(userName, true); in testCreateGuestUser() 52 String userName = "TestUser_" + System.currentTimeMillis(); in testRemoveGuestUser() local 53 int userId = removeGuestUser(userName, true); in testRemoveGuestUser() 71 String userName = "FullUser_" + System.currentTimeMillis(); in testCreateFullUser() local 72 int userId = userCreate(userName, false); in testCreateFullUser() 81 String userName = "FullUser_" + System.currentTimeMillis(); in testRemoveFullUser() local 82 int userId = removeGuestUser(userName, false); in testRemoveFullUser()
|
D | UserStatsTests.java | 73 protected int userCreate(String userName, boolean isGuest) throws Exception { in userCreate() argument 75 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in userCreate() 82 protected int removeGuestUser(String userName, boolean isGuest) throws Exception { in removeGuestUser() argument 83 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in removeGuestUser() 92 protected int switchUser(String userName, boolean isGuest) throws Exception { in switchUser() argument 93 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in switchUser()
|
D | UserInfoStatsTests.java | 73 String userName = "TestUser_" + System.currentTimeMillis(); in testGuestUserExists() local 74 int userId = userCreate(userName, true); in testGuestUserExists() 99 String userName = "TestUser_" + System.currentTimeMillis(); in testSecondaryUserExists() local 100 int userId = userCreate(userName, false); in testSecondaryUserExists() 131 private int userCreate(String userName, boolean isGuest) throws Exception { in userCreate() argument 132 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in userCreate()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 135 public static String createManagedProfileUser(int parentUserId, String userName) { in createManagedProfileUser() argument 136 return "pm create-user --profileOf " + parentUserId + " --managed " + userName; in createManagedProfileUser()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2023_21256.java | 55 if (userInfo.userName().equals("CVE_2023_21256_work_user")) { in testPocCVE_2023_21256()
|
D | CVE_2023_21107.java | 45 if (userInfo.userName().equals("CVE_2023_21107_TestUser")) { in withManagedUser()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20223/src/android/security/cts/CVE_2022_20223/ |
D | DeviceTest.java | 95 BySelector selector = By.text(mContext.getString(R.string.userName)); in testAppRestrictionsFragment() 97 mContext.getString(R.string.userName)), clickUiObject(selector)); in testAppRestrictionsFragment()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/ |
D | ActivityManagerHelperTest.java | 467 private static int createUser(String userName) throws Exception { in createUser() argument 468 Log.d(TAG, "createUser: " + userName); in createUser() 469 String retStr = SystemUtil.runShellCommand(CREATE_USER_COMMAND + userName); in createUser() 473 throw new Exception("failed to create user: " + userName); in createUser()
|
/cts/tests/tests/car/src/android/car/app/cts/ |
D | MultiUserMultiDisplayWindowSecurityTest.java | 197 String userName = new StringBuilder(PREFIX_NEW_USER_NAME).append(displayId).toString(); in createNewUser() local 201 mCarUserManager.createUser(new UserCreationRequest.Builder().setName(userName).build(), in createNewUser()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 961 String userName = "user"; in testAccessHttpAuthUsernamePassword() local 967 mWebView.setHttpAuthUsernamePassword(host, realm, userName, password); in testAccessHttpAuthUsernamePassword() 970 assertEquals(userName, result[0]); in testAccessHttpAuthUsernamePassword() 974 mWebView.setHttpAuthUsernamePassword(host, realm, userName, newPassword); in testAccessHttpAuthUsernamePassword() 977 assertEquals(userName, result[0]); in testAccessHttpAuthUsernamePassword() 994 mWebView.setHttpAuthUsernamePassword(host, realm, userName, null); in testAccessHttpAuthUsernamePassword() 997 assertEquals(userName, result[0]); in testAccessHttpAuthUsernamePassword() 1027 String userName = "user"; in testWebViewDatabaseAccessHttpAuthUsernamePassword() local 1033 webViewDb.setHttpAuthUsernamePassword(host, realm, userName, password); in testWebViewDatabaseAccessHttpAuthUsernamePassword() 1036 assertEquals(userName, result[0]); in testWebViewDatabaseAccessHttpAuthUsernamePassword() [all …]
|
/cts/common/device-side/bedstead/modules/permissions/src/test/kotlin/com/android/bedstead/permissions/ |
D | PermissionsTest.kt | 386 assertDoesNotThrow("Attempt $i") { userManager.userName } in withPermission_serverCall_flakeTest() 390 assertThrows("Expected to throw attempt $i") { userManager.userName } in withPermission_serverCall_flakeTest()
|