Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java32 import android.car.userlib.HalCallback;
299 @NonNull HalCallback<InitialUserInfoResponse> callback) { in getInitialUserInfo()
349 @NonNull HalCallback<?> callback) { in sendHalRequest()
359 callback.onResponse(HalCallback.STATUS_HAL_SET_TIMEOUT, null); in sendHalRequest()
374 @NonNull HalCallback<SwitchUserResponse> callback) { in switchUser()
444 @NonNull HalCallback<CreateUserResponse> callback) { in createUser()
632 @NonNull HalCallback<UserIdentificationResponse> callback) { in setUserAssociation()
680 HalCallback<UserIdentificationResponse> callback = handleGetPendingCallback(requestId, in handleOnUserIdentificationAssociation()
692 callback.onResponse(HalCallback.STATUS_WRONG_HAL_RESPONSE, null); in handleOnUserIdentificationAssociation()
695 getHalCallbackStatusForStatsd(HalCallback.STATUS_WRONG_HAL_RESPONSE), in handleOnUserIdentificationAssociation()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java50 import android.car.userlib.HalCallback;
308 assertCallbackStatus(callback, HalCallback.STATUS_HAL_SET_TIMEOUT); in testGetUserInfo_halSetTimedOut()
324 assertCallbackStatus(callback, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_halDidNotReply()
340 assertCallbackStatus(callback1, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_secondCallFailWhilePending()
344 assertCallbackStatus(callback2, HalCallback.STATUS_CONCURRENT_OPERATION); in testGetUserInfo_secondCallFailWhilePending()
362 assertCallbackStatus(callback, HalCallback.STATUS_HAL_RESPONSE_TIMEOUT); in testGetUserInfo_halReplyWithWrongRequestId()
385 assertCallbackStatus(callback, HalCallback.STATUS_WRONG_HAL_RESPONSE); in testGetUserInfo_halReturnedInvalidAction()
408 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successDefault()
437 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successSwitchUser()
470 assertCallbackStatus(callback, HalCallback.STATUS_OK); in testGetUserInfo_successCreateUser()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java78 import android.car.userlib.HalCallback;
79 import android.car.userlib.HalCallback.HalCallbackStatus;
665 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateAdminDriver_IfCurrentUserIsAdminUser()
687 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateNonAdminDriver()
1208 mockHalSwitch(mAdminUser.id, HalCallback.STATUS_WRONG_HAL_RESPONSE, mSwitchUserResponse, in testSwitchUser_error_badCallbackStatus()
1602 mockHalCreateUser(HalCallback.STATUS_INVALID, /* not_used_status= */ -1); in testCreateUser_internalHalFailure()
1619 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.FAILURE); in testCreateUser_halFailure()
1677 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateUser_success()
1713 mockHalCreateUser(HalCallback.STATUS_OK, CreateUserStatus.SUCCESS); in testCreateUser_success_nullName()
2520 HalCallback<InitialUserInfoResponse> callback = in mockHalGetInitialInfo()
[all …]
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHalHelper.java23 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()
DHalCallback.java30 public interface HalCallback<R> { interface
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java51 import android.car.userlib.HalCallback;
1280 HalCallback<InitialUserInfoResponse> callback = (status, resp) -> {
1285 if (status != HalCallback.STATUS_OK) {
1378 if (status != HalCallback.STATUS_OK) {
1391 if (status == HalCallback.STATUS_OK
1499 if (status == HalCallback.STATUS_OK) {
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java52 import android.car.userlib.HalCallback;
1071 if (halCallbackStatus != HalCallback.STATUS_OK) { in handleSwitchUser()
1427 if (status != HalCallback.STATUS_OK) { in handleCreateUser()
1561 if (status != HalCallback.STATUS_OK) { in setUserIdentificationAssociation()
1617 sendUserSwitchResult(receiver, HalCallback.STATUS_INVALID, userSwitchStatus, in sendUserSwitchResult()
1622 @HalCallback.HalCallbackStatus int halCallbackStatus, in sendUserSwitchResult()