Home
last modified time | relevance | path

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

1234567

/aosp12/system/bt/main/shim/
H A 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;
H A 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()
H A Dhci_layer.cc512 namespace rust { namespace
577 bluetooth::shim::rust::hci_send_command( in transmit_command()
579 ::rust::Slice(data, len), in transmit_command()
584 bluetooth::shim::rust::hci_send_command( in transmit_command()
586 ::rust::Slice(data, len), in transmit_command()
594 bluetooth::shim::rust::hci_send_acl( in transmit_fragment()
596 ::rust::Slice(stream, length)); in transmit_fragment()
727 ::rust::hci_on_reset_complete(); in hci_on_reset_complete()
748 ::rust::register_event(event_code); in hci_on_reset_complete()
783 ::rust::register_for_acl(); in hci_on_reset_complete()
[all …]
H A 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(
275 return bluetooth::shim::rust::controller_get_le_maximum_tx_time( in get_le_maximum_tx_time()
/aosp12/system/security/keystore2/
H A DAndroid.bp33 "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",
40 "android.system.keystore2-V1-rust",
44 "libkeystore2_aaid-rust",
45 "libkeystore2_apc_compat-rust",
49 "libkeystore2_system_property-rust",
[all …]
/aosp12/system/bt/gd/rust/topshim/btif/
H A 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_;
H A 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()
181 void BluetoothIntf::ConvertFlags(::rust::Vec<::rust::String>& initFlags) { in ConvertFlags()
195 bool BluetoothIntf::Initialize(::rust::Box<RustCallbacks> callbacks, ::rust::Vec<::rust::String> in… in Initialize()
[all …]
/aosp12/system/tools/aidl/build/
H A 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)
H A 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_…
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")
647 assertOutput("foo-V3-rust", nativeRustVariant, "libfoo_V3.dylib.so")
746 rustcRule := ctx.ModuleForTests("foo-V1-rust", nativeRustVariant).Rule("rustc")
[all …]
/aosp12/system/extras/profcollectd/libprofcollectd/bindings/libbase/
H A Dproperties.hpp21 rust::String GetProperty(rust::Str, rust::Str);
22 void SetProperty(rust::Str, rust::Str);
H A 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()
/aosp12/build/make/tools/warn/
H A Dother_warn_patterns.py56 def rust(severity, description, pattern): function
157 rust(Severity.HIGH, 'Does not derive Copy', '.+ does not derive Copy'),
158 rust(Severity.MEDIUM, '... are deprecated',
161 rust(Severity.MEDIUM, 'never used', '.* is never used:'),
162 rust(Severity.MEDIUM, 'unused import', 'unused import: '),
163 rust(Severity.MEDIUM, 'unnecessary attribute',
165 rust(Severity.MEDIUM, 'unnecessary parentheses',
/aosp12/system/bt/gd/rust/hal/src/ffi/
H A 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()
H A 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);
/aosp12/system/extras/profcollectd/libprofcollectd/bindings/libflags/
H A Dget_flags.hpp21 rust::String GetServerConfigurableFlag(rust::Str, rust::Str, rust::Str);
H A 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()
/aosp12/system/bt/
H A DCargo.toml19 "gd/rust/shim",
20 "gd/rust/topshim",
21 "gd/rust/linux/mgmt",
22 "gd/rust/linux/adapter",
23 "gd/rust/linux/service",
/aosp12/system/security/keystore2/aidl/
H A DAndroid.bp34 rust: {
57 rust: {
76 rust: {
99 rust: {
125 rust: {
143 rust: {
162 rust: {
184 rust: {
/aosp12/system/bt/gd/common/
H A 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()
/aosp12/build/soong/rust/
H A DAndroid.bp6 name: "soong-rust",
7 pkgPath: "android/soong/rust",
13 "soong-rust-config",
32 "rust.go",
/aosp12/system/bt/gd/rust/common/src/ffi/
H A Dsys_prop.cc8 rust::String get(rust::Str property) { in get()
15 return rust::String(value_array.data(), value_len); in get()
H A Dsys_prop.h8 rust::String get(rust::Str property);
/aosp12/system/bt/test/mock/
H A 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()
/aosp12/system/bt/common/
H A 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()
/aosp12/system/bt/gd/rust/shim/callbacks/
H A Dcallbacks.h9 namespace rust {
66 using u8SliceCallback = TrampolineCallback<::rust::Slice<const uint8_t>>;
67 using u8SliceOnceCallback = TrampolineOnceCallback<::rust::Slice<const uint8_t>>;

1234567