@@ -100,11 +100,11 @@ mod error;
100100mod native;
101101mod parcel;
102102mod proxy;
103- #[ cfg( not( trusty) ) ]
103+ #[ cfg( not( any ( trusty, android_ndk ) ) ) ]
104104mod service;
105- #[ cfg( not( trusty) ) ]
105+ #[ cfg( not( any ( trusty, android_ndk ) ) ) ]
106106mod state;
107- #[ cfg( not( any( android_vendor, android_vndk) ) ) ]
107+ #[ cfg( not( any( android_vendor, android_ndk , android_vndk) ) ) ]
108108mod system_only;
109109
110110use binder_ndk_sys as sys;
@@ -114,15 +114,18 @@ pub use binder::{BinderFeatures, FromIBinder, IBinder, Interface, Strong, Weak};
114114pub use error:: { ExceptionCode , IntoBinderResult , Status , StatusCode } ;
115115pub use parcel:: { ParcelFileDescriptor , Parcelable , ParcelableHolder } ;
116116pub use proxy:: { DeathRecipient , SpIBinder , WpIBinder } ;
117- #[ cfg( not( trusty) ) ]
117+ #[ cfg( not( any ( trusty, android_ndk ) ) ) ]
118118pub use service:: {
119119 add_service, check_interface, check_service, force_lazy_services_persist,
120- get_declared_instances, get_interface , get_service , is_declared, is_handling_transaction,
121- register_lazy_service , wait_for_interface, wait_for_service, LazyServiceGuard ,
120+ get_declared_instances, is_declared, is_handling_transaction, register_lazy_service ,
121+ wait_for_interface, wait_for_service, LazyServiceGuard ,
122122} ;
123- #[ cfg( not( trusty) ) ]
123+ #[ cfg( not( any( trusty, android_ndk) ) ) ]
124+ #[ allow( deprecated) ]
125+ pub use service:: { get_interface, get_service} ;
126+ #[ cfg( not( any( trusty, android_ndk) ) ) ]
124127pub use state:: { ProcessState , ThreadState } ;
125- #[ cfg( not( any( android_vendor, android_vndk) ) ) ]
128+ #[ cfg( not( any( android_vendor, android_vndk, android_ndk ) ) ) ]
126129pub use system_only:: { delegate_accessor, Accessor , ConnectionInfo } ;
127130
128131/// Binder result containing a [`Status`] on error.
@@ -134,9 +137,10 @@ pub mod binder_impl {
134137 pub use crate :: binder:: {
135138 IBinderInternal , InterfaceClass , LocalStabilityType , Remotable , Stability , StabilityType ,
136139 ToAsyncInterface , ToSyncInterface , TransactionCode , TransactionFlags , VintfStabilityType ,
137- FIRST_CALL_TRANSACTION , FLAG_CLEAR_BUF , FLAG_ONEWAY , FLAG_PRIVATE_LOCAL ,
138- LAST_CALL_TRANSACTION ,
140+ FIRST_CALL_TRANSACTION , FLAG_ONEWAY , LAST_CALL_TRANSACTION ,
139141 } ;
142+ #[ cfg( not( android_ndk) ) ]
143+ pub use crate :: binder:: { FLAG_CLEAR_BUF , FLAG_PRIVATE_LOCAL } ;
140144 pub use crate :: binder_async:: BinderAsyncRuntime ;
141145 pub use crate :: error:: status_t;
142146 pub use crate :: native:: Binder ;
0 commit comments