summaryrefslogtreecommitdiffstats
path: root/arm-wt-22k/lib_src
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2016-01-12 10:37:30 -0800
committerThe Android Automerger <android-build@google.com>2016-02-26 14:33:27 -0800
commit8e618348f91aaedc59d1d14c14d1f3eaf1e4c103 (patch)
treeef22cd6aa5762d02e3bb6617903d1918fc46bfd3 /arm-wt-22k/lib_src
parent047330f1c245bcb3641856a6adabfc344d6e3c36 (diff)
downloadandroid_external_sonivox-8e618348f91aaedc59d1d14c14d1f3eaf1e4c103.tar.gz
android_external_sonivox-8e618348f91aaedc59d1d14c14d1f3eaf1e4c103.tar.bz2
android_external_sonivox-8e618348f91aaedc59d1d14c14d1f3eaf1e4c103.zip
Sonivox: add SafetyNet log.
Bug: 26366256 Change-Id: Ief72e01b7cc6d87a015105af847a99d3d9b03cb0
Diffstat (limited to 'arm-wt-22k/lib_src')
-rw-r--r--arm-wt-22k/lib_src/eas_wtengine.c7
-rw-r--r--arm-wt-22k/lib_src/eas_wtsynth.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/arm-wt-22k/lib_src/eas_wtengine.c b/arm-wt-22k/lib_src/eas_wtengine.c
index e7263fd..854d4b4 100644
--- a/arm-wt-22k/lib_src/eas_wtengine.c
+++ b/arm-wt-22k/lib_src/eas_wtengine.c
@@ -33,6 +33,7 @@
*------------------------------------
*/
#include "log/log.h"
+#include <cutils/log.h>
#include "eas_types.h"
#include "eas_math.h"
@@ -92,6 +93,7 @@ void WT_VoiceGain (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame)
numSamples = pWTIntFrame->numSamples;
if (numSamples <= 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
return;
}
pMixBuffer = pWTIntFrame->pMixBuffer;
@@ -190,6 +192,7 @@ void WT_Interpolate (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame)
numSamples = pWTIntFrame->numSamples;
if (numSamples <= 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
return;
}
pOutputBuffer = pWTIntFrame->pAudioBuffer;
@@ -287,6 +290,7 @@ void WT_InterpolateNoLoop (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame)
numSamples = pWTIntFrame->numSamples;
if (numSamples <= 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
return;
}
pOutputBuffer = pWTIntFrame->pAudioBuffer;
@@ -379,6 +383,7 @@ void WT_VoiceFilter (S_FILTER_CONTROL *pFilter, S_WT_INT_FRAME *pWTIntFrame)
numSamples = pWTIntFrame->numSamples;
if (numSamples <= 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
return;
}
pAudioBuffer = pWTIntFrame->pAudioBuffer;
@@ -446,6 +451,7 @@ void WT_VoiceFilter (S_FILTER_CONTROL *pFilter, S_WT_INT_FRAME *pWTIntFrame)
numSamples = pWTIntFrame->numSamples;
if (numSamples <= 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
return;
}
pOutputBuffer = pWTIntFrame->pAudioBuffer;
@@ -593,6 +599,7 @@ void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame)
numSamples = pWTIntFrame->numSamples;
if (numSamples <= 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
return;
}
pMixBuffer = pWTIntFrame->pMixBuffer;
diff --git a/arm-wt-22k/lib_src/eas_wtsynth.c b/arm-wt-22k/lib_src/eas_wtsynth.c
index 25a70db..9257951 100644
--- a/arm-wt-22k/lib_src/eas_wtsynth.c
+++ b/arm-wt-22k/lib_src/eas_wtsynth.c
@@ -29,6 +29,7 @@
// includes
#include "log/log.h"
+#include <cutils/log.h>
#include "eas_data.h"
#include "eas_report.h"
@@ -471,6 +472,7 @@ EAS_BOOL WT_CheckSampleEnd (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame, E
}
if (pWTIntFrame->numSamples < 0) {
ALOGE("b/26366256");
+ android_errorWriteLog(0x534e4554, "26366256");
pWTIntFrame->numSamples = 0;
}