├── jni ├── Application.mk ├── audioBenchmark.cpp ├── Android.mk ├── audio-bench-native.h └── audio-bench-native.c ├── ic_launcher-web.png ├── res ├── raw │ ├── sinus500hz.wav │ ├── testsound.mp3 │ └── sinusprogression.wav ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ └── ic_launcher.png ├── values │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── values-v11 │ └── styles.xml ├── layout │ ├── activity_task_detail.xml │ ├── fragment_task_detail.xml │ ├── activity_task_list.xml │ ├── activity_task_twopane.xml │ ├── fragment_opensl_detail.xml │ ├── fragment_standard_detail.xml │ └── fragment_overview_detail.xml ├── values-v14 │ └── styles.xml ├── values-w820dp │ └── dimens.xml ├── values-large │ └── refs.xml └── values-sw600dp │ └── refs.xml ├── libs ├── android-support-v4.jar ├── mips │ └── libaudioBenchmark.so ├── x86 │ └── libaudioBenchmark.so ├── armeabi │ └── libaudioBenchmark.so └── armeabi-v7a │ └── libaudioBenchmark.so ├── .gitignore ├── .classpath ├── project.properties ├── src └── zee │ └── audiobenchmark │ ├── interfaces │ └── AsyncResponse.java │ ├── datatypes │ ├── EntryLibTest.java │ ├── SystemParameters.java │ └── TestResult.java │ ├── tasks │ ├── AudioRecordLoopback.java │ └── AudioRecordLatencyTest.java │ ├── MainActivity.java │ ├── FragmentOpenSL.java │ ├── FragmentTaskList.java │ ├── FragmentAudioTrack.java │ └── FragmentOverview.java ├── .project ├── AndroidManifest.xml ├── README.md ├── .cproject └── LICENSE /jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_ABI := all -------------------------------------------------------------------------------- /jni/audioBenchmark.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/ic_launcher-web.png -------------------------------------------------------------------------------- /res/raw/sinus500hz.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/raw/sinus500hz.wav -------------------------------------------------------------------------------- /res/raw/testsound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/raw/testsound.mp3 -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/libs/android-support-v4.jar -------------------------------------------------------------------------------- /libs/mips/libaudioBenchmark.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/libs/mips/libaudioBenchmark.so -------------------------------------------------------------------------------- /libs/x86/libaudioBenchmark.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/libs/x86/libaudioBenchmark.so -------------------------------------------------------------------------------- /res/raw/sinusprogression.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/raw/sinusprogression.wav -------------------------------------------------------------------------------- /libs/armeabi/libaudioBenchmark.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/libs/armeabi/libaudioBenchmark.so -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /libs/armeabi-v7a/libaudioBenchmark.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschmersow/android-audio-latency/HEAD/libs/armeabi-v7a/libaudioBenchmark.so -------------------------------------------------------------------------------- /res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | 18sp 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /res/layout/activity_task_detail.xml: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | audioBenchmark 5 | task Detail 6 | Overview 7 | Hello world! 8 | Settings 9 | 10 | 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Gradle files 16 | .gradle/ 17 | build/ 18 | 19 | # Local configuration file (sdk path, etc) 20 | local.properties 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Log Files 26 | *.log 27 | -------------------------------------------------------------------------------- /res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 64dp 9 | 10 | 11 | -------------------------------------------------------------------------------- /res/values-large/refs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | @layout/activity_task_twopane 11 | 12 | 13 | -------------------------------------------------------------------------------- /res/values-sw600dp/refs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | @layout/activity_task_twopane 11 | 12 | 13 | -------------------------------------------------------------------------------- /res/layout/fragment_task_detail.xml: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/layout/activity_task_list.xml: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-20 15 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/zee/audiobenchmark/interfaces/AsyncResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 B.Schmersow 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package zee.audiobenchmark.interfaces; 18 | 19 | import zee.audiobenchmark.datatypes.TestResult; 20 | 21 | public interface AsyncResponse { 22 | void processFinish(TestResult result); 23 | } 24 | -------------------------------------------------------------------------------- /jni/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | 19 | LOCAL_MODULE := audioBenchmark 20 | LOCAL_SRC_FILES := audio-bench-native.c 21 | # for native audio 22 | LOCAL_LDLIBS += -lOpenSLES 23 | # for logging 24 | LOCAL_LDLIBS += -llog 25 | # for native asset manager 26 | LOCAL_LDLIBS += -landroid 27 | 28 | include $(BUILD_SHARED_LIBRARY) 29 | -------------------------------------------------------------------------------- /res/layout/activity_task_twopane.xml: -------------------------------------------------------------------------------- 1 | 12 | 13 | 23 | 24 | 31 | 32 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | audioBenchmark 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | com.android.ide.eclipse.adt.ResourceManagerBuilder 16 | 17 | 18 | 19 | 20 | com.android.ide.eclipse.adt.PreCompilerBuilder 21 | 22 | 23 | 24 | 25 | org.eclipse.jdt.core.javabuilder 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.ApkBuilder 31 | 32 | 33 | 34 | 35 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 36 | full,incremental, 37 | 38 | 39 | 40 | 41 | 42 | com.android.ide.eclipse.adt.AndroidNature 43 | org.eclipse.jdt.core.javanature 44 | org.eclipse.cdt.core.cnature 45 | org.eclipse.cdt.core.ccnature 46 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 47 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 48 | 49 | 50 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 22 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 37 | 40 | 41 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /res/layout/fragment_opensl_detail.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 21 | 22 |