Home
last modified time | relevance | path

Searched refs:QosPolicyParams (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DQosPolicyParamsTest.java40 private static final int TEST_DIRECTION = QosPolicyParams.DIRECTION_DOWNLINK;
41 private static final int TEST_IP_VERSION = QosPolicyParams.IP_VERSION_4;
43 private static final int TEST_USER_PRIORITY = QosPolicyParams.USER_PRIORITY_VIDEO_LOW;
45 private static final int TEST_PROTOCOL = QosPolicyParams.PROTOCOL_TCP;
80 private QosPolicyParams createTestQosPolicyParams() { in createTestQosPolicyParams()
81 QosPolicyParams.Builder builder = in createTestQosPolicyParams()
82 new QosPolicyParams.Builder(TEST_POLICY_ID, TEST_DIRECTION) in createTestQosPolicyParams()
100 private void verifyTestQosPolicyParams(QosPolicyParams params) { in verifyTestQosPolicyParams()
122 QosPolicyParams params = in testDefaultParamsSet()
123 new QosPolicyParams.Builder(TEST_POLICY_ID, QosPolicyParams.DIRECTION_DOWNLINK) in testDefaultParamsSet()
[all …]
DWifiManagerTest.java4041 final int direction = QosPolicyParams.DIRECTION_DOWNLINK; in testAddQosPolicies()
4042 final int userPriority = QosPolicyParams.USER_PRIORITY_VIDEO_LOW; in testAddQosPolicies()
4043 final int ipVersion = QosPolicyParams.IP_VERSION_4; in testAddQosPolicies()
4044 QosPolicyParams policyParams = new QosPolicyParams.Builder(policyId, direction) in testAddQosPolicies()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DApplicationQosPolicyTrackingTableTest.java27 import android.net.wifi.QosPolicyParams;
53 private List<QosPolicyParams> generatePolicyList(int size, int policyIdStart) { in generatePolicyList()
54 List<QosPolicyParams> policyList = new ArrayList<>(); in generatePolicyList()
56 policyList.add(new QosPolicyParams.Builder( in generatePolicyList()
57 policyIdStart + i, QosPolicyParams.DIRECTION_DOWNLINK) in generatePolicyList()
58 .setUserPriority(QosPolicyParams.USER_PRIORITY_BACKGROUND_LOW) in generatePolicyList()
59 .setIpVersion(QosPolicyParams.IP_VERSION_4) in generatePolicyList()
65 private List<QosPolicyParams> generateUplinkPolicyList(int size, int policyIdStart) { in generateUplinkPolicyList()
69 List<QosPolicyParams> policyList = new ArrayList<>(); in generateUplinkPolicyList()
71 policyList.add(new QosPolicyParams.Builder( in generateUplinkPolicyList()
[all …]
DApplicationQosPolicyRequestHandlerTest.java38 import android.net.wifi.QosPolicyParams;
80 @Captor ArgumentCaptor<List<QosPolicyParams>> mPolicyListCaptor;
116 private QosPolicyParams createDownlinkPolicy(int policyId) { in createDownlinkPolicy()
117 return new QosPolicyParams.Builder(policyId, QosPolicyParams.DIRECTION_DOWNLINK) in createDownlinkPolicy()
118 .setUserPriority(QosPolicyParams.USER_PRIORITY_BACKGROUND_LOW) in createDownlinkPolicy()
119 .setIpVersion(QosPolicyParams.IP_VERSION_4) in createDownlinkPolicy()
123 private QosPolicyParams createUplinkPolicy(int policyId) { in createUplinkPolicy()
126 return new QosPolicyParams.Builder(policyId, QosPolicyParams.DIRECTION_UPLINK) in createUplinkPolicy()
131 private List<QosPolicyParams> createDownlinkPolicyList(int size, int basePolicyId) { in createDownlinkPolicyList()
132 List<QosPolicyParams> policies = new ArrayList<>(); in createDownlinkPolicyList()
[all …]
DSupplicantStaIfaceHalAidlImplTest.java110 import android.net.wifi.QosPolicyParams;
2536 QosPolicyParams frameworkPolicy = new QosPolicyParams.Builder( in testFrameworkToHalQosPolicyScsData()
2537 5 /* policyId */, QosPolicyParams.DIRECTION_DOWNLINK) in testFrameworkToHalQosPolicyScsData()
2541 .setUserPriority(QosPolicyParams.USER_PRIORITY_BACKGROUND_HIGH) in testFrameworkToHalQosPolicyScsData()
2542 .setIpVersion(QosPolicyParams.IP_VERSION_4) in testFrameworkToHalQosPolicyScsData()
2544 .setProtocol(QosPolicyParams.PROTOCOL_TCP) in testFrameworkToHalQosPolicyScsData()
2571 QosPolicyParams frameworkPolicy = new QosPolicyParams.Builder( in testFrameworkToHalQosPolicyScsDataWithCharacteristics()
2572 5 /* policyId */, QosPolicyParams.DIRECTION_UPLINK) in testFrameworkToHalQosPolicyScsDataWithCharacteristics()
2736 private void compareQosPolicyParamsToHal(QosPolicyParams frameworkPolicy, in compareQosPolicyParamsToHal()
2764 if (frameworkPolicy.getProtocol() != QosPolicyParams.PROTOCOL_ANY) { in compareQosPolicyParamsToHal()
[all …]
DWifiServiceImplTest.java188 import android.net.wifi.QosPolicyParams;
11820 private List<QosPolicyParams> createDownlinkQosPolicyParamsList(int size, boolean uniqueIds) { in createDownlinkQosPolicyParamsList()
11821 List<QosPolicyParams> policyParamsList = new ArrayList<>(); in createDownlinkQosPolicyParamsList()
11824 policyParamsList.add(new QosPolicyParams.Builder( in createDownlinkQosPolicyParamsList()
11825 policyId, QosPolicyParams.DIRECTION_DOWNLINK) in createDownlinkQosPolicyParamsList()
11826 .setUserPriority(QosPolicyParams.USER_PRIORITY_VIDEO_LOW) in createDownlinkQosPolicyParamsList()
11827 .setIpVersion(QosPolicyParams.IP_VERSION_4) in createDownlinkQosPolicyParamsList()
11833 private static List<QosPolicyParams> createUplinkQosPolicyParamsList(int size) { in createUplinkQosPolicyParamsList()
11834 List<QosPolicyParams> policyParamsList = new ArrayList<>(); in createUplinkQosPolicyParamsList()
11840 policyParamsList.add(new QosPolicyParams.Builder( in createUplinkQosPolicyParamsList()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DApplicationQosPolicyTrackingTable.java19 import android.net.wifi.QosPolicyParams;
41 private Map<Long, QosPolicyParams> mPolicyHashToPolicyMap = new HashMap<>();
93 public List<Integer> addPolicies(List<QosPolicyParams> policies, int uid) { in addPolicies()
103 QosPolicyParams policy = policies.get(i); in addPolicies()
134 QosPolicyParams policy = mPolicyHashToPolicyMap.get(policyHash); in removePolicies()
155 public List<QosPolicyParams> filterUntrackedPolicies( in filterUntrackedPolicies()
156 List<QosPolicyParams> policyList, int uid) { in filterUntrackedPolicies()
157 List<QosPolicyParams> trackedPolicies = new ArrayList<>(); in filterUntrackedPolicies()
158 for (QosPolicyParams policy : policyList) { in filterUntrackedPolicies()
181 QosPolicyParams policy = mPolicyHashToPolicyMap.get(policyHash); in translatePolicyIds()
[all …]
DApplicationQosPolicyRequestHandler.java24 import android.net.wifi.QosPolicyParams;
92 public final @Nullable List<QosPolicyParams> policiesToAdd;
104 @Nullable List<QosPolicyParams> inPoliciesToAdd, in QueuedRequest()
309 public void queueAddRequest(@NonNull List<QosPolicyParams> policies, in queueAddRequest()
361 List<QosPolicyParams> policiesWithoutQosChars = in queueAllPoliciesOnIface()
363 List<QosPolicyParams> policiesWithQosChars = SdkLevel.isAtLeastV() && apSupportsQosChars in queueAllPoliciesOnIface()
375 List<List<QosPolicyParams>> batches = new ArrayList<>(); in queueAllPoliciesOnIface()
384 for (List<QosPolicyParams> batch : batches) { in queueAllPoliciesOnIface()
411 List<QosPolicyParams> acceptedPolicies = in queueRequestOnAllIfaces()
512 private List<QosPolicyParams> filterPoliciesByStatusList(List<QosPolicyParams> policyList, in filterPoliciesByStatusList()
[all …]
DISupplicantStaIfaceHal.java23 import android.net.wifi.QosPolicyParams;
776 @NonNull String ifaceName, @NonNull List<QosPolicyParams> policies) { in addQosPolicyRequestForScs()
DSupplicantStaIfaceHalAidlImpl.java84 import android.net.wifi.QosPolicyParams;
2944 @QosPolicyParams.Direction int frameworkDirection) { in frameworkToHalPolicyDirection()
2946 case QosPolicyParams.DIRECTION_UPLINK: in frameworkToHalPolicyDirection()
2948 case QosPolicyParams.DIRECTION_DOWNLINK: in frameworkToHalPolicyDirection()
3014 protected QosPolicyScsData frameworkToHalQosPolicyScsData(QosPolicyParams params) { in frameworkToHalQosPolicyScsData()
3026 classifierParams.ipVersion = params.getIpVersion() == QosPolicyParams.IP_VERSION_4 in frameworkToHalQosPolicyScsData()
3046 if (params.getProtocol() != QosPolicyParams.PROTOCOL_ANY) { in frameworkToHalQosPolicyScsData()
3050 if (params.getDscp() != QosPolicyParams.DSCP_ANY) { in frameworkToHalQosPolicyScsData()
3072 List<QosPolicyParams> frameworkPolicies) { in frameworkToHalQosPolicyScsDataList()
3075 for (QosPolicyParams policy : frameworkPolicies) { in frameworkToHalQosPolicyScsDataList()
[all …]
DSupplicantStaIfaceHal.java23 import android.net.wifi.QosPolicyParams;
2301 @NonNull String ifaceName, @NonNull List<QosPolicyParams> policies) { in addQosPolicyRequestForScs()
DWifiServiceImpl.java139 import android.net.wifi.QosPolicyParams;
7958 private boolean policyIdsAreUnique(List<QosPolicyParams> policies) {
7960 for (QosPolicyParams policy : policies) {
7974 private boolean policiesHaveSameDirection(List<QosPolicyParams> policyList) {
7976 for (QosPolicyParams policy : policyList) {
7985 List<QosPolicyParams> policyParamsList, IListListener listener) {
7988 for (QosPolicyParams policy : policyParamsList) {
8002 public void addQosPolicies(@NonNull List<QosPolicyParams> policyParamsList,
8034 && policyParamsList.get(0).getDirection() == QosPolicyParams.DIRECTION_UPLINK) {
DWifiNative.java41 import android.net.wifi.QosPolicyParams;
5072 @NonNull String ifaceName, @NonNull List<QosPolicyParams> policies) {
/packages/modules/Wifi/framework/java/android/net/wifi/
DQosPolicyParams.java49 public final class QosPolicyParams implements Parcelable { class
242 private QosPolicyParams(int policyId, int dscp, @UserPriority int userPriority, in QosPolicyParams() method in QosPolicyParams
548 QosPolicyParams that = (QosPolicyParams) o; in equals()
624 QosPolicyParams(@NonNull Parcel in) { in QosPolicyParams() method in QosPolicyParams
645 public static final @NonNull Parcelable.Creator<QosPolicyParams> CREATOR =
646 new Parcelable.Creator<QosPolicyParams>() {
648 public QosPolicyParams createFromParcel(Parcel in) {
649 return new QosPolicyParams(in);
653 public QosPolicyParams[] newArray(int size) {
654 return new QosPolicyParams[size];
[all …]
DIWifiManager.aidl63 import android.net.wifi.QosPolicyParams;
462 …void addQosPolicies(in List<QosPolicyParams> policyParamsList, in IBinder binder, String packageNa… in addQosPolicies()
DBaseWifiService.java1059 public void addQosPolicies(@NonNull List<QosPolicyParams> policyParamsList, in addQosPolicies()
DWifiManager.java11890 public void addQosPolicies(@NonNull List<QosPolicyParams> policyParamsList, in addQosPolicies()
/packages/modules/Wifi/framework/aidl-export/android/net/wifi/
DQosPolicyParams.aidl19 parcelable QosPolicyParams;
/packages/modules/Wifi/framework/api/
Dsystem-current.txt110 public final class QosPolicyParams implements android.os.Parcelable {
113 …method @IntRange(from=android.net.wifi.QosPolicyParams.DESTINATION_PORT_ANY, to=65535) public int …
116 method @IntRange(from=android.net.wifi.QosPolicyParams.DSCP_ANY, to=63) public int getDscp();
126 …onNull public static final android.os.Parcelable.Creator<android.net.wifi.QosPolicyParams> CREATOR;
149 public static final class QosPolicyParams.Builder {
150 ctor public QosPolicyParams.Builder(@IntRange(from=1, to=255) int, int);
151 method @NonNull public android.net.wifi.QosPolicyParams build();
152 …method @NonNull public android.net.wifi.QosPolicyParams.Builder setDestinationAddress(@Nullable ja…
153 …onNull public android.net.wifi.QosPolicyParams.Builder setDestinationPort(@IntRange(from=android.n…
154 …method @NonNull public android.net.wifi.QosPolicyParams.Builder setDestinationPortRange(@IntRange(…
[all …]