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

Commit a646d488 authored by Ömer Faruk Yılmaz's avatar Ömer Faruk Yılmaz
Browse files

Add native layer logs to differentiate if new scanManagerRefactor flow is being used

Bug: 313335632
Bug: 267361243
Bug: 327503826
Test: m com.android.btservices
Change-Id: I803f3b940f5fd0d28cb5bc85f7e417338d54a641
parent cdf04e40
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));
  }