Merge "Hide start and cancel handover from api surface" am: ee4668c5a5 am: 42b6ecf0fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1598495 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I8a4de2f0aae42da567e997982cc655759f88d0f1
This commit is contained in:
@@ -10550,7 +10550,6 @@ package android.telephony.data {
|
||||
|
||||
public abstract class DataService.DataServiceProvider implements java.lang.AutoCloseable {
|
||||
ctor public DataService.DataServiceProvider(int);
|
||||
method public void cancelHandover(int, @NonNull android.telephony.data.DataServiceCallback);
|
||||
method public abstract void close();
|
||||
method public void deactivateDataCall(int, int, @Nullable android.telephony.data.DataServiceCallback);
|
||||
method public final int getSlotIndex();
|
||||
@@ -10561,15 +10560,12 @@ package android.telephony.data {
|
||||
method public void setInitialAttachApn(@NonNull android.telephony.data.DataProfile, boolean, @NonNull android.telephony.data.DataServiceCallback);
|
||||
method public void setupDataCall(int, @NonNull android.telephony.data.DataProfile, boolean, boolean, int, @Nullable android.net.LinkProperties, @NonNull android.telephony.data.DataServiceCallback);
|
||||
method public void setupDataCall(int, @NonNull android.telephony.data.DataProfile, boolean, boolean, int, @Nullable android.net.LinkProperties, @IntRange(from=0, to=15) int, @Nullable android.telephony.data.SliceInfo, @Nullable android.telephony.data.TrafficDescriptor, boolean, @NonNull android.telephony.data.DataServiceCallback);
|
||||
method public void startHandover(int, @NonNull android.telephony.data.DataServiceCallback);
|
||||
}
|
||||
|
||||
public class DataServiceCallback {
|
||||
method public void onApnUnthrottled(@NonNull String);
|
||||
method public void onDataCallListChanged(@NonNull java.util.List<android.telephony.data.DataCallResponse>);
|
||||
method public void onDeactivateDataCallComplete(int);
|
||||
method public void onHandoverCancelled(int);
|
||||
method public void onHandoverStarted(int);
|
||||
method public void onRequestDataCallListComplete(int, @NonNull java.util.List<android.telephony.data.DataCallResponse>);
|
||||
method public void onSetDataProfileComplete(int);
|
||||
method public void onSetInitialAttachApnComplete(int);
|
||||
|
||||
@@ -295,6 +295,8 @@ public abstract class DataService extends Service {
|
||||
*
|
||||
* @param cid The identifier of the data call which is provided in {@link DataCallResponse}
|
||||
* @param callback The result callback for this request.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void startHandover(int cid, @NonNull DataServiceCallback callback) {
|
||||
// The default implementation is to return unsupported.
|
||||
@@ -315,6 +317,8 @@ public abstract class DataService extends Service {
|
||||
*
|
||||
* @param cid The identifier of the data call which is provided in {@link DataCallResponse}
|
||||
* @param callback The result callback for this request.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void cancelHandover(int cid, @NonNull DataServiceCallback callback) {
|
||||
// The default implementation is to return unsupported.
|
||||
|
||||
@@ -191,6 +191,8 @@ public class DataServiceCallback {
|
||||
* Called to indicate result for the request {@link DataService#startHandover}.
|
||||
*
|
||||
* @param result The result code. Must be one of the {@link ResultCode}
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void onHandoverStarted(@ResultCode int result) {
|
||||
if (mCallback != null) {
|
||||
@@ -209,6 +211,8 @@ public class DataServiceCallback {
|
||||
* Called to indicate result for the request {@link DataService#cancelHandover}.
|
||||
*
|
||||
* @param result The result code. Must be one of the {@link ResultCode}
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void onHandoverCancelled(@ResultCode int result) {
|
||||
if (mCallback != null) {
|
||||
|
||||
Reference in New Issue
Block a user