diff options
| author | Marco Nelissen <marcone@google.com> | 2012-09-06 12:37:30 -0700 |
|---|---|---|
| committer | Marco Nelissen <marcone@google.com> | 2012-09-06 12:37:30 -0700 |
| commit | 2e2beaaee2a427598ced5067fc59f3ae9a98cf35 (patch) | |
| tree | ca907fbc12851a3660d271936b5279b7370a7c38 /media/tests/EffectsTest/res | |
| parent | 40e86a56da7a39bc899ca78a69258199c2640420 (diff) | |
| download | frameworks_base-2e2beaaee2a427598ced5067fc59f3ae9a98cf35.zip frameworks_base-2e2beaaee2a427598ced5067fc59f3ae9a98cf35.tar.gz frameworks_base-2e2beaaee2a427598ced5067fc59f3ae9a98cf35.tar.bz2 | |
Audio Effects test app
Change-Id: I93fff0e195af3205207ade32ab31f2a760574c7f
Diffstat (limited to 'media/tests/EffectsTest/res')
| -rwxr-xr-x | media/tests/EffectsTest/res/drawable/icon.png | bin | 0 -> 6094 bytes | |||
| -rwxr-xr-x | media/tests/EffectsTest/res/drawable/stop.png | bin | 0 -> 369 bytes | |||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/bassboosttest.xml | 192 | ||||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/effectstest.xml | 58 | ||||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/envreverbtest.xml | 553 | ||||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/equalizertest.xml | 468 | ||||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/presetreverbtest.xml | 177 | ||||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/virtualizertest.xml | 192 | ||||
| -rwxr-xr-x | media/tests/EffectsTest/res/layout/visualizertest.xml | 261 | ||||
| -rw-r--r-- | media/tests/EffectsTest/res/raw/mp3_sample.mp3 | bin | 0 -> 1436942 bytes | |||
| -rw-r--r-- | media/tests/EffectsTest/res/raw/sine440_mo_16b_16k.wav | bin | 0 -> 320044 bytes | |||
| -rwxr-xr-x | media/tests/EffectsTest/res/values/strings.xml | 38 |
12 files changed, 1939 insertions, 0 deletions
diff --git a/media/tests/EffectsTest/res/drawable/icon.png b/media/tests/EffectsTest/res/drawable/icon.png Binary files differnew file mode 100755 index 0000000..64e3601 --- /dev/null +++ b/media/tests/EffectsTest/res/drawable/icon.png diff --git a/media/tests/EffectsTest/res/drawable/stop.png b/media/tests/EffectsTest/res/drawable/stop.png Binary files differnew file mode 100755 index 0000000..83f012c --- /dev/null +++ b/media/tests/EffectsTest/res/drawable/stop.png diff --git a/media/tests/EffectsTest/res/layout/bassboosttest.xml b/media/tests/EffectsTest/res/layout/bassboosttest.xml new file mode 100755 index 0000000..0888e98 --- /dev/null +++ b/media/tests/EffectsTest/res/layout/bassboosttest.xml @@ -0,0 +1,192 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/bbReleaseLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/bbReleaseText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_release" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/bbReleaseButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/bbControlLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/bbControlText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_control" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/bassboostOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/SessionFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/sessionText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|left" + android:text="@string/session" + style="@android:style/TextAppearance.Medium" /> + + <EditText android:id="@+id/sessionEdit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|right" /> + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/bbStrengthName" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/stength_name" /> + + <LinearLayout android:id="@+id/bbStrengthDesc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="30dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/bbStrengthMin" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" + android:layout_gravity="left" + android:gravity="left"/> + <TextView android:id="@+id/bbStrengthMax" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" + android:layout_gravity="right" + android:gravity="right"/> + </LinearLayout> + + <SeekBar android:id="@+id/bbStrengthSeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/bbStrengthValue" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + </LinearLayout> + + </ScrollView> + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/layout/effectstest.xml b/media/tests/EffectsTest/res/layout/effectstest.xml new file mode 100755 index 0000000..9af4eb6 --- /dev/null +++ b/media/tests/EffectsTest/res/layout/effectstest.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <Button android:id="@+id/env_reverb_actvity" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:text="@string/envreverb_test_name"> + </Button> + + <Button android:id="@+id/preset_reverb_actvity" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:text="@string/presetrvb_test_name"> + </Button> + + <Button android:id="@+id/equalizer_actvity" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:text="@string/equalizer_test_name"> + </Button> + + <Button android:id="@+id/virtualizer_actvity" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:text="@string/virtualizer_test_name"> + </Button> + + <Button android:id="@+id/bassboost_actvity" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:text="@string/bassboost_test_name"> + </Button> + + <Button android:id="@+id/visualizer_actvity" + android:layout_width="fill_parent" android:layout_height="wrap_content" + android:text="@string/visualizer_test_name"> + </Button> + + <ListView android:id="@+id/effect_list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:drawSelectorOnTop="false"/> + + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/layout/envreverbtest.xml b/media/tests/EffectsTest/res/layout/envreverbtest.xml new file mode 100755 index 0000000..01c3240 --- /dev/null +++ b/media/tests/EffectsTest/res/layout/envreverbtest.xml @@ -0,0 +1,553 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/rvbReleaseLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/rvbReleaseText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_release" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/rvbReleaseButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/rvbControlLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/rvbControlText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_control" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/rvbOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/auxFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="3dip" + android:layout_marginTop="3dip" + android:layout_marginRight="3dip" + android:layout_marginBottom="3dip" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_gravity="left" + android:layout_weight="1.0" + android:orientation="vertical" + android:layout_marginLeft="1dip" + android:layout_marginTop="1dip" + android:layout_marginRight="1dip" + android:layout_marginBottom="1dip" + > + + <LinearLayout android:id="@+id/playPauseFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="1dip" + android:layout_marginTop="1dip" + android:layout_marginRight="3dip" + android:layout_marginBottom="1dip" > + + <ImageButton android:id="@+id/stop1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|left" + android:layout_weight="0.0" + android:src="@drawable/stop"/> + + <ImageButton android:id="@+id/playPause1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|center" + android:layout_weight="0.0" + android:src="@android:drawable/ic_media_play"/> + + <ToggleButton android:id="@+id/attachButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" + android:textOff="@string/effect_attach_off" + android:textOn="@string/effect_attach_on" /> + </LinearLayout> + + <TextView android:id="@+id/sessionText" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:layout_gravity="right" + android:layout_weight="1.0" + android:layout_marginLeft="3dip" + android:layout_marginTop="3dip" + android:layout_marginRight="1dip" + android:layout_marginBottom="3dip" + > + + <TextView android:id="@+id/sendLevelText" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/send_level_name" /> + + <SeekBar android:id="@+id/sendLevelSeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/sendLevelValue" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam1Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_1_name" /> + + <SeekBar android:id="@+id/rvbParam1SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam1Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam2Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_2_name" /> + + <SeekBar android:id="@+id/rvbParam2SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam2Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam3Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_3_name" /> + + <SeekBar android:id="@+id/rvbParam3SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam3Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam4Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_4_name" /> + + <SeekBar android:id="@+id/rvbParam4SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam4Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam5Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_5_name" /> + + <SeekBar android:id="@+id/rvbParam5SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam5Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam6Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_6_name" /> + + <SeekBar android:id="@+id/rvbParam6SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam6Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam7Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_7_name" /> + + <SeekBar android:id="@+id/rvbParam7SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam7Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam8Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_8_name" /> + + <SeekBar android:id="@+id/rvbParam8SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam8Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam9Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_9_name" /> + + <SeekBar android:id="@+id/rvbParam9SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam9Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/rvbParam10Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/rvb_param_10_name" /> + + <SeekBar android:id="@+id/rvbParam10SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/rvbParam10Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + </LinearLayout> + + </ScrollView> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/layout/equalizertest.xml b/media/tests/EffectsTest/res/layout/equalizertest.xml new file mode 100755 index 0000000..2223c48 --- /dev/null +++ b/media/tests/EffectsTest/res/layout/equalizertest.xml @@ -0,0 +1,468 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/eqReleaseLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqReleaseText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_release" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/eqReleaseButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/eqControlLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqControlText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_control" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/equalizerOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/SessionFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/sessionText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|left" + android:text="@string/session" + style="@android:style/TextAppearance.Medium" /> + + <EditText android:id="@+id/sessionEdit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|right" /> + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/eqParam1Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/eq_param_1_name" /> + + <LinearLayout android:id="@+id/eqParam1Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqParam1Min" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam1Center" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam1Max" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + </LinearLayout> + + <SeekBar android:id="@+id/eqParam1SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/eqParam1Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/eqParam2Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/eq_param_2_name" /> + + <LinearLayout android:id="@+id/eqParam2Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqParam2Min" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam2Center" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam2Max" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + + </LinearLayout> + + <SeekBar android:id="@+id/eqParam2SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/eqParam2Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/eqParam3Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/eq_param_3_name" /> + + <LinearLayout android:id="@+id/eqParam3Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqParam3Min" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam3Center" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam3Max" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + + </LinearLayout> + + <SeekBar android:id="@+id/eqParam3SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/eqParam3Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/eqParam4Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/eq_param_4_name" /> + + <LinearLayout android:id="@+id/eqParam4Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqParam4Min" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam4Center" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam4Max" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + + </LinearLayout> + + <SeekBar android:id="@+id/eqParam4SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/eqParam4Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/eqParam5Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/eq_param_5_name" /> + + <LinearLayout android:id="@+id/eqParam5Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/eqParam5Min" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam5Center" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/eqParam5Max" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + + </LinearLayout> + + <SeekBar android:id="@+id/eqParam5SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/eqParam5Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/eqParam6Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/eq_param_6_name" /> + + <SeekBar android:id="@+id/eqParam6SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/eqParam6Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + </LinearLayout> + + </ScrollView> + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/layout/presetreverbtest.xml b/media/tests/EffectsTest/res/layout/presetreverbtest.xml new file mode 100755 index 0000000..b648899 --- /dev/null +++ b/media/tests/EffectsTest/res/layout/presetreverbtest.xml @@ -0,0 +1,177 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/presetrvbReleaseLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/presetrvbReleaseText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_release" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/presetrvbReleaseButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/presetrvbControlLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/presetrvbControlText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_control" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/presetrvbOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/SessionFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/sessionText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|left" + android:text="@string/session" + style="@android:style/TextAppearance.Medium" /> + + <EditText android:id="@+id/sessionEdit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|right" /> + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/presetrvbParam1Name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/presetrvb_param_1_name" /> + + <SeekBar android:id="@+id/presetrvbParam1SeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/presetrvbParam1Value" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + </LinearLayout> + + </ScrollView> + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/layout/virtualizertest.xml b/media/tests/EffectsTest/res/layout/virtualizertest.xml new file mode 100755 index 0000000..c9203de --- /dev/null +++ b/media/tests/EffectsTest/res/layout/virtualizertest.xml @@ -0,0 +1,192 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/virtReleaseLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/virtReleaseText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_release" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/virtReleaseButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/virtControlLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/virtControlText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_control" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/virtualizerOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/SessionFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/sessionText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|left" + android:text="@string/session" + style="@android:style/TextAppearance.Medium" /> + + <EditText android:id="@+id/sessionEdit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|right" /> + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/virtStrengthName" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/stength_name" /> + + <LinearLayout android:id="@+id/virtStrengthDesc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="30dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/virtStrengthMin" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" + android:layout_gravity="left" + android:gravity="left"/> + <TextView android:id="@+id/virtStrengthMax" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" + android:layout_gravity="right" + android:gravity="right"/> + </LinearLayout> + + <SeekBar android:id="@+id/virtStrengthSeekBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="50" + android:layout_marginLeft="10dip" + android:layout_marginRight="30dip" /> + + <TextView android:id="@+id/virtStrengthValue" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + </LinearLayout> + + </ScrollView> + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/layout/visualizertest.xml b/media/tests/EffectsTest/res/layout/visualizertest.xml new file mode 100755 index 0000000..8611e8c --- /dev/null +++ b/media/tests/EffectsTest/res/layout/visualizertest.xml @@ -0,0 +1,261 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/visuReleaseLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/visuReleaseText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_release" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/visuReleaseButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/visuControlLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/visuControlText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/effect_control" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/visualizerOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/SessionFrame" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/sessionText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|left" + android:text="@string/session" + style="@android:style/TextAppearance.Medium" /> + + <EditText android:id="@+id/sessionEdit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:layout_gravity="center_vertical|right" /> + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout android:id="@+id/visuCallbackLayout" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/visuCallbackText" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" + android:layout_gravity="center_vertical|left" + android:text="@string/visu_callback" + style="@android:style/TextAppearance.Medium" /> + + <ToggleButton android:id="@+id/visuCallbackOnOff" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="center_vertical|right" + android:layout_weight="0.0" /> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/waveformName" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/waveform_name" /> + + <LinearLayout android:id="@+id/eqParam1Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/waveformMin" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/waveformCenter" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/waveformMax" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + + </LinearLayout> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" + > + + <TextView android:id="@+id/fftName" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/fft_name" /> + + <LinearLayout android:id="@+id/eqParam1Desc" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginTop="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="10dip" > + + <TextView android:id="@+id/fftMin" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/fftCenter" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + <TextView android:id="@+id/fftMax" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1.0" /> + + </LinearLayout> + + </LinearLayout> + + <ImageView + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY"/> + + + </LinearLayout> + + </ScrollView> + +</LinearLayout> diff --git a/media/tests/EffectsTest/res/raw/mp3_sample.mp3 b/media/tests/EffectsTest/res/raw/mp3_sample.mp3 Binary files differnew file mode 100644 index 0000000..a9d8635 --- /dev/null +++ b/media/tests/EffectsTest/res/raw/mp3_sample.mp3 diff --git a/media/tests/EffectsTest/res/raw/sine440_mo_16b_16k.wav b/media/tests/EffectsTest/res/raw/sine440_mo_16b_16k.wav Binary files differnew file mode 100644 index 0000000..2538b4d6 --- /dev/null +++ b/media/tests/EffectsTest/res/raw/sine440_mo_16b_16k.wav diff --git a/media/tests/EffectsTest/res/values/strings.xml b/media/tests/EffectsTest/res/values/strings.xml new file mode 100755 index 0000000..2a85184 --- /dev/null +++ b/media/tests/EffectsTest/res/values/strings.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="app_name">Effects Test</string> + <string name="effect_control">Effect State</string> + <string name="effect_release">Effect Instantiated</string> + <string name="effect_bypass">Bypass</string> + <string name="envreverb_test_name">Environmental Reverb Test</string> + <string name="rvb_param_1_name">Room Level</string> + <string name="rvb_param_2_name">Room HF Level</string> + <string name="rvb_param_3_name">Decay Time</string> + <string name="rvb_param_4_name">Decay HF Ratio</string> + <string name="rvb_param_5_name">Reflections Level</string> + <string name="rvb_param_6_name">Reflections Delay</string> + <string name="rvb_param_7_name">Reverb Level</string> + <string name="rvb_param_8_name">Reverb Delay</string> + <string name="rvb_param_9_name">Diffusion</string> + <string name="rvb_param_10_name">Density</string> + <string name="presetrvb_test_name">Preset Reverb Test</string> + <string name="presetrvb_param_1_name">Presets</string> + <string name="equalizer_test_name">Equalizer Test</string> + <string name="session">Audio Session</string> + <string name="eq_param_1_name">Band 1 Level</string> + <string name="eq_param_2_name">Band 2 Level</string> + <string name="eq_param_3_name">Band 3 Level</string> + <string name="eq_param_4_name">Band 4 Level</string> + <string name="eq_param_5_name">Band 5 Level</string> + <string name="eq_param_6_name">Presets</string> + <string name="virtualizer_test_name">Virtualizer Test</string> + <string name="stength_name">Strength</string> + <string name="bassboost_test_name">Bass Boost Test</string> + <string name="visualizer_test_name">Visualizer Test</string> + <string name="visu_callback">Callback Mode</string> + <string name="waveform_name">PCM capture</string> + <string name="fft_name">FFT Capture</string> + <string name="effect_attach_off">Attach</string> + <string name="effect_attach_on">Detach</string> + <string name="send_level_name">Send Level</string> +</resources> |
