2 * Copyright (C) 2008 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.mediaframeworktest.functional;
19 // import android.content.Resources;
20 import com.android.mediaframeworktest.MediaFrameworkTest;
22 import android.content.Context;
23 import android.test.ActivityInstrumentationTestCase;
24 import android.test.suitebuilder.annotation.LargeTest;
27 * Junit / Instrumentation test case for the SIM tone generator
30 public class SimTonesTest extends ActivityInstrumentationTestCase<MediaFrameworkTest> {
31 private String TAG = "SimTonesTest";
35 public SimTonesTest() {
36 super("com.android.mediaframeworktest", MediaFrameworkTest.class);
39 protected void setUp() throws Exception {
44 public void testDtmfTones() throws Exception {
45 boolean result = TonesAutoTest.tonesDtmfTest();
46 assertTrue("DTMF Tones", result);
50 public void testSupervisoryTones() throws Exception {
51 boolean result = TonesAutoTest.tonesSupervisoryTest();
52 assertTrue("Supervisory Tones", result);
56 public void testProprietaryTones() throws Exception {
57 boolean result = TonesAutoTest.tonesProprietaryTest();
58 assertTrue("Proprietary Tones", result);
62 public void testSimultaneousTones() throws Exception {
63 boolean result = TonesAutoTest.tonesSimultaneousTest();
64 assertTrue("Simultaneous Tones", result);
68 public void testStressTones() throws Exception {
69 boolean result = TonesAutoTest.tonesStressTest();
70 assertTrue("Stress Tones", result);