/packages/services/Car/car-lib/src/android/car/user/ |
D | UserStartResult.java | 44 public static final int STATUS_SUCCESSFUL = CommonResults.STATUS_SUCCESSFUL; field in UserStartResult 84 return mStatus == STATUS_SUCCESSFUL || mStatus == STATUS_SUCCESSFUL_USER_IS_CURRENT_USER; in isSuccess() 103 STATUS_SUCCESSFUL, 117 case STATUS_SUCCESSFUL: in statusToString() 146 if (!(mStatus == STATUS_SUCCESSFUL) in UserStartResult() 152 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserStartResult() 215 if (!(mStatus == STATUS_SUCCESSFUL) in UserStartResult() 221 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserStartResult()
|
D | UserStopResult.java | 46 public static final int STATUS_SUCCESSFUL = CommonResults.STATUS_SUCCESSFUL; field in UserStopResult 91 return status == STATUS_SUCCESSFUL; in isSuccess() 116 STATUS_SUCCESSFUL, 131 case STATUS_SUCCESSFUL: in statusToString() 163 if (!(mStatus == STATUS_SUCCESSFUL) in UserStopResult() 170 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserStopResult() 235 if (!(mStatus == STATUS_SUCCESSFUL) in UserStopResult() 242 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserStopResult()
|
D | UserRemovalResult.java | 46 public static final int STATUS_SUCCESSFUL = CommonResults.STATUS_SUCCESSFUL; field in UserRemovalResult 106 return mStatus == STATUS_SUCCESSFUL || mStatus == STATUS_SUCCESSFUL_LAST_ADMIN_REMOVED in isSuccess() 128 STATUS_SUCCESSFUL, 145 case STATUS_SUCCESSFUL: in statusToString() 183 if (!(mStatus == STATUS_SUCCESSFUL) in UserRemovalResult() 192 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserRemovalResult() 261 if (!(mStatus == STATUS_SUCCESSFUL) in UserRemovalResult() 270 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserRemovalResult()
|
D | UserCreationResult.java | 51 public static final int STATUS_SUCCESSFUL = CommonResults.STATUS_SUCCESSFUL; field in UserCreationResult 133 return mStatus == STATUS_SUCCESSFUL; in isSuccess() 170 STATUS_SUCCESSFUL, 185 case STATUS_SUCCESSFUL: in statusToString() 233 if (!(mStatus == STATUS_SUCCESSFUL) in UserCreationResult() 240 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserCreationResult() 364 if (!(mStatus == STATUS_SUCCESSFUL) in UserCreationResult() 371 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserCreationResult()
|
D | UserSwitchResult.java | 50 public static final int STATUS_SUCCESSFUL = CommonResults.STATUS_SUCCESSFUL; field in UserSwitchResult 162 return mStatus == STATUS_SUCCESSFUL || mStatus == STATUS_OK_USER_ALREADY_IN_FOREGROUND; in isSuccess() 195 STATUS_SUCCESSFUL, 216 case STATUS_SUCCESSFUL: in statusToString() 276 if (!(mStatus == STATUS_SUCCESSFUL) in UserSwitchResult() 289 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserSwitchResult() 396 if (!(mStatus == STATUS_SUCCESSFUL) in UserSwitchResult() 409 + "STATUS_SUCCESSFUL(" + STATUS_SUCCESSFUL + "), " in UserSwitchResult()
|
D | CommonResults.java | 34 public static final int STATUS_SUCCESSFUL = 1; field in CommonResults
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | PublicApiFunctionalTest.java | 122 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testBasicRequest() 153 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL, 10 * DateUtils.MINUTE_IN_MILLIS); in testExtremelyLarge() 200 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testInterruptedDownload() 214 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testInterruptedExternalDownload() 256 download1.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testFiltering() 277 | DownloadManager.STATUS_SUCCESSFUL)); in testFiltering() 298 download1.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testOrdering() 302 download2.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testOrdering() 356 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testDestination() 377 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); in testRequestHeaders() [all …]
|
D | AbstractPublicApiTest.java | 20 import static android.app.DownloadManager.STATUS_SUCCESSFUL; 140 if (actual == STATUS_SUCCESSFUL || actual == STATUS_FAILED) { in waitForStatus()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | UserCreationResultTest.java | 22 import static android.car.user.UserCreationResult.STATUS_SUCCESSFUL; 37 assertThat(new UserCreationResult(STATUS_SUCCESSFUL).isSuccess()).isTrue(); in testIsSuccess() 51 UserCreationResult result = new UserCreationResult(STATUS_SUCCESSFUL); in testConstructor_statusOnly() 53 assertThat(result.getStatus()).isEqualTo(STATUS_SUCCESSFUL); in testConstructor_statusOnly() 64 UserCreationResult result = new UserCreationResult(STATUS_SUCCESSFUL, user); in testConstructor_statusAndUserOnly() 66 assertThat(result.getStatus()).isEqualTo(STATUS_SUCCESSFUL); in testConstructor_statusAndUserOnly()
|
D | UserSwitchResultTest.java | 31 new UserSwitchResult(UserSwitchResult.STATUS_SUCCESSFUL, msg); in testIUserSwitchResult_checkStatusAndMessage() 32 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testIUserSwitchResult_checkStatusAndMessage() 46 new UserSwitchResult(UserSwitchResult.STATUS_SUCCESSFUL, null); in testIUserSwitchResult_isSuccess_success()
|
D | CarUserManagerUnitTest.java | 245 expectServiceSwitchUserSucceeds(11, UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchUser_success() 251 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchUser_success() 282 expectServiceLogoutUserSucceeds(UserSwitchResult.STATUS_SUCCESSFUL); in testLogoutUser_success() 288 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testLogoutUser_success() 323 assertThat(result.getStatus()).isEqualTo(UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_success() 362 UserCreationResult.STATUS_SUCCESSFUL, 108); in testCreateUser_success() 368 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateUser_success() 410 UserCreationResult.STATUS_SUCCESSFUL, 108); in testCreateGuest_success() 416 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateGuest_success() 651 future.complete(new UserRemovalResult(UserRemovalResult.STATUS_SUCCESSFUL)); in expectServiceRemoveUserSucceeds()
|
D | CarUserServiceTest.java | 611 .isEqualTo(UserStopResult.STATUS_SUCCESSFUL); in testStopUser_success() 735 UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_alreadyBeingRemoved_success() 793 UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_notLastAdminUser_success() 808 assertUserRemovalResultStatus(result, UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_success() 823 UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_halNotSupported() 894 UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUserWithRestriction_adminRemovingAdmin() 910 UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUserWithRestriction_adminRemovingNonAdmin() 980 UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchUser_halNotSupported_success() 1016 UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchUser_HalSuccessAndroidSuccess() 1113 UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchUser_failUxRestrictionsChanged() [all …]
|
D | ExperimentalCarUserManagerUnitTest.java | 80 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateDriver_Success_Admin() 94 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateDriver_Success_NonAdmin() 128 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchDriver_Success() 198 future.complete(new UserCreationResult(UserCreationResult.STATUS_SUCCESSFUL, in expectCreateDriverSucceed() 222 future.complete(new UserSwitchResult(UserSwitchResult.STATUS_SUCCESSFUL, null)); in expectSwitchDriverSucceed()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/ |
D | CreateUserResultTest.java | 43 new UserCreationResult(UserCreationResult.STATUS_SUCCESSFUL, user.getUserHandle())); in testSuccess() 53 new UserCreationResult(UserCreationResult.STATUS_SUCCESSFUL)); in testFailure_nullUserInfo() 70 new UserCreationResult(UserCreationResult.STATUS_SUCCESSFUL, user.getUserHandle())); in testFailure_nullUserHandle() 79 failureTest(UserCreationResult.STATUS_SUCCESSFUL, CreateUserResult.STATUS_FAILURE_GENERIC); in testFailure()
|
D | CarDevicePolicyManagerUnitTest.java | 67 int status = UserRemovalResult.STATUS_SUCCESSFUL; in testRemoveUser_success() 102 int status = UserCreationResult.STATUS_SUCCESSFUL; in testCreateUser_success() 135 mockStartUserInBackground(100, UserStartResult.STATUS_SUCCESSFUL); in testStartUserInBackground_success() 163 mockStopUser(100, UserStopResult.STATUS_SUCCESSFUL); in testStopUser_success()
|
D | StartUserInBackgroundResultTest.java | 46 {UserStartResult.STATUS_SUCCESSFUL, in provideParams()
|
D | StopUserResultTest.java | 47 {UserStopResult.STATUS_SUCCESSFUL, StopUserResult.STATUS_SUCCESS, true}, in provideParams()
|
D | RemoveUserResultTest.java | 28 successTest(UserRemovalResult.STATUS_SUCCESSFUL, in testSuccess()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 299 mockRemoveUser(nonAdminUserId, UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_isAdmin_canRemoveOtherUsers() 341 UserCreationResult.STATUS_SUCCESSFUL, newAdminInfo); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser() 385 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestUser); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() 402 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestUser); in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() 479 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestInfo); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest() 516 .thenReturn(new UserRemovalResult(UserRemovalResult.STATUS_SUCCESSFUL)); in mockRemoveUserSuccess() 544 new UserSwitchResult(UserSwitchResult.STATUS_SUCCESSFUL, /* errorMessage= */null)); in mockSwitchUserSuccess()
|
D | AddNewProfileTaskTest.java | 70 mockCreateUser(newUser, UserCreationResult.STATUS_SUCCESSFUL); in testTaskCallsCreateNewUser() 83 mockCreateUser(newUser, UserCreationResult.STATUS_SUCCESSFUL); in testSwitchToNewUserIfUserCreated() 96 mockCreateUser(newUser, UserCreationResult.STATUS_SUCCESSFUL); in testOnUserAddedSuccessCalledIfUserCreated()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | DownloadPackageTaskTest.java | 156 mockSuccessfulDownload(DownloadManager.STATUS_SUCCESSFUL); in testDownloadSucceeded() 177 mockSuccessfulDownload(DownloadManager.STATUS_SUCCESSFUL); in testSendBroadcastTwice()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | CompletedDownloadInfo.java | 34 return DownloadManager.STATUS_SUCCESSFUL == mStatus; in wasSuccessful()
|
/packages/services/Car/car-lib/src/android/car/admin/ |
D | StartUserInBackgroundResult.java | 79 case UserStartResult.STATUS_SUCCESSFUL: in StartUserInBackgroundResult()
|
D | StopUserResult.java | 86 case UserStopResult.STATUS_SUCCESSFUL: in StopUserResult()
|
D | RemoveUserResult.java | 110 case UserRemovalResult.STATUS_SUCCESSFUL: in RemoveUserResult()
|