Improve javadoc for CALL_TYPE_NONE & CallState

Bug: 261497090
Test: system build
Change-Id: I59e9b040cea3bc52db7f7c15c5a5c2349535d3d7
This commit is contained in:
Sewook Seo
2023-02-02 21:53:18 +00:00
parent 1c66e1f6f8
commit f383c32858
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;
/**