/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ApplicationQosPolicyTrackingTableTest.java | 80 List<Integer> policyIds = new ArrayList<>(); in getPolicyIdsFromPolicyList() local 82 policyIds.add(policy.getPolicyId()); in getPolicyIdsFromPolicyList() 84 return policyIds; in getPolicyIdsFromPolicyList() 88 List<Integer> policyIds = new ArrayList<>(); in getVirtualPolicyIdsFromPolicyList() local 90 policyIds.add(policy.getTranslatedPolicyId()); in getVirtualPolicyIdsFromPolicyList() 92 return policyIds; in getVirtualPolicyIdsFromPolicyList() 165 List<Integer> policyIds = getPolicyIdsFromPolicyList(policyList); in testRemovePoliciesSuccess() local 166 mDut.removePolicies(policyIds, TEST_UID); in testRemovePoliciesSuccess() 184 List<Integer> policyIds = getPolicyIdsFromPolicyList(policyList); in testRemovePoliciesFail_invalidPolicies() local 185 mDut.removePolicies(policyIds, TEST_UID + 1); in testRemovePoliciesFail_invalidPolicies() [all …]
|
D | ApplicationQosPolicyRequestHandlerTest.java | 190 List<Byte> policyIds = (List<Byte>) args[1]; in setupSynchronousResponse() 192 for (byte policyId : policyIds) { in setupSynchronousResponse() 243 List<Integer> policyIds = new ArrayList<>(); in getPolicyIdsFromPolicyList() local 245 policyIds.add(policy.getPolicyId()); in getPolicyIdsFromPolicyList() 247 return policyIds; in getPolicyIdsFromPolicyList() 281 List<Integer> policyIds = getPolicyIdsFromPolicyList(policyList); in testDownlinkPolicyAddAndRemove_oneClientModeManager() local 282 mDut.queueRemoveRequest(policyIds, TEST_UID); in testDownlinkPolicyAddAndRemove_oneClientModeManager() 306 List<Integer> policyIds = getPolicyIdsFromPolicyList(policyList); in testDownlinkPolicyAddAndRemove_twoClientModeManagers() local 307 mDut.queueRemoveRequest(policyIds, TEST_UID); in testDownlinkPolicyAddAndRemove_twoClientModeManagers()
|
D | WifiServiceImplTest.java | 11948 int[] policyIds = new int[]{1, 2, 3}; in testRemoveQosPoliciesSuccess() local 11949 mWifiServiceImpl.removeQosPolicies(policyIds, TEST_PACKAGE_NAME); in testRemoveQosPoliciesSuccess()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ApplicationQosPolicyTrackingTable.java | 131 public void removePolicies(List<Integer> policyIds, int uid) { in removePolicies() argument 132 for (int policyId : policyIds) { in removePolicies() 177 public List<Integer> translatePolicyIds(List<Integer> policyIds, int uid) { in translatePolicyIds() argument 179 for (int policyId : policyIds) { in translatePolicyIds() 197 List<Integer> policyIds = new ArrayList<>(); in getAllPolicyIdsOwnedByUid() local 199 if (policyHashes == null) return policyIds; in getAllPolicyIdsOwnedByUid() 202 policyIds.add(policyId); in getAllPolicyIdsOwnedByUid() 204 return policyIds; in getAllPolicyIdsOwnedByUid()
|
D | ApplicationQosPolicyRequestHandler.java | 177 public final @NonNull List<Byte> policyIds; field in ApplicationQosPolicyRequestHandler.CallbackParams 181 policyIds = inPolicyIds; in CallbackParams() 190 return policyIds.equals(resultPolicyIds); in matchesResults() 195 return "{policyIds: " + policyIds + "}"; in toString() 324 public void queueRemoveRequest(@NonNull List<Integer> policyIds, int uid) { in queueRemoveRequest() argument 325 Log.i(TAG, "Queueing remove request. size=" + policyIds.size()); in queueRemoveRequest() 327 REQUEST_TYPE_REMOVE, null, policyIds, null, null, uid); in queueRemoveRequest()
|
D | ISupplicantStaIfaceHal.java | 794 @NonNull String ifaceName, @NonNull List<Byte> policyIds) { in removeQosPolicyForScs() argument
|
D | SupplicantStaIfaceHal.java | 2314 @NonNull String ifaceName, @NonNull List<Byte> policyIds) { in removeQosPolicyForScs() argument 2320 return mStaIfaceHal.removeQosPolicyForScs(ifaceName, policyIds); in removeQosPolicyForScs()
|
D | SupplicantStaIfaceHalAidlImpl.java | 3776 @NonNull String ifaceName, @NonNull List<Byte> policyIds) { in removeQosPolicyForScs() argument 3784 byte[] halPolicyIds = new byte[policyIds.size()]; in removeQosPolicyForScs() 3785 for (int i = 0; i < policyIds.size(); i++) { in removeQosPolicyForScs() 3786 halPolicyIds[i] = policyIds.get(i); in removeQosPolicyForScs()
|
D | WifiServiceImpl.java | 7966 private boolean policyIdsAreUnique(int[] policyIds) { 7968 for (int policyId : policyIds) { 7971 return policyIdSet.size() == policyIds.length; 8052 public void removeQosPolicies(@NonNull int[] policyIds, @NonNull String packageName) { 8065 Objects.requireNonNull(policyIds, "policyIdList cannot be null"); 8066 if (policyIds.length == 0 8067 || policyIds.length > WifiManager.getMaxNumberOfPoliciesPerQosRequest() 8068 || !policyIdsAreUnique(policyIds)) { 8072 List<Integer> policyIdList = Arrays.stream(policyIds).boxed().toList();
|
D | WifiNative.java | 5090 @NonNull String ifaceName, @NonNull List<Byte> policyIds) { 5091 return mSupplicantStaIfaceHal.removeQosPolicyForScs(ifaceName, policyIds);
|