Searched refs:HalCallback (Results 1 – 9 of 9) sorted by relevance
/packages/services/Car/service/src/com/android/car/hal/ |
D | UserHalService.java | 31 import android.car.userlib.HalCallback; 276 @NonNull HalCallback<InitialUserInfoResponse> callback) { in getInitialUserInfo() 325 @NonNull HalCallback<?> callback) { in sendHalRequest() 335 callback.onResponse(HalCallback.STATUS_HAL_SET_TIMEOUT, null); in sendHalRequest() 350 @NonNull HalCallback<SwitchUserResponse> callback) { in switchUser() 418 @NonNull HalCallback<CreateUserResponse> callback) { in createUser() 604 @NonNull HalCallback<UserIdentificationResponse> callback) { in setUserAssociation() 652 HalCallback<UserIdentificationResponse> callback = handleGetPendingCallback(requestId, in handleOnUserIdentificationAssociation() 664 callback.onResponse(HalCallback.STATUS_WRONG_HAL_RESPONSE, null); in handleOnUserIdentificationAssociation() 666 getHalCallbackStatusForStatsd(HalCallback.STATUS_WRONG_HAL_RESPONSE), requestId, in handleOnUserIdentificationAssociation() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 50 import android.car.userlib.HalCallback; 291 assertCallbackStatus(callback, HalCallback.STATUS_HAL_SET_TIMEOUT); in testGetUserInfo_halSetTimedOut() 307 assertCallbackStatus(callback, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_halDidNotReply() 323 assertCallbackStatus(callback1, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_secondCallFailWhilePending() 327 assertCallbackStatus(callback2, HalCallback.STATUS_CONCURRENT_OPERATION); in testGetUserInfo_secondCallFailWhilePending() 345 assertCallbackStatus(callback, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_halReplyWithWrongRequestId() 368 assertCallbackStatus(callback, HalCallback.STATUS_WRONG_HAL_RESPONSE); in testGetUserInfo_halReturnedInvalidAction() 391 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successDefault() 420 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successSwitchUser() 453 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successCreateUser() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 39 import android.car.userlib.HalCallback; 386 userSwitchingWhenHalFailsTest(HalCallback.STATUS_HAL_SET_TIMEOUT); in testUserSwitchingUsingHal_failure_setTimeout() 391 userSwitchingWhenHalFailsTest(HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testUserSwitchingUsingHal_failure_responseTimeout() 396 userSwitchingWhenHalFailsTest(HalCallback.STATUS_CONCURRENT_OPERATION); in testUserSwitchingUsingHal_failure_concurrentOperation() 401 userSwitchingWhenHalFailsTest(HalCallback.STATUS_WRONG_HAL_RESPONSE); in testUserSwitchingUsingHal_failure_wrongResponse() 429 setGetUserInfoResponse((c) -> c.onResponse(HalCallback.STATUS_OK, response)); in testUserSwitchingUsingHal_invalidAction() 440 setGetUserInfoResponse((c) -> c.onResponse(HalCallback.STATUS_OK, /* response= */ null)); in testUserSwitchingUsingHal_default_nullResponse() 452 setGetUserInfoResponse((c) -> c.onResponse(HalCallback.STATUS_OK, response)); in testUserSwitchingUsingHal_default_ok() 466 setGetUserInfoResponse((c) -> c.onResponse(HalCallback.STATUS_OK, response)); in testUserSwitchingUsingHal_switch() 482 setGetUserInfoResponse((c) -> c.onResponse(HalCallback.STATUS_OK, response)); in testUserSwitchingUsingHal_create() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 72 import android.car.userlib.HalCallback; 73 import android.car.userlib.HalCallback.HalCallbackStatus; 499 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateAdminDriver_IfCurrentUserIsAdminUser() 519 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateNonAdminDriver() 893 mockHalSwitch(mAdminUser.id, HalCallback.STATUS_WRONG_HAL_RESPONSE, mSwitchUserResponse, in testSwitchUser_error_badCallbackStatus() 1246 mockHalCreateUser(HalCallback.STATUS_INVALID, /* not_used_status= */ -1); in testCreateUser_internalHalFailure() 1261 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.FAILURE); in testCreateUser_halFailure() 1313 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateUser_success() 1347 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateUser_success_nullName() 1396 assertThat(mReceiver.getResultCode()).isEqualTo(HalCallback.STATUS_OK); in testGetUserInfo_defaultResponse() [all …]
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | UserHalHelper.java | 23 import android.car.userlib.HalCallback.HalCallbackStatus; 78 case HalCallback.STATUS_OK: in halCallbackStatusToString() 80 case HalCallback.STATUS_HAL_SET_TIMEOUT: in halCallbackStatusToString() 82 case HalCallback.STATUS_HAL_RESPONSE_TIMEOUT: in halCallbackStatusToString() 84 case HalCallback.STATUS_WRONG_HAL_RESPONSE: in halCallbackStatusToString() 86 case HalCallback.STATUS_CONCURRENT_OPERATION: in halCallbackStatusToString()
|
D | HalCallback.java | 30 public interface HalCallback<R> { interface
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 25 import android.car.userlib.HalCallback; 505 case HalCallback.STATUS_HAL_RESPONSE_TIMEOUT: in switchUserOnResumeIfNecessaryUsingHal() 506 case HalCallback.STATUS_HAL_SET_TIMEOUT: in switchUserOnResumeIfNecessaryUsingHal() 509 case HalCallback.STATUS_CONCURRENT_OPERATION: in switchUserOnResumeIfNecessaryUsingHal() 512 case HalCallback.STATUS_WRONG_HAL_RESPONSE: in switchUserOnResumeIfNecessaryUsingHal() 515 case HalCallback.STATUS_HAL_NOT_SUPPORTED: in switchUserOnResumeIfNecessaryUsingHal() 518 case HalCallback.STATUS_OK: in switchUserOnResumeIfNecessaryUsingHal()
|
D | CarShellCommand.java | 41 import android.car.userlib.HalCallback; 889 HalCallback<InitialUserInfoResponse> callback = (status, resp) -> { 894 if (status != HalCallback.STATUS_OK) { 990 if (status != HalCallback.STATUS_OK) { 1003 if (status == HalCallback.STATUS_OK 1111 if (status == HalCallback.STATUS_OK) {
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 42 import android.car.userlib.HalCallback; 633 sendResult(receiver, HalCallback.STATUS_HAL_NOT_SUPPORTED, null); in getInitialUserInfo() 733 HalCallback<InitialUserInfoResponse> callback) { in getInitialUserInfo() 739 callback.onResponse(HalCallback.STATUS_HAL_NOT_SUPPORTED, null); in getInitialUserInfo() 859 if (status != HalCallback.STATUS_OK) { in switchUser() 1050 if (status != HalCallback.STATUS_OK) { in createUser() 1173 if (status != HalCallback.STATUS_OK) { in setUserIdentificationAssociation()
|