Hi all,

I'm experiencing a hard to reproduce bug on a CyanogenMod9 port on my
phone. I have a hunch that it has something to do with the
ToneGenerator[1] class; basically in a very rare circumstance the
phone will play an additional ringing tone on top of my normal ring
tone sometimes even when the phone is silenced. It sounds like a
handful of pure tones which is why I suspect this class (also there
were suspicious things in the logcat that pointed to ToneGenerator but
they might have been red herrings). The particulars don't really
matter, right now I'm just curious how to actually test the
ToneGenerator in an application. Basically I want to try generating
all the tones to see if any of them match the tone that I'm hearing
(this is a very roundabout way of debugging the problem I'm facing,
but like I said I'm just curious now). I found the built in test in
android_frameworks_base called TonesAutoTest[2] but I have no idea how
I can take this and run it on my device. Any pointers in any direction
would be appreciated. Also, if this is not the appropriate mailing
list, I would appreciate being steered in the right direction. I
realize my source link is to CyanogenMod but that's only because it's
convenient to link to a github source page and I'm used to looking at
their repos. Thanks!

-Ibrahim Awwal

[1] http://developer.android.com/reference/android/media/ToneGenerator.html

[2]
https://github.com/CyanogenMod/android_frameworks_base/blob/ics/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/TonesAutoTest.java

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to