/frameworks/base/location/java/android/location/ |
D | GnssCapabilities.java | 103 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/ |
D | GnssCapabilitiesProvider.java | 63 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
|
D | GnssMeasurementCorrectionsProvider.java | 87 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
|
D | GnssLocationProvider.java | 917 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 …]
|
D | GnssNetworkConnectivityHandler.java | 132 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/ |
D | NetworkMonitorUtils.java | 52 && 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/ |
D | NetworkCapabilitiesTest.java | 85 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/ |
D | ApnContext.java | 453 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/ |
D | DataConnectionTest.java | 519 .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/ |
D | UntrustedWifiNetworkFactory.java | 50 if (!networkRequest.networkCapabilities.hasCapability( in needNetworkFor() 60 if (!networkRequest.networkCapabilities.hasCapability( in releaseNetworkFor()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 579 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/ |
D | WifiStatusTracker.java | 159 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/ |
D | ConnectivityManager.java | 1531 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 …]
|
D | NetworkRequest.java | 444 public boolean hasCapability(@NetCapability int capability) { in hasCapability() method in NetworkRequest 445 return networkCapabilities.hasCapability(capability); in hasCapability()
|
D | NetworkIdentity.java | 203 boolean roaming = !state.networkCapabilities.hasCapability( in buildNetworkIdentity() 205 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
|
D | NetworkState.java | 57 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in NetworkState()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitor.java | 551 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/ |
D | ProvisionObserver.java | 58 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 718 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/ |
D | PhoneSwitcher.java | 703 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()
|
D | CellularNetworkValidator.java | 240 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in onCapabilitiesChanged()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWComposer.h | 35 MOCK_CONST_METHOD1(hasCapability, bool(HWC2::Capability));
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.h | 61 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/ |
D | MultipathPolicyTracker.java | 270 !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/ |
D | CameraOps.java | 120 boolean hasManualControl = hasCapability(capabilities, in resume() 175 private boolean hasCapability(int[] capabilities, int capability) { in hasCapability() method in CameraOps
|