Searched defs:toneType (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_media_ToneGenerator.cpp41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument
51 return lpToneGen->startTone((ToneGenerator::tone_type) toneType, durationMs);
/frameworks/av/media/libmedia/
H A DToneGenerator.cpp888 // toneType: Type of tone generated (values in enum tone_type)
897 bool ToneGenerator::startTone(tone_type toneType, int durationMs) { argument
901 if ((toneType < 0) || (toneType >= NUM_TONES))
904 toneType = getToneForRegion(toneType);
905 if (toneType == TONE_CDMA_SIGNAL_OFF) {
921 mpNewToneDesc = &sToneDescriptors[toneType];
1487 ToneGenerator::tone_type ToneGenerator::getToneForRegion(tone_type toneType) { argument
1490 if (mRegion == CEPT || toneType < FIRST_SUP_TON
[all...]
/frameworks/base/media/java/android/media/
H A DToneGenerator.java31 /* Values for toneType parameter of ToneGenerator() constructor */
753 * @param toneType The type of tone generated chosen from the following list:
855 public boolean startTone(int toneType) { argument
856 return startTone(toneType, -1);
861 * @param toneType The type of tone generated @see {@link #startTone(int)}.
866 public native boolean startTone(int toneType, int durationMs); argument

Completed in 158 milliseconds