Merge "Improve javadoc for CALL_TYPE_NONE & CallState"

This commit is contained in:
Sewook Seo
2023-02-05 20:59:12 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 4 deletions

View File

@@ -285,12 +285,12 @@ public final class CallState implements Parcelable {
/**
* Builder of {@link CallState}
*
* <p>The example below shows how you might create a new {@code CallState}:
* <p>The example below shows how you might create a new {@code CallState}. A precise call state
* {@link PreciseCallStates} is mandatory to build a CallState.
*
* <pre><code>
*
* CallState = new CallState.Builder()
* .setCallState(3)
* CallState = new CallState.Builder({@link PreciseCallStates})
* .setNetworkType({@link TelephonyManager#NETWORK_TYPE_LTE})
* .setCallQuality({@link CallQuality})
* .setImsCallSessionId({@link String})

View File

@@ -27,6 +27,7 @@ import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.telecom.VideoProfile;
import android.telephony.CallState;
import android.telephony.emergency.EmergencyNumber;
import android.telephony.emergency.EmergencyNumber.EmergencyCallRouting;
import android.telephony.emergency.EmergencyNumber.EmergencyServiceCategories;
@@ -78,7 +79,9 @@ public final class ImsCallProfile implements Parcelable {
public static final int SERVICE_TYPE_EMERGENCY = 2;
/**
* Call type none
* This value is returned if there is no valid IMS call type defined for the call. For example,
* if an ongoing call is circuit-switched and {@link CallState#getImsCallType()} is called, this
* value will be returned.
*/
public static final int CALL_TYPE_NONE = 0;
/**