Home
last modified time | relevance | path

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

12345678910>>...18

/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/native/cmds/servicemanager/
DServiceManager.cpp34 using ::android::binder::Status;
119 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService()
122 return Status::ok(); in getService()
125 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService()
128 return Status::ok(); in checkService()
182 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService()
187 return Status::fromExceptionCode(Status::EX_SECURITY); in addService()
191 return Status::fromExceptionCode(Status::EX_SECURITY); in addService()
195 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in addService()
200 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in addService()
[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.h53 class Status final {
76 static Status ok();
87 static Status fromExceptionCode(int32_t exceptionCode);
88 static Status fromExceptionCode(int32_t exceptionCode,
90 static Status fromExceptionCode(int32_t exceptionCode,
93 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
94 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
96 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
99 static Status fromStatusT(status_t status);
103 Status() = default;
[all …]
/frameworks/native/include/binder/
DStatus.h53 class Status final {
76 static Status ok();
87 static Status fromExceptionCode(int32_t exceptionCode);
88 static Status fromExceptionCode(int32_t exceptionCode,
90 static Status fromExceptionCode(int32_t exceptionCode,
93 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
94 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
96 static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
99 static Status fromStatusT(status_t status);
103 Status() = default;
[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 …]
Dipc_helper.h40 Status<void> SendAll(SendInterface* sender, const BorrowedHandle& socket_fd,
42 Status<void> SendMsgAll(SendInterface* sender, const BorrowedHandle& socket_fd,
44 Status<void> RecvAll(RecvInterface* receiver, const BorrowedHandle& socket_fd,
46 Status<void> RecvMsgAll(RecvInterface* receiver,
61 Status<void> Send(const BorrowedHandle& socket_fd);
62 Status<void> Send(const BorrowedHandle& socket_fd, const ucred* cred,
70 Status<FileReference> PushFileHandle(const LocalHandle& handle) override;
71 Status<FileReference> PushFileHandle(const BorrowedHandle& handle) override;
72 Status<FileReference> PushFileHandle(const RemoteHandle& handle) override;
73 Status<ChannelReference> PushChannelHandle(
[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.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 …]
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 …]
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 …]
Dclient.h73 Status<void> SendImpulse(int opcode);
74 Status<void> SendImpulse(int opcode, const void* buffer, size_t length);
81 Status<typename RemoteMethodType::Return> InvokeRemoteMethod(Args&&... args);
84 Status<void> InvokeRemoteMethodInPlace(ReturnType* return_value,
133 Status<void> CheckReconnect();
138 inline void CheckDisconnect(const Status<T>& status) { in CheckDisconnect()
213 Status<T> Send(int opcode) { in Send()
218 Status<T> Send(int opcode, const void* send_buffer, size_t send_length, in Send()
229 Status<T> SendVector(int opcode, const iovec* send_vector, size_t send_count, in SendVector()
231 Status<T> ret; in SendVector()
[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/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,
47 binder::Status createAppDataBatched(
53 binder::Status createAppData(const std::optional<std::string>& uuid,
56 binder::Status restoreconAppData(const std::optional<std::string>& uuid,
59 binder::Status migrateAppData(const std::optional<std::string>& uuid,
61 binder::Status clearAppData(const std::optional<std::string>& uuid,
63 binder::Status destroyAppData(const std::optional<std::string>& uuid,
66 binder::Status fixupAppData(const std::optional<std::string>& uuid, int32_t flags);
68 binder::Status snapshotAppData(const std::optional<std::string>& volumeUuid,
[all …]
/frameworks/base/media/java/android/media/
DMediaCasStateException.java22 import android.hardware.cas.V1_0.Status;
42 if (err == Status.OK) { in throwExceptionIfNeeded()
45 if (err == Status.BAD_VALUE) { in throwExceptionIfNeeded()
51 case Status.ERROR_CAS_UNKNOWN: in throwExceptionIfNeeded()
54 case Status.ERROR_CAS_NO_LICENSE: in throwExceptionIfNeeded()
57 case Status.ERROR_CAS_LICENSE_EXPIRED: in throwExceptionIfNeeded()
60 case Status.ERROR_CAS_SESSION_NOT_OPENED: in throwExceptionIfNeeded()
63 case Status.ERROR_CAS_CANNOT_HANDLE: in throwExceptionIfNeeded()
66 case Status.ERROR_CAS_INVALID_STATE: in throwExceptionIfNeeded()
69 case Status.ERROR_CAS_INSUFFICIENT_OUTPUT_PROTECTION: in throwExceptionIfNeeded()
[all …]
/frameworks/native/libs/binder/ndk/
Dstatus.cpp23 using ::android::binder::Status;
30 return new AStatus(Status::fromExceptionCode(PruneException(exception))); in AStatus_fromExceptionCode()
34 return new AStatus(Status::fromExceptionCode(PruneException(exception), message)); in AStatus_fromExceptionCodeWithMessage()
38 return new AStatus(Status::fromServiceSpecificError(serviceSpecific)); in AStatus_fromServiceSpecificError()
42 return new AStatus(Status::fromServiceSpecificError(serviceSpecific, message)); in AStatus_fromServiceSpecificErrorWithMessage()
46 return new AStatus(Status::fromStatusT(PruneStatusT(status))); in AStatus_fromStatus()
134 case Status::EX_NONE: in PruneException()
136 case Status::EX_SECURITY: in PruneException()
138 case Status::EX_BAD_PARCELABLE: in PruneException()
140 case Status::EX_ILLEGAL_ARGUMENT: in PruneException()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h67 pdx::Status<pdx::LocalChannelHandle> CreateConsumerQueueHandle(
72 pdx::Status<ConsumerQueueParcelable> CreateConsumerQueueParcelable(
101 pdx::Status<int> GetEventMask(int events) { in GetEventMask()
139 pdx::Status<void> ImportQueue();
146 pdx::Status<void> AddBuffer(const std::shared_ptr<BufferHubBase>& buffer,
151 virtual pdx::Status<void> RemoveBuffer(size_t slot);
155 virtual pdx::Status<void> FreeAllBuffers();
162 pdx::Status<std::shared_ptr<BufferHubBase>> Dequeue(int timeout,
168 pdx::Status<void> HandleBufferEvent(size_t slot, int event_fd,
170 pdx::Status<void> HandleQueueEvent(int poll_events);
[all …]
/frameworks/base/cmds/statsd/src/
DStatsService.h67 virtual Status systemRunning();
68 virtual Status statsCompanionReady();
69 virtual Status informAnomalyAlarmFired();
70 virtual Status informPollAlarmFired();
71 virtual Status informAlarmForSubscriberTriggeringFired();
73 virtual Status informAllUidData(const ParcelFileDescriptor& fd);
74 virtual Status informOnePackage(const String16& app, int32_t uid, int64_t version,
76 virtual Status informOnePackageRemoved(const String16& app, int32_t uid);
77 virtual Status informDeviceShutdown();
97 virtual Status getData(int64_t key,
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.h75 virtual binder::Status submitRequest(
81 virtual binder::Status submitRequestList(
86 virtual binder::Status cancelRequest(int requestId,
90 virtual binder::Status beginConfigure() override;
92 virtual binder::Status endConfigure(int operatingMode,
96 virtual binder::Status isSessionConfigurationSupported(
102 virtual binder::Status deleteStream(int streamId) override;
104 virtual binder::Status createStream(
110 virtual binder::Status createInputStream(int width, int height, int format,
115 virtual binder::Status getInputSurface(
[all …]
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_client.h19 static pdx::Status<std::unique_ptr<Surface>> CreateSurface( in CreateSurface()
22 pdx::Status<std::unique_ptr<Surface>> status; in CreateSurface()
34 pdx::Status<void> SetVisible(bool visible);
35 pdx::Status<void> SetZOrder(int z_order);
36 pdx::Status<void> SetAttributes(const SurfaceAttributes& attributes);
39 pdx::Status<std::unique_ptr<ProducerQueue>> CreateQueue(uint32_t width,
46 pdx::Status<std::unique_ptr<ProducerQueue>> CreateQueue(uint32_t width,
73 pdx::Status<Metrics> GetDisplayMetrics();
74 pdx::Status<std::string> GetConfigurationData(ConfigFileType config_type);
75 pdx::Status<std::unique_ptr<IonBuffer>> SetupGlobalBuffer(
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp127 Status status = setSecurityLevel(sessionId, SecurityLevel::SW_SECURE_CRYPTO); in openSession()
139 Status status = setSecurityLevel(sessionId, securityLevel); in openSession_1_1()
145 Return<Status> DrmPlugin::closeSession(const hidl_vec<uint8_t>& sessionId) { in closeSession()
147 return Status::BAD_VALUE; in closeSession()
154 return Status::ERROR_DRM_INVALID_STATE; in closeSession()
158 return Status::OK; in closeSession()
161 return Status::ERROR_DRM_SESSION_NOT_OPENED; in closeSession()
345 _hidl_cb(Status::BAD_VALUE, hidl_vec<uint8_t>()); in provideKeyResponse()
355 Status status = Status::OK; in provideKeyResponse()
373 _hidl_cb(Status::ERROR_DRM_SESSION_NOT_OPENED, hidl_vec<uint8_t>()); in provideKeyResponse()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseClickAction.java45 public Tapper.Status sendTap(UiController uiController, float[] coordinates, in sendTap()
47 Tapper.Status stat = sendSingleTap(uiController, coordinates, precision, in sendTap()
50 if (stat == Tapper.Status.FAILURE) { in sendTap()
51 return Tapper.Status.FAILURE; in sendTap()
52 } else if (stat == Tapper.Status.WARNING) { in sendTap()
63 if (stat == Tapper.Status.FAILURE) { in sendTap()
64 return Tapper.Status.FAILURE; in sendTap()
65 } else if (stat == Tapper.Status.WARNING) { in sendTap()
71 return Tapper.Status.WARNING; in sendTap()
73 return Tapper.Status.SUCCESS; in sendTap()
[all …]
/frameworks/native/services/displayservice/
DDisplayEventReceiver.cpp130 Return<Status> DisplayEventReceiver::init(const sp<IEventCallback>& callback) { in init()
134 return Status::BAD_VALUE; in init()
139 return mAttached->valid() ? Status::SUCCESS : Status::UNKNOWN; in init()
142 Return<Status> DisplayEventReceiver::setVsyncRate(int32_t count) { in setVsyncRate()
146 return Status::BAD_VALUE; in setVsyncRate()
150 return success ? Status::SUCCESS : Status::UNKNOWN; in setVsyncRate()
153 Return<Status> DisplayEventReceiver::requestNextVsync() { in requestNextVsync()
157 return Status::BAD_VALUE; in requestNextVsync()
161 return success ? Status::SUCCESS : Status::UNKNOWN; in requestNextVsync()
164 Return<Status> DisplayEventReceiver::close() { in close()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DDrmPlugin.h48 using drm::V1_0::Status;
66 typedef drm::V1_2::Status Status_V1_2;
78 Return<Status> closeSession(const hidl_vec<uint8_t>& sessionId) override;
109 Return<Status> removeKeys(const hidl_vec<uint8_t>& sessionId) { in removeKeys()
111 return Status::BAD_VALUE; in removeKeys()
113 return Status::ERROR_DRM_CANNOT_HANDLE; in removeKeys()
116 Return<Status> restoreKeys(
132 _hidl_cb(Status::ERROR_DRM_CANNOT_HANDLE, hidl_vec<uint8_t>(), defaultUrl); in getProvisionRequest()
153 _hidl_cb(Status::BAD_VALUE, hidl_vec<uint8_t>(), hidl_vec<uint8_t>()); in provideProvisionResponse()
156 _hidl_cb(Status::ERROR_DRM_CANNOT_HANDLE, hidl_vec<uint8_t>(), hidl_vec<uint8_t>()); in provideProvisionResponse()
[all …]

12345678910>>...18