Loading libs/binder/rust/Android.bp +0 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ rust_library { rustlibs: [ "libbinder_ndk_sys", "libdowncast_rs", "liblazy_static", "liblibc", ], host_supported: true, Loading Loading @@ -160,7 +159,6 @@ rust_test { rustlibs: [ "libbinder_ndk_sys", "libdowncast_rs", "liblazy_static", "liblibc", ], } Loading libs/binder/rust/src/native.rs +2 −5 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ use crate::parcel::{BorrowedParcel, Serialize}; use crate::proxy::SpIBinder; use crate::sys; use lazy_static::lazy_static; use std::convert::TryFrom; use std::ffi::{c_void, CStr, CString}; use std::fs::File; Loading Loading @@ -508,10 +507,8 @@ pub struct LazyServiceGuard { _private: (), } lazy_static! { // Count of how many LazyServiceGuard objects are in existence. static ref GUARD_COUNT: Mutex<u64> = Mutex::new(0); } static GUARD_COUNT: Mutex<u64> = Mutex::new(0); impl LazyServiceGuard { /// Create a new LazyServiceGuard to prevent the service manager prematurely killing this Loading Loading
libs/binder/rust/Android.bp +0 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ rust_library { rustlibs: [ "libbinder_ndk_sys", "libdowncast_rs", "liblazy_static", "liblibc", ], host_supported: true, Loading Loading @@ -160,7 +159,6 @@ rust_test { rustlibs: [ "libbinder_ndk_sys", "libdowncast_rs", "liblazy_static", "liblibc", ], } Loading
libs/binder/rust/src/native.rs +2 −5 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ use crate::parcel::{BorrowedParcel, Serialize}; use crate::proxy::SpIBinder; use crate::sys; use lazy_static::lazy_static; use std::convert::TryFrom; use std::ffi::{c_void, CStr, CString}; use std::fs::File; Loading Loading @@ -508,10 +507,8 @@ pub struct LazyServiceGuard { _private: (), } lazy_static! { // Count of how many LazyServiceGuard objects are in existence. static ref GUARD_COUNT: Mutex<u64> = Mutex::new(0); } static GUARD_COUNT: Mutex<u64> = Mutex::new(0); impl LazyServiceGuard { /// Create a new LazyServiceGuard to prevent the service manager prematurely killing this Loading