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

Commit 533c740d authored by Myles Watson's avatar Myles Watson
Browse files

InitFlags: Remove asha_packet_drop_frequency

Bug: 233715486
Fixes: 290842346
Test: mma -j32
Flag: EXEMPT, no logical change
Change-Id: If8e6f9e5221e405d402716a2130d2144d7734aec
parent 92e9536c
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -270,9 +270,8 @@ class HearingAidImpl : public HearingAid {
  bool needs_parameter_update = false;
  std::chrono::time_point<std::chrono::steady_clock> last_drop_time_point =
      std::chrono::steady_clock::now();
  // at most 1 packet DROP per DROP_FREQUENCY_THRESHOLD seconds
  const int DROP_FREQUENCY_THRESHOLD =
      bluetooth::common::init_flags::get_asha_packet_drop_frequency_threshold();
  // at most 1 packet DROP per kDropFrequencyThreshold seconds
  static constexpr int64_t kDropFrequencyThreshold = 60;

  // Resampler context for audio stream.
  // Clock recovery uses L2CAP Flow Control Credit Ind acknowledgments
@@ -450,9 +449,8 @@ class HearingAidImpl : public HearingAid {
  bool IsBelowDropFrequency(
      std::chrono::time_point<std::chrono::steady_clock> tp) {
    auto duration = tp - last_drop_time_point;
    bool droppable =
        std::chrono::duration_cast<std::chrono::seconds>(duration).count() >=
        DROP_FREQUENCY_THRESHOLD;
    bool droppable = std::chrono::duration_cast<std::chrono::seconds>(duration).count() >=
                     kDropFrequencyThreshold;
    log::info("IsBelowDropFrequency {}", droppable);
    return droppable;
  }
+0 −1
Original line number Diff line number Diff line
@@ -207,7 +207,6 @@ pub fn set_all_for_testing() {
init_flags!(
    name: InitFlags
    flags: {
        asha_packet_drop_frequency_threshold: i32 = 60,
        asha_phy_update_retry_limit: i32 = 5,
        always_send_services_if_gatt_disc_done = true,
        always_use_private_gatt_for_debugging,
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ mod ffi {
        fn dynamic_avrcp_version_enhancement_is_enabled() -> bool;
        fn gatt_robust_caching_server_is_enabled() -> bool;
        fn get_hci_adapter() -> i32;
        fn get_asha_packet_drop_frequency_threshold() -> i32;
        fn get_asha_phy_update_retry_limit() -> i32;
        fn hfp_dynamic_version_is_enabled() -> bool;
        fn irk_rotation_is_enabled() -> bool;