Home
last modified time | relevance | path

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

12

/frameworks/native/libs/binder/rust/src/
Derror.rs31 pub use sys::android_c_interface_StatusCode as StatusCode;
34 pub type Result<T> = result::Result<T, StatusCode>;
42 StatusCode::OK => Ok(()), in status_result()
47 fn parse_status_code(code: i32) -> StatusCode { in parse_status_code() argument
49 e if e == StatusCode::OK as i32 => StatusCode::OK, in parse_status_code()
50 e if e == StatusCode::NO_MEMORY as i32 => StatusCode::NO_MEMORY, in parse_status_code()
51 e if e == StatusCode::INVALID_OPERATION as i32 => StatusCode::INVALID_OPERATION, in parse_status_code()
52 e if e == StatusCode::BAD_VALUE as i32 => StatusCode::BAD_VALUE, in parse_status_code()
53 e if e == StatusCode::BAD_TYPE as i32 => StatusCode::BAD_TYPE, in parse_status_code()
54 e if e == StatusCode::NAME_NOT_FOUND as i32 => StatusCode::NAME_NOT_FOUND, in parse_status_code()
[all …]
Dparcel.rs20 use crate::error::{status_result, Result, StatusCode};
216 let len: i32 = slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?; in write_slice_size()
489 return Err(StatusCode::BAD_VALUE); in sized_read()
492 let end = start.checked_add(parcelable_size).ok_or(StatusCode::BAD_VALUE)?; in sized_read()
494 return Err(StatusCode::NOT_ENOUGH_DATA); in sized_read()
524 return Err(StatusCode::UNEXPECTED_NULL); in resize_out_vec()
714 assert_eq!(parcel.read::<bool>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
715 assert_eq!(parcel.read::<i8>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
716 assert_eq!(parcel.read::<u16>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
717 assert_eq!(parcel.read::<i32>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
[all …]
Dbinder.rs19 use crate::error::{status_t, Result, StatusCode};
128 type Error = StatusCode;
134 _ => Err(StatusCode::BAD_VALUE), in try_from()
471 self.weak_binder.promote().ok_or(StatusCode::DEAD_OBJECT).and_then(FromIBinder::try_from) in upgrade()
882 … fn from_binder(mut binder: $crate::SpIBinder) -> std::result::Result<Self, $crate::StatusCode> {
923 …ply: &mut $crate::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), $crate::StatusCode> {
926 Err($crate::StatusCode::UNEXPECTED_NULL) => {
937 …&mut dyn std::io::Write, args: &[&std::ffi::CStr]) -> std::result::Result<(), $crate::StatusCode> {
960 …er: $crate::SpIBinder) -> std::result::Result<$crate::Strong<dyn $interface>, $crate::StatusCode> {
978 … let service: std::result::Result<$crate::binder_impl::Binder<$native>, $crate::StatusCode> =
[all …]
Dnative.rs20 use crate::error::{status_result, status_t, Result, StatusCode};
338 return StatusCode::UNEXPECTED_NULL as status_t; in on_dump()
346 return StatusCode::UNEXPECTED_NULL as status_t; in on_dump()
386 StatusCode::INVALID_OPERATION as status_t in on_dump()
428 type Error = StatusCode;
433 return Err(StatusCode::BAD_TYPE); in try_from()
440 return Err(StatusCode::UNEXPECTED_NULL); in try_from()
Dservice.rs18 use crate::error::{status_result, Result, StatusCode};
141 Err(StatusCode::NAME_NOT_FOUND) in interface_cast()
196 let interface = CString::new(interface).or(Err(StatusCode::UNEXPECTED_NULL))?; in is_declared()
226 let interface = CString::new(interface).or(Err(StatusCode::UNEXPECTED_NULL))?; in get_declared_instances()
245 StatusCode::BAD_VALUE in get_declared_instances()
/frameworks/base/core/java/com/android/ims/internal/uce/common/
DStatusCode.java27 public class StatusCode implements Parcelable { class
80 public StatusCode() {} in StatusCode() method in StatusCode
112 public static final Parcelable.Creator<StatusCode> CREATOR =
113 new Parcelable.Creator<StatusCode>() {
115 public StatusCode createFromParcel(Parcel source) {
117 return new StatusCode(source);
120 public StatusCode[] newArray(int size) {
122 return new StatusCode[size];
127 private StatusCode(Parcel source) { in StatusCode() method in StatusCode
/frameworks/base/core/java/com/android/ims/internal/uce/options/
DIOptionsService.aidl22 import com.android.ims.internal.uce.common.StatusCode;
37 StatusCode getVersion(int optionsServiceHandle); in getVersion()
49 StatusCode addListener(int optionsServiceHandle, IOptionsListener optionsListener, in addListener()
60 StatusCode removeListener(int optionsServiceHandle, in UceLong optionsServiceListenerHdl); in removeListener()
73 StatusCode setMyInfo(int optionsServiceHandle , in CapInfo capInfo, int reqUserData); in setMyInfo()
86 StatusCode getMyInfo(int optionsServiceHandle , int reqUserdata); in getMyInfo()
99 StatusCode getContactCap(int optionsServiceHandle , String remoteURI, int reqUserData); in getContactCap()
113 StatusCode getContactListCap(int optionsServiceHandle, in String[] remoteURIList, in getContactListCap()
130 StatusCode responseIncomingOptions(int optionsServiceHandle, int tId, int sipResponseCode, in responseIncomingOptions()
DOptionsCmdStatus.java25 import com.android.ims.internal.uce.common.StatusCode;
31 private StatusCode mStatus;
71 public StatusCode getStatus() { in getStatus()
80 public void setStatus(StatusCode status) { in setStatus()
90 mStatus = new StatusCode(); in OptionsCmdStatus()
151 …mStatus = source.readParcelable(StatusCode.class.getClassLoader(), com.android.ims.internal.uce.co… in readFromParcel()
DIOptionsListener.aidl22 import com.android.ims.internal.uce.common.StatusCode;
42 void serviceAvailable(in StatusCode statusCode); in serviceAvailable()
51 void serviceUnavailable(in StatusCode statusCode); in serviceUnavailable()
/frameworks/base/core/java/com/android/ims/internal/uce/presence/
DIPresenceService.aidl23 import com.android.ims.internal.uce.common.StatusCode;
37 StatusCode getVersion(int presenceServiceHdl); in getVersion()
50 StatusCode addListener(int presenceServiceHdl, IPresenceListener presenceServiceListener, in addListener()
60 StatusCode removeListener(int presenceServiceHdl, in UceLong presenceServiceListenerHdl); in removeListener()
76 StatusCode reenableService(int presenceServiceHdl, int userData); in reenableService()
89 StatusCode publishMyCap(int presenceServiceHdl, in PresCapInfo myCapInfo , int userData); in publishMyCap()
103 StatusCode getContactCap(int presenceServiceHdl , String remoteUri, int userData); in getContactCap()
117 StatusCode getContactListCap(int presenceServiceHdl, in String[] remoteUriList, int userData); in getContactListCap()
133 StatusCode setNewFeatureTag(int presenceServiceHdl, String featureTag, in setNewFeatureTag()
DPresCmdStatus.java24 import com.android.ims.internal.uce.common.StatusCode;
31 private StatusCode mStatus = new StatusCode();
73 public StatusCode getStatus() { in getStatus()
81 public void setStatus(StatusCode status) { in setStatus()
108 mStatus = new StatusCode(); in PresCmdStatus()
150 …mStatus = source.readParcelable(StatusCode.class.getClassLoader(), com.android.ims.internal.uce.co… in readFromParcel()
DIPresenceListener.aidl19 import com.android.ims.internal.uce.common.StatusCode;
48 void serviceAvailable(in StatusCode statusCode); in serviceAvailable()
56 void serviceUnAvailable(in StatusCode statusCode); in serviceUnAvailable()
/frameworks/native/libs/binder/rust/tests/
Dintegration.rs20 use binder::{BinderFeatures, Interface, StatusCode, ThreadState};
101 type Error = StatusCode;
115 _ => Err(StatusCode::UNKNOWN_TRANSACTION), in try_from()
121 fn dump(&self, _writer: &mut dyn Write, args: &[&CStr]) -> Result<(), StatusCode> { in dump() argument
129 fn test(&self) -> Result<String, StatusCode> { in test() argument
133 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() argument
138 fn get_selinux_context(&self) -> Result<String, StatusCode> { in get_selinux_context() argument
141 sid.ok_or(StatusCode::UNEXPECTED_NULL) in get_selinux_context()
144 fn get_is_handling_transaction(&self) -> Result<bool, StatusCode> { in get_is_handling_transaction() argument
152 fn test(&self) -> Result<String, StatusCode>; in test() argument
[all …]
Dndk_rust_interop.rs23 use ::IBinderRustNdkInteropTest::binder::{self, BinderFeatures, Interface, StatusCode};
43 return StatusCode::NAME_NOT_FOUND as c_int; in rust_call_ndk()
51 return StatusCode::BAD_VALUE as c_int; in rust_call_ndk()
58 let wrong_service: Result<binder::Strong<dyn IBinderRustNdkInteropTestOther>, StatusCode> = in rust_call_ndk()
61 Err(StatusCode::BAD_TYPE) => {} in rust_call_ndk()
68 return StatusCode::BAD_TYPE as c_int; in rust_call_ndk()
72 StatusCode::OK as c_int in rust_call_ndk()
96 Ok(_) => StatusCode::OK as c_int, in rust_start_service()
/frameworks/native/libs/binder/rust/binder_tokio/
Dlib.rs32 use binder::{BinderAsyncPool, BoxFuture, FromIBinder, StatusCode, Strong};
40 ) -> Result<Strong<T>, StatusCode> { in get_interface() argument
55 Err(e) if e.is_cancelled() => Err(StatusCode::FAILED_TRANSACTION), in get_interface()
56 Err(_) => Err(StatusCode::UNKNOWN_ERROR), in get_interface()
66 ) -> Result<Strong<T>, StatusCode> { in check_interface() argument
81 Err(e) if e.is_cancelled() => Err(StatusCode::FAILED_TRANSACTION), in check_interface()
82 Err(_) => Err(StatusCode::UNKNOWN_ERROR), in check_interface()
90 ) -> Result<Strong<T>, StatusCode> { in wait_for_interface() argument
105 Err(e) if e.is_cancelled() => Err(StatusCode::FAILED_TRANSACTION), in wait_for_interface()
106 Err(_) => Err(StatusCode::UNKNOWN_ERROR), in wait_for_interface()
[all …]
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable_holder.rs18 use crate::error::StatusCode;
90 pub fn set_parcelable<T>(&mut self, p: Arc<T>) -> Result<(), StatusCode> in set_parcelable()
95 return Err(StatusCode::BAD_VALUE); in set_parcelable()
117 pub fn get_parcelable<T>(&self) -> Result<Option<Arc<T>>, StatusCode> in get_parcelable()
127 return Err(StatusCode::BAD_VALUE); in get_parcelable()
131 Err(_) => Err(StatusCode::BAD_VALUE), in get_parcelable()
174 fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode> { in serialize() argument
189 fn deserialize(parcel: &BorrowedParcel<'_>) -> Result<Self, StatusCode> { in deserialize() argument
192 Err(StatusCode::UNEXPECTED_NULL) in deserialize()
202 fn write_to_parcel(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode> { in write_to_parcel() argument
[all …]
Dparcelable.rs18 use crate::error::{status_result, status_t, Result, Status, StatusCode};
139 slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_array()
167 None => return StatusCode::UNEXPECTED_NULL as status_t, in serialize_element()
171 slice[index].serialize(&mut parcel).err().unwrap_or(StatusCode::OK) as status_t in serialize_element()
220 None => return StatusCode::BAD_INDEX as status_t, in deserialize_element()
227 None => return StatusCode::UNEXPECTED_NULL as status_t, in deserialize_element()
235 StatusCode::OK as status_t in deserialize_element()
414 .or(Err(StatusCode::BAD_VALUE))?,
542 slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_array()
581 slice.len().try_into().or(Err(StatusCode::BAD_VALUE))?, in serialize_array()
[all …]
/frameworks/native/libs/binder/rust/rpcbinder/src/
Dsession.rs18 use binder::{FromIBinder, SpIBinder, StatusCode, Strong};
92 ) -> Result<Strong<T>, StatusCode> { in setup_vsock_client() argument
111 ) -> Result<Strong<T>, StatusCode> { in setup_unix_domain_client() argument
116 return Err(StatusCode::NAME_NOT_FOUND); in setup_unix_domain_client()
137 ) -> Result<Strong<T>, StatusCode> { in setup_unix_domain_bootstrap_client() argument
157 ) -> Result<Strong<T>, StatusCode> { in setup_inet_client() argument
162 return Err(StatusCode::BAD_VALUE); in setup_inet_client()
182 ) -> Result<Strong<T>, StatusCode> { in setup_trusty_client() argument
199 ) -> Result<Strong<T>, StatusCode> { in setup_preconnected_client() argument
219 ) -> Result<Strong<T>, StatusCode> { in get_interface() argument
[all …]
/frameworks/base/core/java/android/service/ambientcontext/
DAmbientContextDetectionServiceStatus.java22 import android.app.ambientcontext.AmbientContextManager.StatusCode;
44 @StatusCode private final int mStatusCode;
48 @StatusCode int statusCode, in AmbientContextDetectionServiceStatus()
51 AnnotationValidations.validate(StatusCode.class, null, mStatusCode); in AmbientContextDetectionServiceStatus()
58 public @StatusCode int getStatusCode() { in getStatusCode()
97 StatusCode.class, null, mStatusCode); in AmbientContextDetectionServiceStatus()
122 private @StatusCode int mStatusCode;
134 public @NonNull Builder setStatusCode(@StatusCode int value) { in setStatusCode()
/frameworks/native/libs/gui/rust/aidl_types/src/
Dlib.rs20 StatusCode,
30 fn write_to_parcel(&self, _parcel: &mut BorrowedParcel) -> Result<(), StatusCode> {
34 fn from_parcel(_parcel: &BorrowedParcel) -> Result<Self, StatusCode> {
/frameworks/base/core/java/android/app/wearable/
DWearableSensingManager.java165 public @interface StatusCode {} annotation in WearableSensingManager
256 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in provideConnection()
295 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in provideDataStream()
334 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in provideData()
399 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in registerDataRequestObserver()
426 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in unregisterDataRequestObserver()
486 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in startHotwordRecognition()
505 @NonNull @StatusCode Consumer<Integer> statusConsumer) { in stopHotwordRecognition()
/frameworks/native/libs/nativewindow/rust/src/
Dsurface.rs21 StatusCode,
95 fn write_to_parcel(&self, parcel: &mut BorrowedParcel) -> Result<(), StatusCode> { in write_to_parcel() argument
104 fn from_parcel(parcel: &BorrowedParcel) -> Result<Self, StatusCode> { in from_parcel() argument
/frameworks/base/core/java/android/hardware/camera2/
DCameraOfflineSession.java105 public @interface StatusCode {}; annotation in CameraOfflineSession.CameraOfflineSessionCallback
118 public abstract void onError(@NonNull CameraOfflineSession session, @StatusCode int status); in onError()
/frameworks/base/core/java/android/service/wearable/
DWearableSensingDataRequester.java74 @interface StatusCode {} annotation
86 @NonNull @StatusCode Consumer<Integer> statusConsumer); in requestData()
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/
Dmain.rs17 BinderFeatures, IBinder, Interface, ParcelFileDescriptor, SpIBinder, Status, StatusCode, Strong,
85 Err(Status::from(StatusCode::UNKNOWN_TRANSACTION)) in getNullBinder()
89 Ok(()) => Ok(StatusCode::OK as i32), in pingMe()
96 None => Err(Status::from(StatusCode::BAD_VALUE)), in repeatBinder()
181 Err(Status::from(StatusCode::UNKNOWN_TRANSACTION)) in die()

12