Home
last modified time | relevance | path

Searched refs:DscpPolicy (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DDscpPolicy.java38 public final class DscpPolicy implements Parcelable { class
82 /* package */ DscpPolicy( in DscpPolicy() method in DscpPolicy
206 if (!(o instanceof DscpPolicy)) return false; in equals()
207 DscpPolicy that = (DscpPolicy) o; in equals()
241 DscpPolicy(@NonNull Parcel in) { in DscpPolicy() method in DscpPolicy
256 public @SystemApi static final @NonNull Parcelable.Creator<DscpPolicy> CREATOR =
257 new Parcelable.Creator<DscpPolicy>() {
259 public DscpPolicy[] newArray(int size) {
260 return new DscpPolicy[size];
264 public DscpPolicy createFromParcel(@NonNull android.os.Parcel in) {
[all …]
DINetworkAgentRegistry.aidl18 import android.net.DscpPolicy;
49 void sendAddDscpPolicy(in DscpPolicy policy); in sendAddDscpPolicy()
DNetworkAgent.java1520 public void sendAddDscpPolicy(@NonNull final DscpPolicy policy) { in sendAddDscpPolicy()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt23 import android.net.DscpPolicy in <lambda>()
449 val policy = DscpPolicy.Builder(1, 1) in <lambda>()
467 val policy2 = DscpPolicy.Builder(1, 4) in <lambda>()
490 val policy = DscpPolicy.Builder(1, 1) in <lambda>()
508 val policy2 = DscpPolicy.Builder(1, 4) in <lambda>()
531 val policy = DscpPolicy.Builder(1, 1).setDestinationPortRange(Range(1111, 1111)).build() in <lambda>()
539 val policy2 = DscpPolicy.Builder(2, 1).setDestinationPortRange(Range(2222, 2222)).build() in <lambda>()
547 val policy3 = DscpPolicy.Builder(3, 1).setDestinationPortRange(Range(3333, 3333)).build() in <lambda>()
567 val policy = DscpPolicy.Builder(1, 1).setDestinationPortRange(Range(1111, 1111)).build() in <lambda>()
576 val policy2 = DscpPolicy.Builder(2, 1).setDestinationPortRange(Range(2222, 2222)).build() in <lambda>()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DQosPolicyRequestHandlerTest.java34 import android.net.DscpPolicy;
93 DscpPolicy policy = (DscpPolicy) args[0]; in setUp()
98 }).when(mWifiNetworkAgent).sendAddDscpPolicy(any(DscpPolicy.class)); in setUp()
116 srcPort != null ? srcPort : DscpPolicy.SOURCE_PORT_ANY, in createQosPolicyRequest()
118 protocol != null ? protocol : DscpPolicy.PROTOCOL_ANY); in createQosPolicyRequest()
243 DscpPolicy policy = (DscpPolicy) args[0]; in testMoreResourcesIsFalseIfInsufficientResources()
252 }).when(mWifiNetworkAgent).sendAddDscpPolicy(any(DscpPolicy.class)); in testMoreResourcesIsFalseIfInsufficientResources()
DWifiMonitorTest.java31 import android.net.DscpPolicy;
846 DscpPolicy.SOURCE_PORT_ANY, new int[]{125, 150}, in testBroadcastQosPolicyRequestEvent()
847 DscpPolicy.PROTOCOL_ANY))); in testBroadcastQosPolicyRequestEvent()
DSupplicantStaIfaceHalTest.java34 import android.net.DscpPolicy;
91 private static final int QOS_POLICY_SRC_PORT = DscpPolicy.SOURCE_PORT_ANY;
92 private static final int QOS_POLICY_PROTOCOL = DscpPolicy.PROTOCOL_ANY;
DSupplicantStaIfaceHalAidlImplTest.java105 import android.net.DscpPolicy;
2754 if (frameworkPolicy.getSourcePort() != DscpPolicy.SOURCE_PORT_ANY) { in compareQosPolicyParamsToHal()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDscpPolicyTracker.java27 import android.net.DscpPolicy;
138 private boolean matchesIpv4(DscpPolicy policy) { in matchesIpv4()
145 private boolean matchesIpv6(DscpPolicy policy) { in matchesIpv6()
164 private int addDscpPolicyInternal(DscpPolicy policy, int ifIndex) { in addDscpPolicyInternal()
234 public void addDscpPolicy(NetworkAgentInfo nai, DscpPolicy policy) { in addDscpPolicy()
DNetworkAgentInfo.java34 import android.net.DscpPolicy;
997 public void sendAddDscpPolicy(final DscpPolicy policy) { in sendAddDscpPolicy()
/packages/modules/Wifi/framework/java/android/net/wifi/
DQosPolicyParams.java25 import android.net.DscpPolicy;
60 public static final int PROTOCOL_ANY = DscpPolicy.PROTOCOL_ANY;
281 if (mSrcPort < DscpPolicy.SOURCE_PORT_ANY || mSrcPort > 65535) { in validate()
458 @IntRange(from = DscpPolicy.SOURCE_PORT_ANY, to = 65535)
668 private int mSrcPort = DscpPolicy.SOURCE_PORT_ANY;
731 @IntRange(from = DscpPolicy.SOURCE_PORT_ANY, to = 65535) int value) { in setSourcePort()
/packages/modules/Connectivity/bpf_progs/
DdscpPolicy.h62 } DscpPolicy; typedef
63 STRUCT_SIZE(DscpPolicy, 2 * 16 + 4 + 3 * 2 + 3 * 1 + 3); // 48
DdscpPolicy.c42 DEFINE_BPF_MAP_GRW(ipv4_dscp_policies_map, ARRAY, uint32_t, DscpPolicy, MAX_POLICIES, AID_SYSTEM) in DEFINE_BPF_MAP_GRW()
43 DEFINE_BPF_MAP_GRW(ipv6_dscp_policies_map, ARRAY, uint32_t, DscpPolicy, MAX_POLICIES, AID_SYSTEM) in DEFINE_BPF_MAP_GRW()
155 DscpPolicy* policy; in DEFINE_BPF_MAP_GRW()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DQosPolicyRequestHandler.java20 import android.net.DscpPolicy;
226 DscpPolicy.Builder builder = new DscpPolicy.Builder( in processQosPolicyRequest()
DSupplicantStaIfaceHalAidlImpl.java80 import android.net.DscpPolicy;
2879 int srcPort = DscpPolicy.SOURCE_PORT_ANY; in halToFrameworkQosPolicy()
2881 int protocol = DscpPolicy.PROTOCOL_ANY; in halToFrameworkQosPolicy()
3037 if (params.getSourcePort() != DscpPolicy.SOURCE_PORT_ANY) { in frameworkToHalQosPolicyScsData()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DQosPolicyParamsTest.java25 import android.net.DscpPolicy;
129 assertEquals(DscpPolicy.SOURCE_PORT_ANY, params.getSourcePort()); in testDefaultParamsSet()
/packages/modules/Connectivity/framework/aidl-export/android/net/
DDscpPolicy.aidl19 @JavaOnlyStableParcelable parcelable DscpPolicy;
/packages/modules/Connectivity/framework/api/
Dsystem-current.txt96 public final class DscpPolicy implements android.os.Parcelable {
106 … field @NonNull public static final android.os.Parcelable.Creator<android.net.DscpPolicy> CREATOR;
111 public static final class DscpPolicy.Builder {
112 ctor public DscpPolicy.Builder(int, int);
113 method @NonNull public android.net.DscpPolicy build();
114 …method @NonNull public android.net.DscpPolicy.Builder setDestinationAddress(@NonNull java.net.Inet…
115 …method @NonNull public android.net.DscpPolicy.Builder setDestinationPortRange(@NonNull android.uti…
116 method @NonNull public android.net.DscpPolicy.Builder setProtocol(int);
117 …method @NonNull public android.net.DscpPolicy.Builder setSourceAddress(@NonNull java.net.InetAddre…
118 method @NonNull public android.net.DscpPolicy.Builder setSourcePort(int);
[all …]
/packages/modules/Wifi/framework/api/
Dsystem-current.txt123 …method @IntRange(from=android.net.DscpPolicy.SOURCE_PORT_ANY, to=65535) public int getSourcePort();
161 ….wifi.QosPolicyParams.Builder setSourcePort(@IntRange(from=android.net.DscpPolicy.SOURCE_PORT_ANY,…
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java179 import android.net.DscpPolicy;
4677 DscpPolicy policy = (DscpPolicy) arg.second;