Home
last modified time | relevance | path

Searched refs:preCondition (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DAccessNetworkSelectionPolicyBuilder.java71 @QnsConstants.RoveDirection int direction, PreCondition preCondition) { in getPolicyInMap() argument
72 return sPolicyMap.get(new AnspKey(direction, preCondition.getPreference())); in getPolicyInMap()
76 @QnsConstants.RoveDirection int direction, PreCondition preCondition) { in getPolicyInInternal() argument
77 return mConfig.getPolicy(direction, preCondition); in getPolicyInInternal()
81 @QnsConstants.RoveDirection int direction, PreCondition preCondition) { in getPolicy() argument
82 String[] internalPolicies = getPolicyInInternal(direction, preCondition); in getPolicy()
88 && preCondition.getCoverage() == QnsConstants.COVERAGE_ROAM) { in getPolicy()
97 if (preCondition.getPreference() == QnsConstants.CELL_PREF in getPolicy()
103 } else if (preCondition.getPreference() == QnsConstants.WIFI_PREF in getPolicy()
111 if (preCondition.getPreference() == QnsConstants.CELL_PREF in getPolicy()
[all …]
DAccessNetworkSelectionPolicy.java41 PreCondition preCondition, in AccessNetworkSelectionPolicy() argument
54 mPreCondition = preCondition; in AccessNetworkSelectionPolicy()
75 boolean satisfyPrecondition(PreCondition preCondition) { in satisfyPrecondition() argument
76 return mPreCondition.satisfied(preCondition); in satisfyPrecondition()
141 boolean satisfied(PreCondition preCondition) { in satisfied() argument
142 return (mCallType == preCondition.mCallType) in satisfied()
143 && (mCoverage == preCondition.mCoverage) in satisfied()
144 && (mPreference == preCondition.mPreference); in satisfied()
197 boolean satisfied(PreCondition preCondition) { in satisfied() argument
198 if (preCondition instanceof GuardingPreCondition) { in satisfied()
[all …]
DAnspImsPreferModePolicyBuilder.java119 AccessNetworkSelectionPolicy.PreCondition preCondition) { in getPolicyInMap() argument
120 if (preCondition.getPreference() == WIFI_PREF) { in getPolicyInMap()
123 direction, preCondition.getCallType(), preCondition.getPreference())); in getPolicyInMap()
128 preCondition.getCallType(), in getPolicyInMap()
129 preCondition.getPreference(), in getPolicyInMap()
130 preCondition.getCoverage())); in getPolicyInMap()
DQnsCarrierConfigManager.java2290 AccessNetworkSelectionPolicy.PreCondition preCondition) { in getPolicy() argument
2296 + QnsConstants.callTypeToString(preCondition.getCallType()).toLowerCase() in getPolicy()
2298 + QnsConstants.preferenceToString(preCondition.getPreference()) in getPolicy()
2301 + QnsConstants.coverageToString(preCondition.getCoverage()).toLowerCase() in getPolicy()
2304 if (preCondition instanceof AccessNetworkSelectionPolicy.GuardingPreCondition) { in getPolicy()
2306 (AccessNetworkSelectionPolicy.GuardingPreCondition) preCondition; in getPolicy()
DAccessNetworkEvaluator.java1880 PreCondition preCondition = getMatchingPreCondition(); in updateAccessNetworkSelectionPolicy() local
1882 List<AccessNetworkSelectionPolicy> list = map.get(preCondition); in updateAccessNetworkSelectionPolicy()
1885 if (policy.satisfyPrecondition(preCondition) in updateAccessNetworkSelectionPolicy()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DAccessNetworkSelectionPolicyTest.java256 PreCondition preCondition = in testGuardingPreconditionSatisfied() local
261 assertTrue(guardingPreCondition.satisfied(preCondition)); in testGuardingPreconditionSatisfied()
263 preCondition = in testGuardingPreconditionSatisfied()
268 assertFalse(guardingPreCondition.satisfied(preCondition)); in testGuardingPreconditionSatisfied()
270 preCondition = in testGuardingPreconditionSatisfied()
275 assertFalse(guardingPreCondition.satisfied(preCondition)); in testGuardingPreconditionSatisfied()
277 preCondition = in testGuardingPreconditionSatisfied()
282 assertFalse(guardingPreCondition.satisfied(preCondition)); in testGuardingPreconditionSatisfied()
284 preCondition = in testGuardingPreconditionSatisfied()
290 assertTrue(guardingPreCondition.satisfied(preCondition)); in testGuardingPreconditionSatisfied()
[all …]
DQnsCarrierConfigManagerTest.java867 AccessNetworkSelectionPolicy.PreCondition preCondition = in testGetPolicyInternalApi() local
878 String[] internalPolicies = mConfigManager.getPolicy(QnsConstants.ROVE_IN, preCondition); in testGetPolicyInternalApi()
886 internalPolicies = mConfigManager.getPolicy(QnsConstants.ROVE_IN, preCondition); in testGetPolicyInternalApi()