Searched defs:tone (Results 1 - 6 of 6) sorted by relevance
/packages/apps/Stk/src/com/android/stk/ |
H A D | TonePlayer.java | 33 // Map STK tone ids to the system tone ids. 53 public void play(Tone tone) { argument 54 int toneId = getToneId(tone); 70 private int getToneId(Tone tone) { argument 73 if (tone != null && mToneMap.containsKey(tone)) { 74 toneId = mToneMap.get(tone);
|
/packages/apps/Dialer/java/com/android/incallui/ringtone/ |
H A D | InCallTonePlayer.java | 31 * allows one tone to be played at a time. 58 /** @return {@code true} if a tone is currently playing, {@code false} otherwise. */ 64 * Plays the given tone in a background thread. 66 * @param tone the tone to play. 67 * @throws IllegalStateException if a tone is already playing. 68 * @throws IllegalArgumentException if the tone is invalid. 70 public void play(int tone) { argument 74 final ToneGeneratorInfo info = getToneGeneratorInfo(tone); 85 private ToneGeneratorInfo getToneGeneratorInfo(int tone) { argument 144 public final int tone; field in class:InCallTonePlayer.ToneGeneratorInfo [all...] |
/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
H A D | DialerFragment.java | 296 private void playTone(int tone) { argument 299 Log.w(TAG, "playTone: mToneGenerator == null, tone: " + tone); 303 // Start the new tone (will stop any playing tone) 304 mToneGenerator.startTone(tone, TONE_LENGTH_MS);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | InCallTonePlayer.java | 30 * Play a call-related tone (ringback, busy signal, etc.) through ToneGenerator. To use, create an 31 * instance using InCallTonePlayer.Factory (passing in the TONE_* constant for the tone you want) 32 * and start() it. Implemented on top of {@link Thread} so that the tone plays in its own thread. 56 public InCallTonePlayer createPlayer(int tone) { argument 57 return new InCallTonePlayer(tone, mCallAudioManager, 87 // Buffer time (in msec) to add on to the tone timeout value. Needed mainly when the timeout 88 // value for a tone is exact duration of the tone itself. 91 // The tone state. 108 /** The ID of the tone t [all...] |
/packages/services/Telephony/src/com/android/phone/ |
H A D | EmergencyDialer.java | 102 /** The DTMF tone volume relative to other sounds in the stream */ 249 // a local audio signal, and is not as important as the dtmf tone itself. 255 Log.w(LOG_TAG, "Exception caught while creating local tone generator: " + e); 500 // retrieve the DTMF tone play back setting. 505 // a local audio signal, and is not as important as the dtmf tone itself. 512 Log.w(LOG_TAG, "Exception caught while creating local tone generator: " + e); 603 * Plays the specified tone for TONE_LENGTH_MS milliseconds. 605 * The tone is played locally, using the audio stream for phone calls. 609 * @param tone a tone cod 611 playTone(int tone) argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/ |
H A D | DialpadFragment.java | 118 /** The DTMF tone volume relative to other sounds in the stream */ 606 // a local audio signal, and is not as important as the dtmf tone itself. 615 "Exception caught while creating local tone generator: " + e); 654 // retrieve the DTMF tone play back setting. 704 // Make sure we don't leave this activity with a tone still playing. 816 * When a key is pressed, we start playing DTMF tone, do vibration, and enter the digit 817 * immediately. When a key is released, we stop the tone. Note that the "key press" event will be 1097 /** Plays the specified tone for TONE_LENGTH_MS milliseconds. */ 1098 private void playTone(int tone) { argument 1099 playTone(tone, TONE_LENGTH_M 1115 playTone(int tone, int durationMs) argument [all...] |
Completed in 216 milliseconds