连续2次adb logcat 打印日志,部分日志为什么会消失

问题遇到的现象和发生背景

连续2次adb logcat 打印日志,部分日志为什么会消失

问题相关代码,请勿粘贴截图
synchronized public static void audio_setMuteValue(String value, boolean bSaveDb) {
    DEBUG.d(TAG, "audio_setMuteValue, value= " + value + ", bSaveDb= " + bSaveDb);

    boolean currentMuteState = audio_isMute();
    boolean newMuteState = value.equalsIgnoreCase("on");

// boolean isStreamMute = mAndroidAudioMgr.isStreamMute(AudioManager.STREAM_MUSIC);
DEBUG.d(TAG, "audio_setMuteValue, currentMuteState= " + currentMuteState + ", newMuteState= " + newMuteState);

    if (bSaveDb == true && currentMuteState != newMuteState) {
        // 1. menu_settings.db
        DEBUG.d(TAG, "audio_setMuteValue, Update DB to " + value);
        DB.putData(Utils.utils_getContentResolver(), DB.Audio.PD_MENU_AUDIO_MUTE_ENABLED, value);
        mAudioSettings.Mute = value;
    }

    if (currentMuteState != newMuteState) {
        // 2. set SystemProperties
        SystemProperties.set("persist.tpv.audiomute", (newMuteState) ? "1" : "0");

        // 3. set mute state
        audio_updateMuteValue(newMuteState);
    }

    // 4. if is unmute, restore the Speaker and LineOut volume.
    if (newMuteState == false) { // Unmute
        DEBUG.d(TAG, "audio_setMuteValue, do unmute!!");
        // Set Speaker Volume
        boolean isSpeakerOn = audio_isAudioSpeakerOn();
        DEBUG.d(TAG, "audio_setMuteValue, isSpeakerOn= " + isSpeakerOn);
        if (isSpeakerOn) {
            String speakerVol = audio_getVolumeValue();
            audio_setVolumeValue(speakerVol, false);
        }

        // Set LineOut Volume
        String audioOutVol = "0";
        boolean isAudioOutSyncOn = audio_isAudioOutSyncOn();
        if (isAudioOutSyncOn) {
            // Sync On: Get the Speaker Volume.
            audioOutVol = audio_getVolumeValue();
        } else {
            // Sync Off: Get the LineOut Volume.
            audioOutVol = audio_getAudioOutValue();
        }
        DEBUG.d(TAG, "audio_setMuteValue, do audio_updateAudioOutValue, audioOutVol= " + audioOutVol);
        audio_updateAudioOutValue(audioOutVol);
    }

    DEBUG.d(TAG, "mAudioSettings.Mute : " + mAudioSettings.Mute);
}
运行结果及报错内容

img

我的解答思路和尝试过的方法

有可能是日志错乱,cpu分配资源出了问题。

我想要达到的结果

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。