mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:09:42 +00:00
Merge "add slicingConfigChanged api"
This commit is contained in:
@@ -38,4 +38,5 @@ interface IRadioDataIndication {
|
|||||||
oneway void keepaliveStatus(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.KeepaliveStatus status);
|
oneway void keepaliveStatus(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.KeepaliveStatus status);
|
||||||
oneway void pcoData(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.PcoDataInfo pco);
|
oneway void pcoData(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.PcoDataInfo pco);
|
||||||
oneway void unthrottleApn(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.DataProfileInfo dataProfileInfo);
|
oneway void unthrottleApn(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.DataProfileInfo dataProfileInfo);
|
||||||
|
oneway void slicingConfigChanged(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.data.SlicingConfig slicingConfig);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import android.hardware.radio.data.DataProfileInfo;
|
|||||||
import android.hardware.radio.data.KeepaliveStatus;
|
import android.hardware.radio.data.KeepaliveStatus;
|
||||||
import android.hardware.radio.data.PcoDataInfo;
|
import android.hardware.radio.data.PcoDataInfo;
|
||||||
import android.hardware.radio.data.SetupDataCallResult;
|
import android.hardware.radio.data.SetupDataCallResult;
|
||||||
|
import android.hardware.radio.data.SlicingConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface declaring unsolicited radio indications for data APIs.
|
* Interface declaring unsolicited radio indications for data APIs.
|
||||||
@@ -72,4 +73,17 @@ oneway interface IRadioDataIndication {
|
|||||||
* @param dataProfileInfo Data profile info.
|
* @param dataProfileInfo Data profile info.
|
||||||
*/
|
*/
|
||||||
void unthrottleApn(in RadioIndicationType type, in DataProfileInfo dataProfileInfo);
|
void unthrottleApn(in RadioIndicationType type, in DataProfileInfo dataProfileInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates the current slicing configuration including URSP rules and NSSAIs
|
||||||
|
* (configured, allowed and rejected). URSP stands for UE route selection policy and is defined
|
||||||
|
* in 3GPP TS 24.526 Section 4.2. An NSSAI is a collection of network slices. Each network slice
|
||||||
|
* is identified by an S-NSSAI and is represented by the struct SliceInfo. NSSAI and S-NSSAI
|
||||||
|
* are defined in 3GPP TS 24.501.
|
||||||
|
*
|
||||||
|
* @param type Type of radio indication
|
||||||
|
* @param slicingConfig Current slicing configuration
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void slicingConfigChanged(in RadioIndicationType type, in SlicingConfig slicingConfig);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,4 +85,11 @@ Return<void> RadioIndication::unthrottleApn(V1_0::RadioIndicationType type,
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Return<void> RadioIndication::slicingConfigChanged(V1_0::RadioIndicationType type,
|
||||||
|
const V1_6::SlicingConfig& slicingConfig) {
|
||||||
|
LOG_CALL << type;
|
||||||
|
dataCb()->slicingConfigChanged(toAidl(type), toAidl(slicingConfig));
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace android::hardware::radio::compat
|
} // namespace android::hardware::radio::compat
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ class RadioIndication : public V1_6::IRadioIndication {
|
|||||||
V1_0::RadioIndicationType type,
|
V1_0::RadioIndicationType type,
|
||||||
const hidl_vec<V1_6::SetupDataCallResult>& dcList) override;
|
const hidl_vec<V1_6::SetupDataCallResult>& dcList) override;
|
||||||
Return<void> unthrottleApn(V1_0::RadioIndicationType type, const hidl_string& apn) override;
|
Return<void> unthrottleApn(V1_0::RadioIndicationType type, const hidl_string& apn) override;
|
||||||
|
Return<void> slicingConfigChanged(V1_0::RadioIndicationType type,
|
||||||
|
const V1_6::SlicingConfig& slicingConfig);
|
||||||
Return<void> currentLinkCapacityEstimate_1_6(V1_0::RadioIndicationType type,
|
Return<void> currentLinkCapacityEstimate_1_6(V1_0::RadioIndicationType type,
|
||||||
const V1_6::LinkCapacityEstimate& lce) override;
|
const V1_6::LinkCapacityEstimate& lce) override;
|
||||||
Return<void> currentSignalStrength_1_6(V1_0::RadioIndicationType type,
|
Return<void> currentSignalStrength_1_6(V1_0::RadioIndicationType type,
|
||||||
|
|||||||
@@ -37,3 +37,8 @@ ndk::ScopedAStatus RadioDataIndication::unthrottleApn(RadioIndicationType /*type
|
|||||||
const DataProfileInfo& /*dataProfileInfo*/) {
|
const DataProfileInfo& /*dataProfileInfo*/) {
|
||||||
return ndk::ScopedAStatus::ok();
|
return ndk::ScopedAStatus::ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ndk::ScopedAStatus RadioDataIndication::slicingConfigChanged(
|
||||||
|
RadioIndicationType /*type*/, const SlicingConfig& /*slicingConfig*/) {
|
||||||
|
return ndk::ScopedAStatus::ok();
|
||||||
|
}
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ class RadioDataIndication : public BnRadioDataIndication {
|
|||||||
|
|
||||||
virtual ndk::ScopedAStatus unthrottleApn(RadioIndicationType type,
|
virtual ndk::ScopedAStatus unthrottleApn(RadioIndicationType type,
|
||||||
const DataProfileInfo& dataProfile) override;
|
const DataProfileInfo& dataProfile) override;
|
||||||
|
virtual ndk::ScopedAStatus slicingConfigChanged(RadioIndicationType type,
|
||||||
|
const SlicingConfig& slicingConfig) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
// The main test class for Radio AIDL Data.
|
// The main test class for Radio AIDL Data.
|
||||||
|
|||||||
Reference in New Issue
Block a user