Searched refs:ToneGenerator (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DTonesAutoTest.java23 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
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DSignalToneUtil.java20 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
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_ToneGenerator.cpp18 #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 *)en
[all...]
/frameworks/av/media/libmedia/
H A DToneGenerator.cpp18 #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
797 ToneGenerator::ToneGenerator(audio_stream_type_t streamType, float volume, bool threadCanCallJava) { function in class:android::ToneGenerator
[all...]
H A DAndroid.mk52 ToneGenerator.cpp \
/frameworks/base/telecomm/java/android/telecom/
H A DDisconnectCause.java21 import android.media.ToneGenerator;
79 this(code, null, null, null, ToneGenerator.TONE_UNKNOWN);
89 this(code, null, null, reason, ToneGenerator.TONE_UNKNOWN);
101 this(code, label, description, reason, ToneGenerator.TONE_UNKNOWN);
111 * @param toneToPlay The tone to play on disconnect, as defined in {@link ToneGenerator}.
171 * @return the tone as defined in {@link ToneGenerator} to play when disconnected.
/frameworks/base/media/java/android/media/
H A DToneGenerator.java28 public class ToneGenerator class
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(in
745 public ToneGenerator(int streamType, int volume) { method in class:ToneGenerator
[all...]
/frameworks/av/include/media/
H A DToneGenerator.h29 class ToneGenerator { class in namespace:android
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 i
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyService.h31 #include <media/ToneGenerator.h>
272 void startToneCommand(ToneGenerator::tone_type type,
330 ToneGenerator::tone_type mType; // tone type (START_TONE only)
391 ToneGenerator *mpToneGenerator; // the tone generator
H A DAudioPolicyService.cpp447 mpToneGenerator = new ToneGenerator(data->mStream, 1.0);
650 void AudioPolicyService::AudioCommandThread::startToneCommand(ToneGenerator::tone_type type,
1055 mTonePlaybackThread->startToneCommand(ToneGenerator::TONE_SUP_CALL_WAITING,

Completed in 300 milliseconds