Home
last modified time | relevance | path

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

123

/frameworks/base/location/java/android/location/
DGnssCapabilities.java103 return hasCapability(LOW_POWER_MODE); in hasLowPowerMode()
111 return hasCapability(SATELLITE_BLACKLIST); in hasSatelliteBlacklist()
118 return hasCapability(GEOFENCING); in hasGeofencing()
125 return hasCapability(MEASUREMENTS); in hasMeasurements()
132 return hasCapability(NAV_MESSAGES); in hasNavMessages()
140 return hasCapability(MEASUREMENT_CORRECTIONS); in hasMeasurementCorrections()
148 return hasCapability(MEASUREMENT_CORRECTIONS_LOS_SATS); in hasMeasurementCorrectionsLosSats()
156 return hasCapability(MEASUREMENT_CORRECTIONS_EXCESS_PATH_LENGTH); in hasMeasurementCorrectionsExcessPathLength()
164 return hasCapability(MEASUREMENT_CORRECTIONS_REFLECTING_PLANE); in hasMeasurementCorrectionsReflectingPane()
187 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.java917 if (hasCapability(GPS_CAPABILITY_MSB) && (suplMode & AGPS_SUPL_MODE_MSB) != 0) { in getSuplMode()
1063 if (mStarted && hasCapability(GPS_CAPABILITY_SCHEDULING)) { in updateRequirements()
1255 int interval = (hasCapability(GPS_CAPABILITY_SCHEDULING) ? mFixInterval : 1000); in startNavigating()
1273 if (!hasCapability(GPS_CAPABILITY_SCHEDULING)) { in startNavigating()
1315 private boolean hasCapability(int capability) { in hasCapability() method in GnssLocationProvider
1390 if (!hasCapability(GPS_CAPABILITY_SCHEDULING) && mFixInterval < NO_FIX_TIMEOUT) { in handleReportLocation()
1397 if (!hasCapability(GPS_CAPABILITY_SCHEDULING) && mStarted && in handleReportLocation()
1550 if (hasCapability(GPS_CAPABILITY_ON_DEMAND_TIME)) { in setTopHalCapabilities()
1556 hasCapability(GPS_CAPABILITY_MEASUREMENTS)); in setTopHalCapabilities()
1558 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/base/services/net/java/android/net/shared/
DNetworkMonitorUtils.java52 && nc.hasCapability(NET_CAPABILITY_INTERNET) in isPrivateDnsValidationRequired()
53 && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) in isPrivateDnsValidationRequired()
54 && nc.hasCapability(NET_CAPABILITY_TRUSTED); in isPrivateDnsValidationRequired()
63 return isPrivateDnsValidationRequired(nc) && nc.hasCapability(NET_CAPABILITY_NOT_VPN); in isValidationRequired()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java85 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
92 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
97 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
105 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
111 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
118 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
123 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
131 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
137 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
281 assertFalse(nc.hasCapability(NET_CAPABILITY_OEM_PAID)); in testOemPaid()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java453 nr.networkCapabilities.hasCapability( in hasRestrictedRequests()
457 if (!nr.networkCapabilities.hasCapability( in hasRestrictedRequests()
574 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getApnTypeFromNetworkRequest()
577 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in getApnTypeFromNetworkRequest()
581 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in getApnTypeFromNetworkRequest()
585 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in getApnTypeFromNetworkRequest()
589 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in getApnTypeFromNetworkRequest()
593 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in getApnTypeFromNetworkRequest()
597 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in getApnTypeFromNetworkRequest()
601 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IA)) { in getApnTypeFromNetworkRequest()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataConnectionTest.java519 .hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)); in testNetworkCapability()
521 .hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)); in testNetworkCapability()
523 .hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)); in testNetworkCapability()
532 .hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)); in testNetworkCapability()
534 .hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)); in testNetworkCapability()
536 .hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)); in testNetworkCapability()
550 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in testMeteredCapability()
565 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in testNonMeteredCapability()
575 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideUnmetered()
576 assertTrue(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_CONGESTED)); in testOverrideUnmetered()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DUntrustedWifiNetworkFactory.java50 if (!networkRequest.networkCapabilities.hasCapability( in needNetworkFor()
60 if (!networkRequest.networkCapabilities.hasCapability( in releaseNetworkFor()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java579 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
580 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_ROAMING)); in testCapabilities()
581 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_CONGESTED)); in testCapabilities()
593 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
594 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_ROAMING)); in testCapabilities()
595 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_CONGESTED)); in testCapabilities()
604 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
605 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_ROAMING)); in testCapabilities()
606 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_CONGESTED)); in testCapabilities()
615 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java159 if (networkCapabilities.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) { in updateStatusLabel()
162 } else if (networkCapabilities.hasCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY)) { in updateStatusLabel()
165 } else if (!networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in updateStatusLabel()
/frameworks/base/core/java/android/net/
DConnectivityManager.java1531 if (!netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in inferLegacyTypeForNetworkCapabilities()
1541 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in inferLegacyTypeForNetworkCapabilities()
1544 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in inferLegacyTypeForNetworkCapabilities()
1547 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in inferLegacyTypeForNetworkCapabilities()
1550 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in inferLegacyTypeForNetworkCapabilities()
1553 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in inferLegacyTypeForNetworkCapabilities()
1561 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in inferLegacyTypeForNetworkCapabilities()
1576 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in legacyTypeForNetworkCapabilities()
1579 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in legacyTypeForNetworkCapabilities()
1582 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in legacyTypeForNetworkCapabilities()
[all …]
DNetworkRequest.java444 public boolean hasCapability(@NetCapability int capability) { in hasCapability() method in NetworkRequest
445 return networkCapabilities.hasCapability(capability); in hasCapability()
DNetworkIdentity.java203 boolean roaming = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
205 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
DNetworkState.java57 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in NetworkState()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java551 nc.hasCapability(NET_CAPABILITY_NOT_VPN); in isCellular()
554 private static boolean hasCapability(NetworkState ns, int netCap) { in hasCapability() method in UpstreamNetworkMonitor
556 ns.networkCapabilities.hasCapability(netCap); in hasCapability()
566 if (isCellular(ns) && hasCapability(ns, NET_CAPABILITY_DUN)) return ns; in findFirstDunNetwork()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java58 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java718 assertFalse(mNetworkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)); in connect()
732 networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in connect()
1562 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
1570 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
1578 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
1657 assertTrue(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1662 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1667 assertTrue(mCm.getNetworkCapabilities(mCellNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1672 assertFalse(mCm.getNetworkCapabilities(mCellNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
1674 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java703 if (mNumPhones > 1 && networkRequest.networkCapabilities.hasCapability( in collectRequestNetworkMetrics()
715 if (mNumPhones > 1 && networkRequest.networkCapabilities.hasCapability( in collectReleaseNetworkMetrics()
964 if (netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in phoneIdForRequest()
965 && netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in phoneIdForRequest()
1086 return networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_EIMS); in isEmergencyNetworkRequest()
DCellularNetworkValidator.java240 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in onCapabilitiesChanged()
/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()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java120 boolean hasManualControl = hasCapability(capabilities, in resume()
175 private boolean hasCapability(int[] capabilities, int capability) { in hasCapability() method in CameraOps

123