Home
last modified time | relevance | path

Searched refs:hasCapability (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/location/java/android/location/
DGnssCapabilities.java104 return hasCapability(LOW_POWER_MODE); in hasLowPowerMode()
112 return hasCapability(SATELLITE_BLACKLIST); in hasSatelliteBlacklist()
119 return hasCapability(GEOFENCING); in hasGeofencing()
126 return hasCapability(MEASUREMENTS); in hasMeasurements()
133 return hasCapability(NAV_MESSAGES); in hasNavMessages()
141 return hasCapability(MEASUREMENT_CORRECTIONS); in hasMeasurementCorrections()
149 return hasCapability(MEASUREMENT_CORRECTIONS_LOS_SATS); in hasMeasurementCorrectionsLosSats()
157 return hasCapability(MEASUREMENT_CORRECTIONS_EXCESS_PATH_LENGTH); in hasMeasurementCorrectionsExcessPathLength()
165 return hasCapability(MEASUREMENT_CORRECTIONS_REFLECTING_PLANE); in hasMeasurementCorrectionsReflectingPane()
189 private boolean hasCapability(long capability) { in hasCapability() method in GnssCapabilities
/frameworks/base/services/core/java/com/android/server/location/
DGnssCapabilitiesProvider.java63 if (hasCapability(topHalCapabilities, in setTopHalCapabilities()
67 if (hasCapability(topHalCapabilities, in setTopHalCapabilities()
71 if (hasCapability(topHalCapabilities, GnssLocationProvider.GPS_CAPABILITY_GEOFENCING)) { in setTopHalCapabilities()
74 if (hasCapability(topHalCapabilities, GnssLocationProvider.GPS_CAPABILITY_MEASUREMENTS)) { in setTopHalCapabilities()
77 if (hasCapability(topHalCapabilities, GnssLocationProvider.GPS_CAPABILITY_NAV_MESSAGES)) { in setTopHalCapabilities()
97 if (hasCapability(measurementCorrectionsCapabilities, in setSubHalMeasurementCorrectionsCapabilities()
101 if (hasCapability(measurementCorrectionsCapabilities, in setSubHalMeasurementCorrectionsCapabilities()
105 if (hasCapability(measurementCorrectionsCapabilities, in setSubHalMeasurementCorrectionsCapabilities()
121 private static boolean hasCapability(int halCapabilities, int capability) { in hasCapability() method in GnssCapabilitiesProvider
DGnssMeasurementCorrectionsProvider.java87 if (hasCapability(capabilities, CAPABILITY_LOS_SATS) || hasCapability(capabilities, in onCapabilitiesUpdated()
114 if (hasCapability(capabilities, CAPABILITY_LOS_SATS)) { in toStringCapabilities()
117 if (hasCapability(capabilities, CAPABILITY_EXCESS_PATH_LENGTH)) { in toStringCapabilities()
120 if (hasCapability(capabilities, CAPABILITY_REFLECTING_PLANE)) { in toStringCapabilities()
127 private static boolean hasCapability(int halCapabilities, int capability) { in hasCapability() method in GnssMeasurementCorrectionsProvider
DGnssLocationProvider.java952 if (hasCapability(GPS_CAPABILITY_MSB) && (suplMode & AGPS_SUPL_MODE_MSB) != 0) { in getSuplMode()
1098 if (mStarted && hasCapability(GPS_CAPABILITY_SCHEDULING)) { in updateRequirements()
1290 int interval = (hasCapability(GPS_CAPABILITY_SCHEDULING) ? mFixInterval : 1000); in startNavigating()
1308 if (!hasCapability(GPS_CAPABILITY_SCHEDULING)) { in startNavigating()
1350 private boolean hasCapability(int capability) { in hasCapability() method in GnssLocationProvider
1425 if (!hasCapability(GPS_CAPABILITY_SCHEDULING) && mFixInterval < NO_FIX_TIMEOUT) { in handleReportLocation()
1432 if (!hasCapability(GPS_CAPABILITY_SCHEDULING) && mStarted && in handleReportLocation()
1587 if (hasCapability(GPS_CAPABILITY_ON_DEMAND_TIME)) { in setTopHalCapabilities()
1593 hasCapability(GPS_CAPABILITY_MEASUREMENTS)); in setTopHalCapabilities()
1595 hasCapability(GPS_CAPABILITY_NAV_MESSAGES)); in setTopHalCapabilities()
[all …]
DGnssNetworkConnectivityHandler.java132 return curCapabilities.hasCapability(capability) in hasCapabilityChanged()
133 != newCapabilities.hasCapability(capability); in hasCapabilityChanged()
138 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in getCapabilityFlags()
141 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getCapabilityFlags()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java461 nr.networkCapabilities.hasCapability( in hasRestrictedRequests()
465 if (!nr.networkCapabilities.hasCapability( in hasRestrictedRequests()
557 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getApnTypeFromNetworkRequest()
560 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in getApnTypeFromNetworkRequest()
564 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in getApnTypeFromNetworkRequest()
568 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in getApnTypeFromNetworkRequest()
572 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in getApnTypeFromNetworkRequest()
576 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in getApnTypeFromNetworkRequest()
580 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in getApnTypeFromNetworkRequest()
584 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IA)) { in getApnTypeFromNetworkRequest()
[all …]
DDcNetworkAgent.java241 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities()
244 || networkCapabilities.hasCapability( in sendNetworkCapabilities()
246 != mNetworkCapabilities.hasCapability( in sendNetworkCapabilities()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java117 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
124 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
129 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
137 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
143 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
150 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
155 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
163 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
169 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
340 assertFalse(nc.hasCapability(NET_CAPABILITY_OEM_PAID)); in testOemPaid()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataConnectionTest.java589 .hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)); in testNetworkCapability()
591 .hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)); in testNetworkCapability()
593 .hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)); in testNetworkCapability()
606 .hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)); in testNetworkCapability()
608 .hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)); in testNetworkCapability()
610 .hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)); in testNetworkCapability()
623 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testMeteredCapability()
624 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED)); in testMeteredCapability()
638 assertTrue(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testNonMeteredCapability()
648 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED)); in testOverrideUnmetered()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java625 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
626 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_ROAMING)); in testCapabilities()
627 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_CONGESTED)); in testCapabilities()
628 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_SUSPENDED)); in testCapabilities()
640 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
641 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_ROAMING)); in testCapabilities()
642 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_CONGESTED)); in testCapabilities()
643 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_SUSPENDED)); in testCapabilities()
652 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
653 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_ROAMING)); in testCapabilities()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DUntrustedWifiNetworkFactory.java50 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)) { in needNetworkFor()
59 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)) { in releaseNetworkFor()
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java90 assertTrue(nc.hasCapability(capability)); in verifyNetworkCapabilities()
114 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
115 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in verifyRestrictedMobileNetworkCapabilities()
163 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
175 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileSupl()
192 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeWifiP2p()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java160 if (networkCapabilities.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) { in updateStatusLabel()
163 } else if (networkCapabilities.hasCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY)) { in updateStatusLabel()
166 } else if (!networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in updateStatusLabel()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestableNetworkCallback.kt257 expectCapabilitiesThat(net, tmt) { validated == it.hasCapability(NET_CAPABILITY_VALIDATED) } in expectAvailableCallbacks()
292 expectCapabilitiesThat(net, tmt) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in expectAvailableThenValidatedCallbacks()
378 return expectCapabilitiesThat(n.network, timeoutMs) { it.hasCapability(capability) }.caps in expectLinkPropertiesThat()
387 return expectCapabilitiesThat(n.network, timeoutMs) { !it.hasCapability(capability) }.caps in expectCapabilitiesWithout()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java560 && nc.hasCapability(NET_CAPABILITY_NOT_VPN); in isCellular()
563 private static boolean hasCapability(UpstreamNetworkState ns, int netCap) { in hasCapability() method in UpstreamNetworkMonitor
565 && ns.networkCapabilities.hasCapability(netCap); in hasCapability()
576 if (isCellular(ns) && hasCapability(ns, NET_CAPABILITY_DUN)) return ns; in findFirstDunNetwork()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java702 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_INTERNET)); in connect()
716 networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in connect()
1582 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
1590 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
1598 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
1673 assertTrue(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1678 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1683 assertTrue(mCm.getNetworkCapabilities(mCellNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1688 assertFalse(mCm.getNetworkCapabilities(mCellNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1690 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
[all …]
/frameworks/base/core/java/android/net/
DNetworkIdentity.java192 boolean roaming = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
194 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
DNetworkRequest.java457 public boolean hasCapability(@NetCapability int capability) { in hasCapability() method in NetworkRequest
458 return networkCapabilities.hasCapability(capability); in hasCapability()
DNetworkState.java57 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in NetworkState()
DConnectivityManager.java1543 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in legacyTypeForNetworkCapabilities()
1546 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in legacyTypeForNetworkCapabilities()
1549 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in legacyTypeForNetworkCapabilities()
1552 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in legacyTypeForNetworkCapabilities()
1555 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in legacyTypeForNetworkCapabilities()
1558 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in legacyTypeForNetworkCapabilities()
1561 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in legacyTypeForNetworkCapabilities()
1564 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_WIFI_P2P)) { in legacyTypeForNetworkCapabilities()
3362 if (!networkCapabilities.hasCapability( in onAvailable()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java746 if (mActiveModemCount > 1 && networkRequest.hasCapability( in collectRequestNetworkMetrics()
758 if (mActiveModemCount > 1 && networkRequest.hasCapability( in collectReleaseNetworkMetrics()
1015 if (netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in phoneIdForRequest()
1016 && netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in phoneIdForRequest()
1130 return networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_EIMS); in isEmergencyNetworkRequest()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWComposer.h35 MOCK_CONST_METHOD1(hasCapability, bool(HWC2::Capability));
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h61 virtual bool hasCapability(HWC2::Capability capability) const = 0;
200 bool hasCapability(HWC2::Capability capability) const override;
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java270 !nc.hasCapability(NET_CAPABILITY_NOT_ROAMING), in getTemplateMatchingNetworkIdentity()
271 !nc.hasCapability(NET_CAPABILITY_NOT_METERED), in getTemplateMatchingNetworkIdentity()

123