1#!/bin/bash 2 3if [ -z "$ANDROID_BUILD_TOP" ]; then 4 echo "Android build environment not set" 5 exit -1 6fi 7 8# ensure we have mm 9. $ANDROID_BUILD_TOP/build/envsetup.sh 10 11pushd $ANDROID_BUILD_TOP/frameworks/av/services/audioflinger/ 12pwd 13mm 14 15echo "waiting for device" 16adb root && adb wait-for-device remount 17adb push $OUT/system/lib/libaudioresampler.so /system/lib 18adb push $OUT/system/bin/resampler_tests /system/bin 19 20sh $ANDROID_BUILD_TOP/frameworks/av/services/audioflinger/tests/run_all_unit_tests.sh 21 22popd 23