Home
last modified time | relevance | path

Searched refs:STATUS_SUCCESSFUL (Results 1 – 25 of 45) sorted by relevance

12

/packages/services/Car/car-lib/src/android/car/user/
DUserStartResult.java44 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()
DUserStopResult.java46 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()
DUserRemovalResult.java46 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()
DUserCreationResult.java51 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()
DUserSwitchResult.java50 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()
DCommonResults.java34 public static final int STATUS_SUCCESSFUL = 1; field in CommonResults
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java122 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 …]
DAbstractPublicApiTest.java20 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/
DUserCreationResultTest.java22 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()
DUserSwitchResultTest.java31 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()
DCarUserManagerUnitTest.java245 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()
DCarUserServiceTest.java611 .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 …]
DExperimentalCarUserManagerUnitTest.java80 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/
DCreateUserResultTest.java43 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()
DCarDevicePolicyManagerUnitTest.java67 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()
DStartUserInBackgroundResultTest.java46 {UserStartResult.STATUS_SUCCESSFUL, in provideParams()
DStopUserResultTest.java47 {UserStopResult.STATUS_SUCCESSFUL, StopUserResult.STATUS_SUCCESS, true}, in provideParams()
DRemoveUserResultTest.java28 successTest(UserRemovalResult.STATUS_SUCCESSFUL, in testSuccess()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java299 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()
DAddNewProfileTaskTest.java70 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/
DDownloadPackageTaskTest.java156 mockSuccessfulDownload(DownloadManager.STATUS_SUCCESSFUL); in testDownloadSucceeded()
177 mockSuccessfulDownload(DownloadManager.STATUS_SUCCESSFUL); in testSendBroadcastTwice()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DCompletedDownloadInfo.java34 return DownloadManager.STATUS_SUCCESSFUL == mStatus; in wasSuccessful()
/packages/services/Car/car-lib/src/android/car/admin/
DStartUserInBackgroundResult.java79 case UserStartResult.STATUS_SUCCESSFUL: in StartUserInBackgroundResult()
DStopUserResult.java86 case UserStopResult.STATUS_SUCCESSFUL: in StopUserResult()
DRemoveUserResult.java110 case UserRemovalResult.STATUS_SUCCESSFUL: in RemoveUserResult()

12