/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
SignalToneUtil.java | 20 import android.media.ToneGenerator; 111 IS95_CONST_IR_SIG_ISDN_NORMAL), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_NORMAL); 115 ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_INTERGROUP); 118 IS95_CONST_IR_SIG_ISDN_SP_PRI), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_SP_PRI); 121 IS95_CONST_IR_SIG_ISDN_PAT_3), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_PAT3); 124 IS95_CONST_IR_SIG_ISDN_PING), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_PING_RING); 127 IS95_CONST_IR_SIG_ISDN_PAT_5), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_PAT5); 130 IS95_CONST_IR_SIG_ISDN_PAT_6), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_PAT6); 133 IS95_CONST_IR_SIG_ISDN_PAT_7), ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_PAT7); 136 IS95_CONST_IR_SIG_ISDN_OFF), ToneGenerator.TONE_CDMA_SIGNAL_OFF) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
TonesAutoTest.java | 23 import android.media.ToneGenerator; 36 ToneGenerator toneGen; 40 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 42 for (type = ToneGenerator.TONE_DTMF_0; type <= ToneGenerator.TONE_DTMF_D; type++) { 60 ToneGenerator toneGen; 64 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 66 for (type = ToneGenerator.TONE_SUP_DIAL; 67 type <= ToneGenerator.TONE_SUP_RINGTONE; type++) { 78 for (type = ToneGenerator.TONE_SUP_INTERCEPT [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ToneGeneratorFacade.java | 20 import android.media.ToneGenerator; 33 private final ToneGenerator mToneGenerator; 37 mToneGenerator = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 49 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_0); 53 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_1); 57 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_2); 61 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_3); 65 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_4); 69 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_5); 73 mToneGenerator.startTone(ToneGenerator.TONE_DTMF_6) [all...] |
/packages/apps/Stk/src/com/android/stk/ |
TonePlayer.java | 22 import android.media.ToneGenerator; 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) [all...] |
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/ |
ToneGeneratorFactory.java | 19 import android.media.ToneGenerator; 22 * Factory used to create {@link ToneGenerator}s. 27 * Creates a new {@link ToneGenerator} to use while in a call. 31 * @return a new ToneGenerator. 33 public ToneGenerator newInCallToneGenerator(int stream, int volume) { 34 return new ToneGenerator(stream, volume);
|
InCallTonePlayer.java | 23 import android.media.ToneGenerator; 50 * {@link ToneGenerator}s. 98 return new ToneGeneratorInfo(ToneGenerator.TONE_SUP_CALL_WAITING, 108 ToneGenerator toneGenerator = null; 111 toneGenerator = mToneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume); 112 toneGenerator.startTone(info.tone); 126 if (toneGenerator != null) { 127 toneGenerator.release();
|
/frameworks/base/core/jni/ |
android_media_ToneGenerator.cpp | 18 #define LOG_TAG "ToneGenerator" 30 #include <media/ToneGenerator.h> 44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, 51 return lpToneGen->startTone((ToneGenerator::tone_type) toneType, durationMs); 57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, 60 ALOGV("ToneGenerator lpToneGen: %p", lpToneGen); 69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz [all...] |
/frameworks/base/media/java/android/media/ |
ToneGenerator.java | 28 public class ToneGenerator 31 /* Values for toneType parameter of ToneGenerator() constructor */ 34 * the enum in ToneGenerator C++ class. */ 45 * @see #ToneGenerator(int, int) 51 * @see #ToneGenerator(int, int) 57 * @see #ToneGenerator(int, int) 63 * @see #ToneGenerator(int, int) 69 * @see #ToneGenerator(int, int) 75 * @see #ToneGenerator(int, int) 81 * @see #ToneGenerator(int, int [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
ToneGeneratorTest.java | 20 import android.media.ToneGenerator; 26 ToneGenerator toneGen = new ToneGenerator(AudioManager.STREAM_RING, 27 ToneGenerator.MAX_VOLUME); 29 toneGen.startTone(ToneGenerator.TONE_PROP_BEEP2);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
InCallTonePlayer.java | 20 import android.media.ToneGenerator; 27 * Play a call-related tone (ringback, busy signal, etc.) through ToneGenerator. To use, create an 131 ToneGenerator toneGenerator = null; 141 final int toneType; // Passed to ToneGenerator.startTone. 142 final int toneVolume; // Passed to the ToneGenerator constructor. 148 toneType = ToneGenerator.TONE_SUP_BUSY; 153 toneType = ToneGenerator.TONE_PROP_PROMPT; 161 toneType = ToneGenerator.TONE_SUP_CALL_WAITING; 166 toneType = ToneGenerator.TONE_CDMA_CALLDROP_LITE [all...] |
DtmfLocalTonePlayer.java | 21 import android.media.ToneGenerator; 39 private ToneGenerator mToneGenerator; 45 * Message codes to be used for creating and deleting ToneGenerator object in the tonegenerator 51 /** Handler running on the tonegenerator thread. */ 78 if (tone != ToneGenerator.TONE_UNKNOWN) { 148 * Posts a message to the tonegenerator-thread handler. Creates the handler if the handler 168 * Creates a new tonegenerator Handler running in its own thread. 173 HandlerThread thread = new HandlerThread("tonegenerator-dtmf"); 184 mToneGenerator = new ToneGenerator( [all...] |
CallAudioManager.java | 21 import android.media.ToneGenerator; 633 case ToneGenerator.TONE_SUP_BUSY: 636 case ToneGenerator.TONE_SUP_CONGESTION: 639 case ToneGenerator.TONE_CDMA_REORDER: 642 case ToneGenerator.TONE_CDMA_ABBR_INTERCEPT: 645 case ToneGenerator.TONE_CDMA_CALLDROP_LITE: 648 case ToneGenerator.TONE_SUP_ERROR: 651 case ToneGenerator.TONE_PROP_PROMPT:
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SignalToneUtilTest.java | 18 import android.media.ToneGenerator; 33 assertEquals(ToneGenerator.TONE_CDMA_LOW_L, audioToneResult); 39 assertEquals(ToneGenerator.TONE_CDMA_DIAL_TONE_LITE, audioToneResult); 47 assertEquals(ToneGenerator.TONE_CDMA_DIAL_TONE_LITE, audioToneResult); 52 assertEquals(ToneGenerator.TONE_CDMA_DIAL_TONE_LITE, audioToneResult);
|
/packages/services/Telephony/src/com/android/phone/ |
CallNotifier.java | 35 import android.media.ToneGenerator; 81 // ToneGenerator instance for playing SignalInfo tones 82 private ToneGenerator mSignalInfoToneGenerator; 156 // Instantiate the ToneGenerator for SignalInfo and CallWaiting 158 // around forever. Need to change it so as to create a ToneGenerator instance only 162 mSignalInfoToneGenerator = new ToneGenerator(AudioManager.STREAM_VOICE_CALL, 281 * during a call, using the ToneGenerator. 339 int toneType = 0; // passed to ToneGenerator.startTone() 340 int toneVolume; // passed to the ToneGenerator constructor 346 toneType = ToneGenerator.TONE_SUP_CALL_WAITING [all...] |
EmergencyDialer.java | 29 import android.media.ToneGenerator; 115 private ToneGenerator mToneGenerator; 235 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); 384 playTone(ToneGenerator.TONE_DTMF_1); 389 playTone(ToneGenerator.TONE_DTMF_2); 394 playTone(ToneGenerator.TONE_DTMF_3); 399 playTone(ToneGenerator.TONE_DTMF_4); 404 playTone(ToneGenerator.TONE_DTMF_5); 409 playTone(ToneGenerator.TONE_DTMF_6); 414 playTone(ToneGenerator.TONE_DTMF_7) [all...] |
/frameworks/av/media/libmedia/ |
ToneGenerator.cpp | 18 #define LOG_TAG "ToneGenerator" 23 #include "media/ToneGenerator.h" 29 // Descriptors for all available tones (See ToneGenerator::ToneDescriptor class declaration for details) 30 const ToneGenerator::ToneDescriptor ToneGenerator::sToneDescriptors[] = { 31 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 941, 0 }, 0, 0}, 33 .repeatCnt = ToneGenerator::TONEGEN_INF, 35 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 697, 0 }, 0, 0 }, 37 .repeatCnt = ToneGenerator::TONEGEN_INF, 39 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 697, 0 }, 0, 0 } [all...] |
Android.mk | 58 ToneGenerator.cpp \
|
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ringtone/ |
InCallTonePlayerTest.java | 20 import android.media.ToneGenerator; 35 @Mock private ToneGenerator mToneGenerator; 108 Mockito.verify(mToneGenerator).startTone(ToneGenerator.TONE_SUP_CALL_WAITING); 130 .startTone(ToneGenerator.TONE_SUP_CALL_WAITING);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
EmergencyTonePlayer.java | 22 import android.media.ToneGenerator; 55 private ToneGenerator mToneGenerator; 103 mToneGenerator = new ToneGenerator( 112 mToneGenerator.startTone(ToneGenerator.TONE_CDMA_EMERGENCY_RINGBACK);
|
DisconnectCauseUtil.java | 20 import android.media.ToneGenerator; 404 return ToneGenerator.TONE_SUP_BUSY; 407 return ToneGenerator.TONE_SUP_CONGESTION; 410 return ToneGenerator.TONE_CDMA_REORDER; 413 return ToneGenerator.TONE_CDMA_ABBR_INTERCEPT; 417 return ToneGenerator.TONE_CDMA_CALLDROP_LITE; 420 return ToneGenerator.TONE_SUP_ERROR; 426 return ToneGenerator.TONE_PROP_PROMPT; 431 return ToneGenerator.TONE_UNKNOWN;
|
/frameworks/av/include/media/ |
ToneGenerator.h | 29 class ToneGenerator { 33 // This enum must be kept consistant with constants in ToneGenerator JAVA class 155 ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava = false); 156 ~ToneGenerator(); 163 // returns the audio session this ToneGenerator belongs to or 0 if an error occured. 169 TONE_IDLE, // ToneGenerator is being initialized or initialization failed 170 TONE_INIT, // ToneGenerator has been successfully initialized and is not playing 171 TONE_STARTING, // ToneGenerator is starting playing 172 TONE_PLAYING, // ToneGenerator is playing 173 TONE_STOPPING, // ToneGenerator is stopin [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
DisconnectCause.java | 21 import android.media.ToneGenerator; 90 this(code, null, null, null, ToneGenerator.TONE_UNKNOWN); 100 this(code, null, null, reason, ToneGenerator.TONE_UNKNOWN); 112 this(code, label, description, reason, ToneGenerator.TONE_UNKNOWN); 122 * @param toneToPlay The tone to play on disconnect, as defined in {@link ToneGenerator}. 182 * @return the tone as defined in {@link ToneGenerator} to play when disconnected.
|
/hardware/libhardware_legacy/audio/ |
AudioPolicyCompatClient.h | 72 virtual status_t startTone(ToneGenerator::tone_type tone, AudioSystem::stream_type stream);
|
AudioPolicyCompatClient.cpp | 129 status_t AudioPolicyCompatClient::startTone(ToneGenerator::tone_type tone,
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
DataObjectUnitTests.java | 25 import android.media.ToneGenerator; 172 ToneGenerator.TONE_CDMA_CALLDROP_LITE); 177 assertEquals(ToneGenerator.TONE_CDMA_CALLDROP_LITE, cause.getTone()); 190 assertEquals(ToneGenerator.TONE_CDMA_CALLDROP_LITE, parcelCause.getTone());
|