diff options
| author | 2022-03-16 01:01:34 +0000 | |
|---|---|---|
| committer | 2022-03-16 01:01:34 +0000 | |
| commit | 04c1004ef414d94ed2a964a29a7923271a2fd2eb (patch) | |
| tree | 008fcb218a53ea2c163320e913183373e22f70a7 | |
| parent | b5a5e6ce750369ebcc27bccc5c7f2245aad52de5 (diff) | |
| parent | 10f49a107298ba7fc71844b0d01ea547499aadbe (diff) | |
Merge "API review: Additional documentation & annotation"
| -rw-r--r-- | telephony/java/android/telephony/data/DataService.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/data/DataService.java b/telephony/java/android/telephony/data/DataService.java index 892eb2937491..bd346d516a1d 100644 --- a/telephony/java/android/telephony/data/DataService.java +++ b/telephony/java/android/telephony/data/DataService.java @@ -31,6 +31,7 @@ import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.RemoteException; +import android.telephony.AccessNetworkConstants.RadioAccessNetworkType; import android.util.Log; import android.util.SparseArray; @@ -166,7 +167,8 @@ public abstract class DataService extends Service { * link properties of the existing data connection, otherwise null. * @param callback The result callback for this request. */ - public void setupDataCall(int accessNetworkType, @NonNull DataProfile dataProfile, + public void setupDataCall( + @RadioAccessNetworkType int accessNetworkType, @NonNull DataProfile dataProfile, boolean isRoaming, boolean allowRoaming, @SetupDataReason int reason, @Nullable LinkProperties linkProperties, @NonNull DataServiceCallback callback) { @@ -214,7 +216,8 @@ public abstract class DataService extends Service { * for example, a zero-rating slice. * @param callback The result callback for this request. */ - public void setupDataCall(int accessNetworkType, @NonNull DataProfile dataProfile, + public void setupDataCall( + @RadioAccessNetworkType int accessNetworkType, @NonNull DataProfile dataProfile, boolean isRoaming, boolean allowRoaming, @SetupDataReason int reason, @Nullable LinkProperties linkProperties, @@ -294,6 +297,9 @@ public abstract class DataService extends Service { * with reason {@link DataService.REQUEST_REASON_HANDOVER}. The target transport now owns * the transferred resources and is responsible for releasing them. * + * <p/> + * Note that the callback will be executed on binder thread. + * * @param cid The identifier of the data call which is provided in {@link DataCallResponse} * @param callback The result callback for this request. * @@ -322,6 +328,9 @@ public abstract class DataService extends Service { * </li> * </ul> * + * <p/> + * Note that the callback will be executed on binder thread. + * * @param cid The identifier of the data call which is provided in {@link DataCallResponse} * @param callback The result callback for this request. * |