/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneCapabilityTest.java | 43 PhoneCapability capability = new PhoneCapability(maxActiveVoiceCalls, maxActiveData, max5G, in basicTests() local 46 assertEquals(maxActiveVoiceCalls, capability.maxActiveVoiceCalls); in basicTests() 47 assertEquals(maxActiveData, capability.maxActiveData); in basicTests() 48 assertEquals(max5G, capability.max5G); in basicTests() 49 assertEquals(1, capability.logicalModemList.size()); in basicTests() 50 assertEquals(modemInfo, capability.logicalModemList.get(0)); in basicTests() 53 assertEquals(capability, new PhoneCapability( in basicTests() 55 assertNotEquals(capability, toCompare); in basicTests() 68 PhoneCapability capability = new PhoneCapability(maxActiveVoiceCalls, maxActiveData, max5G, in parcelReadWrite() local 72 capability.writeToParcel(parcel, 0); in parcelReadWrite() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkCapabilities.java | 453 public @NonNull NetworkCapabilities addCapability(@NetCapability int capability) { in addCapability() argument 458 checkValidCapability(capability); in addCapability() 459 mNetworkCapabilities |= 1 << capability; in addCapability() 460 mUnwantedNetworkCapabilities &= ~(1 << capability); // remove from unwanted capability list in addCapability() 477 public void addUnwantedCapability(@NetCapability int capability) { in addUnwantedCapability() argument 478 checkValidCapability(capability); in addUnwantedCapability() 479 mUnwantedNetworkCapabilities |= 1 << capability; in addUnwantedCapability() 480 mNetworkCapabilities &= ~(1 << capability); // remove from requested capabilities in addUnwantedCapability() 490 public @NonNull NetworkCapabilities removeCapability(@NetCapability int capability) { in removeCapability() argument 493 checkValidCapability(capability); in removeCapability() [all …]
|
D | NetworkRequest.java | 184 public Builder addCapability(@NetworkCapabilities.NetCapability int capability) { in addCapability() argument 185 mNetworkCapabilities.addCapability(capability); in addCapability() 195 public Builder removeCapability(@NetworkCapabilities.NetCapability int capability) { in removeCapability() argument 196 mNetworkCapabilities.removeCapability(capability); in removeCapability() 240 public Builder addUnwantedCapability(@NetworkCapabilities.NetCapability int capability) { in addUnwantedCapability() argument 241 mNetworkCapabilities.addUnwantedCapability(capability); in addUnwantedCapability() 457 public boolean hasCapability(@NetCapability int capability) { in hasCapability() argument 458 return networkCapabilities.hasCapability(capability); in hasCapability() 466 public boolean hasUnwantedCapability(@NetCapability int capability) { in hasUnwantedCapability() argument 467 return networkCapabilities.hasUnwantedCapability(capability); in hasUnwantedCapability()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/ |
D | NativeScanResult.java | 39 public BitSet capability; field in NativeScanResult 54 capability = (BitSet) source.capability.clone(); in NativeScanResult() 75 if (capability.get(i)) { in writeToParcel() 97 result.capability = new BitSet(CAPABILITY_SIZE); 100 result.capability.set(i);
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ProvisioningManager.java | 1092 @MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in setProvisioningStatusForCapability() 1095 getITelephony().setImsProvisioningStatusForCapability(mSubId, capability, tech, in setProvisioningStatusForCapability() 1119 @MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in getProvisioningStatusForCapability() 1122 return getITelephony().getImsProvisioningStatusForCapability(mSubId, capability, tech); in getProvisioningStatusForCapability() 1143 @RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag int capability) { in getRcsProvisioningStatusForCapability() 1145 return getITelephony().getRcsProvisioningStatusForCapability(mSubId, capability); in getRcsProvisioningStatusForCapability() 1166 @RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag int capability, in setRcsProvisioningStatusForCapability() 1169 getITelephony().setRcsProvisioningStatusForCapability(mSubId, capability, in setRcsProvisioningStatusForCapability()
|
D | ImsRcsManager.java | 112 public void onQueryCapabilityConfiguration(int capability, int radioTech, in onQueryCapabilityConfiguration() argument 118 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in onChangeCapabilityConfigurationError() argument 397 public boolean isCapable(@RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag int capability, in isCapable() argument 407 return imsRcsController.isCapable(mSubId, capability, radioTech); in isCapable() 431 public boolean isAvailable(@RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag int capability) in isAvailable() argument 441 return imsRcsController.isAvailable(mSubId, capability); in isAvailable()
|
D | ImsMmTelManager.java | 174 public void onQueryCapabilityConfiguration(int capability, int radioTech, in onQueryCapabilityConfiguration() argument 180 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in onChangeCapabilityConfigurationError() argument 729 public boolean isCapable(@MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in isCapable() argument 737 return iTelephony.isCapable(mSubId, capability, imsRegTech); in isCapable() 763 public boolean isAvailable(@MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in isAvailable() argument 771 return iTelephony.isAvailable(mSubId, capability, imsRegTech); in isAvailable() 795 public void isSupported(@MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in isSupported() argument 818 }, capability, transportType); in isSupported()
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | RcsFeatureManager.java | 334 @RcsImsCapabilities.RcsImsCapabilityFlag int capability, in isCapable() 344 if ((capability != resultCapability) || (radioTech != resultRadioTech)) { in isCapable() 347 if (DBG) log("capable result:capability=" + capability + ", enabled=" + enabled); in isCapable() 358 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in isCapable() 365 if (DBG) log("Query capability: " + capability + ", radioTech=" + radioTech); in isCapable() 366 mRcsFeatureConnection.queryCapabilityConfiguration(capability, radioTech, callback); in isCapable() 387 public boolean isAvailable(@RcsImsCapabilities.RcsImsCapabilityFlag int capability) in isAvailable() argument 391 return new RcsImsCapabilities(currentStatus).isCapable(capability); in isAvailable() 427 @RcsImsCapabilities.RcsImsCapabilityFlag int capability) { in addRcsUceCapability() argument 428 request.addCapabilitiesToEnableForTech(capability, in addRcsUceCapability() [all …]
|
/frameworks/base/location/java/android/location/ |
D | GnssCapabilities.java | 189 private boolean hasCapability(long capability) { in hasCapability() argument 190 return (mGnssCapabilities & capability) == capability; in hasCapability()
|
/frameworks/base/telephony/java/android/telephony/ims/feature/ |
D | ImsFeature.java | 208 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in onChangeCapabilityConfigurationError() argument 214 mCallback.onChangeCapabilityConfigurationError(capability, radioTech, reason); in onChangeCapabilityConfigurationError() 446 final void queryCapabilityConfigurationInternal(int capability, int radioTech, in queryCapabilityConfigurationInternal() argument 448 boolean enabled = queryCapabilityConfiguration(capability, radioTech); in queryCapabilityConfigurationInternal() 451 c.onQueryCapabilityConfiguration(capability, radioTech, enabled); in queryCapabilityConfigurationInternal() 513 public abstract boolean queryCapabilityConfiguration(int capability, int radioTech); in queryCapabilityConfiguration() argument
|
D | MmTelFeature.java | 166 public void queryCapabilityConfiguration(int capability, int radioTech, 168 queryCapabilityConfigurationInternal(capability, radioTech, c); 304 public final void removeCapabilities(@MmTelCapability int capability) { in removeCapabilities() argument 305 super.removeCapabilities(capability); in removeCapabilities() 580 public boolean queryCapabilityConfiguration(@MmTelCapabilities.MmTelCapability int capability, in queryCapabilityConfiguration() argument
|
D | RcsFeature.java | 100 public void queryCapabilityConfiguration(int capability, int radioTech, in queryCapabilityConfiguration() argument 102 executeMethodAsync(() -> mReference.queryCapabilityConfigurationInternal(capability, in queryCapabilityConfiguration() 319 @RcsImsCapabilities.RcsImsCapabilityFlag int capability, in queryCapabilityConfiguration()
|
/frameworks/base/telephony/java/android/telephony/ims/aidl/ |
D | IImsCapabilityCallback.aidl | 24 void onQueryCapabilityConfiguration(int capability, int radioTech, boolean enabled); in onQueryCapabilityConfiguration() argument 25 void onChangeCapabilityConfigurationError(int capability, int radioTech, int reason); in onChangeCapabilityConfigurationError() argument
|
D | IImsRcsController.aidl | 42 boolean isCapable(int subId, int capability, int radioTech); in isCapable() argument 43 boolean isAvailable(int subId, int capability); in isAvailable() argument
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/ |
D | NativeScanResultTest.java | 67 scanResult.capability = TEST_CAPABILITY; in canSerializeAndDeserialize() 84 assertEquals(scanResult.capability, scanResultDeserialized.capability); in canSerializeAndDeserialize()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | MmTelFeatureCompatAdapter.java | 89 public ConfigListener(int capability, int tech, CountDownLatch latch) { in ConfigListener() argument 90 mCapability = capability; in ConfigListener() 291 public boolean queryCapabilityConfiguration(int capability, int radioTech) { in queryCapabilityConfiguration() argument 292 int capConverted = convertCapability(capability, radioTech); in queryCapabilityConfiguration() 522 private int convertCapability(int capability, int radioTech) { in convertCapability() argument 525 switch (capability) { in convertCapability() 537 switch (capability) { in convertCapability()
|
/frameworks/base/tests/net/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 174 public void addCapability(int capability) { in addCapability() argument 175 mNetworkCapabilities.addCapability(capability); in addCapability() 179 public void removeCapability(int capability) { in removeCapability() argument 180 mNetworkCapabilities.removeCapability(capability); in removeCapability()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | InformationElementUtil.java | 807 String capability = generateCapabilitiesStringPerProtocol(i); in generateCapabilitiesString() local 810 String capWpa2 = generateWPA2CapabilitiesString(capability, i); in generateCapabilitiesString() 812 capabilities.append(capability); in generateCapabilitiesString() 830 StringBuilder capability = new StringBuilder(); in generateCapabilitiesStringPerProtocol() local 831 capability.append("[").append(protocolToString(protocol.get(index))); in generateCapabilitiesStringPerProtocol() 835 capability.append((j == 0) ? "-" : "+").append( in generateCapabilitiesStringPerProtocol() 841 capability.append((j == 0) ? "-" : "+").append( in generateCapabilitiesStringPerProtocol() 845 capability.append("]"); in generateCapabilitiesStringPerProtocol() 846 return capability.toString(); in generateCapabilitiesStringPerProtocol()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ITelephony.aidl | 1963 boolean isCapable(int subId, int capability, int regTech); in isCapable() argument 1968 boolean isAvailable(int subId, int capability, int regTech); in isAvailable() argument 1973 void isMmTelCapabilitySupported(int subId, IIntegerConsumer callback, int capability, in isMmTelCapabilitySupported() argument 2082 void setImsProvisioningStatusForCapability(int subId, int capability, int tech, in setImsProvisioningStatusForCapability() argument 2088 boolean getImsProvisioningStatusForCapability(int subId, int capability, int tech); in getImsProvisioningStatusForCapability() argument 2093 boolean getRcsProvisioningStatusForCapability(int subId, int capability); in getRcsProvisioningStatusForCapability() argument 2098 void setRcsProvisioningStatusForCapability(int subId, int capability, in setRcsProvisioningStatusForCapability() argument 2102 boolean isMmTelCapabilityProvisionedInCache(int subId, int capability, int tech); in isMmTelCapabilityProvisionedInCache() argument 2105 void cacheMmTelCapabilityProvisioning(int subId, int capability, int tech, in cacheMmTelCapabilityProvisioning() argument
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssMeasurementCorrectionsProvider.java | 127 private static boolean hasCapability(int halCapabilities, int capability) { in hasCapability() argument 128 return (halCapabilities & capability) != 0; in hasCapability()
|
D | GnssCapabilitiesProvider.java | 121 private static boolean hasCapability(int halCapabilities, int capability) { in hasCapability() argument 122 return (halCapabilities & capability) != 0; in hasCapability()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 48 ACameraMetadata::isNdkSupportedCapability(int32_t capability) { in isNdkSupportedCapability() argument 49 switch (capability) { in isNdkSupportedCapability() 74 uint8_t capability = entry.data.u8[i]; in filterUnsupportedFeatures() local 75 if (isNdkSupportedCapability(capability)) { in filterUnsupportedFeatures() 76 capabilities.push(capability); in filterUnsupportedFeatures() 78 if (capability == ANDROID_REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA) { in filterUnsupportedFeatures()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Connection.java | 100 public void onConnectionCapabilitiesChanged(int capability); in onConnectionCapabilitiesChanged() argument 130 public void onConnectionCapabilitiesChanged(int capability) {} in onConnectionCapabilitiesChanged() argument 914 public static int addCapability(int capabilities, int capability) { in addCapability() argument 915 return capabilities | capability; in addCapability() 925 public static int removeCapability(int capabilities, int capability) { in removeCapability() argument 926 return capabilities & ~capability; in removeCapability()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityServiceInfo.java | 1119 public static String capabilityToString(int capability) { in capabilityToString() argument 1120 switch (capability) { in capabilityToString() 1214 public final int capability; field in AccessibilityServiceInfo.CapabilityInfo 1218 public CapabilityInfo(int capability, int titleResId, int descResId) { in CapabilityInfo() argument 1219 this.capability = capability; in CapabilityInfo()
|
/frameworks/libs/net/common/devicetests/com/android/testutils/ |
D | TestableNetworkCallback.kt | 374 capability: Int, in expectLinkPropertiesThat() 378 return expectCapabilitiesThat(n.network, timeoutMs) { it.hasCapability(capability) }.caps in expectLinkPropertiesThat() 383 capability: Int, in expectCapabilitiesWithout() 387 return expectCapabilitiesThat(n.network, timeoutMs) { !it.hasCapability(capability) }.caps in expectCapabilitiesWithout()
|