Skip to content

Commit 2e2beaa

Browse files
committed
Audio Effects test app
Change-Id: I93fff0e195af3205207ade32ab31f2a760574c7f
1 parent 40e86a5 commit 2e2beaa

23 files changed

+4593
-0
lines changed

media/tests/EffectsTest/Android.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
LOCAL_PATH:= $(call my-dir)
2+
include $(CLEAR_VARS)
3+
4+
LOCAL_MODULE_TAGS := tests
5+
6+
LOCAL_SRC_FILES := $(call all-subdir-java-files)
7+
8+
LOCAL_PACKAGE_NAME := EffectsTest
9+
10+
include $(BUILD_PACKAGE)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 The Android Open Source Project
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+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18+
package="com.android.effectstest">
19+
20+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
21+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
22+
23+
<application>
24+
<activity android:label="@string/app_name"
25+
android:name="EffectsTest">
26+
<intent-filter>
27+
<action android:name="android.intent.action.MAIN" />
28+
<category android:name="android.intent.category.LAUNCHER"/>
29+
</intent-filter>
30+
</activity>
31+
32+
<activity android:label="@string/envreverb_test_name"
33+
android:name="EnvReverbTest">
34+
</activity>
35+
36+
<activity android:label="@string/presetrvb_test_name"
37+
android:name="PresetReverbTest">
38+
</activity>
39+
40+
<activity android:label="@string/equalizer_test_name"
41+
android:name="EqualizerTest">
42+
</activity>
43+
44+
<activity android:label="@string/virtualizer_test_name"
45+
android:name="VirtualizerTest">
46+
</activity>
47+
48+
<activity android:label="@string/bassboost_test_name"
49+
android:name="BassBoostTest">
50+
</activity>
51+
52+
<activity android:label="@string/visualizer_test_name"
53+
android:name="VisualizerTest">
54+
</activity>
55+
56+
</application>
57+
</manifest>
5.95 KB
Loading
369 Bytes
Loading
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 The Android Open Source Project
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+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18+
android:layout_width="fill_parent"
19+
android:layout_height="fill_parent"
20+
android:orientation="vertical">
21+
22+
<ImageView
23+
android:src="@android:drawable/divider_horizontal_dark"
24+
android:layout_width="fill_parent"
25+
android:layout_height="wrap_content"
26+
android:scaleType="fitXY"/>
27+
28+
<LinearLayout android:id="@+id/bbReleaseLayout"
29+
android:orientation="horizontal"
30+
android:layout_width="fill_parent"
31+
android:layout_height="wrap_content"
32+
android:layout_marginLeft="10dip"
33+
android:layout_marginTop="10dip"
34+
android:layout_marginRight="10dip"
35+
android:layout_marginBottom="10dip" >
36+
37+
<TextView android:id="@+id/bbReleaseText"
38+
android:layout_width="fill_parent"
39+
android:layout_height="fill_parent"
40+
android:layout_weight="1.0"
41+
android:layout_gravity="center_vertical|left"
42+
android:text="@string/effect_release"
43+
style="@android:style/TextAppearance.Medium" />
44+
45+
<ToggleButton android:id="@+id/bbReleaseButton"
46+
android:layout_width="wrap_content"
47+
android:layout_height="fill_parent"
48+
android:layout_gravity="center_vertical|right"
49+
android:layout_weight="0.0" />
50+
51+
</LinearLayout>
52+
53+
<ImageView
54+
android:src="@android:drawable/divider_horizontal_dark"
55+
android:layout_width="fill_parent"
56+
android:layout_height="wrap_content"
57+
android:scaleType="fitXY"/>
58+
59+
<LinearLayout android:id="@+id/bbControlLayout"
60+
android:orientation="horizontal"
61+
android:layout_width="fill_parent"
62+
android:layout_height="wrap_content"
63+
android:layout_marginLeft="10dip"
64+
android:layout_marginTop="10dip"
65+
android:layout_marginRight="10dip"
66+
android:layout_marginBottom="10dip" >
67+
68+
<TextView android:id="@+id/bbControlText"
69+
android:layout_width="fill_parent"
70+
android:layout_height="fill_parent"
71+
android:layout_weight="1.0"
72+
android:layout_gravity="center_vertical|left"
73+
android:text="@string/effect_control"
74+
style="@android:style/TextAppearance.Medium" />
75+
76+
<ToggleButton android:id="@+id/bassboostOnOff"
77+
android:layout_width="wrap_content"
78+
android:layout_height="fill_parent"
79+
android:layout_gravity="center_vertical|right"
80+
android:layout_weight="0.0" />
81+
82+
</LinearLayout>
83+
84+
<ImageView
85+
android:src="@android:drawable/divider_horizontal_dark"
86+
android:layout_width="fill_parent"
87+
android:layout_height="wrap_content"
88+
android:scaleType="fitXY"/>
89+
90+
<LinearLayout android:id="@+id/SessionFrame"
91+
android:orientation="horizontal"
92+
android:layout_width="fill_parent"
93+
android:layout_height="wrap_content"
94+
android:layout_marginLeft="10dip"
95+
android:layout_marginTop="10dip"
96+
android:layout_marginRight="10dip"
97+
android:layout_marginBottom="10dip" >
98+
99+
<TextView android:id="@+id/sessionText"
100+
android:layout_width="fill_parent"
101+
android:layout_height="fill_parent"
102+
android:layout_weight="0.5"
103+
android:layout_gravity="center_vertical|left"
104+
android:text="@string/session"
105+
style="@android:style/TextAppearance.Medium" />
106+
107+
<EditText android:id="@+id/sessionEdit"
108+
android:layout_width="fill_parent"
109+
android:layout_height="wrap_content"
110+
android:layout_weight="0.5"
111+
android:layout_gravity="center_vertical|right" />
112+
</LinearLayout>
113+
114+
<ImageView
115+
android:src="@android:drawable/divider_horizontal_dark"
116+
android:layout_width="fill_parent"
117+
android:layout_height="wrap_content"
118+
android:scaleType="fitXY"/>
119+
120+
<ScrollView
121+
android:layout_width="fill_parent"
122+
android:layout_height="wrap_content" >
123+
124+
<LinearLayout
125+
android:layout_width="fill_parent"
126+
android:layout_height="wrap_content"
127+
android:orientation="vertical">
128+
129+
<LinearLayout
130+
android:layout_width="fill_parent"
131+
android:layout_height="wrap_content"
132+
android:gravity="center_horizontal"
133+
android:orientation="vertical"
134+
android:layout_marginLeft="10dip"
135+
android:layout_marginTop="10dip"
136+
android:layout_marginRight="10dip"
137+
android:layout_marginBottom="10dip"
138+
>
139+
140+
<TextView android:id="@+id/bbStrengthName"
141+
android:layout_width="fill_parent"
142+
android:layout_height="wrap_content"
143+
android:text="@string/stength_name" />
144+
145+
<LinearLayout android:id="@+id/bbStrengthDesc"
146+
android:orientation="horizontal"
147+
android:layout_width="fill_parent"
148+
android:layout_height="wrap_content"
149+
android:layout_marginLeft="10dip"
150+
android:layout_marginTop="10dip"
151+
android:layout_marginRight="30dip"
152+
android:layout_marginBottom="10dip" >
153+
154+
<TextView android:id="@+id/bbStrengthMin"
155+
android:layout_width="fill_parent"
156+
android:layout_height="fill_parent"
157+
android:layout_weight="1"
158+
android:layout_gravity="left"
159+
android:gravity="left"/>
160+
<TextView android:id="@+id/bbStrengthMax"
161+
android:layout_width="fill_parent"
162+
android:layout_height="fill_parent"
163+
android:layout_weight="1"
164+
android:layout_gravity="right"
165+
android:gravity="right"/>
166+
</LinearLayout>
167+
168+
<SeekBar android:id="@+id/bbStrengthSeekBar"
169+
android:layout_width="fill_parent"
170+
android:layout_height="wrap_content"
171+
android:max="100"
172+
android:progress="50"
173+
android:layout_marginLeft="10dip"
174+
android:layout_marginRight="30dip" />
175+
176+
<TextView android:id="@+id/bbStrengthValue"
177+
android:layout_width="fill_parent"
178+
android:layout_height="wrap_content" />
179+
180+
</LinearLayout>
181+
182+
<ImageView
183+
android:src="@android:drawable/divider_horizontal_dark"
184+
android:layout_width="fill_parent"
185+
android:layout_height="wrap_content"
186+
android:scaleType="fitXY"/>
187+
188+
</LinearLayout>
189+
190+
</ScrollView>
191+
192+
</LinearLayout>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 The Android Open Source Project
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+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18+
android:layout_width="fill_parent"
19+
android:layout_height="fill_parent"
20+
android:orientation="vertical">
21+
22+
<Button android:id="@+id/env_reverb_actvity"
23+
android:layout_width="fill_parent" android:layout_height="wrap_content"
24+
android:text="@string/envreverb_test_name">
25+
</Button>
26+
27+
<Button android:id="@+id/preset_reverb_actvity"
28+
android:layout_width="fill_parent" android:layout_height="wrap_content"
29+
android:text="@string/presetrvb_test_name">
30+
</Button>
31+
32+
<Button android:id="@+id/equalizer_actvity"
33+
android:layout_width="fill_parent" android:layout_height="wrap_content"
34+
android:text="@string/equalizer_test_name">
35+
</Button>
36+
37+
<Button android:id="@+id/virtualizer_actvity"
38+
android:layout_width="fill_parent" android:layout_height="wrap_content"
39+
android:text="@string/virtualizer_test_name">
40+
</Button>
41+
42+
<Button android:id="@+id/bassboost_actvity"
43+
android:layout_width="fill_parent" android:layout_height="wrap_content"
44+
android:text="@string/bassboost_test_name">
45+
</Button>
46+
47+
<Button android:id="@+id/visualizer_actvity"
48+
android:layout_width="fill_parent" android:layout_height="wrap_content"
49+
android:text="@string/visualizer_test_name">
50+
</Button>
51+
52+
<ListView android:id="@+id/effect_list"
53+
android:layout_width="match_parent"
54+
android:layout_height="match_parent"
55+
android:drawSelectorOnTop="false"/>
56+
57+
58+
</LinearLayout>

0 commit comments

Comments
 (0)