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

Commit 5b665d0f authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Sat] Add more signal strength logs; increase buffer size.

To get more details on b/337559250, incease the size of the buffer and
log when we register/unregister the signal strength callback.

Bug: 337559250
Test: dumped DeviceBasedSatelliteInputLog -> verified new log is there
Flag: ACONFIG com.android.internal.telephony.flags.oem_enabled_satellite_flag
NEXTFOOD

Change-Id: Ib02a1da2755b0ed4cfba2df070c5089ec5092a4e
(cherry picked from commit a82374cf)
parent 88e0f4b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ abstract class StatusBarPipelineModule {
        @SysUISingleton
        @OemSatelliteInputLog
        fun provideOemSatelliteInputLog(factory: LogBufferFactory): LogBuffer {
            return factory.create("DeviceBasedSatelliteInputLog", 32)
            return factory.create("DeviceBasedSatelliteInputLog", 150)
        }

        const val FIRST_MOBILE_SUB_SHOWING_NETWORK_TYPE_ICON =
+7 −1
Original line number Diff line number Diff line
@@ -243,11 +243,17 @@ constructor(
                try {
                    sm.registerForNtnSignalStrengthChanged(bgDispatcher.asExecutor(), cb)
                    registered = true
                    logBuffer.i { "Registered for signal strength successfully" }
                } catch (e: Exception) {
                    logBuffer.e("error registering for signal strength", e)
                }

                awaitClose { if (registered) sm.unregisterForNtnSignalStrengthChanged(cb) }
                awaitClose {
                    if (registered) {
                        sm.unregisterForNtnSignalStrengthChanged(cb)
                        logBuffer.i { "Unregistered for signal strength successfully" }
                    }
                }
            }
            .flowOn(bgDispatcher)