Home
last modified time | relevance | path

Searched refs:Stability (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/native/libs/binder/
DStability.cpp26 void Stability::forceDowngradeToStability(const sp<IBinder>& binder, Level level) { in forceDowngradeToStability()
37 void Stability::forceDowngradeToLocalStability(const sp<IBinder>& binder) { in forceDowngradeToLocalStability()
41 void Stability::forceDowngradeToSystemStability(const sp<IBinder>& binder) { in forceDowngradeToSystemStability()
45 void Stability::forceDowngradeToVendorStability(const sp<IBinder>& binder) { in forceDowngradeToVendorStability()
49 void Stability::markCompilationUnit(IBinder* binder) { in markCompilationUnit()
54 void Stability::markVintf(IBinder* binder) { in markVintf()
59 std::string Stability::debugToString(const sp<IBinder>& binder) { in debugToString()
63 void Stability::markVndk(IBinder* binder) { in markVndk()
68 bool Stability::requiresVintfDeclaration(const sp<IBinder>& binder) { in requiresVintfDeclaration()
72 void Stability::tryMarkCompilationUnit(IBinder* binder) { in tryMarkCompilationUnit()
[all …]
DBpBinder.cpp373 using android::internal::Stability; in transact()
375 int16_t stability = Stability::getRepr(this); in transact()
376 Stability::Level required = privateVendor ? Stability::VENDOR in transact()
377 : Stability::getLocalLevel(); in transact()
379 if (!Stability::check(stability, required)) [[unlikely]] { in transact()
381 Stability::levelString(stability).c_str(), in transact()
383 Stability::levelString(required).c_str()); in transact()
/frameworks/native/libs/binder/ndk/
Dstability.cpp24 using ::android::internal::Stability;
40 Stability::markVndk(binder->getBinder().get()); in AIBinder_markVendorStability()
44 Stability::markCompilationUnit(binder->getBinder().get()); in AIBinder_markSystemStability()
48 Stability::markVintf(binder->getBinder().get()); in AIBinder_markVintfStability()
53 Stability::forceDowngradeToVendorStability(binder->getBinder()); in AIBinder_forceDowngradeToVendorStability()
57 Stability::forceDowngradeToSystemStability(binder->getBinder()); in AIBinder_forceDowngradeToSystemStability()
/frameworks/native/libs/binder/tests/
DbinderStabilityTest.cpp36 using android::internal::Stability; // for testing only!
78 Stability::markCompilationUnit(iface.get()); // <- for test only in system()
84 Stability::markVintf(iface.get()); // <- for test only in vintf()
90 Stability::markVndk(iface.get()); // <- for test only in vendor()
105 ALOGI("Debug log stability: %s", Stability::debugToString(binder).c_str()); in sendAndCallBinder()
127 EXPECT_FALSE(Stability::requiresVintfDeclaration(nullptr)); in TEST()
128 EXPECT_FALSE(Stability::requiresVintfDeclaration(BadStableBinder::undef())); in TEST()
129 EXPECT_FALSE(Stability::requiresVintfDeclaration(BadStableBinder::system())); in TEST()
130 EXPECT_FALSE(Stability::requiresVintfDeclaration(BadStableBinder::vendor())); in TEST()
132 EXPECT_TRUE(Stability::requiresVintfDeclaration(BadStableBinder::vintf())); in TEST()
[all …]
/frameworks/native/libs/binder/tests/unit_fuzzers/
DStabilityFuzzFunctions.h36 android::internal::Stability::markCompilationUnit(bbinder.get());
42 android::internal::Stability::markVintf(bbinder.get());
47 (void)android::internal::Stability::debugToString(bbinder);
51 android::internal::Stability::markVndk(bbinder.get());
56 android::internal::Stability::requiresVintfDeclaration(bbinder);
/frameworks/native/include/binder/
DParcelable.h60 enum class Stability : int32_t { enum
70 virtual Stability getStability() const { return Stability::STABILITY_LOCAL; } in getStability()
DStability.h52 class Stability final {
168 Stability();
DBinder.h28 class Stability; variable
129 friend ::android::internal::Stability;
/frameworks/native/libs/binder/include/binder/
DParcelable.h60 enum class Stability : int32_t { enum
70 virtual Stability getStability() const { return Stability::STABILITY_LOCAL; } in getStability()
DStability.h52 class Stability final {
168 Stability();
DParcelableHolder.h35 explicit ParcelableHolder(Stability stability) : mStability(stability){} in ParcelableHolder()
113 Stability getStability() const override { return mStability; } in getStability()
143 Stability mStability;
DBinder.h28 class Stability; variable
129 friend ::android::internal::Stability;
DBpBinder.h35 class Stability; variable
184 friend ::android::internal::Stability;
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable_holder.rs17 use crate::binder::Stability;
39 fn get_stability(&self) -> Stability { in get_stability() argument
40 Stability::Local in get_stability()
71 stability: Stability,
76 pub fn new(stability: Stability) -> Self { in new()
159 pub fn get_stability(&self) -> Stability { in get_stability() argument
Dparcelable.rs17 use crate::binder::{AsNative, FromIBinder, Interface, Stability, Strong};
782 impl Serialize for Stability { implementation
788 impl Deserialize for Stability { implementation
798 i32::deserialize(parcel).and_then(Stability::try_from) in deserialize()
/frameworks/native/libs/binder/rust/src/
Dnative.rs18 AsNative, Interface, InterfaceClassMethods, Remotable, Stability, TransactionCode,
79 Self::new_with_stability(rust_object, Stability::default()) in new()
86 pub fn new_with_stability(rust_object: T, stability: Stability) -> Binder<T> { in new_with_stability()
192 fn mark_stability(&mut self, stability: Stability) { in mark_stability() argument
194 Stability::Local => self.mark_local_stability(), in mark_stability()
195 Stability::Vintf => { in mark_stability()
Dbinder.rs107 pub enum Stability { enum
117 impl From<Stability> for i32 {
118 fn from(stability: Stability) -> i32 { in from()
119 use Stability::*; in from()
127 impl TryFrom<i32> for Stability { implementation
129 fn try_from(stability: i32) -> Result<Stability> { in try_from() argument
130 use Stability::*; in try_from()
779 stability: $crate::binder_impl::Stability::default(),
818 stability: $crate::binder_impl::Stability::default(),
Dlib.rs131 IBinderInternal, InterfaceClass, Remotable, Stability, ToAsyncInterface, ToSyncInterface,
/frameworks/base/core/java/android/os/
DParcelable.java139 public @interface Stability {} annotation
195 default @Stability int getStability() { in getStability()
DParcelableHolder.java84 private @Parcelable.Stability int mStability = Parcelable.PARCELABLE_STABILITY_LOCAL;
86 public ParcelableHolder(@Parcelable.Stability int stability) { in ParcelableHolder()
100 public @Parcelable.Stability int getStability() { in getStability()
/frameworks/native/libs/binder/rust/tests/parcel_fuzzer/
Dparcel_fuzzer.rs24 Binder, BorrowedParcel, IBinderInternal, Parcel, Stability, TransactionCode,
124 let stability = if is_vintf { Stability::Vintf } else { Stability::Local }; in do_read_fuzz()
/frameworks/native/libs/binder/ndk/tests/
DbinderVendorDoubleLoadTest.cpp41 using ::android::internal::Stability;
78 Stability::markVintf(binder.get()); in TEST()
/frameworks/native/libs/binder/trusty/kernel/
Drules.mk35 $(LIBBINDER_DIR)/Stability.cpp \
/frameworks/native/libs/binder/trusty/
Drules.mk42 $(LIBBINDER_DIR)/Stability.cpp \
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dbinder.cpp347 Parcelable::Stability stability = provider.ConsumeBool() in __anonb0ef96d30f02()
348 ? Parcelable::Stability::STABILITY_LOCAL in __anonb0ef96d30f02()
349 : Parcelable::Stability::STABILITY_VINTF; in __anonb0ef96d30f02()

12