Home | History | Annotate | Download | only in stk

Lines Matching refs:tone

23 import com.android.internal.telephony.cat.Tone;
30 private static final HashMap<Tone, Integer> mToneMap = new HashMap<Tone, Integer>();
33 // Map STK tone ids to the system tone ids.
34 mToneMap.put(Tone.DIAL, ToneGenerator.TONE_SUP_DIAL);
35 mToneMap.put(Tone.BUSY, ToneGenerator.TONE_SUP_BUSY);
36 mToneMap.put(Tone.CONGESTION, ToneGenerator.TONE_SUP_CONGESTION);
37 mToneMap.put(Tone.RADIO_PATH_ACK, ToneGenerator.TONE_SUP_RADIO_ACK);
38 mToneMap.put(Tone.RADIO_PATH_NOT_AVAILABLE, ToneGenerator.TONE_SUP_RADIO_NOTAVAIL);
39 mToneMap.put(Tone.ERROR_SPECIAL_INFO, ToneGenerator.TONE_SUP_ERROR);
40 mToneMap.put(Tone.CALL_WAITING, ToneGenerator.TONE_SUP_CALL_WAITING);
41 mToneMap.put(Tone.RINGING, ToneGenerator.TONE_SUP_RINGTONE);
42 mToneMap.put(Tone.GENERAL_BEEP, ToneGenerator.TONE_PROP_BEEP);
43 mToneMap.put(Tone.POSITIVE_ACK, ToneGenerator.TONE_PROP_ACK);
44 mToneMap.put(Tone.NEGATIVE_ACK, ToneGenerator.TONE_PROP_NACK);
53 public void play(Tone tone) {
54 int toneId = getToneId(tone);
70 private int getToneId(Tone tone) {
73 if (tone != null && mToneMap.containsKey(tone)) {
74 toneId = mToneMap.get(tone);