Modern Apps git

← Modern-Apps.git

log: gate private Log.debug sites behind Log.dev

Commit
8fc80a466c49a0aa6e3fb42144a8a12d8d91ea17
Author
vayun-mathur <[email protected]>
When
2026-10-08 21:54 UTC (1 month ago)
Parents
fd50c80

Diff

appstore/src/main/java/com/vayunmathur/appstore/data/security/SourceStamp.kt
diff --git a/appstore/src/main/java/com/vayunmathur/appstore/data/security/SourceStamp.kt b/appstore/src/main/java/com/vayunmathur/appstore/data/security/SourceStamp.ktindex 621afaf6e3..981d044d85 100644--- a/appstore/src/main/java/com/vayunmathur/appstore/data/security/SourceStamp.kt+++ b/appstore/src/main/java/com/vayunmathur/appstore/data/security/SourceStamp.kt@@ -39,13 +39,13 @@ object SourceStamp {         } catch (expected: SecurityException) {             // An absent stamp is normal and not an error; a malformed one is treated the             // same as absent, and the caller decides whether absence is acceptable.-            Log.debug(TAG, "No verifiable source stamp on ${apk.name}: ${expected.message}")+            Log.dev(TAG, "No verifiable source stamp on ${apk.name}: ${expected.message}")             null         } catch (expected: IllegalStateException) {-            Log.debug(TAG, "No verifiable source stamp on ${apk.name}: ${expected.message}")+            Log.dev(TAG, "No verifiable source stamp on ${apk.name}: ${expected.message}")             null         } catch (expected: java.io.IOException) {-            Log.debug(TAG, "No verifiable source stamp on ${apk.name}: ${expected.message}")+            Log.dev(TAG, "No verifiable source stamp on ${apk.name}: ${expected.message}")             null         }     }
auto/src/main/java/com/vayunmathur/auto/notifications/MessageMirrorService.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/notifications/MessageMirrorService.kt b/auto/src/main/java/com/vayunmathur/auto/notifications/MessageMirrorService.ktindex 076ee9512a..2f5d651838 100644--- a/auto/src/main/java/com/vayunmathur/auto/notifications/MessageMirrorService.kt+++ b/auto/src/main/java/com/vayunmathur/auto/notifications/MessageMirrorService.kt@@ -28,7 +28,7 @@ class MessageMirrorService : NotificationListenerService() {         val (thread, message) = extract(sbn) ?: return         MessageMirrorBus.post(thread, message, replyRoute(sbn))         activeCount.incrementAndGet()-        Log.debug(TAG, "mirrored message for thread ${thread.threadId}")+        Log.dev(TAG, "mirrored message for thread ${thread.threadId}")     }      override fun onNotificationRemoved(sbn: StatusBarNotification) {
auto/src/main/java/com/vayunmathur/auto/platform/AudioSinkChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/AudioSinkChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/AudioSinkChannel.ktindex 0e477b4643..1bb060cad0 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/AudioSinkChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/AudioSinkChannel.kt@@ -118,7 +118,7 @@ class AudioSinkChannel(                 onEvent(AudioEvent.AckReceived(role.name, inbound.ackSeq))             }             is InboundAudio.Sync -> onEvent(AudioEvent.SyncReceived(role.name))-            is InboundAudio.Observed -> Log.debug(TAG, "$role unhandled audio message 0x${type.toString(HEX_RADIX)}")+            is InboundAudio.Observed -> Log.dev(TAG, "$role unhandled audio message 0x${type.toString(HEX_RADIX)}")         }     } @@ -158,7 +158,7 @@ class AudioSinkChannel(         lastGain = currentGain()         publish()         if (lastGain == AudioGain.MUTED) {-            Log.debug(TAG, "$role muted by focus")+            Log.dev(TAG, "$role muted by focus")         }     } @@ -201,17 +201,17 @@ class AudioSinkChannel(      private fun writeFramed(pcm: ByteArray, sampleRateHz: Int) {         val config = selected ?: run {-            Log.debug(TAG, "$role dropping ${pcm.size}B with no confirmed config")+            Log.dev(TAG, "$role dropping ${pcm.size}B with no confirmed config")             return         }         if (state != AudioSinkState.STARTED) {-            Log.debug(TAG, "$role dropping ${pcm.size}B while $state")+            Log.dev(TAG, "$role dropping ${pcm.size}B while $state")             return         }         val gain = currentGain()         lastGain = gain         if (gain == AudioGain.MUTED) {-            Log.debug(TAG, "$role muted; dropping ${pcm.size}B")+            Log.dev(TAG, "$role muted; dropping ${pcm.size}B")             return         }         val resampled = AudioCodec.resampleLinearMono16(pcm, sampleRateHz, config.config.samplingRate)
auto/src/main/java/com/vayunmathur/auto/platform/CarTts.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/CarTts.kt b/auto/src/main/java/com/vayunmathur/auto/platform/CarTts.ktindex 6967a2b09b..75fe4232da 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/CarTts.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/CarTts.kt@@ -92,12 +92,12 @@ class CarTts(     private fun synthesize(text: String) {         val tts = engine         if (!engineReady || tts == null) {-            Log.debug(TAG, "dropping ${text.length} chars; tts not ready")+            Log.dev(TAG, "dropping ${text.length} chars; tts not ready")             onEvent(AudioEvent.TtsDropped("engine-unready"))             return         }         val sink = systemSink() ?: run {-            Log.debug(TAG, "dropping ${text.length} chars; no system sink")+            Log.dev(TAG, "dropping ${text.length} chars; no system sink")             onEvent(AudioEvent.TtsDropped("no-sink"))             return         }
auto/src/main/java/com/vayunmathur/auto/platform/GuidanceChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/GuidanceChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/GuidanceChannel.ktindex ed7b96ca44..0bca1b20cf 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/GuidanceChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/GuidanceChannel.kt@@ -86,7 +86,7 @@ class GuidanceChannel(             }             is InboundAudio.Ack -> Log.debug(TAG, "guidance ack (no stream running)")             is InboundAudio.Sync -> Log.debug(TAG, "guidance sync pulse")-            is InboundAudio.Observed -> Log.debug(TAG, "unhandled guidance message 0x${type.toString(HEX_RADIX)}")+            is InboundAudio.Observed -> Log.dev(TAG, "unhandled guidance message 0x${type.toString(HEX_RADIX)}")         }     } 
auto/src/main/java/com/vayunmathur/auto/platform/InputChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/InputChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/InputChannel.ktindex 3ba45f0ca9..1308de4441 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/InputChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/InputChannel.kt@@ -99,7 +99,7 @@ class InputChannel(         if (!bound) return         val (type, payload) = InputCodec.encodeFeedback(feedbackEvent)         connection.send(channelId, type, payload)-        Log.debug(TAG, "input feedback sent: $feedbackEvent")+        Log.dev(TAG, "input feedback sent: $feedbackEvent")         onEvent(InputEvent.FeedbackSent(feedbackEvent))     } @@ -136,17 +136,17 @@ class InputChannel(         }         val events = InputCodec.decodeInbound(type, payload)         if (events == null) {-            Log.debug(TAG, "unhandled input message 0x${type.toString(HEX_RADIX)}")+            Log.dev(TAG, "unhandled input message 0x${type.toString(HEX_RADIX)}")             return         }         if (!isInputAllowed()) {-            Log.debug(TAG, "dropping ${events.describe()} without input focus")+            Log.dev(TAG, "dropping ${events.describe()} without input focus")             onEvent(InputEvent.DroppedNoFocus)             return         }         val display = displaySize()         if (display == null) {-            Log.debug(TAG, "dropping ${events.describe()} with no car display yet")+            Log.dev(TAG, "dropping ${events.describe()} with no car display yet")             onEvent(InputEvent.DroppedNoFocus)             return         }@@ -222,7 +222,7 @@ class InputChannel(                     sendInjectFeedback()                 }             } else {-                Log.debug(TAG, "ignoring absolute event keycode=$keycode value=$value")+                Log.dev(TAG, "ignoring absolute event keycode=$keycode value=$value")             }         }     }
auto/src/main/java/com/vayunmathur/auto/platform/MicSourceChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/MicSourceChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/MicSourceChannel.ktindex 6a6f2c65bd..3d1ded9288 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/MicSourceChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/MicSourceChannel.kt@@ -75,13 +75,13 @@ class MicSourceChannel(             return         }         if (type == GalMessage.Microphone.REQUEST) {-            Log.debug(TAG, "mic request (${payload.size}B); acking")+            Log.dev(TAG, "mic request (${payload.size}B); acking")             ack()             return         }         val chunk = AudioCodec.decodeMicData(type, payload)         if (chunk == null) {-            Log.debug(TAG, "unhandled mic message 0x${type.toString(HEX_RADIX)}")+            Log.dev(TAG, "unhandled mic message 0x${type.toString(HEX_RADIX)}")             return         }         val target = handler ?: run {@@ -132,7 +132,7 @@ class MicSourceChannel(                 onEvent(AudioEvent.MicTurn(pcm.size.toLong()))                 callback(pcm)             } else {-                Log.debug(TAG, "mic turn ended with ${pcm.size}B; yielding nothing")+                Log.dev(TAG, "mic turn ended with ${pcm.size}B; yielding nothing")             }         }     }
auto/src/main/java/com/vayunmathur/auto/platform/NavStatusChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/NavStatusChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/NavStatusChannel.ktindex 48454adf47..f1e18b3cd6 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/NavStatusChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/NavStatusChannel.kt@@ -52,7 +52,7 @@ class NavStatusChannel(             Log.status(TAG, "ignoring 0x${type.toString(HEX_RADIX)} for channel $channelId")             return         }-        Log.debug(TAG, "unhandled nav-status message 0x${type.toString(HEX_RADIX)}")+        Log.dev(TAG, "unhandled nav-status message 0x${type.toString(HEX_RADIX)}")     }      /**
auto/src/main/java/com/vayunmathur/auto/platform/SensorChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/SensorChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/SensorChannel.ktindex 65d8b4d989..2a4faa812f 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/SensorChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/SensorChannel.kt@@ -149,7 +149,7 @@ class SensorChannel(                 val next = _snapshot.value.withEvents(inbound.events)                 _snapshot.value = next                 onValues(next)-                Log.debug(TAG, "sensor batch: ${inbound.events.size} events")+                Log.dev(TAG, "sensor batch: ${inbound.events.size} events")                 onEvent(SensorEvent.BatchReceived(inbound.events.size))             }             is InboundSensor.Error -> {@@ -157,7 +157,7 @@ class SensorChannel(                 Log.status(TAG, "sensor error: ${inbound.type} status=${inbound.status}")                 onEvent(SensorEvent.SensorError(inbound.type.name, inbound.status))             }-            is InboundSensor.Observed -> Log.debug(TAG, "unhandled sensor message 0x${type.toString(HEX_RADIX)}")+            is InboundSensor.Observed -> Log.dev(TAG, "unhandled sensor message 0x${type.toString(HEX_RADIX)}")         }     } @@ -173,7 +173,7 @@ class SensorChannel(         val next = _snapshot.value.withEvents(events)         _snapshot.value = next         onValues(next)-        Log.debug(TAG, "sensor live batch: ${events.size} events")+        Log.dev(TAG, "sensor live batch: ${events.size} events")         onEvent(SensorEvent.BatchReceived(events.size))     } 
auto/src/main/java/com/vayunmathur/auto/platform/VideoSinkChannel.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/platform/VideoSinkChannel.kt b/auto/src/main/java/com/vayunmathur/auto/platform/VideoSinkChannel.ktindex fa5af5b64c..8f37572726 100644--- a/auto/src/main/java/com/vayunmathur/auto/platform/VideoSinkChannel.kt+++ b/auto/src/main/java/com/vayunmathur/auto/platform/VideoSinkChannel.kt@@ -170,8 +170,8 @@ class VideoSinkChannel(             // semantics were recovered (see VideoCodec), so it is observed like             // the 0x800B sync pulse -- never answered, never fatal.             GalMessage.Video.UPDATE_UI_CONFIG_REQUEST ->-                Log.debug(TAG, "update-ui-config response (${payload.size}B); observed")-            else -> Log.debug(TAG, "unhandled video message 0x${type.toString(HEX_RADIX)}")+                Log.dev(TAG, "update-ui-config response (${payload.size}B); observed")+            else -> Log.dev(TAG, "unhandled video message 0x${type.toString(HEX_RADIX)}")         }     } 
auto/src/main/java/com/vayunmathur/auto/service/CarMessagingAudio.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/service/CarMessagingAudio.kt b/auto/src/main/java/com/vayunmathur/auto/service/CarMessagingAudio.ktindex e235189118..1682eae476 100644--- a/auto/src/main/java/com/vayunmathur/auto/service/CarMessagingAudio.kt+++ b/auto/src/main/java/com/vayunmathur/auto/service/CarMessagingAudio.kt@@ -44,7 +44,7 @@ class CarMessagingAudio(         }         channel.beginTurn { pcm ->             if (pcm.isEmpty()) {-                Log.debug(TAG, "mic turn for $threadId yielded nothing")+                Log.dev(TAG, "mic turn for $threadId yielded nothing")                 return@beginTurn             }             transcribe(pcm) { text ->@@ -52,7 +52,7 @@ class CarMessagingAudio(                     Log.status(TAG, "mic turn for $threadId transcribed ${text.length} chars")                     onResult(text)                 } else {-                    Log.debug(TAG, "mic turn for $threadId transcribed nothing")+                    Log.dev(TAG, "mic turn for $threadId transcribed nothing")                 }             }             // The turn stays open until the head unit ends it; the service
auto/src/main/java/com/vayunmathur/auto/service/MessagingCarAppService.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/service/MessagingCarAppService.kt b/auto/src/main/java/com/vayunmathur/auto/service/MessagingCarAppService.ktindex e5807aedcd..ad062ac374 100644--- a/auto/src/main/java/com/vayunmathur/auto/service/MessagingCarAppService.kt+++ b/auto/src/main/java/com/vayunmathur/auto/service/MessagingCarAppService.kt@@ -68,7 +68,7 @@ class MessagingCarAppService(         // posts, a future extension) is observed and ignored.         val action = MessagingCodec.decodeInbound(type, payload)         if (action == null) {-            Log.debug(TAG, "unhandled messaging message 0x${type.toString(HEX_RADIX)}")+            Log.dev(TAG, "unhandled messaging message 0x${type.toString(HEX_RADIX)}")             return         }         when (action) {@@ -132,7 +132,7 @@ class MessagingCarAppService(     /** Fires the thread's mark-read intent, if the app advertised one. */     private fun sendMarkRead(threadId: String) {         val readIntent = routes[threadId]?.readIntent ?: run {-            Log.debug(TAG, "mark-read for $threadId with no app route")+            Log.dev(TAG, "mark-read for $threadId with no app route")             return         }         runCatching { readIntent.send() }
auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt b/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.ktindex 43aa91679a..216f447461 100644--- a/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt+++ b/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt@@ -218,7 +218,7 @@ class ProjectionService : Service() {             deviceModel = Build.MODEL,             deviceManufacturer = Build.MANUFACTURER,             onChannelMessage = { message -> routeChannelMessage(message) },-            trace = { Log.debug(TAG, it) },+            trace = { Log.dev(TAG, it) },         )          // The session owns focus arbitration; mirror accepted changes to the@@ -252,7 +252,7 @@ class ProjectionService : Service() {             // GAL 11/12 gap: the channel message IDs are unmapped, so             // these are observed and ignored, never answered. Now-playing             // rides the ch2 video stream instead.-            Log.debug(TAG, "ignoring media-browser message on ch${message.channelId}")+            Log.dev(TAG, "ignoring media-browser message on ch${message.channelId}")         } else if (message.channelId == GalService.NOTIFICATION.id) {             messaging?.onMessage(message.channelId, message.type, message.payload)         } else if (message.channelId == inputChannelId) {@@ -272,7 +272,7 @@ class ProjectionService : Service() {         } else if (message.channelId == GalService.VIDEO_SINK.id) {             video?.onMessage(message.channelId, message.type, message.payload)         } else {-            Log.debug(+            Log.dev(                 TAG,                 "ignoring message on unowned service ch${message.channelId} " +                     "(0x${message.type.toString(HEX_RADIX)}); no owner",
camera/src/main/java/com/vayunmathur/camera/platform/CameraCapabilities.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/platform/CameraCapabilities.kt b/camera/src/main/java/com/vayunmathur/camera/platform/CameraCapabilities.ktindex a09a3c4fdc..c29b1d03af 100644--- a/camera/src/main/java/com/vayunmathur/camera/platform/CameraCapabilities.kt+++ b/camera/src/main/java/com/vayunmathur/camera/platform/CameraCapabilities.kt@@ -71,7 +71,7 @@ suspend fun CameraViewModel.refreshCapabilities(bound: Camera, lensId: String?)         exposureCompRange = expRange ?: lensCapabilitiesMutable.value?.exposureCompRange,         nightExtensionUsable = nightExtensionUsableMutable.value,     )-    Log.debug("LensSelector", "Refreshed capabilities lens=$lensId zoom=[$minZoom,$maxZoom] flash=$hasFlash")+    Log.dev("LensSelector", "Refreshed capabilities lens=$lensId zoom=[$minZoom,$maxZoom] flash=$hasFlash") }  /** Zoom bounds off the bound camera; unity defaults when unreadable. */
camera/src/main/java/com/vayunmathur/camera/platform/LensSelector.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/platform/LensSelector.kt b/camera/src/main/java/com/vayunmathur/camera/platform/LensSelector.ktindex 2c032a2ff9..19a2248696 100644--- a/camera/src/main/java/com/vayunmathur/camera/platform/LensSelector.kt+++ b/camera/src/main/java/com/vayunmathur/camera/platform/LensSelector.kt@@ -184,7 +184,7 @@ fun CameraViewModel.ensureLensesEnumerated(provider: ProcessCameraProvider) {         selectedLensMutable.value = LensSelectionLogic.filterByFacing(all, facing)             .minByOrNull { it.fallbackPriority }     }-    Log.debug("LensSelector", "Enumerated ${all.size} lenses; selected=${selectedLensMutable.value?.labelKey}")+    Log.dev("LensSelector", "Enumerated ${all.size} lenses; selected=${selectedLensMutable.value?.labelKey}") }  /** Lenses of the current facing, ordered by fallback priority. */
camera/src/main/java/com/vayunmathur/camera/ui/CameraPreviewBox.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/ui/CameraPreviewBox.kt b/camera/src/main/java/com/vayunmathur/camera/ui/CameraPreviewBox.ktindex 46f7c219cd..a9735863c4 100644--- a/camera/src/main/java/com/vayunmathur/camera/ui/CameraPreviewBox.kt+++ b/camera/src/main/java/com/vayunmathur/camera/ui/CameraPreviewBox.kt@@ -108,7 +108,7 @@ internal fun BoxWithConstraintsScope.CameraPreviewBox(                     !it.isRecycled && it.width > 0 && it.height > 0                 }                 val hasBokeh = cameraMode == CameraMode.PORTRAIT && currentMask != null-                Log.debug("BokehDebug", "render mode=$cameraMode hasBokeh=$hasBokeh mask=${currentMask?.width}x${currentMask?.height}")+                Log.dev("BokehDebug", "render mode=$cameraMode hasBokeh=$hasBokeh mask=${currentMask?.width}x${currentMask?.height}")                 if (hasBokeh || hasColorAdj) {                     Modifier.graphicsLayer {                         var effect: RenderEffect? = null@@ -180,12 +180,12 @@ internal fun BoxWithConstraintsScope.CameraPreviewBox(      surfaceRequest?.let { request ->         LaunchedEffect(request) {-            Log.debug("NightPreview", "CameraXViewfinder COMPOSED with request res=${request.resolution} dynamicRange=${request.dynamicRange} useNightPreview=${state.useNightPreview} sessionKind=${state.sessionKind} zoomRatio=${state.zoomRatio} levels=${state.availableZoomLevels} thread=${Thread.currentThread().name}")+            Log.dev("NightPreview", "CameraXViewfinder COMPOSED with request res=${request.resolution} dynamicRange=${request.dynamicRange} useNightPreview=${state.useNightPreview} sessionKind=${state.sessionKind} zoomRatio=${state.zoomRatio} levels=${state.availableZoomLevels} thread=${Thread.currentThread().name}")         }         DisposableEffect(request) {-            Log.debug("NightPreview", "CameraXViewfinder DisposableEffect ATTACH request res=${request.resolution} useNightPreview=${state.useNightPreview}")+            Log.dev("NightPreview", "CameraXViewfinder DisposableEffect ATTACH request res=${request.resolution} useNightPreview=${state.useNightPreview}")             onDispose {-                Log.debug("NightPreview", "CameraXViewfinder DisposableEffect DETACH request res=${request.resolution} useNightPreview=${state.useNightPreview} – surface will be invalidated, if next request fails to emit we go black")+                Log.dev("NightPreview", "CameraXViewfinder DisposableEffect DETACH request res=${request.resolution} useNightPreview=${state.useNightPreview} – surface will be invalidated, if next request fails to emit we go black")             }         }         CameraXViewfinder(
camera/src/main/java/com/vayunmathur/camera/ui/CameraScreenEffects.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreenEffects.kt b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreenEffects.ktindex 8667394174..2673949b03 100644--- a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreenEffects.kt+++ b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreenEffects.kt@@ -107,11 +107,11 @@ internal fun CameraScreenEffects(         }     }     LaunchedEffect(useNightPreview) {-        Log.debug("NightPreview", "CameraScreen useNightPreview recomputed=$useNightPreview sessionKind=$sessionKind cameraMode=$cameraMode nightModeActive=${state.nightModeActive} nightExtAvailable=${state.nightExtAvailable} lensFacing=$lensFacing")+        Log.dev("NightPreview", "CameraScreen useNightPreview recomputed=$useNightPreview sessionKind=$sessionKind cameraMode=$cameraMode nightModeActive=${state.nightModeActive} nightExtAvailable=${state.nightExtAvailable} lensFacing=$lensFacing")     }     val surfaceRequest = state.surfaceRequest     LaunchedEffect(surfaceRequest) {-        Log.debug("NightPreview", "CameraScreen surfaceRequest changed res=${surfaceRequest?.resolution} frameType=${surfaceRequest?.javaClass?.simpleName} useNightPreview=$useNightPreview sessionKind=$sessionKind thread=${Thread.currentThread().name} lensFacing=${lensFacing}")+        Log.dev("NightPreview", "CameraScreen surfaceRequest changed res=${surfaceRequest?.resolution} frameType=${surfaceRequest?.javaClass?.simpleName} useNightPreview=$useNightPreview sessionKind=$sessionKind thread=${Thread.currentThread().name} lensFacing=${lensFacing}")         if (surfaceRequest == null && useNightPreview) {             Log.status("NightPreview", "CameraScreen WARNING: surfaceRequest is NULL while useNightPreview=true – preview will be black until Provider re-emits. This is the black-frame trap you described: teardown -> delay(250) -> setupNightPreviewSession() tears down standard photo session surface before extension emits!")         }@@ -120,7 +120,7 @@ internal fun CameraScreenEffects(         }     }     LaunchedEffect(state.availableZoomLevels) {-        Log.debug("NightPreview", "CameraScreen availableZoomLevels changed=${state.availableZoomLevels} currentZoom=${state.zoomRatio} useNightPreview=$useNightPreview – vendor NIGHT often reports only [1x], making zoom bar appear to 'disappear' except 1x")+        Log.dev("NightPreview", "CameraScreen availableZoomLevels changed=${state.availableZoomLevels} currentZoom=${state.zoomRatio} useNightPreview=$useNightPreview – vendor NIGHT often reports only [1x], making zoom bar appear to 'disappear' except 1x")     }      // Analyzer selection for the photo modes. Keyed on photoSessionActive so the analyzer is@@ -190,12 +190,12 @@ internal fun CameraScreenEffects(                 context,                 isFrontFacing = lensFacing == CameraSelector.LENS_FACING_FRONT             ) { mask ->-                Log.debug("BokehDebug", "mask arrived ${mask.width}x${mask.height} recycled=${mask.isRecycled}")+                Log.dev("BokehDebug", "mask arrived ${mask.width}x${mask.height} recycled=${mask.isRecycled}")                 if (mask.isRecycled) return@BokehAnalyzer                 mainHandler.post {                     // If mask was recycled while message queued, drop it                     if (mask.isRecycled) {-                        Log.debug("BokehDebug", "mask recycled before post ran")+                        Log.dev("BokehDebug", "mask recycled before post ran")                         return@post                     }                     val prev = state.maskBitmap@@ -203,7 +203,7 @@ internal fun CameraScreenEffects(                         try { prev.recycle() } catch (_: Exception) {}                     }                     state.maskBitmap = mask-                    Log.debug("BokehDebug", "mask stored ${mask.width}x${mask.height}")+                    Log.dev("BokehDebug", "mask stored ${mask.width}x${mask.height}")                 }             }.also {                 viewModel.setBokehAnalyzer(it)@@ -237,9 +237,9 @@ internal fun CameraScreenEffects(     // they join the effect keys: changing them in Settings rebinds instead of silently waiting     // for the next mode switch. Aspect ratio is applied live (setCropAspectRatio) — no rebind.     LaunchedEffect(cameraMode, lensFacing, selectedLens, sessionKind, useNightPreview, state.videoCodec, state.audioInputSource, state.mirrorFront, lifecycleOwner) {-        Log.debug("NightPreview", "CameraScreen session LaunchedEffect START keys lensFacing=$lensFacing selectedLens=${selectedLens?.labelKey} sessionKind=$sessionKind useNightPreview=$useNightPreview codec=${state.videoCodec} audio=${state.audioInputSource} mirror=${state.mirrorFront} lifecycle=${lifecycleOwner.lifecycle.currentState} thread=${Thread.currentThread().name}")+        Log.dev("NightPreview", "CameraScreen session LaunchedEffect START keys lensFacing=$lensFacing selectedLens=${selectedLens?.labelKey} sessionKind=$sessionKind useNightPreview=$useNightPreview codec=${state.videoCodec} audio=${state.audioInputSource} mirror=${state.mirrorFront} lifecycle=${lifecycleOwner.lifecycle.currentState} thread=${Thread.currentThread().name}")         lifecycleOwner.lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {-            Log.debug("NightPreview", "CameraScreen repeatOnLifecycle STARTED – calling teardownSession()")+            Log.dev("NightPreview", "CameraScreen repeatOnLifecycle STARTED – calling teardownSession()")             viewModel.teardownSession()             // Brief yield so the previous session's surface detaches before the next binds; short             // enough that a mode switch reads as instant, long enough to avoid a bind-over-teardown race.@@ -262,18 +262,18 @@ internal fun CameraScreenEffects(                 Log.error("NightPreview", "CameraScreen session binding THREW (was not logged before) kind=$sessionKind useNightPreview=$useNightPreview nightExtAvailable=${state.nightExtAvailable}", e)                 false             }-            Log.debug("NightPreview", "CameraScreen session bind finished success=$bindSuccess took=${System.currentTimeMillis() - bindStart}ms surface after=${viewModel.surfaceRequest.value?.resolution} zoomLevels=${viewModel.availableZoomLevels.value} zoomRatio=${viewModel.zoomRatio.value}")+            Log.dev("NightPreview", "CameraScreen session bind finished success=$bindSuccess took=${System.currentTimeMillis() - bindStart}ms surface after=${viewModel.surfaceRequest.value?.resolution} zoomLevels=${viewModel.availableZoomLevels.value} zoomRatio=${viewModel.zoomRatio.value}")             if (!bindSuccess) {                 Log.error("NightPreview", "CameraScreen BIND FAILED – this produces solid black preview and zoom bar showing only 1x (fallback?). Check logcat for NightPreview tag – exception was previously swallowed as warning")             }             try {                 awaitCancellation()             } finally {-                Log.debug("NightPreview", "CameraScreen session coroutine cancelled/finished, calling teardownSession()")+                Log.dev("NightPreview", "CameraScreen session coroutine cancelled/finished, calling teardownSession()")                 viewModel.teardownSession()             }         }-        Log.debug("NightPreview", "CameraScreen repeatOnLifecycle block EXIT – lifecycle dropped below STARTED")+        Log.dev("NightPreview", "CameraScreen repeatOnLifecycle block EXIT – lifecycle dropped below STARTED")     }      // Hardware volume-key shutter.
camera/src/main/java/com/vayunmathur/camera/util/CameraControls.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraControls.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraControls.ktindex 46d239937a..5c22521e63 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraControls.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraControls.kt@@ -33,7 +33,7 @@ fun CameraViewModel.onViewfinderZoomRatio(ratio: Float) { fun CameraViewModel.setZoomRatio(ratio: Float) {     val cam = boundCamera     val zs = cam?.cameraInfo?.zoomState?.value-    Log.debug(+    Log.dev(         "NightPreview",         "setZoomRatio() requested=$ratio clamped? min=${zs?.minZoomRatio} max=${zs?.maxZoomRatio} " +             "current=${zs?.zoomRatio} nightPreviewActive=${nightPreviewActiveMutable.value} " +@@ -79,7 +79,7 @@ internal fun CameraViewModel.restoreZoom(minZoom: Float, maxZoom: Float) { }  fun CameraViewModel.updateZoomLevels(minZoom: Float, maxZoom: Float) {-    Log.debug(+    Log.dev(         "NightPreview",         "updateZoomLevels() min=$minZoom max=$maxZoom " +             "nightPreviewActive=${nightPreviewActiveMutable.value} " +@@ -95,7 +95,7 @@ fun CameraViewModel.updateZoomLevels(minZoom: Float, maxZoom: Float) {     for (tele in TELE_ZOOM_LEVELS) {         if (tele <= maxZoom + TELE_ZOOM_TOLERANCE) levels.add(formatZoomLabel(tele) to tele)     }-    Log.debug(+    Log.dev(         "NightPreview",         "updateZoomLevels() emitting levels=$levels – if min=1f max=1f, only [1x] will show, " +             "explaining 'all zoom levels also disappear'"
camera/src/main/java/com/vayunmathur/camera/util/CameraManualControls.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraManualControls.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraManualControls.ktindex a5f555ee73..d77e9afad8 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraManualControls.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraManualControls.kt@@ -74,7 +74,7 @@ fun CameraViewModel.applyManualControls() { /** Reads the bound sensor's ISO range → stop list for the manual ISO control. */ @Suppress("DEPRECATION") internal fun CameraViewModel.readManualControlRanges() {-    Log.debug(+    Log.dev(         "NightPreview",         "readManualControlRanges() called bound=${boundCamera != null} " +             "thread=${Thread.currentThread().name}"@@ -88,12 +88,12 @@ internal fun CameraViewModel.readManualControlRanges() {         val isoRange = info.getCameraCharacteristic(             android.hardware.camera2.CameraCharacteristics.SENSOR_INFO_SENSITIVITY_RANGE         )-        Log.debug("NightPreview", "readManualControlRanges() isoRange=$isoRange")+        Log.dev("NightPreview", "readManualControlRanges() isoRange=$isoRange")         isoStopsMutable.value = if (isoRange != null) {             val filtered = listOf(50, 100, 200, 400, 800, 1600, 3200, 6400, 12800)                 .filter { it in isoRange.lower..isoRange.upper }                 .ifEmpty { listOf(isoRange.lower, isoRange.upper) }-            Log.debug("NightPreview", "readManualControlRanges() filtered stops=$filtered")+            Log.dev("NightPreview", "readManualControlRanges() filtered stops=$filtered")             filtered         } else {             Log.status("NightPreview", "readManualControlRanges() isoRange null, emitting emptyList -> ISO bar notAvailable")
camera/src/main/java/com/vayunmathur/camera/util/CameraNightMode.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraNightMode.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraNightMode.ktindex 59142ed766..7af93eea4d 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraNightMode.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraNightMode.kt@@ -97,7 +97,7 @@ fun CameraViewModel.onLuminance(avg: Float) {     if (nightIndicatorSupported) return     val beforeLow = lowLightDetectedMutable.value     val beforeOff = nightModeOverriddenOffMutable.value-    Log.debug(+    Log.dev(         "NightPreview",         "onLuminance() avg=$avg lowLightBefore=$beforeLow overriddenOff=$beforeOff " +             "lowFrames=$lowLumaFrames highFrames=$highLumaFrames " +@@ -110,7 +110,7 @@ fun CameraViewModel.onLuminance(avg: Float) {         trackDarkening(avg)     }     if (beforeLow != lowLightDetectedMutable.value || beforeOff != nightModeOverriddenOffMutable.value) {-        Log.debug(+        Log.dev(             "NightPreview",             "onLuminance() STATE CHANGE low $beforeLow -> ${lowLightDetectedMutable.value} " +                 "off $beforeOff -> ${nightModeOverriddenOffMutable.value} nightActive ${nightModeActive.value}"@@ -122,7 +122,7 @@ fun CameraViewModel.onLuminance(avg: Float) { private fun CameraViewModel.trackBrightening(avg: Float) {     if (avg <= CameraViewModel.NIGHT_DISENGAGE_LUMA) {         if (highLumaFrames != 0) {-            Log.debug(+            Log.dev(                 "NightPreview",                 "onLuminance() resetting highFrames 0 (avg=$avg still below disengage)"             )@@ -132,14 +132,14 @@ private fun CameraViewModel.trackBrightening(avg: Float) {     }     highLumaFrames++     lowLumaFrames = 0-    Log.debug(+    Log.dev(         "NightPreview",         "onLuminance() currently in low-light, avg $avg > disengage " +             "${CameraViewModel.NIGHT_DISENGAGE_LUMA}, " +             "highFrames=$highLumaFrames/${CameraViewModel.NIGHT_DEBOUNCE_FRAMES}"     )     if (highLumaFrames >= CameraViewModel.NIGHT_DEBOUNCE_FRAMES) {-        Log.debug(+        Log.dev(             "NightPreview",             "onLuminance() DISENGAGING night – high luma for " +                 "${CameraViewModel.NIGHT_DEBOUNCE_FRAMES} frames, lowLight=true->false"@@ -147,7 +147,7 @@ private fun CameraViewModel.trackBrightening(avg: Float) {         lowLightDetectedMutable.value = false         nightModeOverriddenOffMutable.value = false         highLumaFrames = 0-        Log.debug(+        Log.dev(             "NightPreview",             "onLuminance() after DISENGAGE lowLight=${lowLightDetectedMutable.value} " +                 "nightActive=${nightModeActive.value} – triggers teardown->setupPhotoSession() rebind"@@ -159,27 +159,27 @@ private fun CameraViewModel.trackBrightening(avg: Float) { private fun CameraViewModel.trackDarkening(avg: Float) {     if (avg >= CameraViewModel.NIGHT_ENGAGE_LUMA) {         if (lowLumaFrames != 0) {-            Log.debug("NightPreview", "onLuminance() resetting lowFrames 0 (avg=$avg above engage)")+            Log.dev("NightPreview", "onLuminance() resetting lowFrames 0 (avg=$avg above engage)")         }         lowLumaFrames = 0         return     }     lowLumaFrames++     highLumaFrames = 0-    Log.debug(+    Log.dev(         "NightPreview",         "onLuminance() avg $avg < engage ${CameraViewModel.NIGHT_ENGAGE_LUMA}, " +             "lowFrames=$lowLumaFrames/${CameraViewModel.NIGHT_DEBOUNCE_FRAMES}"     )     if (lowLumaFrames >= CameraViewModel.NIGHT_DEBOUNCE_FRAMES) {-        Log.debug(+        Log.dev(             "NightPreview",             "onLuminance() ENGAGING night – low luma for " +                 "${CameraViewModel.NIGHT_DEBOUNCE_FRAMES} frames, lowLight=false->true"         )         lowLightDetectedMutable.value = true         lowLumaFrames = 0-        Log.debug(+        Log.dev(             "NightPreview",             "onLuminance() after ENGAGE lowLight=${lowLightDetectedMutable.value} " +                 "nightActive=${nightModeActive.value} " +@@ -193,7 +193,7 @@ private fun CameraViewModel.trackDarkening(avg: Float) { fun CameraViewModel.toggleNightModeOverride() {     val before = nightModeOverriddenOffMutable.value     nightModeOverriddenOffMutable.value = !nightModeOverriddenOffMutable.value-    Log.debug(+    Log.dev(         "NightPreview",         "toggleNightModeOverride() CLICK moon button beforeOff=$before " +             "afterOff=${nightModeOverriddenOffMutable.value} lowLight=${lowLightDetectedMutable.value} " +@@ -213,14 +213,14 @@ internal fun CameraViewModel.resetNightModeDetection() {  /** Obtains (and caches) the ExtensionsManager bound to [provider]. Null if unavailable. */ internal suspend fun CameraViewModel.getExtensionsManager(provider: ProcessCameraProvider): ExtensionsManager? {-    Log.debug(+    Log.dev(         "NightPreview",         "getExtensionsManager() called providerHash=${provider.hashCode()} " +             "cachedExists=${extensionsManager != null} thread=${Thread.currentThread().name} " +             "startMs=${System.currentTimeMillis()}"     )     extensionsManager?.let {-        Log.debug(+        Log.dev(             "NightPreview",             "getExtensionsManager() returning CACHED manager providerHash=${provider.hashCode()} " +                 "manager=$it – NOTE: cached across provider instances, " +@@ -230,7 +230,7 @@ internal suspend fun CameraViewModel.getExtensionsManager(provider: ProcessCamer     }     return try {         val mgr = awaitExtensionsManager(provider)-        Log.debug(+        Log.dev(             "NightPreview",             "getExtensionsManager() obtained mgr=$mgr caching for providerHash=${provider.hashCode()}"         )@@ -261,7 +261,7 @@ private suspend fun CameraViewModel.awaitExtensionsManager( ): ExtensionsManager {     val start = System.currentTimeMillis()     return suspendCancellableCoroutine<ExtensionsManager> { cont ->-        Log.debug(+        Log.dev(             "NightPreview",             "getExtensionsManager() creating async instance for providerHash=${provider.hashCode()}"         )@@ -280,7 +280,7 @@ private fun CameraViewModel.resolveManagerFuture( ) {     try {         val res = future.get()-        Log.debug(+        Log.dev(             "NightPreview",             "getExtensionsManager() future.get() SUCCESS res=$res " +                 "elapsed=${System.currentTimeMillis() - start}ms"@@ -310,7 +310,7 @@ private fun CameraViewModel.resolveManagerFuture( /** Whether the CameraX NIGHT extension is available on the current lens. */ suspend fun CameraViewModel.isNightExtensionAvailable(): Boolean {     val startMs = System.currentTimeMillis()-    Log.debug(+    Log.dev(         "NightPreview",         "isNightExtensionAvailable() START lensFacing=${lensFacingMutable.value} " +             "thread=${Thread.currentThread().name}"@@ -339,13 +339,13 @@ suspend fun CameraViewModel.isNightExtensionAvailable(): Boolean { /** Resolves the provider + manager and probes NIGHT support on the current lens. */ private suspend fun CameraViewModel.probeNightExtension(startMs: Long): Boolean {     val provider = ProcessCameraProvider.awaitInstance(app)-    Log.debug(+    Log.dev(         "NightPreview",         "isNightExtensionAvailable() got providerHash=${provider.hashCode()} " +             "elapsed=${System.currentTimeMillis() - startMs}ms"     )     val mgr = getExtensionsManager(provider)-    Log.debug(+    Log.dev(         "NightPreview",         "isNightExtensionAvailable() ExtensionsManager=${mgr != null} " +             "elapsed=${System.currentTimeMillis() - startMs}ms"@@ -360,7 +360,7 @@ private suspend fun CameraViewModel.probeNightExtension(startMs: Long): Boolean     }     val selector = lensSelector(lensFacingMutable.value, selectedLensMutable.value)     if (!mgr.isExtensionAvailable(selector, ExtensionMode.NIGHT)) {-        Log.debug(+        Log.dev(             "NightPreview",             "isNightExtensionAvailable() isExtensionAvailable(NIGHT)=false " +                 "lens=${lensFacingMutable.value}"@@ -396,7 +396,7 @@ private fun CameraViewModel.querySessionConfigSupport(         Log.status("NightPreview", "isNightExtensionAvailable() isSessionConfigSupported threw", e)         false     }-    Log.debug(+    Log.dev(         "NightPreview",         "isNightExtensionAvailable() isSessionConfigSupported(NIGHT)=$supported " +             "lens=${lensFacingMutable.value} total=${System.currentTimeMillis() - startMs}ms"
camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionSetup.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionSetup.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionSetup.ktindex 2187944819..590288a221 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionSetup.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionSetup.kt@@ -25,7 +25,7 @@ import com.vayunmathur.camera.platform.refreshCapabilities  * capped (~1.2 MP) — see the note in [CameraViewModel.bindSession].  */ suspend fun CameraViewModel.setupPhotoSession(): Boolean {-    Log.debug(+    Log.dev(         "NightPreview",         "setupPhotoSession() ENTRY thread=${Thread.currentThread().name} " +             "lens=${lensFacingMutable.value} surfaceBefore=${surfaceRequestMutable.value?.resolution}"@@ -68,7 +68,7 @@ internal data class PhotoSessionPrep( internal suspend fun CameraViewModel.preparePhotoSession(): PhotoSessionPrep? {     val provider = ProcessCameraProvider.awaitInstance(app)     cameraProvider = provider-    Log.debug("NightPreview", "setupPhotoSession() got providerHash=${provider.hashCode()}")+    Log.dev("NightPreview", "setupPhotoSession() got providerHash=${provider.hashCode()}")     provider.unbindAll()      ensureLensesEnumerated(provider)@@ -81,7 +81,7 @@ internal suspend fun CameraViewModel.preparePhotoSession(): PhotoSessionPrep? {     attachAeSnapshot(previewBuilder, "setupPhotoSession()")     val preview = previewBuilder.build()     preview.setSurfaceProvider { request ->-        Log.debug(+        Log.dev(             "NightPreview",             "setupPhotoSession() surfaceRequest emitted res=${request.resolution} " +                 "format=${request.javaClass.simpleName} thread=${Thread.currentThread().name} " +@@ -89,7 +89,7 @@ internal suspend fun CameraViewModel.preparePhotoSession(): PhotoSessionPrep? {         )         surfaceRequestMutable.value = request     }-    Log.debug("NightPreview", "setupPhotoSession() preview surfaceProvider attached")+    Log.dev("NightPreview", "setupPhotoSession() preview surfaceProvider attached")      val owner = ManualLifecycleOwner()     owner.start()@@ -163,7 +163,7 @@ internal fun CameraViewModel.bindPhotoUseCases(     maxRes: Boolean,     ultraHdr: Boolean ): Camera {-    Log.debug(+    Log.dev(         "NightPreview",         "setupPhotoSession() bind(maxRes=$maxRes ultraHdr=$ultraHdr) " +             "START thread=${Thread.currentThread().name}"@@ -172,7 +172,7 @@ internal fun CameraViewModel.bindPhotoUseCases(         val capture = buildPhotoCapture(maxRes, ultraHdr)         val analysis = buildPhotoAnalysis()         bindSession(session.provider, session.owner, lensSelector, session.preview, capture, analysis).also {-            Log.debug(+            Log.dev(                 "NightPreview",                 "setupPhotoSession() bind SUCCESS res=${it.cameraInfo} " +                     "zoom min=${it.cameraInfo.zoomState.value?.minZoomRatio} " +@@ -254,7 +254,7 @@ internal fun CameraViewModel.buildPhotoAnalysis(): ImageAnalysis { /** Applies manual controls, refreshes capabilities and marks the session active. */ internal suspend fun CameraViewModel.finishPhotoSession() {     val zs = boundCamera?.cameraInfo?.zoomState?.value-    Log.debug(+    Log.dev(         "NightPreview",         "setupPhotoSession() bound zoomState min=${zs?.minZoomRatio} max=${zs?.maxZoomRatio} " +             "ratio=${zs?.zoomRatio} thread=${Thread.currentThread().name}"@@ -264,7 +264,7 @@ internal suspend fun CameraViewModel.finishPhotoSession() {     boundCamera?.cameraInfo?.let { observeNightModeIndicator(it) }     onSessionBound()     photoSessionActiveMutable.value = true-    Log.debug(+    Log.dev(         "NightPreview",         "setupPhotoSession() SUCCESS photoActive=true " +             "surface=${surfaceRequestMutable.value?.resolution} " +
camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionShared.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionShared.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionShared.ktindex b18d2bd1d8..5a13ba46ff 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionShared.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessionShared.kt@@ -20,7 +20,7 @@ internal fun CameraViewModel.attachAeSnapshot(     try {         androidx.camera.camera2.interop.Camera2Interop.Extender(previewBuilder)             .setSessionCaptureCallback(aeSnapshotCallback)-        Log.debug("NightPreview", "$tag attached AE snapshot callback")+        Log.dev("NightPreview", "$tag attached AE snapshot callback")     } catch (e: IllegalStateException) {         Log.error("NightPreview", "$tag Could not attach AE snapshot callback (was hidden as Warn)", e)     } catch (e: IllegalArgumentException) {@@ -39,7 +39,7 @@ internal fun CameraViewModel.probeUltraHdr(         val caps = androidx.camera.core.ImageCapture.getImageCaptureCapabilities(cameraInfo)             .supportedOutputFormats             .contains(androidx.camera.core.ImageCapture.OUTPUT_FORMAT_JPEG_ULTRA_HDR)-        Log.debug("NightPreview", "setupPhotoSession() ultraHdrSupported=$caps lens=${requestedLens?.labelKey}")+        Log.dev("NightPreview", "setupPhotoSession() ultraHdrSupported=$caps lens=${requestedLens?.labelKey}")         caps     } catch (e: IllegalStateException) {         Log.error("NightPreview", "setupPhotoSession() Could not query Ultra HDR support (was hidden as Warn)", e)
camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessions.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessions.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessions.ktindex 1dc629bf79..b34d393f66 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessions.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraPhotoSessions.kt@@ -31,7 +31,7 @@ internal const val PORTRAIT_ANALYSIS_HEIGHT = 768 internal var boundLensIdField: String? = null  suspend fun CameraViewModel.setupNightPreviewSession(): Boolean {-    Log.debug(+    Log.dev(         "NightPreview",         "setupNightPreviewSession() ENTRY thread=${Thread.currentThread().name} " +             "lens=${lensFacingMutable.value} surfaceBefore=${surfaceRequestMutable.value?.resolution}"@@ -82,9 +82,9 @@ internal data class NightPreviewPrep( internal suspend fun CameraViewModel.prepareNightPreview(): NightPreviewPrep? {     val provider = ProcessCameraProvider.awaitInstance(app)     cameraProvider = provider-    Log.debug("NightPreview", "setupNightPreviewSession() got cameraProvider=$provider")+    Log.dev("NightPreview", "setupNightPreviewSession() got cameraProvider=$provider")     val mgr = getExtensionsManager(provider)-    Log.debug(+    Log.dev(         "NightPreview",         "setupNightPreviewSession() ExtensionsManager=${mgr != null} cacheExt=${extensionsManager != null}"     )@@ -98,10 +98,10 @@ internal suspend fun CameraViewModel.prepareNightPreview(): NightPreviewPrep? {     val requestedNightLens = selectedLensMutable.value     val baseSelector = lensSelector(lensFacingMutable.value, requestedNightLens)     if (!isNightExtensionSupported(mgr, baseSelector)) return null-    Log.debug("NightPreview", "setupNightPreviewSession() unbinding all before night selector")+    Log.dev("NightPreview", "setupNightPreviewSession() unbinding all before night selector")     try {         provider.unbindAll()-        Log.debug("NightPreview", "setupNightPreviewSession() provider.unbindAll SUCCESS")+        Log.dev("NightPreview", "setupNightPreviewSession() provider.unbindAll SUCCESS")     } catch (e: IllegalStateException) {         Log.error("NightPreview", "setupNightPreviewSession() unbindAll FAILED (was hidden)", e)         throw e@@ -119,7 +119,7 @@ internal suspend fun CameraViewModel.prepareNightPreview(): NightPreviewPrep? {      val preview = Preview.Builder().build()     preview.setSurfaceProvider { request ->-        Log.debug("NightPreview", "setupNightPreviewSession() NEW surfaceRequest emitted res=${request.resolution}")+        Log.dev("NightPreview", "setupNightPreviewSession() NEW surfaceRequest emitted res=${request.resolution}")         surfaceRequestMutable.value = request     } @@ -157,7 +157,7 @@ internal fun CameraViewModel.isNightExtensionSupported(         Log.error("NightPreview", "setupNightPreviewSession() isExtensionAvailable threw (was hidden)", e)         false     }-    Log.debug(+    Log.dev(         "NightPreview",         "setupNightPreviewSession() isExtensionAvailable(NIGHT)=$extAvail lens=${lensFacingMutable.value}"     )@@ -186,7 +186,7 @@ internal fun CameraViewModel.isNightAnalysisSupported(         Log.error("NightPreview", "setupNightPreviewSession() isImageAnalysisSupported query FAILED", e)         false     }-    Log.debug("NightPreview", "setupNightPreviewSession() isImageAnalysisSupported=$analysisSupported")+    Log.dev("NightPreview", "setupNightPreviewSession() isImageAnalysisSupported=$analysisSupported")     return analysisSupported } @@ -219,7 +219,7 @@ internal fun CameraViewModel.bindNightPreview(session: NightPreviewPrep) {  /** Binds the night extension use cases, with or without the analysis stream. */ internal fun CameraViewModel.bindNightUseCases(session: NightPreviewPrep, withAnalysis: Boolean): Camera {-    Log.debug("NightPreview", "setupNightPreviewSession() bind(withAnalysis=$withAnalysis) START")+    Log.dev("NightPreview", "setupNightPreviewSession() bind(withAnalysis=$withAnalysis) START")     return if (withAnalysis) {         val analysis = ImageAnalysis.Builder()             .setBackpressureStrategy(ImageAnalysis.STRATEGY_KEEP_ONLY_LATEST)@@ -240,7 +240,7 @@ internal fun CameraViewModel.bindNightUseCases(session: NightPreviewPrep, withAn /** Marks the night preview active and wires extension observers. */ internal suspend fun CameraViewModel.finishNightPreview(session: NightPreviewPrep) {     val zs = boundCamera?.cameraInfo?.zoomState?.value-    Log.debug(+    Log.dev(         "NightPreview",         "setupNightPreviewSession() boundCamera zoomState min=${zs?.minZoomRatio} " +             "max=${zs?.maxZoomRatio} current=${zs?.zoomRatio} – vendor NIGHT extension often reports " +@@ -262,7 +262,7 @@ internal suspend fun CameraViewModel.finishNightPreview(session: NightPreviewPre     onSessionBound()     nightPreviewActiveMutable.value = true     photoSessionActiveMutable.value = true-    Log.debug(+    Log.dev(         "NightPreview",         "setupNightPreviewSession() SUCCESS – nightPreviewActive=true photoSessionActive=true " +             "surfaceRequest=${surfaceRequestMutable.value?.resolution}"@@ -293,7 +293,7 @@ internal suspend fun CameraViewModel.fallbackToPhotoSession(): Boolean {         )         false     }-    Log.debug("NightPreview", "setupNightPreviewSession() fallback result=$fallback")+    Log.dev("NightPreview", "setupNightPreviewSession() fallback result=$fallback")     return fallback } @@ -373,7 +373,7 @@ internal suspend fun CameraViewModel.preparePanoramaSession(): PanoSessionPrep { internal fun CameraViewModel.bindPanoLadder(session: PanoSessionPrep) {     var panoBoundLensId: String? = null     boundCamera = try {-        Log.debug("NightPreview", "setupPanoramaSession() bind capped=true START")+        Log.dev("NightPreview", "setupPanoramaSession() bind capped=true START")         val (lens, camera) = bindWithFallback(session.provider, session.panoLens, session.panoFamily) {             lensSel ->             bindPanoUseCases(session, lensSel, capped = true)@@ -466,7 +466,7 @@ internal fun CameraViewModel.bindPanoUseCases( /** Refreshes capabilities and marks the panorama session active. */ internal suspend fun CameraViewModel.finishPanoramaSession() {     val zsP = boundCamera?.cameraInfo?.zoomState?.value-    Log.debug(+    Log.dev(         "NightPreview",         "setupPanoramaSession() bound zoom min=${zsP?.minZoomRatio} max=${zsP?.maxZoomRatio} " +             "ratio=${zsP?.zoomRatio}"@@ -474,7 +474,7 @@ internal suspend fun CameraViewModel.finishPanoramaSession() {     boundCamera?.let { refreshCapabilities(it, boundLensIdField) }     onSessionBound()     photoSessionActiveMutable.value = true-    Log.debug(+    Log.dev(         "NightPreview",         "setupPanoramaSession() SUCCESS photoActive=true " +             "surface=${surfaceRequestMutable.value?.resolution}"
camera/src/main/java/com/vayunmathur/camera/util/CameraPortraitSession.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraPortraitSession.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraPortraitSession.ktindex e3ab091182..fb62dc368a 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraPortraitSession.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraPortraitSession.kt@@ -28,7 +28,7 @@ import com.vayunmathur.camera.platform.refreshCapabilities  * capped+max+UHD → capped+max+JPEG → capped+default+UHD → capped+default+JPEG → default+default  */ suspend fun CameraViewModel.setupPortraitSession(): Boolean {-    Log.debug(+    Log.dev(         "NightPreview",         "setupPortraitSession() ENTRY lens=${lensFacingMutable.value} thread=${Thread.currentThread().name}"     )@@ -70,7 +70,7 @@ internal data class PortraitSessionPrep( internal suspend fun CameraViewModel.preparePortraitSession(): PortraitSessionPrep {     val provider = ProcessCameraProvider.awaitInstance(app)     cameraProvider = provider-    Log.debug("NightPreview", "setupPortraitSession() providerHash=${provider.hashCode()}")+    Log.dev("NightPreview", "setupPortraitSession() providerHash=${provider.hashCode()}")     provider.unbindAll()      ensureLensesEnumerated(provider)@@ -81,7 +81,7 @@ internal suspend fun CameraViewModel.preparePortraitSession(): PortraitSessionPr     attachAeSnapshot(previewBuilder, "setupPortraitSession()")     val preview = previewBuilder.build()     preview.setSurfaceProvider { request ->-        Log.debug(+        Log.dev(             "NightPreview",             "setupPortraitSession() surfaceRequest res=${request.resolution} " +                 "thread=${Thread.currentThread().name}"@@ -106,7 +106,7 @@ internal fun CameraViewModel.probePortraitUltraHdr(         val cameraInfo = provider.getCameraInfo(lensSelector(lensFacingMutable.value, portraitLens))         val sup = ImageCapture.getImageCaptureCapabilities(cameraInfo)             .supportedOutputFormats.contains(ImageCapture.OUTPUT_FORMAT_JPEG_ULTRA_HDR)-        Log.debug("NightPreview", "setupPortraitSession() ultraHdrSupported=$sup lens=${portraitLens?.labelKey}")+        Log.dev("NightPreview", "setupPortraitSession() ultraHdrSupported=$sup lens=${portraitLens?.labelKey}")         sup     } catch (e: IllegalStateException) {         Log.error("NightPreview", "setupPortraitSession() Could not query Ultra HDR support (hidden)", e)@@ -218,7 +218,7 @@ internal fun CameraViewModel.tryPortraitRung(         if (candidate != session.portraitLens) {             Log.status("LensSelector", "Portrait fell back to lens=${candidate?.labelKey}")         }-        Log.debug(+        Log.dev(             "NightPreview",             "setupPortraitSession() bind ladder SUCCESS capped=$capped maxRes=$maxRes " +                 "ultra=$ultra lens=${candidate?.labelKey} " +@@ -261,7 +261,7 @@ internal fun CameraViewModel.bindPortraitUseCases(     maxResCapture: Boolean,     ultraHdr: Boolean ): Camera {-    Log.debug(+    Log.dev(         "NightPreview",         "setupPortraitSession() bind(capped=$cappedAnalysis maxRes=$maxResCapture ultra=$ultraHdr) START"     )@@ -276,7 +276,7 @@ internal fun CameraViewModel.bindPortraitUseCases(             capture,             analysis         ).also {-            Log.debug(+            Log.dev(                 "NightPreview",                 "setupPortraitSession() bind SUCCESS capped=$cappedAnalysis " +                     "maxRes=$maxResCapture ultra=$ultraHdr " +@@ -357,7 +357,7 @@ internal fun CameraViewModel.buildPortraitAnalysis(cappedAnalysis: Boolean, maxR /** Refreshes capabilities and marks the portrait session active. */ internal suspend fun CameraViewModel.finishPortraitSession() {     val zsPor = boundCamera?.cameraInfo?.zoomState?.value-    Log.debug(+    Log.dev(         "NightPreview",         "setupPortraitSession() final zoom min=${zsPor?.minZoomRatio} max=${zsPor?.maxZoomRatio} " +             "ratio=${zsPor?.zoomRatio} – if max=1, zoom bar will show only 1x"@@ -366,7 +366,7 @@ internal suspend fun CameraViewModel.finishPortraitSession() {     boundCamera?.let { refreshCapabilities(it, boundLensIdField) }     onSessionBound()     photoSessionActiveMutable.value = true-    Log.debug(+    Log.dev(         "NightPreview",         "setupPortraitSession() SUCCESS photoActive=true " +             "surface=${surfaceRequestMutable.value?.resolution}"
camera/src/main/java/com/vayunmathur/camera/util/CameraSessions.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraSessions.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraSessions.ktindex 629d380eb6..4fceb81b41 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraSessions.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraSessions.kt@@ -27,7 +27,7 @@ internal fun CameraViewModel.bindSession(  /** Tears down whatever session is currently bound and clears the shared preview surface. */ fun CameraViewModel.teardownSession() {-    Log.debug(+    Log.dev(         "NightPreview",         "teardownSession() START thread=${Thread.currentThread().name} " +             "surface=${surfaceRequestMutable.value?.resolution} " +@@ -43,7 +43,7 @@ fun CameraViewModel.teardownSession() {     // CRITICAL: clear stale SurfaceRequest BEFORE unbind so CameraXViewfinder drops dead texture     // immediately (black-frame trap fix)     surfaceRequestMutable.value = null-    Log.debug("NightPreview", "teardownSession() cleared surfaceRequest -> null to avoid black-frame trap")+    Log.dev("NightPreview", "teardownSession() cleared surfaceRequest -> null to avoid black-frame trap")     currentRecording?.stop()     currentRecording = null     highSpeedRecording?.stop()@@ -66,7 +66,7 @@ fun CameraViewModel.teardownSession() {     stopLongExposureCountdown()     try {         imageAnalysis?.clearAnalyzer()-        Log.debug("NightPreview", "teardownSession() cleared analyzer previous=${desiredAnalyzer?.javaClass?.simpleName}")+        Log.dev("NightPreview", "teardownSession() cleared analyzer previous=${desiredAnalyzer?.javaClass?.simpleName}")     } catch (e: IllegalStateException) {         Log.error("NightPreview", "teardownSession() clearAnalyzer failed (swallowed before)", e)     }@@ -76,7 +76,7 @@ fun CameraViewModel.teardownSession() {     sessionLifecycleOwner = null     try {         cameraProvider?.unbindAll()-        Log.debug("NightPreview", "teardownSession() unbindAll SUCCESS")+        Log.dev("NightPreview", "teardownSession() unbindAll SUCCESS")     } catch (e: IllegalStateException) {         Log.error("NightPreview", "teardownSession() unbindAll FAILED (was hidden)", e)     }
camera/src/main/java/com/vayunmathur/camera/util/CameraSloMoSession.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraSloMoSession.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraSloMoSession.ktindex 2536538894..b994a2ee82 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraSloMoSession.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraSloMoSession.kt@@ -263,7 +263,7 @@ private fun CameraViewModel.tryHfrBind(             configBuilder.build()         )         sloMoFps = range.upper-        Log.debug(+        Log.dev(             "SloMo",             "High-speed session bound at ${range.upper}fps (range=$range) " +                 "lens=${candidate?.labelKey}, quality=${session.orderedQualities}"@@ -307,7 +307,7 @@ private fun CameraViewModel.applyAntiBanding() { /** Refreshes capabilities and marks the high-speed session active. */ private suspend fun CameraViewModel.finishHighSpeedSession() {     val zoomAfter = boundCamera?.cameraInfo?.zoomState?.value-    Log.debug(+    Log.dev(         "NightPreview",         "setupHighSpeedSession() after levels=${availableZoomLevelsMutable.value} " +             "ratio=${zoomRatioMutable.value} min=${zoomAfter?.minZoomRatio} max=${zoomAfter?.maxZoomRatio}"
camera/src/main/java/com/vayunmathur/camera/util/CameraVideoRecording.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraVideoRecording.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraVideoRecording.ktindex a05a2e674d..eb4f89a213 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraVideoRecording.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraVideoRecording.kt@@ -76,7 +76,7 @@ internal fun CameraViewModel.startHighSpeedRecording() {                     Log.error("SloMo", "Recording error: ${event.error} - ${event.cause?.message}")                     cacheFile.delete()                 } else {-                    Log.debug("SloMo", "High-speed recording saved: ${event.outputResults.outputUri}")+                    Log.dev("SloMo", "High-speed recording saved: ${event.outputResults.outputUri}")                     viewModelScope.launch(kotlinx.coroutines.Dispatchers.IO) {                         if (cacheFile.exists()) {                             saveVideoStaged(displayName, cacheFile)?.let { setLastCaptureUri(it) }
camera/src/main/java/com/vayunmathur/camera/util/CameraViewModelActions.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModelActions.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModelActions.ktindex 7e09085d6f..27c91eebef 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModelActions.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModelActions.kt@@ -60,7 +60,7 @@ internal fun CameraViewModel.startDebugLogging() {         var last: List<Pair<String, Float>> = emptyList()         availableZoomLevels.collect { levels ->             if (levels != last) {-                Log.debug(+                Log.dev(                     "NightPreview",                     "CameraViewModel availableZoomLevels FLOW emitted=$levels previous=$last " +                         "nightPreviewActive=${nightPreviewActiveMutable.value} " +@@ -76,7 +76,7 @@ internal fun CameraViewModel.startDebugLogging() {         surfaceRequest.collect { req ->             val res = req?.resolution             if (res != lastRes) {-                Log.debug(+                Log.dev(                     "NightPreview",                     "CameraViewModel surfaceRequest FLOW emitted res=$res previous=$lastRes " +                         "nightPreviewActive=${nightPreviewActiveMutable.value} " +@@ -89,7 +89,7 @@ internal fun CameraViewModel.startDebugLogging() {     }     viewModelScope.launch {         nightModeActive.collect { active ->-            Log.debug(+            Log.dev(                 "NightPreview",                 "CameraViewModel nightModeActive FLOW=$active " +                     "lowLight=${lowLightDetectedMutable.value} " +
camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt b/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.ktindex 587c9946ce..24aafbfbea 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt@@ -116,7 +116,7 @@ class PhotoAnalyzer(         }         if (count > 0) {             val avg = sum.toFloat() / count-            Log.debug(+            Log.dev(                 "NightPreview",                 "PhotoAnalyzer luma avg=$avg sum=$sum count=$count bytesSize=${frame.bytes.size} " +                     "width=${imageProxy.width} height=${imageProxy.height} rowStride=${frame.rowStride} " +@@ -197,7 +197,7 @@ class PhotoAnalyzer(          try {             val result = reader.decodeWithState(bitmap)-            Log.debug(+            Log.dev(                 "NightPreview",                 "PhotoAnalyzer QR decoded text=${result.text} " +                     "width=${imageProxy.width} height=${imageProxy.height}"@@ -237,7 +237,7 @@ class PhotoAnalyzer(         }         try {             imageProxy.close()-            Log.debug(+            Log.dev(                 "NightPreview",                 "PhotoAnalyzer imageProxy.close() took=${System.currentTimeMillis() - startMs}ms " +                     "total – if not closed, pipeline stalls -> black preview!"
cast/src/main/java/com/vayunmathur/cast/network/CastUdpTransport.kt
diff --git a/cast/src/main/java/com/vayunmathur/cast/network/CastUdpTransport.kt b/cast/src/main/java/com/vayunmathur/cast/network/CastUdpTransport.ktindex deee7da028..4afdfc403e 100644--- a/cast/src/main/java/com/vayunmathur/cast/network/CastUdpTransport.kt+++ b/cast/src/main/java/com/vayunmathur/cast/network/CastUdpTransport.kt@@ -99,7 +99,7 @@ class CastUdpTransport(private val host: String, private val port: Int) {             // stack traces, which buries whatever else the log had to say.             unreachableCount++             if (unreachableCount == 1) {-                Log.debug(TAG, "port unreachable for $host:$port; the receiver may not have bound yet", e)+                Log.dev(TAG, "port unreachable for $host:$port; the receiver may not have bound yet", e)             }             if (unreachableCount == UNREACHABLE_THRESHOLD) {                 Log.status(TAG, "$host:$port is unreachable - the receiver closed its socket")@@ -136,10 +136,10 @@ class CastUdpTransport(private val host: String, private val port: Int) {         } catch (e: IOException) {             // A port-unreachable ICMP surfaces here on a connected socket. Not fatal: the receiver             // may not have bound yet.-            Log.debug(TAG, "udp receive failed: ${e.javaClass.simpleName}")+            Log.dev(TAG, "udp receive failed: ${e.javaClass.simpleName}")             null         } catch (e: IllegalArgumentException) {-            Log.debug(TAG, "udp receive failed: ${e.javaClass.simpleName}")+            Log.dev(TAG, "udp receive failed: ${e.javaClass.simpleName}")             null         }     }
cast/src/main/java/com/vayunmathur/cast/platform/MediaProxyServer.kt
diff --git a/cast/src/main/java/com/vayunmathur/cast/platform/MediaProxyServer.kt b/cast/src/main/java/com/vayunmathur/cast/platform/MediaProxyServer.ktindex 87a5d53bb7..2648b48409 100644--- a/cast/src/main/java/com/vayunmathur/cast/platform/MediaProxyServer.kt+++ b/cast/src/main/java/com/vayunmathur/cast/platform/MediaProxyServer.kt@@ -265,14 +265,14 @@ class MediaProxyServer(     private fun endConnection(client: Socket, e: Exception) {         // A player that has finished with a range simply closes, so this is the ordinary end         // of a connection as often as it is a fault.-        Log.debug(TAG, "connection from ${client.inetAddress?.hostAddress} ended: ${e.javaClass.simpleName}")+        Log.dev(TAG, "connection from ${client.inetAddress?.hostAddress} ended: ${e.javaClass.simpleName}")     }      private fun report(outcome: ExchangeOutcome, client: Socket) {         val peer = client.inetAddress?.hostAddress         when (outcome) {             is ExchangeOutcome.Served ->-                Log.debug(TAG, "served ${outcome.resourceId} ${outcome.bytes} bytes to $peer")+                Log.dev(TAG, "served ${outcome.resourceId} ${outcome.bytes} bytes to $peer")             is ExchangeOutcome.Rejected ->                 // Logged as a warning because on a pinned, tokenised connection there is no                 // legitimate source of a rejected request: it is either a bug at our end or a
communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceClient.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceClient.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceClient.ktindex 37b5e06676..b284ffc5f1 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceClient.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceClient.kt@@ -105,8 +105,8 @@ class GoogleVoiceClient(private val session: GoogleVoiceSession) {         // TEMP diagnostic logging of raw protojson so the positional parser can be pinned to the         // real wire shapes. Chunked because logcat truncates long lines.         val body = response.body-        Log.debug(TAG, "$path <= ${body.length} bytes")-        body.chunked(LOG_CHUNK).forEachIndexed { i, chunk -> Log.debug(TAG, "$path[$i] $chunk") }+        Log.dev(TAG, "$path <= ${body.length} bytes")+        body.chunked(LOG_CHUNK).forEachIndexed { i, chunk -> Log.dev(TAG, "$path[$i] $chunk") }         return body     } 
communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceWebSender.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceWebSender.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceWebSender.ktindex 75d0a73bfc..5028ed7c19 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceWebSender.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/GoogleVoiceWebSender.kt@@ -141,7 +141,7 @@ object GoogleVoiceWebSender {                 filePathCallback: ValueCallback<Array<Uri>>?,                 fileChooserParams: FileChooserParams?,             ): Boolean {-                Log.debug(TAG, "file chooser requested for ${currentAttachments.size} attachment(s)")+                Log.dev(TAG, "file chooser requested for ${currentAttachments.size} attachment(s)")                 filePathCallback?.onReceiveValue(currentAttachments.toTypedArray())                 return true             }@@ -161,13 +161,13 @@ object GoogleVoiceWebSender {     private class Bridge {         @JavascriptInterface         fun onBody(body: String) {-            Log.debug(TAG, "captured sendsms body (${body.length} bytes)")+            Log.dev(TAG, "captured sendsms body (${body.length} bytes)")             pending?.complete(body)         }          @JavascriptInterface         fun log(msg: String) {-            Log.debug(TAG, msg)+            Log.dev(TAG, msg)         }     } 
communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/call/SipClient.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/call/SipClient.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/call/SipClient.ktindex 98ac5aed1e..730ef29096 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/call/SipClient.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/googlevoice/call/SipClient.kt@@ -189,12 +189,12 @@ class SipClient(     // ------------------------------------------------------------------      private suspend fun send(message: String) {-        Log.debug(TAG, "SIP >>\n$message")+        Log.dev(TAG, "SIP >>\n$message")         socket?.send(message)     }      private fun handleIncoming(message: String) {-        Log.debug(TAG, "SIP <<\n$message")+        Log.dev(TAG, "SIP <<\n$message")         val firstLine = message.lineSequence().firstOrNull()?.trim().orEmpty()         val headers = parseHeaders(message)         headers["to"]?.let { extractTag(it)?.let { t -> toTag = t } }
communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInbound.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInbound.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInbound.ktindex b685e62a20..5546d6280c 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInbound.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInbound.kt@@ -297,13 +297,13 @@ private suspend fun WhatsAppClient.handleProtocolMessage(      // Skip status broadcasts (Go handleWAMessage status@broadcast check)     if (message.from.startsWith("status@broadcast")) {-        Log.debug(TAG, "Skipping status broadcast from ${message.participant}")+        Log.dev(TAG, "Skipping status broadcast from ${message.participant}")         return true     }      // Pending message dedup (Go handleWAMessage pendingMessages check)     if (pendingMessageIDs.remove(message.id)) {-        Log.debug(TAG, "Ignoring pending message ${message.id}")+        Log.dev(TAG, "Ignoring pending message ${message.id}")         return true     }     return false@@ -500,7 +500,7 @@ private suspend fun WhatsAppClient.emitSpecialMessage(message: WhatsAppMessage, private suspend fun WhatsAppClient.emitEditMessage(message: WhatsAppMessage) {     // Edit dedup (Go events.go ConvertEdit meta.Edits check)     if (!processedEditIDs.add(message.id)) {-        Log.debug(TAG, "Ignoring duplicate edit ${message.id}")+        Log.dev(TAG, "Ignoring duplicate edit ${message.id}")         return     }     val targetId = message.editTargetId ?: return@@ -604,7 +604,7 @@ internal suspend fun WhatsAppClient.handlePictureUpdate(node: WhatsAppProtocol.N     val pictureNode = node.getChildByTag("set") ?: node.getChildByTag("delete")     if (pictureNode != null) {         val isRemoved = pictureNode.tag == "delete"-        Log.debug(TAG, "Picture ${if (isRemoved) "removed" else "updated"} for $from")+        Log.dev(TAG, "Picture ${if (isRemoved) "removed" else "updated"} for $from")     } } @@ -620,7 +620,7 @@ internal suspend fun WhatsAppClient.handleAccountSync(node: WhatsAppProtocol.Nod                 val jid = child.attrs["jid"] ?: node.attrs["from"]                 if (pushName != null && jid != null) {                     nameCache[jid] = pushName-                    Log.debug(TAG, "Push name updated: $jid -> $pushName")+                    Log.dev(TAG, "Push name updated: $jid -> $pushName")                 }             }             "contact" -> {
communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInboundNotifications.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInboundNotifications.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInboundNotifications.ktindex 8d6221db82..5e050b9a26 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInboundNotifications.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientInboundNotifications.kt@@ -107,7 +107,7 @@ internal suspend fun WhatsAppClient.handleCallNotification(node: WhatsAppProtoco         val callTimestamp = node.attrs["t"]?.toLongOrNull() ?: (System.currentTimeMillis() / 1000)         val ageSeconds = (System.currentTimeMillis() / 1000) - callTimestamp         if (ageSeconds > STALE_CALL_SECONDS) {-            Log.debug(TAG, "Ignoring old call notification (${ageSeconds}s old)")+            Log.dev(TAG, "Ignoring old call notification (${ageSeconds}s old)")             return         } 
communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientRetry.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientRetry.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientRetry.ktindex fbdd651913..2200bd5b71 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientRetry.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppClientRetry.kt@@ -26,7 +26,7 @@ internal suspend fun WhatsAppClient.sendRetryReceipt(node: WhatsAppProtocol.Node     } else null     val receipt = WhatsAppProtocol.buildRetryReceipt(node, auth.registrationId, count, keysNode)     ws.send(WhatsAppProtocol.encodeNode(receipt))-    Log.debug(TAG, "Sent retry receipt #$count for $msgId")+    Log.dev(TAG, "Sent retry receipt #$count for $msgId") }  /**
communicate/src/main/java/com/vayunmathur/communicate/telephony/MmsDeliverReceiver.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/telephony/MmsDeliverReceiver.kt b/communicate/src/main/java/com/vayunmathur/communicate/telephony/MmsDeliverReceiver.ktindex 1d1f1736bf..4da773d1fb 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/telephony/MmsDeliverReceiver.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/telephony/MmsDeliverReceiver.kt@@ -61,7 +61,7 @@ class MmsDeliverReceiver : BroadcastReceiver() {                 Log.status(TAG, "no SmsManager"); return             }             sms.downloadMultimediaMessage(context, location, contentUri, null, pi)-            Log.debug(TAG, "MMS download triggered for $location")+            Log.dev(TAG, "MMS download triggered for $location")         }.onFailure { Log.error(TAG, "handlePush failed", it) }     } @@ -73,7 +73,7 @@ class MmsDeliverReceiver : BroadcastReceiver() {                 val bytes = File(path).readBytes()                 val msg = MmsPduReader.parseRetrieved(bytes)                 insertInboundMms(context, msg)-                Log.debug(TAG, "MMS stored from=${msg.from} parts=${msg.parts.size}")+                Log.dev(TAG, "MMS stored from=${msg.from} parts=${msg.parts.size}")             }.onFailure { Log.error(TAG, "handleDownloaded failed", it) }             runCatching { File(path).delete() }             pending.finish()
communicate/src/main/java/com/vayunmathur/communicate/telephony/SmsDeliverReceiver.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/telephony/SmsDeliverReceiver.kt b/communicate/src/main/java/com/vayunmathur/communicate/telephony/SmsDeliverReceiver.ktindex 17fd84759b..e9b27767ba 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/telephony/SmsDeliverReceiver.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/telephony/SmsDeliverReceiver.kt@@ -64,7 +64,7 @@ class SmsDeliverReceiver : BroadcastReceiver() {             if (subscriptionId >= 0) put(Telephony.Sms.SUBSCRIPTION_ID, subscriptionId)         }         context.contentResolver.insert(Telephony.Sms.Inbox.CONTENT_URI, values)-        Log.debug(TAG, "stored inbound SMS parts=${parts.size} thread=$threadId")+        Log.dev(TAG, "stored inbound SMS parts=${parts.size} thread=$threadId")          if (address != null) {             ConversationSpace.ensureIncomingChannel(
email/src/main/java/com/vayunmathur/email/data/DateMillisBackfill.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/DateMillisBackfill.kt b/email/src/main/java/com/vayunmathur/email/data/DateMillisBackfill.ktindex e247736c6c..7ccb21a1ee 100644--- a/email/src/main/java/com/vayunmathur/email/data/DateMillisBackfill.kt+++ b/email/src/main/java/com/vayunmathur/email/data/DateMillisBackfill.kt@@ -34,7 +34,7 @@ object DateMillisBackfill {                 }                 batch = dao.getRowsWithZeroDateMillis()             }-            if (fixed > 0) Log.debug("DateMillisBackfill", "Backfilled $fixed row(s)")+            if (fixed > 0) Log.dev("DateMillisBackfill", "Backfilled $fixed row(s)")         }     } }
email/src/main/java/com/vayunmathur/email/data/EmailSyncWorker.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/EmailSyncWorker.kt b/email/src/main/java/com/vayunmathur/email/data/EmailSyncWorker.ktindex 368b0d4e29..f0fb9bd3f7 100644--- a/email/src/main/java/com/vayunmathur/email/data/EmailSyncWorker.kt+++ b/email/src/main/java/com/vayunmathur/email/data/EmailSyncWorker.kt@@ -68,12 +68,12 @@ class EmailSyncWorker(appContext: Context, workerParams: WorkerParameters) :         accountCount: Int,         accountsProcessed: Int,     ) {-        Log.debug("EmailSync", ">>> RAW Starting sync for ${account.email} (nonInboxOnly=$nonInboxOnly)")+        Log.dev("EmailSync", ">>> RAW Starting sync for ${account.email} (nonInboxOnly=$nonInboxOnly)")         val auth = account.resolveAuth(applicationContext)          val folders = ImapClient.fetchFolders(account.imapServer(), account.loginUser(), auth)         db.accountDao().insertFolders(folders)-        Log.debug("EmailSync", "Synced ${folders.size} folders.")+        Log.dev("EmailSync", "Synced ${folders.size} folders.")          val skipSet = if (account.provider == PROVIDER_GMAIL) ImapClient.GMAIL_VIRTUAL_FOLDERS else emptySet()         val messageFolders = if (nonInboxOnly) {@@ -93,7 +93,7 @@ class EmailSyncWorker(appContext: Context, workerParams: WorkerParameters) :             backfillBodies(db, account, auth)         } -        Log.debug("EmailSync", "<<< Completed RAW sync for ${account.email}")+        Log.dev("EmailSync", "<<< Completed RAW sync for ${account.email}")     }      private suspend fun syncFolder(@@ -126,7 +126,7 @@ class EmailSyncWorker(appContext: Context, workerParams: WorkerParameters) :                 handleInboxExtras(account, folder, messages, knownUids)             } -            Log.debug(+            Log.dev(                 "EmailSync",                 "[${index + 1}/$folderCount] ${folder.fullName}: " +                     "${messages.size} new (skipped ${knownUids.size}).",@@ -172,17 +172,17 @@ class EmailSyncWorker(appContext: Context, workerParams: WorkerParameters) :         val messagesDao = db.messageDao()         val missing = messagesDao.getMessagesWithoutBody(account.email, BACKFILL_LIMIT)         if (missing.isEmpty()) return-        Log.debug("EmailSync", "Body backfill: ${missing.size} message(s)")+        Log.dev("EmailSync", "Body backfill: ${missing.size} message(s)")         EmailSyncState.setProgress(0f)         for ((idx, msg) in missing.withIndex()) {             if (isStopped) {-                Log.debug("EmailSync", "Backfill stopped at ${idx}/${missing.size}")+                Log.dev("EmailSync", "Backfill stopped at ${idx}/${missing.size}")                 break             }             backfillOne(messagesDao, account, auth, msg)             EmailSyncState.setProgress((idx + 1f) / missing.size)         }-        Log.debug("EmailSync", "Backfill done for ${account.email}")+        Log.dev("EmailSync", "Backfill done for ${account.email}")     }      private suspend fun backfillOne(
email/src/main/java/com/vayunmathur/email/data/ImapIdleService.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/ImapIdleService.kt b/email/src/main/java/com/vayunmathur/email/data/ImapIdleService.ktindex 41b659a421..61d28e65e4 100644--- a/email/src/main/java/com/vayunmathur/email/data/ImapIdleService.kt+++ b/email/src/main/java/com/vayunmathur/email/data/ImapIdleService.kt@@ -142,7 +142,7 @@ class ImapIdleService : Service() {         }          val supportsIdle = caps.has("IDLE")-        Log.debug(TAG, "Raw IDLE supports $supportsIdle for ${account.email}")+        Log.dev(TAG, "Raw IDLE supports $supportsIdle for ${account.email}")          if (!supportsIdle) {             try {@@ -219,7 +219,7 @@ class ImapIdleService : Service() {     ) {         while (scope.coroutineContext.isActive) {             val sel = rawConn.select("INBOX")-            Log.debug(TAG, "SELECT INBOX ${account.email} exists=${sel.exists}")+            Log.dev(TAG, "SELECT INBOX ${account.email} exists=${sel.exists}")             discoverFolders(rawConn, db.accountDao(), account)              val state = IdleWatchState()@@ -274,12 +274,12 @@ class ImapIdleService : Service() {         state: IdleWatchState,     ) {         val idleTag = rawConn.sendIdle()-        Log.debug(TAG, "IDLE start ${account.email} tag=$idleTag")+        Log.dev(TAG, "IDLE start ${account.email} tag=$idleTag")          val watchdog = scope.launch {             delay(IDLE_REFRESH_MS)             if (isActive) {-                Log.debug(TAG, "proactive refresh ${account.email}")+                Log.dev(TAG, "proactive refresh ${account.email}")                 state.isProactiveRefresh = true                 try { rawConn.sendIdleDone() } catch (_: Exception) {}             }@@ -295,7 +295,7 @@ class ImapIdleService : Service() {         watchdog.cancel()          if (state.isProactiveRefresh) {-            Log.debug(TAG, "24-min refresh ${account.email}")+            Log.dev(TAG, "24-min refresh ${account.email}")             state.isProactiveRefresh = false             state.needReopen = true             delay(WATCHDOG_REFRESH_GRACE_MS)@@ -331,7 +331,7 @@ class ImapIdleService : Service() {         line: String?,     ): Boolean {         if (line == null) return true-        Log.debug(TAG, "IDLE line ${account.email}: $line")+        Log.dev(TAG, "IDLE line ${account.email}: $line")         if (line.startsWith(idleTag)) return true         classifyIdleLine(line, state)         if (state.sawNewMail || state.sawExpunge || state.sawFlags) {
email/src/main/java/com/vayunmathur/email/data/OutboxSendWorker.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/OutboxSendWorker.kt b/email/src/main/java/com/vayunmathur/email/data/OutboxSendWorker.ktindex 3ae1bc1d3f..3c628dcae4 100644--- a/email/src/main/java/com/vayunmathur/email/data/OutboxSendWorker.kt+++ b/email/src/main/java/com/vayunmathur/email/data/OutboxSendWorker.kt@@ -82,7 +82,7 @@ class OutboxSendWorker(         }         return when (val sendResult = trySend(manager, account, entry, uris, inline)) {             is SendResult.Success -> {-                Log.debug(TAG, "Sent outbox entry #${entry.id} to ${entry.to}")+                Log.dev(TAG, "Sent outbox entry #${entry.id} to ${entry.to}")                 attachmentDirFor(applicationContext, entry.id).deleteRecursively()                 repository.deleteOutboxEntry(entry)                 EntryOutcome(false, Long.MAX_VALUE)
email/src/main/java/com/vayunmathur/email/data/OutlookOAuth.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/OutlookOAuth.kt b/email/src/main/java/com/vayunmathur/email/data/OutlookOAuth.ktindex 826027adfb..83e1ba99a2 100644--- a/email/src/main/java/com/vayunmathur/email/data/OutlookOAuth.kt+++ b/email/src/main/java/com/vayunmathur/email/data/OutlookOAuth.kt@@ -103,7 +103,7 @@ object OutlookOAuth {             }             .build() -        Log.debug(TAG, "Starting Outlook OAuth -> $url redirect=$redirectUri")+        Log.dev(TAG, "Starting Outlook OAuth -> $url redirect=$redirectUri")         try {             CustomTabsIntent.Builder().build().apply {                 intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK)@@ -131,7 +131,7 @@ object OutlookOAuth {      suspend fun complete(context: Context, redirect: Uri): OAuthResult {         val rawStr = redirect.toString()-        Log.debug(+        Log.dev(             TAG,             "complete redirect=$redirect host=${redirect.host} " +                 "path=${redirect.path} query=${redirect.query} raw=$rawStr",@@ -185,7 +185,7 @@ object OutlookOAuth {         }          persistAccount(context, email, tokens)-        Log.debug(TAG, "Outlook persisted: $email")+        Log.dev(TAG, "Outlook persisted: $email")         return OAuthResult.Success(email)     } @@ -296,7 +296,7 @@ object OutlookOAuth {     private suspend fun exchangeWithError(form: Map<String, String>): ExchangeResult = withContext(Dispatchers.IO) {         try {             val (respCode, text) = postTokenForm(form)-            Log.debug(+            Log.dev(                 TAG,                 "token $respCode " +                     "body=$text formKeys=${redactedFormKeys(form)}",
email/src/main/java/com/vayunmathur/email/data/PeekContentBackfill.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/PeekContentBackfill.kt b/email/src/main/java/com/vayunmathur/email/data/PeekContentBackfill.ktindex 1eb1298919..3c918da72b 100644--- a/email/src/main/java/com/vayunmathur/email/data/PeekContentBackfill.kt+++ b/email/src/main/java/com/vayunmathur/email/data/PeekContentBackfill.kt@@ -36,7 +36,7 @@ object PeekContentBackfill {                 }                 batch = dao.getRowsWithEmptyPeek()             }-            if (fixed > 0) Log.debug("PeekContentBackfill", "Backfilled $fixed row(s)")+            if (fixed > 0) Log.dev("PeekContentBackfill", "Backfilled $fixed row(s)")         }     } }
email/src/main/java/com/vayunmathur/email/network/imap/ImapWireIo.kt
diff --git a/email/src/main/java/com/vayunmathur/email/network/imap/ImapWireIo.kt b/email/src/main/java/com/vayunmathur/email/network/imap/ImapWireIo.ktindex d27986036b..bd842b1ef3 100644--- a/email/src/main/java/com/vayunmathur/email/network/imap/ImapWireIo.kt+++ b/email/src/main/java/com/vayunmathur/email/network/imap/ImapWireIo.kt@@ -34,7 +34,7 @@ internal class ImapWireIo(                     if (r == -1) throw IOException("Unexpected EOF reading $size byte literal, got $read")                     read += r                 }-                Log.debug(TAG, "S> [literal $size] line=${lineStr.take(LOG_LINE_PREVIEW_LEN)}")+                Log.dev(TAG, "S> [literal $size] line=${lineStr.take(LOG_LINE_PREVIEW_LEN)}")                 return lineStr to litBytes             } else {                 return lineStr to ByteArray(0)@@ -46,7 +46,7 @@ internal class ImapWireIo(             } else {                 lineStr             }-            Log.debug(TAG, "S> $preview")+            Log.dev(TAG, "S> $preview")         }         return lineStr to null     }
email/src/main/java/com/vayunmathur/email/network/imap/RawImapConnection.kt
diff --git a/email/src/main/java/com/vayunmathur/email/network/imap/RawImapConnection.kt b/email/src/main/java/com/vayunmathur/email/network/imap/RawImapConnection.ktindex 874a5742ea..53e745cba2 100644--- a/email/src/main/java/com/vayunmathur/email/network/imap/RawImapConnection.kt+++ b/email/src/main/java/com/vayunmathur/email/network/imap/RawImapConnection.kt@@ -84,7 +84,7 @@ class RawImapConnection(     private fun readLineWithLiteral(): Pair<String, ByteArray?>? = wire.readLineWithLiteral()      fun connect() {-        Log.debug(TAG, "Connecting to ${server.host}:${server.port} ssl=${server.useSsl} trustAll=$trustAll")+        Log.dev(TAG, "Connecting to ${server.host}:${server.port} ssl=${server.useSsl} trustAll=$trustAll")         val s: Socket = if (server.useSsl) {             TrustAll.createSocket(server.host, server.port, trustAll)         } else {@@ -99,7 +99,7 @@ class RawImapConnection(         output = BufferedOutputStream(s.getOutputStream())          val greeting = readLineWithLiteral()?.first ?: ""-        Log.debug(TAG, "Greeting: $greeting")+        Log.dev(TAG, "Greeting: $greeting")         if (greeting.startsWith("* BYE") || greeting.startsWith("* BAD")) {             throw IOException("IMAP server rejected: $greeting")         }@@ -117,7 +117,7 @@ class RawImapConnection(         upgraded.soTimeout = SOCKET_TIMEOUT_MS         input = BufferedInputStream(upgraded.inputStream)         output = BufferedOutputStream(upgraded.outputStream)-        Log.debug(TAG, "STARTTLS upgraded")+        Log.dev(TAG, "STARTTLS upgraded")     }      fun capability(): ImapCapabilities {@@ -144,7 +144,7 @@ class RawImapConnection(             .split(Regex("\\s+"))             .filter { it.isNotBlank() }             .toSet()-        Log.debug(TAG, "CAPABILITY $allCaps final=$last")+        Log.dev(TAG, "CAPABILITY $allCaps final=$last")         return ImapCapabilities(allCaps)     } @@ -191,7 +191,7 @@ class RawImapConnection(         if (accum.finalLine.contains(" OK ", ignoreCase = true)) return accum.finalLine          // If BAD/NO, retry challenge/response variant-        Log.debug(TAG, "XOAUTH2 inline failed: ${accum.finalLine}, trying CR")+        Log.dev(TAG, "XOAUTH2 inline failed: ${accum.finalLine}, trying CR")         tag = nextTag()         sendLine("$tag AUTHENTICATE XOAUTH2")         val continuation = readLineWithLiteral()?.first ?: ""@@ -437,7 +437,7 @@ class RawImapConnection(         } else {             line         }-        Log.debug(TAG, "C> $preview")+        Log.dev(TAG, "C> $preview")     }      private fun escapeString(s: String): String {
email/src/main/java/com/vayunmathur/email/network/smtp/MimeBuilder.kt
diff --git a/email/src/main/java/com/vayunmathur/email/network/smtp/MimeBuilder.kt b/email/src/main/java/com/vayunmathur/email/network/smtp/MimeBuilder.ktindex 2f2bd7ab9f..95adc6d57c 100644--- a/email/src/main/java/com/vayunmathur/email/network/smtp/MimeBuilder.kt+++ b/email/src/main/java/com/vayunmathur/email/network/smtp/MimeBuilder.kt@@ -201,7 +201,7 @@ object MimeBuilder {         val filename = queryFilename(context, uri) ?: uri.lastPathSegment ?: "attachment"         val safeName = filename.replace("\"", "_").replace("\r", "").replace("\n", "")         val mime = context.contentResolver.getType(uri) ?: guessMimeFromName(filename)-        Log.debug(TAG, "Attachment $filename mime=$mime uri=$uri")+        Log.dev(TAG, "Attachment $filename mime=$mime uri=$uri")         sb.append("Content-Type: $mime; name=\"$safeName\"\r\n")         sb.append("Content-Disposition: attachment; filename=\"$safeName\"\r\n")         sb.append("Content-Transfer-Encoding: base64\r\n")
email/src/main/java/com/vayunmathur/email/network/smtp/RawSmtpConnection.kt
diff --git a/email/src/main/java/com/vayunmathur/email/network/smtp/RawSmtpConnection.kt b/email/src/main/java/com/vayunmathur/email/network/smtp/RawSmtpConnection.ktindex e7e1cb8c8e..2ee9d826a7 100644--- a/email/src/main/java/com/vayunmathur/email/network/smtp/RawSmtpConnection.kt+++ b/email/src/main/java/com/vayunmathur/email/network/smtp/RawSmtpConnection.kt@@ -42,7 +42,7 @@ class RawSmtpConnection(     private var caps: Set<String> = emptySet()      fun connect() {-        Log.debug(TAG, "Connecting SMTP ${server.host}:${server.port} ssl=${server.useSsl}")+        Log.dev(TAG, "Connecting SMTP ${server.host}:${server.port} ssl=${server.useSsl}")         val s: Socket = if (server.useSsl) {             TrustAll.createSocket(server.host, server.port, trustAll || !TrustAll.isKnownHost(server.host))         } else {@@ -184,7 +184,7 @@ class RawSmtpConnection(             cmd.startsWith("AUTH ") -> cmd.substringBefore(' ') + " [redacted]"             else -> cmd         }-        Log.debug(TAG, "C> $redacted")+        Log.dev(TAG, "C> $redacted")         val w = writer ?: throw IOException("Not connected")         w.write(cmd)         w.write("\r\n")@@ -198,7 +198,7 @@ class RawSmtpConnection(         while (line != null) {             val current = line             lines.add(current)-            Log.debug(TAG, "S> $current")+            Log.dev(TAG, "S> $current")             // Multiline SMTP: 250- continues, 250 ends. Check separator char after the code.             // If line[3] == '-' keep reading             line = if (isLastReplyLine(current)) null else r.readLine()
email/src/main/java/com/vayunmathur/email/ui/OAuthActivity.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/OAuthActivity.kt b/email/src/main/java/com/vayunmathur/email/ui/OAuthActivity.ktindex 9d73957800..9205b01a1b 100644--- a/email/src/main/java/com/vayunmathur/email/ui/OAuthActivity.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/OAuthActivity.kt@@ -40,7 +40,7 @@ class OAuthActivity : ComponentActivity() {             finish()             return         }-        Log.debug(TAG, "Redirect raw=$raw host=${raw.host} path=${raw.path} query=${raw.query}")+        Log.dev(TAG, "Redirect raw=$raw host=${raw.host} path=${raw.path} query=${raw.query}")          lifecycleScope.launch {             val result: OutlookOAuth.OAuthResult = try {@@ -56,7 +56,7 @@ class OAuthActivity : ComponentActivity() {              val (msg, duration) = when (result) {                 is OutlookOAuth.OAuthResult.Success -> {-                    Log.debug(TAG, "OAuth success email=${result.email}")+                    Log.dev(TAG, "OAuth success email=${result.email}")                     getString(R.string.added, result.email) to AppMessages.Duration.Long                 }                 is OutlookOAuth.OAuthResult.Failure -> {
findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingDirectBoot.kt
diff --git a/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingDirectBoot.kt b/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingDirectBoot.ktindex 3468532aea..64dd231f0d 100644--- a/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingDirectBoot.kt+++ b/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingDirectBoot.kt@@ -93,7 +93,7 @@ internal suspend fun LocationTrackingService.publishDirectBoot(targets: List<Dir         battery,     )     val locSummary = "${location.latitude},${location.longitude} acc=${location.accuracy}"-    Log.debug(+    Log.dev(         LocationTrackingService.TAG_DIRECT_BOOT,         "publishing $locSummary to ${targets.size} peer(s)"     )
findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingHeartbeat.kt
diff --git a/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingHeartbeat.kt b/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingHeartbeat.ktindex ba26ac3050..c1fb5c86c6 100644--- a/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingHeartbeat.kt+++ b/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingHeartbeat.kt@@ -78,8 +78,8 @@ private fun LocationTrackingService.logHeartbeatSummary( ) {     val userId = Networking.userid     val loc = "${location.latitude},${location.longitude} acc=${location.accuracy}"-    Log.debug("FF-Heartbeat", "heartbeat userid=${userId.toULong()} self raw=$userId users=$userCount")-    Log.debug("FF-Heartbeat", "heartbeat links=$linkCount moving=$isMoving loc=$loc")+    Log.dev("FF-Heartbeat", "heartbeat userid=${userId.toULong()} self raw=$userId users=$userCount")+    Log.dev("FF-Heartbeat", "heartbeat links=$linkCount moving=$isMoving loc=$loc") }  private suspend fun LocationTrackingService.upsertSelfLocation(@@ -130,7 +130,7 @@ private suspend fun LocationTrackingService.applyTimerAutoToggles(     try {         val flipped = repository.applyDueAutoToggles(now.epochSeconds)         if (flipped > 0) {-            Log.debug("FF-Heartbeat", "auto-toggle flipped $flipped user(s), reloading sharing state")+            Log.dev("FF-Heartbeat", "auto-toggle flipped $flipped user(s), reloading sharing state")             // Reload fresh sharing flags so we don't publish once after an intended disable,             // and we start publishing immediately after an intended enable.             return repository.getAllUsers()@@ -158,7 +158,7 @@ private suspend fun LocationTrackingService.applyArrivalAutoToggles(         if (insideWaypointIds.isNotEmpty()) {             val flippedArrival = repository.applyDueArrivalToggles(insideWaypointIds)             if (flippedArrival > 0) {-                Log.debug("FF-Heartbeat", "arrival auto-toggle flipped $flippedArrival user(s), reloading")+                Log.dev("FF-Heartbeat", "arrival auto-toggle flipped $flippedArrival user(s), reloading")                 return repository.getAllUsers()             }         }@@ -182,8 +182,8 @@ private suspend fun LocationTrackingService.publishHeartbeat(     else publishBaseUsers.filter { it.id != Networking.userid && it.sendingEnabled }     val targetIds = publishTargets.map { it.id.toULong() }     val targetNames = publishTargets.map { it.name }-    Log.debug("FF-Heartbeat", "publish targets count=${publishTargets.size} ids=$targetIds names=$targetNames")-    Log.debug("FF-Heartbeat", "publish globalSharing=$sharingOut")+    Log.dev("FF-Heartbeat", "publish targets count=${publishTargets.size} ids=$targetIds names=$targetNames")+    Log.dev("FF-Heartbeat", "publish globalSharing=$sharingOut")     publishTargets.forEach {         val result = runCatching { Networking.publishLocation(locationValue, it) }         if (result.isFailure) {
findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingInbound.kt
diff --git a/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingInbound.kt b/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingInbound.ktindex 697e49e362..62b00d0b65 100644--- a/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingInbound.kt+++ b/findfamily/src/main/java/com/vayunmathur/findfamily/util/LocationTrackingInbound.kt@@ -82,9 +82,9 @@ internal suspend fun LocationTrackingService.processIncomingLocations(incoming:     val receivedIds = usersRecieved.map { it.toULong() }     val knownIds = userIDs.map { it.toULong() }     val selfId = Networking.userid.toULong()-    Log.debug("FF-Heartbeat", "received userids=$receivedIds self=$selfId known=$knownIds")+    Log.dev("FF-Heartbeat", "received userids=$receivedIds self=$selfId known=$knownIds")     val newUsers = usersRecieved.filter { it !in userIDs && it != Networking.userid }-    Log.debug("FF-Heartbeat", "newUsers to insert=${newUsers.map{ it.toULong() }}")+    Log.dev("FF-Heartbeat", "newUsers to insert=${newUsers.map{ it.toULong() }}")     repository.insertUsersIgnore(newUsers.map {         User(" ", null, "Unknown Location", false, RequestStatus.AWAITING_REQUEST, Clock.System.now(), null, it)     })@@ -103,7 +103,7 @@ internal suspend fun LocationTrackingService.processIncomingLocations(incoming:     // fixes even across a force-stop. Writing here makes the fix durable no matter what     // follows.     repository.upsertLocations(locList)-    Log.debug("FF-Heartbeat", "upsertAll ${locList.size} locations done")+    Log.dev("FF-Heartbeat", "upsertAll ${locList.size} locations done")      // Enrichment runs off the reader coroutine. Reverse-geocoding is a slow network     // call, so doing it inline stalled every subsequent inbound frame until the
findfamily/src/main/java/com/vayunmathur/findfamily/util/Networking.kt
diff --git a/findfamily/src/main/java/com/vayunmathur/findfamily/util/Networking.kt b/findfamily/src/main/java/com/vayunmathur/findfamily/util/Networking.ktindex 4d2854ecd8..9cb6cc96a0 100644--- a/findfamily/src/main/java/com/vayunmathur/findfamily/util/Networking.kt+++ b/findfamily/src/main/java/com/vayunmathur/findfamily/util/Networking.kt@@ -106,7 +106,7 @@ object Networking {                 try {                     pqcIdentity = PqcIdentity.loadOrCreate(DataStoreKeyStore(dataStoreUtils), "ff_pqc")                     pqcReady = true-                    Log.debug(TAG, "PQC identity ready bundleLen=${pqcIdentity.publicBundle.size}")+                    Log.dev(TAG, "PQC identity ready bundleLen=${pqcIdentity.publicBundle.size}")                 } catch (e: Throwable) {                     Log.status(TAG, "PQC identity unavailable (native lib load failed)", e)                     pqcReady = false@@ -169,7 +169,7 @@ object Networking {             userid = mirroredId             directBoot = true             initialized = true-            Log.debug(TAG, "direct boot init as ${userid.toULong()}")+            Log.dev(TAG, "direct boot init as ${userid.toULong()}")             return true         }     }@@ -429,7 +429,7 @@ object Networking {         }         return try {             val ok = sendLivePublish(user.id, "location", sealLocation(location, bundle))-            Log.debug(TAG, "publishLocation PQC to ${user.id.toULong()} (${user.name}) ok=$ok")+            Log.dev(TAG, "publishLocation PQC to ${user.id.toULong()} (${user.name}) ok=$ok")             ok         } catch (e: Exception) {             Log.status(TAG, "publishLocation to ${user.id.toULong()} exception", e)@@ -444,7 +444,7 @@ object Networking {         return try {             val bundle = Base64.decode(link.pqcPublicKey)             val ok = sendLivePublish(link.id, "location", sealLocation(location, bundle))-            Log.debug(TAG, "publishLocation PQC to temp link ${link.id} ok=$ok")+            Log.dev(TAG, "publishLocation PQC to temp link ${link.id} ok=$ok")             ok         } catch (e: Exception) {             Log.status(TAG, "publishLocation temp link ${link.id} failed", e)@@ -462,7 +462,7 @@ object Networking {     suspend fun publishLocation(location: LocationValue, targetId: Long, bundleB64: String): Boolean {         return try {             val ok = sendLivePublish(targetId, "location", sealLocation(location, Base64.decode(bundleB64)))-            Log.debug(TAG, "publishLocation PQC to ${targetId.toULong()} (direct boot) ok=$ok")+            Log.dev(TAG, "publishLocation PQC to ${targetId.toULong()} (direct boot) ok=$ok")             ok         } catch (e: Exception) {             Log.status(TAG, "publishLocation direct boot to ${targetId.toULong()} failed", e)@@ -492,7 +492,7 @@ object Networking {         return try {             val sealed = Pqc.encryptTo(bundle, json.encodeToString(envelope).encodeToByteArray())             val ok = sendLivePublish(recipientUserId, "uwb", sealed)-            Log.debug(TAG, "publishUwbMessage PQC to ${recipientUserId.toULong()} ok=$ok")+            Log.dev(TAG, "publishUwbMessage PQC to ${recipientUserId.toULong()} ok=$ok")             ok         } catch (e: Exception) {             Log.status(TAG, "publishUwbMessage to ${recipientUserId.toULong()} failed", e)
findfamily/src/main/java/com/vayunmathur/findfamily/util/NetworkingLive.kt
diff --git a/findfamily/src/main/java/com/vayunmathur/findfamily/util/NetworkingLive.kt b/findfamily/src/main/java/com/vayunmathur/findfamily/util/NetworkingLive.ktindex 0d1700f5bb..0dfcc7a8c2 100644--- a/findfamily/src/main/java/com/vayunmathur/findfamily/util/NetworkingLive.kt+++ b/findfamily/src/main/java/com/vayunmathur/findfamily/util/NetworkingLive.kt@@ -34,7 +34,7 @@ internal suspend fun WsSession.sendSubscribe() {     Networking.putU64Be(sub, 1, Networking.userid.toULong())     bundle.copyInto(sub, Networking.BUNDLE_FIELD_OFFSET)     send(sub)-    Log.debug(Networking.TAG, "live WS connected as ${Networking.userid.toULong()} bundleLen=${bundle.size}")+    Log.dev(Networking.TAG, "live WS connected as ${Networking.userid.toULong()} bundleLen=${bundle.size}") }  /**
fooddelivery/src/main/java/com/vayunmathur/fooddelivery/api/BitesCore.kt
diff --git a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/api/BitesCore.kt b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/api/BitesCore.ktindex 0cbdedeee5..d7e63ac243 100644--- a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/api/BitesCore.kt+++ b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/api/BitesCore.kt@@ -59,7 +59,7 @@ internal object BitesCore {     private val refreshMutex = Mutex()      internal inline fun logd(message: () -> String) {-        if (BuildConfig.DEV_BUILD) Log.debug(TAG, message())+        if (BuildConfig.DEV_BUILD) Log.dev(TAG, message())     }      /**
fooddelivery/src/main/java/com/vayunmathur/fooddelivery/notifications/OrderTrackingService.kt
diff --git a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/notifications/OrderTrackingService.kt b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/notifications/OrderTrackingService.ktindex 9710a4bad1..1cabbadf7a 100644--- a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/notifications/OrderTrackingService.kt+++ b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/notifications/OrderTrackingService.kt@@ -77,16 +77,16 @@ class OrderTrackingService : Service() {             }.getOrNull()              if (order == null) {-                Log.debug(TAG, "order $orderId not found; stopping")+                Log.dev(TAG, "order $orderId not found; stopping")                 finish()                 return             } -            Log.debug(TAG, "order $orderId stage=${order.stage} eta=${order.etaMillis}")+            Log.dev(TAG, "order $orderId stage=${order.stage} eta=${order.etaMillis}")             notify(OrderLiveUpdate.build(this, order))              if (order.isDone) {-                Log.debug(TAG, "order $orderId done; stopping")+                Log.dev(TAG, "order $orderId done; stopping")                 // Leave the terminal update visible briefly, then clear it.                 delay(TERMINAL_LINGER_MS)                 finish()
fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/CheckoutScreen.kt
diff --git a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/CheckoutScreen.kt b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/CheckoutScreen.ktindex 797d122f22..64b2b31ac0 100644--- a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/CheckoutScreen.kt+++ b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/CheckoutScreen.kt@@ -168,11 +168,11 @@ fun CheckoutScreen(         )         val response = BitesOrders.checkout(merchantId, request)         if (BuildConfig.DEV_BUILD) {-            Log.debug("Checkout", "response.order=${response?.order}")-            Log.debug("Checkout", "response.clientSecret=${response?.clientSecret?.take(20)}")-            Log.debug("Checkout", "response.serviceable=${response?.serviceable}")+            Log.dev("Checkout", "response.order=${response?.order}")+            Log.dev("Checkout", "response.clientSecret=${response?.clientSecret?.take(20)}")+            Log.dev("Checkout", "response.serviceable=${response?.serviceable}")             response?.order?.let { o ->-                Log.debug("Checkout", "order: foodTotal=${o.foodTotal} taxes=${o.taxes} deliveryFee=${o.deliveryFee} fees=${o.fees} tips=${o.tips} displayTotal=${o.displayTotal}")+                Log.dev("Checkout", "order: foodTotal=${o.foodTotal} taxes=${o.taxes} deliveryFee=${o.deliveryFee} fees=${o.fees} tips=${o.tips} displayTotal=${o.displayTotal}")             }         }         // Reuse the draft order on the next re-price; drop it if this call failed so we@@ -199,7 +199,7 @@ fun CheckoutScreen(         rewards = if (customer == null || orderUuid == null) null         else BitesOrders.getOrderRewards(orderUuid)         if (BuildConfig.DEV_BUILD) {-            Log.debug("Checkout", "rewardsAvailable=${rewards?.rewardsAvailable} rate=${rewards?.rewardsRate}")+            Log.dev("Checkout", "rewardsAvailable=${rewards?.rewardsAvailable} rate=${rewards?.rewardsRate}")         }     } 
fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/OrderTrackingScreen.kt
diff --git a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/OrderTrackingScreen.kt b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/OrderTrackingScreen.ktindex 131b7bc8ef..6a9b036fa1 100644--- a/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/OrderTrackingScreen.kt+++ b/fooddelivery/src/main/java/com/vayunmathur/fooddelivery/ui/OrderTrackingScreen.kt@@ -94,7 +94,7 @@ fun OrderTrackingScreen(orderId: Int, onBack: () -> Unit) {         while (true) {             val found = BitesOrders.getOrders().firstOrNull { it.id == orderId }             order = found-            Log.debug("Tracking", "order=${found?.id} stage=${found?.stage} " ++            Log.dev("Tracking", "order=${found?.id} stage=${found?.stage} " +                 "driver=${found?.driverPosition} eta=${found?.etaMillis}")             loading = false             // Stop polling once it's done; nothing more will change.
health/src/main/java/com/vayunmathur/health/util/HealthAPI.kt
diff --git a/health/src/main/java/com/vayunmathur/health/util/HealthAPI.kt b/health/src/main/java/com/vayunmathur/health/util/HealthAPI.ktindex f4ad494e55..4e1e01790b 100644--- a/health/src/main/java/com/vayunmathur/health/util/HealthAPI.kt+++ b/health/src/main/java/com/vayunmathur/health/util/HealthAPI.kt@@ -99,7 +99,7 @@ object HealthAPI {     // The SDK throws undocumented RuntimeExceptions, not just declared ones.     @Suppress("TooGenericExceptionCaught")     suspend fun writeHealthRecord(record: Record) {-        Log.debug("HealthAPI", "writeHealthRecord: type=${record.type}, metadata=${record.metadata}")+        Log.dev("HealthAPI", "writeHealthRecord: type=${record.type}, metadata=${record.metadata}")         val hcRecord: androidx.health.connect.client.records.Record = when (record.type) {             RecordType.Nutrition -> nutritionRecord(record) ?: return             RecordType.Hydration -> hydrationRecord(record)
library/map/src/main/java/com/vayunmathur/library/map/SurfaceMapRenderer.kt
diff --git a/library/map/src/main/java/com/vayunmathur/library/map/SurfaceMapRenderer.kt b/library/map/src/main/java/com/vayunmathur/library/map/SurfaceMapRenderer.ktindex ac4b3feb80..61b005506f 100644--- a/library/map/src/main/java/com/vayunmathur/library/map/SurfaceMapRenderer.kt+++ b/library/map/src/main/java/com/vayunmathur/library/map/SurfaceMapRenderer.kt@@ -726,7 +726,7 @@ class SurfaceMapRenderer(      /** Dim everything outside the region [mask] names, or clear the mask with `null`. */     fun setRegionMask(mask: Long?) {-        Log.debug("RegionDbg", "setRegionMask mask=$mask")+        Log.dev("RegionDbg", "setRegionMask mask=$mask")         this.selectedRegionId = mask         this.regionResolved = false         applyRegionMask()@@ -752,7 +752,7 @@ class SurfaceMapRenderer(         // `0` clears above; a nonzero id returns nonzero once a resident tile carries it.         // `0` back means the tiles have not landed yet — retried next frame, not a miss.         val resolved = MapNative.setRegionMask(handle, id) != 0L-        Log.debug("RegionDbg", "applyRegionMask id=$id resolved=$resolved")+        Log.dev("RegionDbg", "applyRegionMask id=$id resolved=$resolved")         regionResolved = resolved     } 
library/network/src/main/java/com/vayunmathur/library/network/WebSocketClient.kt
diff --git a/library/network/src/main/java/com/vayunmathur/library/network/WebSocketClient.kt b/library/network/src/main/java/com/vayunmathur/library/network/WebSocketClient.ktindex 18b8772815..b59e134949 100644--- a/library/network/src/main/java/com/vayunmathur/library/network/WebSocketClient.kt+++ b/library/network/src/main/java/com/vayunmathur/library/network/WebSocketClient.kt@@ -75,7 +75,7 @@ class WebSocketClient private constructor(         val frame = try {             readFrame()         } catch (e: IOException) {-            if (!closed) Log.debug(TAG, "ws read error ${e.message}")+            if (!closed) Log.dev(TAG, "ws read error ${e.message}")             return false         }         when (frame) {
logviewer/src/main/java/com/vayunmathur/logviewer/data/TombstoneFiles.kt
diff --git a/logviewer/src/main/java/com/vayunmathur/logviewer/data/TombstoneFiles.kt b/logviewer/src/main/java/com/vayunmathur/logviewer/data/TombstoneFiles.ktindex f8eddcc503..ca25a6ce97 100644--- a/logviewer/src/main/java/com/vayunmathur/logviewer/data/TombstoneFiles.kt+++ b/logviewer/src/main/java/com/vayunmathur/logviewer/data/TombstoneFiles.kt@@ -49,7 +49,7 @@ internal object TombstoneFiles {                     return candidate                 }             } catch (e: IOException) {-                Log.debug(TAG, "unable to read ${candidate.file}", e)+                Log.dev(TAG, "unable to read ${candidate.file}", e)             }         }         return null
logviewer/src/main/java/com/vayunmathur/logviewer/platform/ErrorReportReader.kt
diff --git a/logviewer/src/main/java/com/vayunmathur/logviewer/platform/ErrorReportReader.kt b/logviewer/src/main/java/com/vayunmathur/logviewer/platform/ErrorReportReader.ktindex 471978a224..8549731736 100644--- a/logviewer/src/main/java/com/vayunmathur/logviewer/platform/ErrorReportReader.kt+++ b/logviewer/src/main/java/com/vayunmathur/logviewer/platform/ErrorReportReader.kt@@ -109,7 +109,7 @@ internal object ErrorReportReader {         return try {             GZIPInputStream(ByteArrayInputStream(gzipped)).use { it.readBytes() }         } catch (e: IOException) {-            Log.debug(TAG, "corrupt gzipped message", e)+            Log.dev(TAG, "corrupt gzipped message", e)             null         }     }
logviewer/src/main/java/com/vayunmathur/logviewer/platform/LogcatReader.kt
diff --git a/logviewer/src/main/java/com/vayunmathur/logviewer/platform/LogcatReader.kt b/logviewer/src/main/java/com/vayunmathur/logviewer/platform/LogcatReader.ktindex f79ad3549f..7f7b4b9fd7 100644--- a/logviewer/src/main/java/com/vayunmathur/logviewer/platform/LogcatReader.kt+++ b/logviewer/src/main/java/com/vayunmathur/logviewer/platform/LogcatReader.kt@@ -71,7 +71,7 @@ internal object LogcatReader {             targetAppInfo = try {                 context.packageManager.getApplicationInfo(request.targetPackage, 0)             } catch (e: PackageManager.NameNotFoundException) {-                Log.debug(TAG, "unknown package ${request.targetPackage}", e)+                Log.dev(TAG, "unknown package ${request.targetPackage}", e)                 return LogLoadResult.Unavailable()             }             command += "--uid=${targetAppInfo.uid}"
logviewer/src/main/java/com/vayunmathur/logviewer/provider/BlobProvider.kt
diff --git a/logviewer/src/main/java/com/vayunmathur/logviewer/provider/BlobProvider.kt b/logviewer/src/main/java/com/vayunmathur/logviewer/provider/BlobProvider.ktindex c9a4ed1bd5..6932f7d899 100644--- a/logviewer/src/main/java/com/vayunmathur/logviewer/provider/BlobProvider.kt+++ b/logviewer/src/main/java/com/vayunmathur/logviewer/provider/BlobProvider.kt@@ -43,7 +43,7 @@ class BlobProvider : ContentProvider(), ContentProvider.PipeDataWriter<ByteArray      */     @Throws(FileNotFoundException::class)     override fun openFile(uri: Uri, mode: String): ParcelFileDescriptor {-        Log.debug(TAG, "openFile $uri, mode $mode, caller $callingPackage")+        Log.dev(TAG, "openFile $uri, mode $mode, caller $callingPackage")         val entry = entryFor(uri) ?: throw FileNotFoundException()         return openPipeHelper(uri, LogDocument.MIME_TYPE, null, entry.gzipped, this)     }@@ -62,7 +62,7 @@ class BlobProvider : ContentProvider(), ContentProvider.PipeDataWriter<ByteArray             }         } catch (e: IOException) {             // Normal: the reader is free to stop early, which closes its end of the pipe.-            Log.debug(TAG, "pipe closed while writing $uri", e)+            Log.dev(TAG, "pipe closed while writing $uri", e)         }     } @@ -79,7 +79,7 @@ class BlobProvider : ContentProvider(), ContentProvider.PipeDataWriter<ByteArray         selectionArgs: Array<out String>?,         sortOrder: String?,     ): Cursor? {-        Log.debug(TAG, "query $uri, caller $callingPackage")+        Log.dev(TAG, "query $uri, caller $callingPackage")         val entry = entryFor(uri) ?: return null         val columns = projection             ?: arrayOf(OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE)
maps/src/main/java/com/vayunmathur/maps/data/SpecificFeature.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/data/SpecificFeature.kt b/maps/src/main/java/com/vayunmathur/maps/data/SpecificFeature.ktindex 2643170bb7..217d9becae 100644--- a/maps/src/main/java/com/vayunmathur/maps/data/SpecificFeature.kt+++ b/maps/src/main/java/com/vayunmathur/maps/data/SpecificFeature.kt@@ -156,7 +156,7 @@ suspend fun parse(feature: Feature1): SpecificFeature? {     // The baked link: the tagged relation id of the boundary this label names, stamped at     // build time (`region_links`). `0` is REGION_NONE — unlinked, mask nothing.     val regionId = properties["regionId"]?.jsonPrimitive?.content?.toLongOrNull() ?: 0L-    Log.debug("RegionDbg", "parse kind=${properties.string("kind")} name=$name regionId=$regionId")+    Log.dev("RegionDbg", "parse kind=${properties.string("kind")} name=$name regionId=$regionId")     return when (properties.string("kind")) {         "country" -> SpecificFeature.Admin0Label(             iso = wiki?.getProperty("P297"),
maps/src/main/java/com/vayunmathur/maps/ui/map/MapFeaturePicker.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/map/MapFeaturePicker.kt b/maps/src/main/java/com/vayunmathur/maps/ui/map/MapFeaturePicker.ktindex 5720ccd790..6132fa0f95 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/map/MapFeaturePicker.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/map/MapFeaturePicker.kt@@ -183,7 +183,7 @@ class MapFeaturePicker(          */         fun PlacedLabel.toFeature1(): Feature1? {             if (nativeToBase(layerId) == null) return null-            Log.debug("RegionDbg", "pick layer=$layerId name=$name kind=$kind regionId=$regionId")+            Log.dev("RegionDbg", "pick layer=$layerId name=$name kind=$kind regionId=$regionId")             return Feature1(                 Point(position),                 JsonObject(
maps/src/main/java/com/vayunmathur/maps/util/OfflineRouter.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouter.kt b/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouter.ktindex 4d85230c81..dca8a038a2 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouter.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouter.kt@@ -464,7 +464,7 @@ object OfflineRouter {         mode: RouteService.TravelMode,     ): RouteService.Route =         withContext(Dispatchers.Default) {-            Log.debug("OfflineRouter", "getRoute: mode=$mode, start=$start, end=$end")+            Log.dev("OfflineRouter", "getRoute: mode=$mode, start=$start, end=$end")             if (!OfflineRouterLifecycle.isInitialized) {                 OfflineRouterLifecycle.initialize(context)             }
maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTrafficFetch.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTrafficFetch.kt b/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTrafficFetch.ktindex 3de64a8f4e..26eb89608f 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTrafficFetch.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTrafficFetch.kt@@ -31,7 +31,7 @@ internal object OfflineRouterTrafficFetch {         packedSquare: Int,         forceAsync: Boolean,     ) {-        Log.debug(+        Log.dev(             "TRAFFIC_DATA",             "fetchTrafficData START: bbox ($minLat,$minLon)-($maxLat,$maxLon) " +                 "packed=$packedSquare forceAsync=$forceAsync",@@ -46,7 +46,7 @@ internal object OfflineRouterTrafficFetch {                 Log.error("TRAFFIC_DATA", "fetchTrafficData ERROR")                 OfflineRouter.finishTrafficFetch(packedSquare)             }-            Log.debug("TRAFFIC_DATA", "fetchTrafficData END: packed=$packedSquare")+            Log.dev("TRAFFIC_DATA", "fetchTrafficData END: packed=$packedSquare")         }          if (forceAsync) {@@ -79,7 +79,7 @@ internal object OfflineRouterTrafficFetch {             url = "https://api.vayunmathur.com/maps/traffic" +                 "?min_lat=$minLat&min_lon=$minLon&max_lat=$maxLat&max_lon=$maxLon",         )-        Log.debug(+        Log.dev(             "TRAFFIC_DATA",             "fetchTrafficData NETWORK DONE: status=$status, size=${bytes.size}",         )@@ -134,7 +134,7 @@ internal object OfflineRouterTrafficFetch {             compRatios[i] = buffer.get()         } -        Log.debug(+        Log.dev(             "TRAFFIC_DATA",             "fetchTrafficData PROCESSING: $nBigI big edges, $nComponentI components",         )
maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTransit.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTransit.kt b/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTransit.ktindex d5dbceeb85..706c0bceef 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTransit.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/OfflineRouterTransit.kt@@ -322,7 +322,7 @@ internal object OfflineRouterTransit {         // Remove once the mapping fix lands.         if (BuildConfig.DEBUG) {             val hist = raw.groupingBy { it.mode }.eachCount().toSortedMap()-            Log.debug("TransitIconDiag", "feed=$feed n=${raw.size} rawRouteType->count=$hist")+            Log.dev("TransitIconDiag", "feed=$feed n=${raw.size} rawRouteType->count=$hist")         }         return raw.map { v ->             OfflineRouter.Vehicle(
maps/src/main/java/com/vayunmathur/maps/util/PoiIndex.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/PoiIndex.kt b/maps/src/main/java/com/vayunmathur/maps/util/PoiIndex.ktindex 4d3000d6f0..124837f57b 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/PoiIndex.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/PoiIndex.kt@@ -404,7 +404,7 @@ object PoiIndex {         }         return try {             mapped = PoiIndexSideFiles.mapSideFiles(dir, indexFile, namesFile)-            Log.debug(+            Log.dev(                 TAG,                 "Loaded ${mapped?.count} POI records, names=${mapped?.namesLen}B, " +                     "grid=${mapped?.cellCount ?: 0} cells, words=${mapped?.entryCount ?: 0}",@@ -452,7 +452,7 @@ object PoiIndex {             Log.status(TAG, "$ATTRS_FILE offset array runs past the file")             return null         }-        Log.debug(TAG, "Loaded POI attributes for $attrCount record(s)")+        Log.dev(TAG, "Loaded POI attributes for $attrCount record(s)")         return buf to blobStart     } @@ -686,7 +686,7 @@ object PoiIndex {     ): PoiAttributes? {         val m = mapped         if (m?.attrs == null) {-            Log.debug(+            Log.dev(                 TAG,                 "attributesNear: sidecar absent (index loaded=${m != null}); " +                     "no attrs for \"$name\" at ($lat, $lon)",@@ -700,7 +700,7 @@ object PoiIndex {         for (rec in candidates) {             val attrs = attributesAt(rec.ordinal)             if (attrs != null) {-                Log.debug(+                Log.dev(                     TAG,                     "attributesNear: \"$name\" at ($lat, $lon) matched nothing by name; " +                         "using nearest-with-attrs \"${rec.name}\"",@@ -708,7 +708,7 @@ object PoiIndex {                 return attrs             }         }-        Log.debug(+        Log.dev(             TAG,             "attributesNear: \"$name\" at ($lat, $lon) matched none of " +                 "${candidates.size} candidate(s) within $maxMeters m",
openassistant/src/main/java/com/vayunmathur/openassistant/assist/OpenAssistantSession.kt
diff --git a/openassistant/src/main/java/com/vayunmathur/openassistant/assist/OpenAssistantSession.kt b/openassistant/src/main/java/com/vayunmathur/openassistant/assist/OpenAssistantSession.ktindex 2a37e32c11..b435211c75 100644--- a/openassistant/src/main/java/com/vayunmathur/openassistant/assist/OpenAssistantSession.kt+++ b/openassistant/src/main/java/com/vayunmathur/openassistant/assist/OpenAssistantSession.kt@@ -34,7 +34,7 @@ class OpenAssistantSession(context: Context) : VoiceInteractionSession(context)     override fun onHandleAssist(state: AssistState) {         super.onHandleAssist(state)         val text = buildScreenText(state.assistStructure, state.assistContent)-        Log.debug(TAG, "Captured screen text (${text.length} chars)")+        Log.dev(TAG, "Captured screen text (${text.length} chars)")         handOffToChat(text)     } 
openassistant/src/main/java/com/vayunmathur/openassistant/util/AssistantToolIntents.kt
diff --git a/openassistant/src/main/java/com/vayunmathur/openassistant/util/AssistantToolIntents.kt b/openassistant/src/main/java/com/vayunmathur/openassistant/util/AssistantToolIntents.ktindex 4b5cd42f8c..647a5f8495 100644--- a/openassistant/src/main/java/com/vayunmathur/openassistant/util/AssistantToolIntents.kt+++ b/openassistant/src/main/java/com/vayunmathur/openassistant/util/AssistantToolIntents.kt@@ -51,7 +51,7 @@ internal class AssistantToolIntents(private val context: Context) {     }      fun handleMissingApp(packageName: String): String {-        Log.debug("AssistantToolSet", "Handling missing app: $packageName")+        Log.dev("AssistantToolSet", "Handling missing app: $packageName")         return getMissingAppMessage(packageName) +             " Try to help the user with your own knowledge instead."     }
openassistant/src/main/java/com/vayunmathur/openassistant/util/InferenceService.kt
diff --git a/openassistant/src/main/java/com/vayunmathur/openassistant/util/InferenceService.kt b/openassistant/src/main/java/com/vayunmathur/openassistant/util/InferenceService.ktindex 75a5eb8cd6..17535a9f60 100644--- a/openassistant/src/main/java/com/vayunmathur/openassistant/util/InferenceService.kt+++ b/openassistant/src/main/java/com/vayunmathur/openassistant/util/InferenceService.kt@@ -251,7 +251,7 @@ class InferenceService : Service() {                 Log.status("InferenceService", "Queueing Intent Inference request")                 intentQueue.trySend(InferenceJob.Intent(userText, imagePaths, schema, receiver))             } else if (conversationId != -1L) {-                Log.debug("InferenceService", "Queueing standard inference for conversation: $conversationId")+                Log.dev("InferenceService", "Queueing standard inference for conversation: $conversationId")                 standardQueue.trySend(InferenceJob.Standard(conversationId, userText, imagePaths, audioPath))             }         }@@ -487,7 +487,7 @@ class InferenceService : Service() {                     EMBEDDING_OK_CODE,                     Bundle().apply { putString("json_result", finalJson) },                 )-                Log.debug("InferenceService", "AI produced output: $finalJson")+                Log.dev("InferenceService", "AI produced output: $finalJson")                 return             }         }
passwords/src/main/java/com/vayunmathur/passwords/platform/PasskeyUtils.kt
diff --git a/passwords/src/main/java/com/vayunmathur/passwords/platform/PasskeyUtils.kt b/passwords/src/main/java/com/vayunmathur/passwords/platform/PasskeyUtils.ktindex 2ce1fa4dcf..b162307c41 100644--- a/passwords/src/main/java/com/vayunmathur/passwords/platform/PasskeyUtils.kt+++ b/passwords/src/main/java/com/vayunmathur/passwords/platform/PasskeyUtils.kt@@ -63,11 +63,11 @@ object PasskeyUtils {                 .bufferedReader().use { it.readText() }             val origin = callingAppInfo.getOrigin(allowList)             if (!origin.isNullOrEmpty()) {-                Log.debug(TAG, "Resolved privileged browser origin: $origin")+                Log.dev(TAG, "Resolved privileged browser origin: $origin")                 origin.removeSuffix("/")             } else null         } catch (expected: IllegalArgumentException) {-            Log.debug(TAG, "No privileged browser match: ${expected.message}")+            Log.dev(TAG, "No privileged browser match: ${expected.message}")             null         }     }
passwords/src/main/java/com/vayunmathur/passwords/platform/PasswordAutofillService.kt
diff --git a/passwords/src/main/java/com/vayunmathur/passwords/platform/PasswordAutofillService.kt b/passwords/src/main/java/com/vayunmathur/passwords/platform/PasswordAutofillService.ktindex 0da5ca0e73..b7ebb0329a 100644--- a/passwords/src/main/java/com/vayunmathur/passwords/platform/PasswordAutofillService.kt+++ b/passwords/src/main/java/com/vayunmathur/passwords/platform/PasswordAutofillService.kt@@ -159,7 +159,7 @@ class PasswordAutofillService : AutofillService() {                     )                 }             } catch (expected: IllegalArgumentException) {-                Log.debug(tag, "Could not create inline presentation", expected)+                Log.dev(tag, "Could not create inline presentation", expected)             }         } 
passwords/src/main/java/com/vayunmathur/passwords/platform/cable/CableActivity.kt
diff --git a/passwords/src/main/java/com/vayunmathur/passwords/platform/cable/CableActivity.kt b/passwords/src/main/java/com/vayunmathur/passwords/platform/cable/CableActivity.ktindex 64bbc8b2f8..c5df35a149 100644--- a/passwords/src/main/java/com/vayunmathur/passwords/platform/cable/CableActivity.kt+++ b/passwords/src/main/java/com/vayunmathur/passwords/platform/cable/CableActivity.kt@@ -65,7 +65,7 @@ class CableActivity : FragmentActivity() {                 }                  override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {-                    Log.debug(TAG, "Biometric error $errorCode: $errString")+                    Log.dev(TAG, "Biometric error $errorCode: $errString")                     finish()                 }             },
passwords/src/main/java/
diff --git a/passwords/src/main/java/com/vayunmathur/passwords/platform/cable/CableSession.kt b/passwords/src/main/java/

Diff truncated.