Home
last modified time | relevance | path

Searched refs:StatusCode (Results 1 – 25 of 27) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/hal/
DHalClient.java23 import android.hardware.automotive.vehicle.V2_0.StatusCode;
102 return StatusCode.TRY_AGAIN; in setValue()
106 if (StatusCode.INVALID_ARG == status) { in setValue()
110 if (StatusCode.OK != status) { in setValue()
126 status, StatusCode.toString(status)); in getPropertyErrorMessage()
137 if (StatusCode.INVALID_ARG == status) { in getValue()
141 if (StatusCode.OK != status || valueWrapper.object == null) { in getValue()
144 if (StatusCode.OK == status) { in getValue()
145 status = StatusCode.NOT_AVAILABLE; in getValue()
166 result.status = StatusCode.TRY_AGAIN; in internalGet()
[all …]
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/
DMockedVehicleHal.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
148 cb.onValues(StatusCode.INVALID_ARG, new ArrayList<>()); in getPropConfigs()
153 cb.onValues(StatusCode.OK, res); in getPropConfigs()
160 cb.onValues(StatusCode.INVALID_ARG, null); in get()
162 cb.onValues(StatusCode.OK, handler.onPropertyGet(requestedPropValue)); in get()
170 return StatusCode.INVALID_ARG; in set()
173 return StatusCode.OK; in set()
183 return StatusCode.INVALID_ARG; in subscribe()
203 return StatusCode.OK; in subscribe()
210 return StatusCode.INVALID_ARG; in unsubscribe()
[all …]
/packages/modules/Virtualization/virtmanager/src/
Daidl.rs27 self, BinderFeatures, Interface, ParcelFileDescriptor, StatusCode, Strong, ThreadState,
58 .map(|fd| fd.as_ref().try_clone().map_err(|_| StatusCode::UNKNOWN_ERROR)) in startVm()
67 Err(StatusCode::BAD_VALUE) in startVm()
72 Err(StatusCode::UNKNOWN_ERROR) in startVm()
93 return Err(StatusCode::PERMISSION_DENIED.into()); in debugListVms()
115 return Err(StatusCode::PERMISSION_DENIED.into()); in debugHoldVmRef()
128 return Err(StatusCode::PERMISSION_DENIED.into()); in debugDropVmRef()
254 self.next_cid = self.next_cid.checked_add(1).ok_or(StatusCode::UNKNOWN_ERROR)?; in allocate_cid()
277 StatusCode::BAD_VALUE in start_vm()
282 StatusCode::UNKNOWN_ERROR in start_vm()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalClientUnitTest.java28 import android.hardware.automotive.vehicle.V2_0.StatusCode;
78 .thenReturn(StatusCode.OK); in testSet_remoteExceptionThenOk()
85 when(mIVehicle.set(isProperty(PROP))).thenReturn(StatusCode.INVALID_ARG); in testSet_invalidArgument()
96 when(mIVehicle.set(isProperty(PROP))).thenReturn(StatusCode.INTERNAL_ERROR); in testSet_otherError()
107 when(mIVehicle.set(isProperty(PROP))).thenReturn(StatusCode.OK); in testSet_ok()
/packages/services/Car/cpp/evs/apps/default/
DEvsStateControl.cpp233 if (invokeGet(&mGearValue) != StatusCode::OK) { in selectStateForCurrentConditions()
237 if ((mTurnSignalValue.prop == 0) || (invokeGet(&mTurnSignalValue) != StatusCode::OK)) { in selectStateForCurrentConditions()
277 StatusCode EvsStateControl::invokeGet(VehiclePropValue *pRequestedPropValue) { in invokeGet()
278 StatusCode status = StatusCode::TRY_AGAIN; in invokeGet()
283 (StatusCode s, const VehiclePropValue& v) { in invokeGet()
285 if (s == StatusCode::OK) { in invokeGet()
Devs_app.cpp95 StatusCode status = pVnet->subscribe(listener, options); in subscribeToVHal()
96 if (status != StatusCode::OK) { in subscribeToVHal()
DEvsVehicleListener.h46 Return<void> onPropertySetError(StatusCode /* errorCode */, in onPropertySetError() argument
DEvsStateControl.h87 StatusCode invokeGet(VehiclePropValue *pRequestedPropValue);
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.cpp61 using android::hardware::automotive::vehicle::V2_0::StatusCode;
152 Return<void> PropertyChangeListener::onPropertySetError(StatusCode /*status*/, int32_t /*propId*/, in onPropertySetError() argument
715 StatusCode status; in subscribeToProperty()
716 vhalService->get(propValue, [&status, &propValue](StatusCode s, const VehiclePropValue& value) { in subscribeToProperty()
720 if (status != StatusCode::OK) { in subscribeToProperty()
731 if (status != StatusCode::OK) { in subscribeToProperty()
756 if (!ret.isOk() || ret != StatusCode::OK) { in notifyVhalNewPowerPolicy()
767 StatusCode status; in isPropertySupported()
779 [&status](StatusCode s, in isPropertySupported()
783 mSupportedProperties[prop] = status == StatusCode::OK; in isPropertySupported()
DCarPowerPolicyServer.h98 android::hardware::automotive::vehicle::V2_0::StatusCode status, int32_t propId,
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DJsonVhalEventGenerator.java21 import android.hardware.automotive.vehicle.V2_0.StatusCode;
56 assertEquals(StatusCode.OK, mVehicle.set(request)); in start()
66 assertEquals(StatusCode.OK, mVehicle.set(request)); in stop()
DLinearVhalEventGenerator.java21 import android.hardware.automotive.vehicle.V2_0.StatusCode;
86 assertEquals(StatusCode.OK, mVehicle.set(request)); in start()
95 assertEquals(StatusCode.OK, mVehicle.set(request)); in stop()
DObd2FreezeFrameTest.java28 import android.hardware.automotive.vehicle.V2_0.StatusCode;
61 assertEquals(StatusCode.OK, status.intValue()); in testFreezeFrame()
72 if (StatusCode.OK == frameStatus.intValue()) { in testFreezeFrame()
DObd2LiveFrameTest.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
54 assertEquals(StatusCode.OK, status.intValue()); in testLiveFrame()
DE2eCarTestBase.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
62 (status, propConfigs) -> assumeTrue(status == StatusCode.OK)); in connectToVehicleHal()
/packages/modules/Virtualization/compos/src/
Dcompsvc.rs42 StatusCode, Strong,
115 Err(Status::from(StatusCode::FAILED_TRANSACTION)) in execute()
119 Err(Status::from(StatusCode::UNKNOWN_ERROR)) in execute()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.cpp66 using ::android::hardware::automotive::vehicle::V2_0::StatusCode;
689 if (updateRet.isOk() && updateRet == StatusCode::OK) { in updateVhal()
734 StatusCode status; in isVhalPropertySupportedLocked()
737 [&status](StatusCode s, in isVhalPropertySupportedLocked()
741 return status == StatusCode::OK; in isVhalPropertySupportedLocked()
761 StatusCode status = mVhalService->subscribe(mPropertyChangeListener, options); in subscribeToVhalHeartBeatLocked()
762 if (status != StatusCode::OK) { in subscribeToVhalHeartBeatLocked()
921 StatusCode /*status*/, int32_t /*propId*/, int32_t /*areaId*/) { in onPropertySetError() argument
DWatchdogProcessService.h172 android::hardware::automotive::vehicle::V2_0::StatusCode errorCode, int32_t propId,
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
305 return StatusCode.OK; in set()
332 cb.onValues(StatusCode.OK, result); in get()
/packages/modules/Virtualization/authfs/fd_server/src/
Dmain.rs47 Status, StatusCode, Strong,
190 FdConfig::Readonly { .. } => Err(StatusCode::INVALID_OPERATION.into()), in writeFile()
212 FdConfig::Readonly { .. } => Err(StatusCode::INVALID_OPERATION.into()), in resize()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vhal/
DVehicleHalFragment.java22 import android.hardware.automotive.vehicle.V2_0.StatusCode;
142 if (status == StatusCode.OK) { in getValue()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackImpl.java315 if (assocRejectInfo.statusCode == StatusCode.UNSPECIFIED_FAILURE) { in handleAssocRejectEvent()
324 } else if (assocRejectInfo.statusCode == StatusCode.CHALLENGE_FAIL in handleAssocRejectEvent()
DClientModeImpl.java40 import android.hardware.wifi.supplicant.V1_0.ISupplicantStaIfaceCallback.StatusCode;
4561 if (statusCode == StatusCode.AP_UNABLE_TO_HANDLE_NEW_STA
4562 || statusCode == StatusCode.ASSOC_REJECTED_TEMPORARILY
4563 || statusCode == StatusCode.DENIED_INSUFFICIENT_BANDWIDTH) {
6711 case StatusCode.AP_UNABLE_TO_HANDLE_NEW_STA:
6714 case StatusCode.ASSOC_REJECTED_TEMPORARILY:
6717 case StatusCode.DENIED_POOR_CHANNEL_CONDITIONS:
/packages/services/Car/cpp/computepipe/tests/runner/graph/includes/
DGrpcGraphServerImpl.h143 return ::grpc::Status(::grpc::StatusCode::ABORTED, "Connection lost"); in ObserveOutputStream()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java1759 ISupplicantStaIfaceCallback.StatusCode.AP_UNABLE_TO_HANDLE_NEW_STA, false)); in connectAfterAssociationRejection()
2717 ISupplicantStaIfaceCallback.StatusCode.AP_UNABLE_TO_HANDLE_NEW_STA, in testExtraFailureReason_ApIsBusy()
3383 ISupplicantStaIfaceCallback.StatusCode.AP_UNABLE_TO_HANDLE_NEW_STA, false)); in testReportConnectionEventIsCalledAfterAssociationFailure()
3526 ISupplicantStaIfaceCallback.StatusCode.ASSOC_REJECTED_TEMPORARILY, in testAssocRejectedTemporarilyUpdatesRecentAssociationFailureStatus()
3590 ISupplicantStaIfaceCallback.StatusCode.DENIED_POOR_CHANNEL_CONDITIONS, in testAssocRejectedPoorChannelConditionsUpdatesRecentAssociationFailureStatus()
3647 ISupplicantStaIfaceCallback.StatusCode.DENIED_POOR_CHANNEL_CONDITIONS; in testOceRssiBasedAssociationRejectionUpdatesRecentAssociationFailureStatus()
3672 ISupplicantStaIfaceCallback.StatusCode.DENIED_POOR_CHANNEL_CONDITIONS; in testMboAssocDisallowedIndInAssocRejectUpdatesRecentAssociationFailureStatus()
3696 ISupplicantStaIfaceCallback.StatusCode.AP_UNABLE_TO_HANDLE_NEW_STA, false)); in testAssociationRejectionWithReasonApUnableToHandleNewStaUpdatesWatchdog()
3717 .StatusCode.DENIED_INSUFFICIENT_BANDWIDTH, false)); in testAssociationRejectionWithReasonDeniedInsufficientBandwidth()

12