Home
last modified time | relevance | path

Searched refs:rust (Results 1 – 25 of 104) sorted by relevance

12345

/system/bt/main/shim/
Dstack.h62 ::rust::Box<rust::Hci>* GetRustHci() { return rust_hci_; } in GetRustHci()
63 ::rust::Box<rust::Controller>* GetRustController() { in GetRustController()
77 ::rust::Box<rust::Stack>* rust_stack_ = nullptr;
78 ::rust::Box<rust::Hci>* rust_hci_ = nullptr;
79 ::rust::Box<rust::Controller>* rust_controller_ = nullptr;
Dstack.cc78 rust_stack_ = new ::rust::Box<rust::Stack>(rust::stack_create()); in StartEverything()
80 rust::stack_start(**rust_stack_); in StartEverything()
83 rust_hci_ = new ::rust::Box<rust::Hci>(rust::get_hci(**rust_stack_)); in StartEverything()
86 rust_controller_ = new ::rust::Box<rust::Controller>( in StartEverything()
87 rust::get_controller(**rust_stack_)); in StartEverything()
189 rust::stack_stop(**rust_stack_); in Stop()
Dhci_layer.cc512 namespace rust { namespace
514 using bluetooth::shim::rust::u8SliceCallback;
515 using bluetooth::shim::rust::u8SliceOnceCallback;
518 ::rust::Slice<const uint8_t>* data) { in WrapRustPacketAndCopy()
529 static void on_acl(::rust::Slice<const uint8_t> data) { in on_acl()
537 static void on_event(::rust::Slice<const uint8_t> data) { in on_event()
547 ::rust::Slice<const uint8_t> data) { in OnRustTransmitPacketCommandComplete()
555 ::rust::Slice<const uint8_t> data) { in OnRustTransmitPacketStatus()
577 bluetooth::shim::rust::hci_send_command( in transmit_command()
579 ::rust::Slice(data, len), in transmit_command()
[all …]
DBUILD.gn44 "//bt/gd/rust/shim",
58 "//bt/gd/rust/shim:libbluetooth_rust_interop",
59 "//bt/gd/rust/topshim:libbluetooth_topshim",
Dcontroller.cc78 bluetooth::shim::rust::controller_get_address(**controller); in start_up()
84 bluetooth::shim::rust::controller_get_le_supported_states(**controller); in start_up()
143 return bluetooth::shim::rust::controller_##legacy( \
207 return bluetooth::shim::rust::controller_##legacy( \ in MAP_TO_GD()
231 return bluetooth::shim::rust::controller_##legacy( \
264 return bluetooth::shim::rust::controller_get_le_maximum_tx_data_length( in get_le_maximum_tx_data_length()
275 return bluetooth::shim::rust::controller_get_le_maximum_tx_time( in get_le_maximum_tx_time()
/system/extras/profcollectd/libprofcollectd/bindings/libbase/
Dproperties.hpp21 rust::String GetProperty(rust::Str, rust::Str);
22 void SetProperty(rust::Str, rust::Str);
Dproperties.cpp20 rust::String GetProperty(rust::Str key, rust::Str default_value) { in GetProperty()
24 void SetProperty(rust::Str key, rust::Str value) { in SetProperty()
/system/bt/gd/rust/topshim/btif/
Dbtif_shim.h26 namespace rust {
40 bool Initialize(::rust::Box<RustCallbacks> callbacks, ::rust::Vec<::rust::String> initFlags);
68 ::rust::Box<RustCallbacks>& GetCallbacks() { in GetCallbacks()
73 void ConvertFlags(::rust::Vec<::rust::String>& flags);
75 std::unique_ptr<::rust::Box<RustCallbacks>> callbacks_;
Dbtif_shim.cc31 namespace rust { namespace
38 namespace rusty = ::bluetooth::topshim::rust;
40 static ::rust::Vec<BtProperty> prop_to_vec(int num_properties, bt_property_t* properties) { in prop_to_vec()
41 ::rust::Vec<BtProperty> rust_properties; in prop_to_vec()
44 ::rust::Vec<::rust::u8> val; in prop_to_vec()
47 ::rust::u8* p = static_cast<::rust::u8*>(properties[i].val); in prop_to_vec()
73 static ::rust::String bdname_to_string(bt_bdname_t* bdname) { in bdname_to_string()
128 rust::bond_state_changed_callback(*g_btif->GetCallbacks(), status, addr, state); in bond_state_changed_cb()
135 rust::acl_state_changed_callback(*g_btif->GetCallbacks(), status, addr, state, hci_reason); in acl_state_changed_cb()
181 void BluetoothIntf::ConvertFlags(::rust::Vec<::rust::String>& initFlags) { in ConvertFlags()
[all …]
/system/extras/profcollectd/libprofcollectd/bindings/libflags/
Dget_flags.hpp21 rust::String GetServerConfigurableFlag(rust::Str, rust::Str, rust::Str);
Dget_flags.cpp20 rust::String GetServerConfigurableFlag(rust::Str experiment_category_name, in GetServerConfigurableFlag()
21 rust::Str experiment_flag_name, rust::Str default_value) { in GetServerConfigurableFlag()
/system/security/keystore2/
DAndroid.bp30 "android.hardware.security.keymint-V1-rust",
31 "android.hardware.security.secureclock-V1-rust",
32 "android.hardware.security.sharedsecret-V1-rust",
33 "android.os.permissions_aidl-rust",
34 "android.security.apc-rust",
35 "android.security.authorization-rust",
36 "android.security.compat-rust",
37 "android.security.maintenance-rust",
38 "android.security.metrics-rust",
39 "android.security.remoteprovisioning-rust",
[all …]
/system/bt/gd/rust/hal/src/ffi/
Dhidl.h9 void send_command(rust::Slice<const uint8_t> data);
10 void send_acl(rust::Slice<const uint8_t> data);
11 void send_sco(rust::Slice<const uint8_t> data);
12 void send_iso(rust::Slice<const uint8_t> data);
Dhidl.cc40 on_event(rust::Slice(&event[0], event.size())); in hciEventReceived()
45 on_acl(rust::Slice(&data[0], data.size())); in aclDataReceived()
50 on_sco(rust::Slice(&data[0], data.size())); in scoDataReceived()
55 on_iso(rust::Slice(&data[0], data.size())); in isoDataReceived()
102 void send_command(rust::Slice<const uint8_t> data) { in send_command()
107 void send_acl(rust::Slice<const uint8_t> data) { in send_acl()
112 void send_sco(rust::Slice<const uint8_t> data) { in send_sco()
117 void send_iso(rust::Slice<const uint8_t> data) { in send_iso()
/system/tools/aidl/build/
Daidl_rust_source_provider.go42 *rust.BaseSourceProvider
51 func (sp *aidlRustSourceProvider) GenerateSource(ctx rust.ModuleContext, _ rust.PathDeps) android.P…
96 func (sp *aidlRustSourceProvider) SourceProviderDeps(ctx rust.DepsContext, deps rust.Deps) rust.Dep…
112 func (sp *aidlRustSourceProvider) AndroidMk(ctx rust.AndroidMkContext, ret *android.AndroidMkEntrie…
122 BaseSourceProvider: rust.NewSourceProvider(),
126 module := rust.NewSourceProviderModule(android.HostAndDeviceSupported, sourceProvider, false)
Daidl_test.go154 rust.PrepareForTestWithRustBuildComponents,
159 return rust.DefaultsFactory()
240 rust: {
440 assertModulesExists(t, ctx, "foo-java", "foo-rust", "foo-cpp", "foo-ndk", "foo-ndk_platform")
458 …assertModulesExists(t, ctx, "foo-V1-java", "foo-V1-rust", "foo-V1-cpp", "foo-V1-ndk", "foo-V1-ndk_…
500 …assertModulesExists(t, ctx, "foo-V1-java", "foo-V1-rust", "foo-V1-cpp", "foo-V1-ndk", "foo-V1-ndk_…
503 …assertModulesExists(t, ctx, "foo-V2-java", "foo-V2-rust", "foo-V2-cpp", "foo-V2-ndk", "foo-V2-ndk_…
611 assertOutput("foo-V1-rust", nativeRustVariant, "libfoo_V1.dylib.so")
637 assertOutput("foo-V2-rust", nativeRustVariant, "libfoo_V2.dylib.so")
642 assertOutput("foo-V1-rust", nativeRustVariant, "libfoo_V1.dylib.so")
[all …]
/system/bt/
DCargo.toml19 "gd/rust/shim",
20 "gd/rust/topshim",
21 "gd/rust/linux/mgmt",
22 "gd/rust/linux/adapter",
23 "gd/rust/linux/service",
/system/bt/gd/rust/common/src/ffi/
Dsys_prop.cc8 rust::String get(rust::Str property) { in get()
15 return rust::String(value_array.data(), value_len); in get()
Dsys_prop.h8 rust::String get(rust::Str property);
/system/bt/gd/common/
Dinit_flags.cc85 rust::Vec<rust::String> rusted_flags = rust::Vec<rust::String>(); in Load()
87 rusted_flags.push_back(rust::String(*flags)); in Load()
/system/security/keystore2/aidl/
DAndroid.bp34 rust: {
57 rust: {
76 rust: {
99 rust: {
125 rust: {
143 rust: {
162 rust: {
184 rust: {
/system/bt/gd/rust/shim/callbacks/
Dcallbacks.h9 namespace rust {
66 using u8SliceCallback = TrampolineCallback<::rust::Slice<const uint8_t>>;
67 using u8SliceOnceCallback = TrampolineOnceCallback<::rust::Slice<const uint8_t>>;
/system/bt/common/
Dmessage_loop_thread.cc54 rust_thread_ = new ::rust::Box<shim::rust::MessageLoopThread>( in StartUp()
55 shim::rust::main_message_loop_thread_create()); in StartUp()
57 bluetooth::shim::rust::main_message_loop_thread_start(**rust_thread_); in StartUp()
94 shim::rust::main_message_loop_thread_do_delayed( in DoInThreadDelayed()
96 std::make_unique<shim::rust::OnceClosure>(std::move(task)), in DoInThreadDelayed()
/system/bt/test/mock/
Dmock_common_message_loop_thread.cc54 rust_thread_ = new ::rust::Box<shim::rust::MessageLoopThread>( in StartUp()
55 shim::rust::main_message_loop_thread_create()); in StartUp()
57 bluetooth::shim::rust::main_message_loop_thread_start(**rust_thread_); in StartUp()
94 shim::rust::main_message_loop_thread_do_delayed( in DoInThreadDelayed()
96 std::make_unique<shim::rust::OnceClosure>(std::move(task)), in DoInThreadDelayed()
/system/security/keystore2/legacykeystore/
DAndroid.bp25 name: "liblegacykeystore-rust",
31 "android.security.legacykeystore-rust",
49 "android.security.legacykeystore-rust",

12345