/frameworks/av/media/liberror/ |
D | expected_utils_test.cpp | 37 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/vr/libpdx/fuzz/ |
D | helpers.h | 70 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/ |
D | MediaCasStateException.java | 21 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/services/vibratorservice/test/ |
D | VibratorManagerHalWrapperAidlTest.cpp | 28 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 …]
|
D | VibratorHalWrapperAidlTest.cpp | 32 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/ |
D | Status.cpp | 22 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/ |
D | Status.h | 54 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/include/binder/ |
D | Status.h | 54 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/cmds/servicemanager/ |
D | ServiceManager.cpp | 37 using ::android::binder::Status; 232 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService() 235 return Status::ok(); in getService() 238 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService() 241 return Status::ok(); in checkService() 295 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService() 299 return Status::fromExceptionCode(Status::EX_SECURITY, "App UIDs cannot add services"); in addService() 303 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux denial"); in addService() 307 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Null binder"); in addService() 312 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name"); in addService() [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | mock_service_endpoint.h | 13 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 …]
|
D | service_endpoint.h | 47 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 …]
|
D | service.h | 110 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 …]
|
D | status.h | 27 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/ |
D | service_endpoint.h | 42 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/ |
D | status_tests.cpp | 8 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/ |
D | VirtualTouchpadService.cpp | 28 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/libs/net/common/netd/libnetdutils/include/netdutils/ |
D | Status.h | 36 class [[nodiscard]] Status { 38 Status() = default; 39 explicit Status(int code) : mCode(code) {} in Status() function 42 Status(int code, std::string msg) : mCode(code), mMsg(std::move(msg)) { assert(!ok()); } in Status() function 44 Status(android::base::Result<void> result) in Status() function 57 bool operator==(const Status& other) const { return code() == other.code(); } 58 bool operator!=(const Status& other) const { return !(*this == other); } 67 const Status ok{0}; 70 const Status eof{0x10001, "end of file"}; 71 const Status undefined{std::numeric_limits<int>::max(), "undefined"}; [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 44 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId, 46 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId, 49 binder::Status createAppData(const std::optional<std::string>& uuid, 54 binder::Status createAppData( 57 binder::Status createAppDataBatched( 61 binder::Status reconcileSdkData(const android::os::ReconcileSdkDataArgs& args); 63 binder::Status restoreconAppData(const std::optional<std::string>& uuid, 67 binder::Status migrateAppData(const std::optional<std::string>& uuid, 69 binder::Status clearAppData(const std::optional<std::string>& uuid, 71 binder::Status destroyAppData(const std::optional<std::string>& uuid, [all …]
|
/frameworks/native/libs/binder/tests/unit_fuzzers/ |
D | StatusFuzzFunctions.h | 35 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/base/services/incremental/ |
D | BinderIncrementalService.h | 42 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/libs/net/common/netd/libnetdutils/ |
D | StatusTest.cpp | 30 EXPECT_EQ(status::ok, Status()); in TEST() 33 Status status1(1); in TEST() 34 Status status2(status1); // NOLINT(performance-unnecessary-copy-initialization) in TEST() 38 Status status3; in TEST() 43 const Status status4(4); in TEST() 44 const Status status5(status4); // NOLINT(performance-unnecessary-copy-initialization) in TEST() 45 Status status6; in TEST() 51 Status s(42, "for tea too"); in TEST() 59 EXPECT_TRUE(std::is_nothrow_move_constructible<Status>::value); in TEST() 60 EXPECT_TRUE(std::is_nothrow_move_assignable<Status>::value); in TEST() [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmUtils.cpp | 131 [&](::V1_0::Status status, const sp<::V1_0::IDrmPlugin>& hPlugin) { in MakeDrmPlugin() 132 if (status != ::V1_0::Status::OK) { in MakeDrmPlugin() 152 [&](::V1_0::Status status, const sp<::V1_0::ICryptoPlugin>& hPlugin) { in MakeCryptoPlugin() 153 if (status != ::V1_0::Status::OK) { in MakeCryptoPlugin() 245 status_t toStatusT_1_4(::V1_4::Status status) { in toStatusT_1_4() 247 case ::V1_4::Status::OK: in toStatusT_1_4() 249 case ::V1_4::Status::BAD_VALUE: in toStatusT_1_4() 251 case ::V1_4::Status::ERROR_DRM_CANNOT_HANDLE: in toStatusT_1_4() 253 case ::V1_4::Status::ERROR_DRM_DECRYPT: in toStatusT_1_4() 255 case ::V1_4::Status::ERROR_DRM_DEVICE_REVOKED: in toStatusT_1_4() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_aidl_status_tests.cpp | 23 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/ |
D | error.rs | 95 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 …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/ |
D | DrmPlugin.cpp | 75 mMockError(Status::OK) { in DrmPlugin() 122 return toNdkScopedAStatus(Status::BAD_VALUE); in closeSession() 130 return toNdkScopedAStatus(Status::ERROR_DRM_INVALID_STATE); in closeSession() 133 return toNdkScopedAStatus(Status::OK); in closeSession() 136 return toNdkScopedAStatus(Status::ERROR_DRM_SESSION_NOT_OPENED); in closeSession() 147 return toNdkScopedAStatus(Status::BAD_VALUE); in decrypt() 149 return toNdkScopedAStatus(Status::ERROR_DRM_CANNOT_HANDLE); in decrypt() 160 return toNdkScopedAStatus(Status::BAD_VALUE); in encrypt() 162 return toNdkScopedAStatus(Status::ERROR_DRM_CANNOT_HANDLE); in encrypt() 169 return toNdkScopedAStatus(Status::OK); in getHdcpLevels() [all …]
|