summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2009-08-28 11:10:09 -0700
committerWink Saville <wink@google.com>2009-08-28 11:10:09 -0700
commita3659232ba9f7f3ba87ff036d17e08a46cf1be62 (patch)
treef0190c7af32a924fc020d933e1de3bd6ea1ec2d2 /opengl/tests/gl_basic/gl_basic.cpp
parent6d45accc7166c84f94fdb5ca35602463ec4a32a4 (diff)
Fix bug 2040024 phone rings only once sometimes.
The phone only rang once on rings that did't loop. In the GSM phones the vendor ril sends a RIL_UNSOL_CALL_RING event to cause the phone to properly play non-looping ring tones. To reproduce select a non-looping ring tone such as "Digital Phone" and call it from another phone, the phone will only ring once. Three solutions were discussed: *) Have all ring tones loop; rejected because to more space would be taken by the silence. *) Require all vendor RIL's to send RIL_UNSOL_CALL_RING; rejected because it is inefficient to send a notification from the bottom of the stack. *) Modify the PhoneApp or the audio layer; rejected because it would be to big of change. *) Modify the framework; this is the solution accepted. The framework was modified to use two now properties to control the call ring notification. ro.telephony.multiple_call_ring: a boolean that if true the vendor ril is assumed to send multiple RIL_UNSOL_CALL_RING messages. If false only one is assumed and the framework will generate additional events. (The default if absent is true). ro.telephony.call_ring_delay: the delay in milli-seconds between the generated events. (default if absent is 3000) To minimize code duplication this change does some reorganization of the PhoneBase class hierarchy and PhoneBase becomes a handler and implements a default handleMessage method handles events associated with call ring notification. This handler is overridden by derived classes, CDMAPhone and GSMPhone which will pass unknown events to PhoneBase.handleMessage and thus handle call notification for any derived class. Change-Id: I5b147b2b69b647d9987052f16ada41c9b66e4bf1
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions