Home
last modified time | relevance | path

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

12345678910>>...32

/frameworks/av/media/liberror/
Dexpected_utils_test.cpp37 class Status { class
39 explicit Status(int i) : mInt(i) {} in Status() function in android::foo::Status
40 Status(const Status&) = delete;
41 Status(Status&&) = default;
49 bool errorIsOk(const Status& e) { in errorIsOk()
53 std::string errorToString(const Status& e) { in errorToString()
59 using Result = base::expected<Value, Status>;
66 using foo::Status;
80 Value intermediate = VALUE_OR_RETURN(Result(base::unexpected(Status(2)))); in TEST()
88 Status status = []() -> Status { in TEST()
[all …]
/frameworks/native/libs/gui/include/gui/
DAidlStatusUtil.h38 case Status::EX_NONE: in statusTFromExceptionCode()
40 case Status::EX_SECURITY: // Java SecurityException, rethrows locally in Java in statusTFromExceptionCode()
42 case Status::EX_BAD_PARCELABLE: // Java BadParcelableException, rethrows in Java in statusTFromExceptionCode()
43 case Status::EX_ILLEGAL_ARGUMENT: // Java IllegalArgumentException, rethrows in Java in statusTFromExceptionCode()
44 case Status::EX_NULL_POINTER: // Java NullPointerException, rethrows in Java in statusTFromExceptionCode()
46 case Status::EX_ILLEGAL_STATE: // Java IllegalStateException, rethrows in Java in statusTFromExceptionCode()
47 case Status::EX_UNSUPPORTED_OPERATION: // Java UnsupportedOperationException, rethrows in statusTFromExceptionCode()
49 case Status::EX_HAS_REPLY_HEADER: // Native strictmode violation in statusTFromExceptionCode()
50 case Status::EX_PARCELABLE: // Java bootclass loader (not standard exception), rethrows in statusTFromExceptionCode()
51 case Status::EX_NETWORK_MAIN_THREAD: // Java NetworkOnMainThreadException, rethrows in statusTFromExceptionCode()
[all …]
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/binder_rpc_test_session/
Dlib.rs17 use binder::{Interface, ParcelFileDescriptor, SpIBinder, Status, StatusCode, Strong};
58 fn getName(&self) -> Result<String, Status> { in getName() argument
64 fn sendString(&self, _: &str) -> Result<(), Status> { in sendString() argument
67 fn doubleString(&self, _s: &str) -> Result<String, Status> { in doubleString() argument
70 fn getClientPort(&self) -> Result<i32, Status> { in getClientPort() argument
73 fn countBinders(&self) -> Result<Vec<i32>, Status> { in countBinders() argument
76 fn getNullBinder(&self) -> Result<SpIBinder, Status> { in getNullBinder() argument
79 fn pingMe(&self, _binder: &SpIBinder) -> Result<i32, Status> { in pingMe() argument
82 fn repeatBinder(&self, _binder: Option<&SpIBinder>) -> Result<Option<SpIBinder>, Status> { in repeatBinder() argument
85 fn holdBinder(&self, _binder: Option<&SpIBinder>) -> Result<(), Status> { in holdBinder() argument
[all …]
/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/tests/
DbinderRpcTestCommon.h282 using android::binder::Status;
289 Status getName(std::string* name) override { in getName()
291 return Status::ok(); in getName()
300 Status sendCallback(const std::string& value) { in sendCallback()
305 return Status::ok(); in sendCallback()
307 Status sendOnewayCallback(const std::string& value) { return sendCallback(value); } in sendOnewayCallback()
323 Status sendString(const std::string& str) override { in sendString()
325 return Status::ok(); in sendString()
327 Status doubleString(const std::string& str, std::string* strstr) override { in doubleString()
329 return Status::ok(); in doubleString()
[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/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/libs/binder/include/binder/
DStatus.h55 class LIBBINDER_EXPORTED Status final {
78 static Status ok();
89 static Status fromExceptionCode(int32_t exceptionCode);
90 static Status fromExceptionCode(int32_t exceptionCode,
92 static Status fromExceptionCode(int32_t exceptionCode,
98 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
99 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
101 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
104 static Status fromStatusT(status_t status);
108 Status() = default;
[all …]
/frameworks/native/include/binder/
DStatus.h55 class LIBBINDER_EXPORTED Status final {
78 static Status ok();
89 static Status fromExceptionCode(int32_t exceptionCode);
90 static Status fromExceptionCode(int32_t exceptionCode,
92 static Status fromExceptionCode(int32_t exceptionCode,
98 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
99 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
101 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
104 static Status fromStatusT(status_t status);
108 Status() = default;
[all …]
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/
Dmain.rs17 BinderFeatures, IBinder, Interface, ParcelFileDescriptor, SpIBinder, Status, StatusCode, Strong,
64 fn getName(&self) -> Result<String, Status> { in getName() argument
70 fn sendString(&self, _: &str) -> Result<(), Status> { in sendString() argument
74 fn doubleString(&self, s: &str) -> Result<String, Status> { in doubleString() argument
78 fn getClientPort(&self) -> Result<i32, Status> { in getClientPort() argument
81 fn countBinders(&self) -> Result<Vec<i32>, Status> { in countBinders() argument
84 fn getNullBinder(&self) -> Result<SpIBinder, Status> { in getNullBinder() argument
85 Err(Status::from(StatusCode::UNKNOWN_TRANSACTION)) in getNullBinder()
87 fn pingMe(&self, binder: &SpIBinder) -> Result<i32, Status> { in pingMe() argument
90 Err(e) => Err(Status::from(e)), in pingMe()
[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/av/services/camera/libcameraservice/tests/
DCameraPermissionsTest.cpp42 virtual binder::Status onStatusChanged(int32_t , const std::string&, int32_t) { in onStatusChanged()
43 return binder::Status::ok(); in onStatusChanged()
46 virtual binder::Status onPhysicalCameraStatusChanged(int32_t /*status*/, in onPhysicalCameraStatusChanged()
50 return binder::Status::ok(); in onPhysicalCameraStatusChanged()
53 virtual binder::Status onTorchStatusChanged(int32_t /*status*/, in onTorchStatusChanged()
55 return binder::Status::ok(); in onTorchStatusChanged()
58 virtual binder::Status onCameraAccessPrioritiesChanged() { in onCameraAccessPrioritiesChanged()
60 return binder::Status::ok(); in onCameraAccessPrioritiesChanged()
63 virtual binder::Status onCameraOpened(const std::string& /*cameraId*/, in onCameraOpened()
66 return binder::Status::ok(); in onCameraOpened()
[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/cmds/servicemanager/
DServiceManager.cpp40 using ::android::binder::Status;
350 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService()
353 return Status::ok(); in getService()
356 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService()
359 return Status::ok(); in checkService()
415 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService()
419 return Status::fromExceptionCode(Status::EX_SECURITY, "App UIDs cannot add services."); in addService()
423 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux denied."); in addService()
427 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Null binder."); in addService()
432 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name."); in addService()
[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/native/cmds/installd/
DInstalldNativeService.h47 binder::Status authenticate(const android::os::ParcelFileDescriptor& authFd, int32_t uid);
62 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId,
64 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId,
67 binder::Status createAppData(const std::optional<std::string>& uuid,
73 binder::Status createAppData(
76 binder::Status createAppDataBatched(
80 binder::Status reconcileSdkData(const android::os::ReconcileSdkDataArgs& args);
82 binder::Status restoreconAppData(const std::optional<std::string>& uuid,
86 binder::Status migrateAppData(const std::optional<std::string>& uuid,
88 binder::Status clearAppData(const std::optional<std::string>& uuid,
[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, int32_t mode,
[all …]
/frameworks/native/libs/binder/rust/src/
Derror.rs96 pub struct Status(ptr::NonNull<sys::AStatus>); struct
102 unsafe impl Sync for Status {} implementation
106 unsafe impl Send for Status {} implementation
112 impl Status { impl
125 pub fn new_service_specific_error(err: i32, message: Option<&CStr>) -> Status { in new_service_specific_error() argument
149 pub fn new_service_specific_error_str<T: AsRef<str>>(err: i32, message: Option<T>) -> Status { in new_service_specific_error_str() argument
154 pub fn new_exception(exception: ExceptionCode, message: Option<&CStr>) -> Status { in new_exception() argument
171 ) -> Status { in new_exception_str() argument
255 pub fn and_then<T, F>(self, op: F) -> result::Result<T, Status> in and_then() argument
257 F: FnOnce() -> result::Result<T, Status>, in and_then()
[all …]

12345678910>>...32