am 8deed914: Merge "Handle RIL_UNSOL_RESEND_INCALL_MUTE." into eclair
Merge commit '8deed914c2df15d71674deae591bcd3313093931' into eclair-plus-aosp * commit '8deed914c2df15d71674deae591bcd3313093931': Handle RIL_UNSOL_RESEND_INCALL_MUTE.
This commit is contained in:
@@ -65,6 +65,7 @@ public abstract class BaseCommands implements CommandsInterface {
|
||||
protected RegistrantList mT53ClirInfoRegistrants = new RegistrantList();
|
||||
protected RegistrantList mT53AudCntrlInfoRegistrants = new RegistrantList();
|
||||
protected RegistrantList mRingbackToneRegistrants = new RegistrantList();
|
||||
protected RegistrantList mResendIncallMuteRegistrants = new RegistrantList();
|
||||
|
||||
protected Registrant mSMSRegistrant;
|
||||
protected Registrant mNITZTimeRegistrant;
|
||||
@@ -579,6 +580,15 @@ public abstract class BaseCommands implements CommandsInterface {
|
||||
mRingbackToneRegistrants.remove(h);
|
||||
}
|
||||
|
||||
public void registerForResendIncallMute(Handler h, int what, Object obj) {
|
||||
Registrant r = new Registrant (h, what, obj);
|
||||
mResendIncallMuteRegistrants.add(r);
|
||||
}
|
||||
|
||||
public void unregisterForResendIncallMute(Handler h) {
|
||||
mResendIncallMuteRegistrants.remove(h);
|
||||
}
|
||||
|
||||
//***** Protected Methods
|
||||
/**
|
||||
* Store new RadioState and send notification based on the changes
|
||||
|
||||
@@ -537,6 +537,18 @@ public interface CommandsInterface {
|
||||
void registerForRingbackTone(Handler h, int what, Object obj);
|
||||
void unregisterForRingbackTone(Handler h);
|
||||
|
||||
/**
|
||||
* Registers the handler when mute/unmute need to be resent to get
|
||||
* uplink audio during a call.<p>
|
||||
*
|
||||
* @param h Handler for notification message.
|
||||
* @param what User-defined message code.
|
||||
* @param obj User object.
|
||||
*
|
||||
*/
|
||||
void registerForResendIncallMute(Handler h, int what, Object obj);
|
||||
void unregisterForResendIncallMute(Handler h);
|
||||
|
||||
/**
|
||||
* Supply the ICC PIN to the ICC card
|
||||
*
|
||||
|
||||
@@ -407,6 +407,16 @@ public interface Phone {
|
||||
|
||||
void unregisterForRingbackTone(Handler h);
|
||||
|
||||
/**
|
||||
* Registers the handler to reset the uplink mute state to get
|
||||
* uplink audio.
|
||||
*/
|
||||
void registerForResendIncallMute(Handler h, int what, Object obj);
|
||||
|
||||
/**
|
||||
* Unregisters for resend incall mute notifications.
|
||||
*/
|
||||
void unregisterForResendIncallMute(Handler h);
|
||||
|
||||
/**
|
||||
* Notifies when a voice connection has disconnected, either due to local
|
||||
|
||||
@@ -492,6 +492,16 @@ public abstract class PhoneBase extends Handler implements Phone {
|
||||
mCM.unregisterForRingbackTone(h);
|
||||
}
|
||||
|
||||
// Inherited documentation suffices.
|
||||
public void registerForResendIncallMute(Handler h, int what, Object obj) {
|
||||
mCM.registerForResendIncallMute(h,what,obj);
|
||||
}
|
||||
|
||||
// Inherited documentation suffices.
|
||||
public void unregisterForResendIncallMute(Handler h) {
|
||||
mCM.unregisterForResendIncallMute(h);
|
||||
}
|
||||
|
||||
/**
|
||||
* Subclasses of Phone probably want to replace this with a
|
||||
* version scoped to their packages
|
||||
|
||||
@@ -343,6 +343,14 @@ public class PhoneProxy extends Handler implements Phone {
|
||||
mActivePhone.unregisterForRingbackTone(h);
|
||||
}
|
||||
|
||||
public void registerForResendIncallMute(Handler h, int what, Object obj) {
|
||||
mActivePhone.registerForResendIncallMute(h,what,obj);
|
||||
}
|
||||
|
||||
public void unregisterForResendIncallMute(Handler h) {
|
||||
mActivePhone.unregisterForResendIncallMute(h);
|
||||
}
|
||||
|
||||
public boolean getIccRecordsLoaded() {
|
||||
return mActivePhone.getIccRecordsLoaded();
|
||||
}
|
||||
|
||||
@@ -2323,6 +2323,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
||||
case RIL_UNSOL_CDMA_INFO_REC: ret = responseCdmaInformationRecord(p); break;
|
||||
case RIL_UNSOL_OEM_HOOK_RAW: ret = responseRaw(p); break;
|
||||
case RIL_UNSOL_RINGBACK_TONE: ret = responseInts(p); break;
|
||||
case RIL_UNSOL_RESEND_INCALL_MUTE: ret = responseVoid(p); break;
|
||||
|
||||
default:
|
||||
throw new RuntimeException("Unrecognized unsol response: " + response);
|
||||
@@ -2615,6 +2616,15 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
||||
mRingbackToneRegistrants.notifyRegistrants(
|
||||
new AsyncResult (null, playtone, null));
|
||||
}
|
||||
break;
|
||||
|
||||
case RIL_UNSOL_RESEND_INCALL_MUTE:
|
||||
if (RILJ_LOGD) unsljLogRet(response, ret);
|
||||
|
||||
if (mResendIncallMuteRegistrants != null) {
|
||||
mResendIncallMuteRegistrants.notifyRegistrants(
|
||||
new AsyncResult (null, ret, null));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3251,6 +3261,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
|
||||
case RIL_UNSOL_CDMA_INFO_REC: return "UNSOL_CDMA_INFO_REC";
|
||||
case RIL_UNSOL_OEM_HOOK_RAW: return "UNSOL_OEM_HOOK_RAW";
|
||||
case RIL_UNSOL_RINGBACK_TONE: return "UNSOL_RINGBACK_TONG";
|
||||
case RIL_UNSOL_RESEND_INCALL_MUTE: return "UNSOL_RESEND_INCALL_MUTE";
|
||||
default: return "<unknown reponse>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,4 +259,5 @@ cat include/telephony/ril.h | \
|
||||
int RIL_UNSOL_CDMA_INFO_REC = 1027;
|
||||
int RIL_UNSOL_OEM_HOOK_RAW = 1028;
|
||||
int RIL_UNSOL_RINGBACK_TONE = 1029;
|
||||
int RIL_UNSOL_RESEND_INCALL_MUTE = 1030;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user