Home
last modified time | relevance | path

Searched refs:Status (Results 1 – 25 of 605) sorted by relevance

12345678910>>...25

/frameworks/native/libs/vr/libpdx/fuzz/
Dhelpers.h70 Status<void> SetService(Service* service) { in SetService()
72 return Status<void>(0); in SetService()
76 Status<void> SetChannel(int channel_id, Channel* channel) { in SetChannel()
79 return Status<void>(0); in SetChannel()
85 Status<void> MessageReceive(Message* message) { in MessageReceive()
110 return Status<void>(); in MessageReceive()
120 Status<void> CloseChannel(int channel_id) { in CloseChannel()
122 return Status<void>(); in CloseChannel()
127 Status<void> ModifyChannelEvents(int channel_id, int clear_mask, in ModifyChannelEvents()
132 return Status<void>(); in ModifyChannelEvents()
[all …]
/frameworks/base/media/java/android/media/
DMediaCasStateException.java21 import android.hardware.cas.V1_2.Status;
41 if (err == Status.OK) { in throwExceptionIfNeeded()
44 if (err == Status.BAD_VALUE) { in throwExceptionIfNeeded()
50 case Status.ERROR_CAS_UNKNOWN: in throwExceptionIfNeeded()
53 case Status.ERROR_CAS_NO_LICENSE: in throwExceptionIfNeeded()
56 case Status.ERROR_CAS_LICENSE_EXPIRED: in throwExceptionIfNeeded()
59 case Status.ERROR_CAS_SESSION_NOT_OPENED: in throwExceptionIfNeeded()
62 case Status.ERROR_CAS_CANNOT_HANDLE: in throwExceptionIfNeeded()
65 case Status.ERROR_CAS_INVALID_STATE: in throwExceptionIfNeeded()
68 case Status.ERROR_CAS_INSUFFICIENT_OUTPUT_PROTECTION: in throwExceptionIfNeeded()
[all …]
/frameworks/native/libs/binder/
DStatus.cpp22 Status Status::ok() { in ok()
23 return Status(); in ok()
26 Status Status::fromExceptionCode(int32_t exceptionCode) { in fromExceptionCode()
28 return Status(exceptionCode, FAILED_TRANSACTION); in fromExceptionCode()
30 return Status(exceptionCode, OK); in fromExceptionCode()
33 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode()
36 return Status(exceptionCode, FAILED_TRANSACTION, message); in fromExceptionCode()
38 return Status(exceptionCode, OK, message); in fromExceptionCode()
41 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode()
46 Status Status::fromServiceSpecificError(int32_t serviceSpecificErrorCode) { in fromServiceSpecificError()
[all …]
/frameworks/native/cmds/servicemanager/
DServiceManager.cpp34 using ::android::binder::Status;
183 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService()
186 return Status::ok(); in getService()
189 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService()
192 return Status::ok(); in checkService()
246 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService()
251 return Status::fromExceptionCode(Status::EX_SECURITY); in addService()
255 return Status::fromExceptionCode(Status::EX_SECURITY); in addService()
259 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in addService()
264 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in addService()
[all …]
/frameworks/native/include/binder/
DStatus.h54 class Status final {
77 static Status ok();
88 static Status fromExceptionCode(int32_t exceptionCode);
89 static Status fromExceptionCode(int32_t exceptionCode,
91 static Status fromExceptionCode(int32_t exceptionCode,
97 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
98 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
100 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
103 static Status fromStatusT(status_t status);
107 Status() = default;
[all …]
/frameworks/native/libs/binder/include/binder/
DStatus.h54 class Status final {
77 static Status ok();
88 static Status fromExceptionCode(int32_t exceptionCode);
89 static Status fromExceptionCode(int32_t exceptionCode,
91 static Status fromExceptionCode(int32_t exceptionCode,
97 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
98 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
100 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
103 static Status fromStatusT(status_t status);
107 Status() = default;
[all …]
/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalWrapperAidlTest.cpp28 using android::binder::Status;
58 MOCK_METHOD(Status, getCapabilities, (int32_t * ret), (override));
59 MOCK_METHOD(Status, off, (), (override));
60 MOCK_METHOD(Status, on, (int32_t timeout, const sp<IVibratorCallback>& cb), (override));
61 MOCK_METHOD(Status, perform,
64 MOCK_METHOD(Status, getSupportedEffects, (std::vector<Effect> * ret), (override));
65 MOCK_METHOD(Status, setAmplitude, (float amplitude), (override));
66 MOCK_METHOD(Status, setExternalControl, (bool enabled), (override));
67 MOCK_METHOD(Status, getCompositionDelayMax, (int32_t * ret), (override));
68 MOCK_METHOD(Status, getCompositionSizeMax, (int32_t * ret), (override));
[all …]
DVibratorHalWrapperAidlTest.cpp32 using android::binder::Status;
62 MOCK_METHOD(Status, getCapabilities, (int32_t * ret), (override));
63 MOCK_METHOD(Status, off, (), (override));
64 MOCK_METHOD(Status, on, (int32_t timeout, const sp<IVibratorCallback>& cb), (override));
65 MOCK_METHOD(Status, perform,
68 MOCK_METHOD(Status, getSupportedEffects, (std::vector<Effect> * ret), (override));
69 MOCK_METHOD(Status, setAmplitude, (float amplitude), (override));
70 MOCK_METHOD(Status, setExternalControl, (bool enabled), (override));
71 MOCK_METHOD(Status, getCompositionDelayMax, (int32_t * ret), (override));
72 MOCK_METHOD(Status, getCompositionSizeMax, (int32_t * ret), (override));
[all …]
/frameworks/av/services/tuner/
DTunerLnb.cpp38 Status TunerLnb::setCallback( in setCallback()
42 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setCallback()
46 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::INVALID_ARGUMENT)); in setCallback()
52 return Status::fromServiceSpecificError(static_cast<int32_t>(status)); in setCallback()
54 return Status::ok(); in setCallback()
57 Status TunerLnb::setVoltage(int voltage) { in setVoltage()
60 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setVoltage()
65 return Status::fromServiceSpecificError(static_cast<int32_t>(status)); in setVoltage()
67 return Status::ok(); in setVoltage()
70 Status TunerLnb::setTone(int tone) { in setTone()
[all …]
DTunerTimeFilter.cpp34 Status TunerTimeFilter::setTimeStamp(int64_t timeStamp) { in setTimeStamp()
37 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setTimeStamp()
42 return Status::fromServiceSpecificError(static_cast<int32_t>(status)); in setTimeStamp()
44 return Status::ok(); in setTimeStamp()
47 Status TunerTimeFilter::clearTimeStamp() { in clearTimeStamp()
50 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in clearTimeStamp()
55 return Status::fromServiceSpecificError(static_cast<int32_t>(status)); in clearTimeStamp()
57 return Status::ok(); in clearTimeStamp()
60 Status TunerTimeFilter::getSourceTime(int64_t* _aidl_return) { in getSourceTime()
64 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getSourceTime()
[all …]
DTunerDemux.cpp44 Status TunerDemux::setFrontendDataSource(const std::shared_ptr<ITunerFrontend>& frontend) { in setFrontendDataSource()
47 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setFrontendDataSource()
56 return Status::ok(); in setFrontendDataSource()
59 Status TunerDemux::openFilter( in openFilter()
64 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openFilter()
98 return Status::fromServiceSpecificError(static_cast<int32_t>(status)); in openFilter()
102 return Status::ok(); in openFilter()
105 Status TunerDemux::openTimeFilter(shared_ptr<ITunerTimeFilter>* _aidl_return) { in openTimeFilter()
108 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openTimeFilter()
118 return Status::fromServiceSpecificError(static_cast<int32_t>(status)); in openTimeFilter()
[all …]
DTunerDvr.cpp37 Status TunerDvr::getQueueDesc(AidlMQDesc* _aidl_return) { in getQueueDesc()
40 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getQueueDesc()
50 return Status::fromServiceSpecificError(static_cast<int32_t>(res)); in getQueueDesc()
57 return Status::ok(); in getQueueDesc()
60 Status TunerDvr::configure(const TunerDvrSettings& settings) { in configure()
63 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in configure()
70 return Status::ok(); in configure()
73 Status TunerDvr::attachFilter(const shared_ptr<ITunerFilter>& filter) { in attachFilter()
76 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in attachFilter()
82 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::INVALID_ARGUMENT)); in attachFilter()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dmock_service_endpoint.h13 MOCK_METHOD1(SetService, Status<void>(Service* service));
14 MOCK_METHOD2(SetChannel, Status<void>(int channel_id, Channel* channel));
15 MOCK_METHOD1(CloseChannel, Status<void>(int channel_id));
17 Status<void>(int channel_id, int clear_mask, int set_mask));
19 Status<RemoteChannelHandle>(Message* message, int flags,
22 Status<int>(const Message* message, ChannelReference ref,
24 MOCK_METHOD1(MessageReceive, Status<void>(Message* message));
25 MOCK_METHOD2(MessageReply, Status<void>(Message* message, int return_code));
27 Status<void>(Message* message, unsigned int push_fd));
29 Status<void>(Message* message,
[all …]
Dservice_endpoint.h47 virtual Status<void> SetService(Service* service) = 0;
50 virtual Status<void> SetChannel(int channel_id, Channel* channel) = 0;
55 virtual Status<void> CloseChannel(int channel_id) = 0;
59 virtual Status<void> ModifyChannelEvents(int channel_id, int clear_mask,
69 virtual Status<RemoteChannelHandle> PushChannel(Message* message, int flags,
77 virtual Status<int> CheckChannel(const Message* message, ChannelReference ref,
81 virtual Status<void> MessageReceive(Message* message) = 0;
84 virtual Status<void> MessageReply(Message* message, int return_code) = 0;
87 virtual Status<void> MessageReplyFd(Message* message,
91 virtual Status<void> MessageReplyChannelHandle(
[all …]
Dservice.h110 Status<size_t> ReadVector(const iovec* vector, size_t vector_length);
111 Status<size_t> Read(void* buffer, size_t length);
112 Status<size_t> WriteVector(const iovec* vector, size_t vector_length);
113 Status<size_t> Write(const void* buffer, size_t length);
116 inline Status<size_t> ReadVector(const iovec (&vector)[N]) { in ReadVector()
121 inline Status<size_t> WriteVector(const iovec (&vector)[N]) { in WriteVector()
127 Status<void> ReadVectorAll(const iovec* vector, size_t vector_length);
128 Status<void> WriteVectorAll(const iovec* vector, size_t vector_length);
130 inline Status<void> ReadAll(void* buffer, size_t length) { in ReadAll()
131 Status<size_t> status = Read(buffer, length); in ReadAll()
[all …]
Dstatus.h27 class Status {
30 Status() : error_{-1} {} in Status() function
36 Status(const T& value) : value_{value} {} in Status() function
38 Status(T&& value) : value_{std::move(value)} {} in Status() function
42 Status(const ErrorStatus& error_status) : error_{error_status.error()} {} in Status() function
46 Status(const Status& other) = default;
47 Status(Status&& other) noexcept in Status() function
53 Status& operator=(const Status& other) = default;
54 Status& operator=(Status&& other) noexcept {
77 bool PropagateError(const Status<U>& other) { in PropagateError()
[all …]
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dservice_endpoint.h42 Status<void> SetService(Service* service) override;
43 Status<void> SetChannel(int channel_id, Channel* channel) override;
44 Status<void> CloseChannel(int channel_id) override;
45 Status<void> ModifyChannelEvents(int channel_id, int clear_mask,
47 Status<RemoteChannelHandle> PushChannel(Message* message, int flags,
50 Status<int> CheckChannel(const Message* message, ChannelReference ref,
52 Status<void> MessageReceive(Message* message) override;
53 Status<void> MessageReply(Message* message, int return_code) override;
54 Status<void> MessageReplyFd(Message* message, unsigned int push_fd) override;
55 Status<void> MessageReplyChannelHandle(
[all …]
/frameworks/native/libs/vr/libpdx/
Dstatus_tests.cpp8 using android::pdx::Status;
10 TEST(Status, DefaultInit) { in TEST() argument
11 Status<int> status; in TEST()
18 TEST(Status, InitalizeSuccess) { in TEST() argument
19 Status<int> status_int{0}; in TEST()
23 status_int = Status<int>(3); in TEST()
27 status_int = Status<int>(-3); in TEST()
32 Status<std::string> status_str{"foo"}; in TEST()
38 TEST(Status, InitalizeError) { in TEST() argument
39 Status<int> status_int = ErrorStatus(12); in TEST()
[all …]
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp28 binder::Status VirtualTouchpadService::attach() { in attach()
31 return binder::Status::fromStatusT(PERMISSION_DENIED); in attach()
39 return binder::Status::fromStatusT(ALREADY_EXISTS); in attach()
49 return binder::Status::ok(); in attach()
53 return binder::Status::fromStatusT(error); in attach()
55 return binder::Status::ok(); in attach()
58 binder::Status VirtualTouchpadService::detach() { in detach()
60 return binder::Status::fromStatusT(PERMISSION_DENIED); in detach()
64 return binder::Status::fromStatusT(error); in detach()
66 return binder::Status::ok(); in detach()
[all …]
/frameworks/native/libs/binder/tests/unit_fuzzers/
DStatusFuzzFunctions.h35 static const std::vector<std::function<void(FuzzedDataProvider*, binder::Status*, Parcel*)>>
37 [](FuzzedDataProvider*, binder::Status* status, Parcel* parcel) -> void {
41 [](FuzzedDataProvider*, binder::Status* status, Parcel* parcel) -> void {
44 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
50 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
56 [](FuzzedDataProvider*, binder::Status* status, Parcel*) -> void { status->ok(); },
57 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
61 *status = binder::Status::fromExceptionCode(fdp->ConsumeIntegral<int32_t>(),
64 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
65 *status = binder::Status::fromServiceSpecificError(
[all …]
/frameworks/av/drm/libmediadrm/
DDrmUtils.cpp129 [&](::V1_0::Status status, const sp<::V1_0::IDrmPlugin> &hPlugin) { in MakeDrmPlugin()
130 if (status != ::V1_0::Status::OK) { in MakeDrmPlugin()
150 [&](::V1_0::Status status, const sp<::V1_0::ICryptoPlugin> &hPlugin) { in MakeCryptoPlugin()
151 if (status != ::V1_0::Status::OK) { in MakeCryptoPlugin()
221 status_t toStatusT_1_4(::V1_4::Status status) { in toStatusT_1_4()
223 case ::V1_4::Status::OK: in toStatusT_1_4()
225 case ::V1_4::Status::BAD_VALUE: in toStatusT_1_4()
227 case ::V1_4::Status::ERROR_DRM_CANNOT_HANDLE: in toStatusT_1_4()
229 case ::V1_4::Status::ERROR_DRM_DECRYPT: in toStatusT_1_4()
231 case ::V1_4::Status::ERROR_DRM_DEVICE_REVOKED: in toStatusT_1_4()
[all …]
/frameworks/native/cmds/installd/
DInstalldNativeService.h43 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId,
45 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId,
48 binder::Status createAppData(const std::optional<std::string>& uuid,
52 binder::Status createAppData(
55 binder::Status createAppDataBatched(
59 binder::Status restoreconAppData(const std::optional<std::string>& uuid,
62 binder::Status migrateAppData(const std::optional<std::string>& uuid,
64 binder::Status clearAppData(const std::optional<std::string>& uuid,
66 binder::Status destroyAppData(const std::optional<std::string>& uuid,
69 binder::Status fixupAppData(const std::optional<std::string>& uuid, int32_t flags);
[all …]
/frameworks/base/services/incremental/
DBinderIncrementalService.h42 binder::Status openStorage(const std::string& path, int32_t* _aidl_return) final;
43 binder::Status createStorage(const ::std::string& path,
46 binder::Status createLinkedStorage(const std::string& path, int32_t otherStorageId,
48 binder::Status startLoading(
55 binder::Status onInstallationComplete(int32_t storageId) final;
57 binder::Status makeBindMount(int32_t storageId, const std::string& sourcePath,
60 binder::Status deleteBindMount(int32_t storageId, const std::string& targetFullPath,
62 binder::Status makeDirectory(int32_t storageId, const std::string& path,
64 binder::Status makeDirectories(int32_t storageId, const std::string& path,
66 binder::Status makeFile(int32_t storageId, const std::string& path,
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudio_aidl_status_tests.cpp23 using android::binder::Status;
67 Status::EX_SECURITY, in TEST()
68 Status::EX_BAD_PARCELABLE, in TEST()
69 Status::EX_ILLEGAL_ARGUMENT, in TEST()
70 Status::EX_NULL_POINTER, in TEST()
71 Status::EX_ILLEGAL_STATE, in TEST()
72 Status::EX_NETWORK_MAIN_THREAD, in TEST()
73 Status::EX_UNSUPPORTED_OPERATION, in TEST()
75 Status::EX_PARCELABLE, in TEST()
77 Status::EX_HAS_REPLY_HEADER, in TEST()
[all …]
/frameworks/native/libs/binder/rust/src/
Derror.rs95 pub struct Status(*mut sys::AStatus); struct
101 unsafe impl Sync for Status {} implementation
105 unsafe impl Send for Status {} implementation
107 impl Status { impl
122 pub fn new_service_specific_error(err: i32, message: Option<&CStr>) -> Status { in new_service_specific_error() argument
150 pub fn new_exception(exception: ExceptionCode, message: Option<&CStr>) -> Status { in new_exception() argument
253 pub fn and_then<T, F>(self, op: F) -> result::Result<T, Status> in and_then() argument
255 F: FnOnce() -> result::Result<T, Status>, in and_then()
257 <result::Result<(), Status>>::from(self)?; in and_then()
262 impl error::Error for Status {} implementation
[all …]

12345678910>>...25