Home
last modified time | relevance | path

Searched refs:HalCallback (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java310 HalCallback<InitialUserInfoResponse> callback) { in getInitialUserInfo()
364 HalCallback<?> callback) { in sendHalRequest()
372 callback.onResponse(HalCallback.STATUS_HAL_SET_TIMEOUT, null); in sendHalRequest()
387 HalCallback<SwitchUserResponse> callback) { in switchUser()
457 HalCallback<CreateUserResponse> callback) { in createUser()
650 HalCallback<UserIdentificationResponse> callback) { in setUserAssociation()
699 HalCallback<UserIdentificationResponse> callback = handleGetPendingCallback(requestId, in handleOnUserIdentificationAssociation()
711 callback.onResponse(HalCallback.STATUS_WRONG_HAL_RESPONSE, null); in handleOnUserIdentificationAssociation()
714 getHalCallbackStatusForStatsd(HalCallback.STATUS_WRONG_HAL_RESPONSE), in handleOnUserIdentificationAssociation()
726 callback.onResponse(HalCallback.STATUS_WRONG_HAL_RESPONSE, null); in handleOnUserIdentificationAssociation()
[all …]
DUserHalHelper.java49 import com.android.car.hal.HalCallback.HalCallbackStatus;
83 case HalCallback.STATUS_OK: in halCallbackStatusToString()
85 case HalCallback.STATUS_HAL_SET_TIMEOUT: in halCallbackStatusToString()
87 case HalCallback.STATUS_HAL_RESPONSE_TIMEOUT: in halCallbackStatusToString()
89 case HalCallback.STATUS_WRONG_HAL_RESPONSE: in halCallbackStatusToString()
91 case HalCallback.STATUS_CONCURRENT_OPERATION: in halCallbackStatusToString()
DHalCallback.java30 public interface HalCallback<R> { interface
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java394 assertCallbackStatus(callback, HalCallback.STATUS_HAL_SET_TIMEOUT); in testGetUserInfo_halSetTimedOut()
410 assertCallbackStatus(callback, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_halDidNotReply()
426 assertCallbackStatus(callback1, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_secondCallFailWhilePending()
430 assertCallbackStatus(callback2, HalCallback.STATUS_CONCURRENT_OPERATION); in testGetUserInfo_secondCallFailWhilePending()
448 assertCallbackStatus(callback, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_halReplyWithWrongRequestId()
471 assertCallbackStatus(callback, HalCallback.STATUS_WRONG_HAL_RESPONSE); in testGetUserInfo_halReturnedInvalidAction()
498 assertCallbackStatus(callback, HalCallback.STATUS_OK); in getUserInfoSuccessTest()
542 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successSwitchUser()
588 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successCreateUser()
589 assertThat(callback.status).isEqualTo(HalCallback.STATUS_OK); in testGetUserInfo_successCreateUser()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DBaseCarUserServiceTestCase.java107 import com.android.car.hal.HalCallback;
108 import com.android.car.hal.HalCallback.HalCallbackStatus;
715 HalCallback<InitialUserInfoResponse> callback = in mockHalGetInitialInfo()
716 (HalCallback<InitialUserInfoResponse>) invocation.getArguments()[3]; in mockHalGetInitialInfo()
717 callback.onResponse(HalCallback.STATUS_OK, response); in mockHalGetInitialInfo()
729 mockHalSwitch(currentUserId, HalCallback.STATUS_OK, response, androidTargetUser); in mockHalSwitch()
747 HalCallback<CreateUserResponse> callback = in mockHalCreateUser()
748 (HalCallback<CreateUserResponse>) invocation.getArguments()[2]; in mockHalCreateUser()
788 HalCallback<SwitchUserResponse> callback = (HalCallback<SwitchUserResponse>) invocation in mockHalSwitchLateResponse()
790 callback.onResponse(HalCallback.STATUS_OK, response); in mockHalSwitchLateResponse()
[all …]
DExperimentalCarUserServiceTest.java55 import com.android.car.hal.HalCallback;
96 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateAdminDriver_IfCurrentUserIsAdminUser()
121 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateNonAdminDriver()
DCarUserServiceTest.java110 import com.android.car.hal.HalCallback;
1314 mockHalSwitch(mAdminUserId, HalCallback.STATUS_WRONG_HAL_RESPONSE, in testSwitchUser_error_badCallbackStatus()
1957 mockHalCreateUser(HalCallback.STATUS_INVALID, /* responseStatus= */ -1); in testCreateUser_internalHalFailure()
1977 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.FAILURE); in testCreateUser_halFailure()
1998 mockHalCreateUser(HalCallback.STATUS_HAL_SET_TIMEOUT, /* response= */ null); in testCreateUser_halTimeout()
2085 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateUser_success()
2119 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateUser_guest_success()
2162 HalCallback<CreateUserResponse> callback = in testCreateUser_concurrentRequests_success()
2163 (HalCallback<CreateUserResponse>) invocation.getArguments()[2]; in testCreateUser_concurrentRequests_success()
2167 callback.onResponse(HalCallback.STATUS_CONCURRENT_OPERATION, failResponse); in testCreateUser_concurrentRequests_success()
[all …]
/packages/services/Car/service/src/com/android/car/evs/
DStateMachine.java94 private final HalCallback mHalCallback;
150 final class HalCallback implements EvsHalWrapper.HalEventCallback { class in StateMachine
333 mHalCallback = new HalCallback(); in StateMachine()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java121 import com.android.car.hal.HalCallback;
980 sendUserSwitchResult(callback, isLogout, HalCallback.STATUS_INVALID, in handleSwitchUser()
1029 if (halCallbackStatus != HalCallback.STATUS_OK || resp == null) { in handleSwitchUser()
1490 if (status != HalCallback.STATUS_OK || resp == null) { in handleCreateUser()
1645 if (status != HalCallback.STATUS_OK || resp == null) { in setUserIdentificationAssociation()
1688 sendUserSwitchResult(callback, isLogout, HalCallback.STATUS_INVALID, userSwitchStatus, in sendUserSwitchResult()
1693 boolean isLogout, @HalCallback.HalCallbackStatus int halCallbackStatus, in sendUserSwitchResult()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DCarEvsServiceUnitTest.java182 @Captor private ArgumentCaptor<StateMachine.HalCallback> mHalCallbackCaptor;
1319 List<StateMachine.HalCallback> callbacks = mHalCallbackCaptor.getAllValues(); in testTwoConcurrentStreamsWithMultipleServiceConfigurations()
1393 List<StateMachine.HalCallback> callbacks = mHalCallbackCaptor.getAllValues(); in testFourConcurrentStreamsFromTwoCamerasWithMultipleServiceConfigurations()
1509 List<StateMachine.HalCallback> callbacks = mHalCallbackCaptor.getAllValues(); in testTwoConcurrentStreamsOnSingleCallbackObject()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java136 import com.android.car.hal.HalCallback;
2210 HalCallback<InitialUserInfoResponse> callback = (status, resp) -> {
2215 if (status != HalCallback.STATUS_OK) {
2316 if (status != HalCallback.STATUS_OK) {
2330 if (status == HalCallback.STATUS_OK
2544 if (status == HalCallback.STATUS_OK) {