Home
last modified time | relevance | path

Searched refs:existingIndex (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantZoneHelper.java136 int existingIndex = mZoneToUser.indexOfValue(userId); in setUpOccupantZones()
137 if (existingIndex >= 0) { in setUpOccupantZones()
138 int preassignedZone = mZoneToUser.keyAt(existingIndex); in setUpOccupantZones()
158 int existingIndex = mZoneToUser.indexOfKey(zoneId); in setUpOccupantZones()
159 if (existingIndex >= 0) { in setUpOccupantZones()
181 int existingIndex = mZoneToUser.indexOfKey(zoneId); in setUpOccupantZones()
182 if (existingIndex >= 0) { in setUpOccupantZones()
183 return mZoneToUser.valueAt(existingIndex); in setUpOccupantZones()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDscpPolicyTracker.java116 final int existingIndex = ifacePolicies.get(policyId, -1); in findIndex() local
117 if (existingIndex != -1) { in findIndex()
118 return existingIndex; in findIndex()
288 final int existingIndex = ifacePolicies.get(policyId, -1); in removeDscpPolicy() local
289 if (existingIndex == -1) { in removeDscpPolicy()
295 removePolicyFromMap(nai, policyId, existingIndex, true); in removeDscpPolicy()