Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42d5d7b1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add native layer logs to differentiate if new scanManagerRefactor flow...

Merge "Add native layer logs to differentiate if new scanManagerRefactor flow is being used" into main
parents 4a41e209 a646d488
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1285,6 +1285,7 @@ static void initializeNative(JNIEnv* env, jobject object) {
  }

  if (com::android::bluetooth::flags::scan_manager_refactor()) {
    log::info("Starting rust module");
    btIf->start_rust_module();
  }

@@ -1303,6 +1304,7 @@ static void cleanupNative(JNIEnv* env, jobject /* object */) {
  }

  if (com::android::bluetooth::flags::scan_manager_refactor()) {
    log::info("Stopping rust module");
    btIf->stop_rust_module();
  }

+2 −0
Original line number Diff line number Diff line
@@ -325,6 +325,7 @@ static void event_start_up_stack(bluetooth::core::CoreInterface* interface,
  }

  if (!com::android::bluetooth::flags::scan_manager_refactor()) {
    info("Starting rust module");
    module_start_up(get_local_module(RUST_MODULE));
  }
  if (com::android::bluetooth::flags::channel_sounding_in_stack()) {
@@ -350,6 +351,7 @@ static void event_shut_down_stack(ProfileStopCallback stopProfiles) {
  stack_is_running = false;

  if (!com::android::bluetooth::flags::scan_manager_refactor()) {
    info("Stopping rust module");
    module_shut_down(get_local_module(RUST_MODULE));
  }