Merge "CallQuality is set to empty instead of null" am: b3f282daa1

am: aee66949ef

Change-Id: Iee5f05e4cc0efc8c0abbe2c46c7ceedea164bbee
This commit is contained in:
Jordan Liu
2019-01-28 21:28:03 -08:00
committed by android-build-merger
4 changed files with 9 additions and 4 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -92,6 +92,10 @@ public final class CallQuality implements Parcelable {
mCodecType = in.readInt();
}
/** @hide **/
public CallQuality() {
}
/**
* Constructor.
*

View File

@@ -701,7 +701,7 @@ public class PhoneStateListener {
* @hide
*/
@SystemApi
public void onCallAttributesChanged(CallAttributes callAttributes) {
public void onCallAttributesChanged(@NonNull CallAttributes callAttributes) {
// default implementation empty
}