Merge "CallQuality is set to empty instead of null"
am: b3f282daa1
Change-Id: I57b228b8d8b2c42c8a23e33d4c1c18a94c838907
This commit is contained in:
@@ -6027,7 +6027,7 @@ package android.telephony {
|
||||
}
|
||||
|
||||
public class PhoneStateListener {
|
||||
method public void onCallAttributesChanged(android.telephony.CallAttributes);
|
||||
method public void onCallAttributesChanged(@NonNull android.telephony.CallAttributes);
|
||||
method public void onCallDisconnectCauseChanged(int, int);
|
||||
method public void onPreciseCallStateChanged(android.telephony.PreciseCallState);
|
||||
method public void onPreciseDataConnectionStateChanged(android.telephony.PreciseDataConnectionState);
|
||||
|
||||
@@ -206,9 +206,10 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
||||
|
||||
private Map<Integer, List<EmergencyNumber>> mEmergencyNumberList;
|
||||
|
||||
private CallQuality mCallQuality;
|
||||
private CallQuality mCallQuality = new CallQuality();
|
||||
|
||||
private CallAttributes mCallAttributes;
|
||||
private CallAttributes mCallAttributes = new CallAttributes(new PreciseCallState(),
|
||||
TelephonyManager.NETWORK_TYPE_UNKNOWN, new CallQuality());
|
||||
|
||||
private int[] mSrvccState;
|
||||
|
||||
|
||||
@@ -92,6 +92,10 @@ public final class CallQuality implements Parcelable {
|
||||
mCodecType = in.readInt();
|
||||
}
|
||||
|
||||
/** @hide **/
|
||||
public CallQuality() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
||||
@@ -701,7 +701,7 @@ public class PhoneStateListener {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public void onCallAttributesChanged(CallAttributes callAttributes) {
|
||||
public void onCallAttributesChanged(@NonNull CallAttributes callAttributes) {
|
||||
// default implementation empty
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user