Home
last modified time | relevance | path

Searched refs:capability (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/
DNativeScanResult.java38 public BitSet capability; field in NativeScanResult
52 capability = (BitSet) source.capability.clone(); in NativeScanResult()
73 if (capability.get(i)) { in writeToParcel()
94 result.capability = new BitSet(CAPABILITY_SIZE);
97 result.capability.set(i);
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java265 public NetworkCapabilities addCapability(int capability) { in addCapability() argument
266 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) { in addCapability()
269 mNetworkCapabilities |= 1 << capability; in addCapability()
280 public NetworkCapabilities removeCapability(int capability) { in removeCapability() argument
281 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) { in removeCapability()
284 mNetworkCapabilities &= ~(1 << capability); in removeCapability()
305 public boolean hasCapability(int capability) { in hasCapability() argument
306 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) { in hasCapability()
309 return ((mNetworkCapabilities & (1 << capability)) != 0); in hasCapability()
DNetworkRequest.java165 public Builder addCapability(int capability) { in addCapability() argument
166 mNetworkCapabilities.addCapability(capability); in addCapability()
176 public Builder removeCapability(int capability) { in removeCapability() argument
177 mNetworkCapabilities.removeCapability(capability); in removeCapability()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/
DNativeScanResultTest.java62 scanResult.capability = TEST_CAPABILITY; in canSerializeAndDeserialize()
76 assertTrue(scanResult.capability.equals(scanResultDeserialized.capability)); in canSerializeAndDeserialize()
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java59 for (int capability : capabilities) { in verifyNetworkCapabilities()
60 assertTrue(nc.hasCapability(capability)); in verifyNetworkCapabilities()
76 static void verifyRestrictedMobileNetworkCapabilities(int legacyType, int capability) { in verifyRestrictedMobileNetworkCapabilities() argument
80 capability, in verifyRestrictedMobileNetworkCapabilities()
/frameworks/base/telecomm/java/android/telecom/
DConference.java182 public static boolean can(int capabilities, int capability) { in can() argument
183 return (capabilities & capability) != 0; in can()
193 public boolean can(int capability) { in can() argument
194 return can(mConnectionCapabilities, capability); in can()
203 public void removeCapability(int capability) { in removeCapability() argument
205 newCapabilities &= ~capability; in removeCapability()
216 public void addCapability(int capability) { in addCapability() argument
218 newCapabilities |= capability; in addCapability()
DConnection.java582 public static boolean can(int capabilities, int capability) { in can() argument
583 return (capabilities & capability) == capability; in can()
593 public boolean can(int capability) { in can() argument
594 return can(mConnectionCapabilities, capability); in can()
603 public void removeCapability(int capability) { in removeCapability() argument
604 mConnectionCapabilities &= ~capability; in removeCapability()
613 public void addCapability(int capability) { in addCapability() argument
614 mConnectionCapabilities |= capability; in addCapability()
DPhoneAccount.java599 public boolean hasCapabilities(int capability) { in hasCapabilities() argument
600 return (mCapabilities & capability) == capability; in hasCapabilities()
DCall.java368 public static boolean can(int capabilities, int capability) { in can() argument
369 return (capabilities & capability) == capability; in can()
378 public boolean can(int capability) { in can() argument
379 return can(mCallCapabilities, capability); in can()
/frameworks/av/camera/ndk/impl/
DACameraMetadata.cpp40 ACameraMetadata::isNdkSupportedCapability(int32_t capability) { in isNdkSupportedCapability() argument
41 switch (capability) { in isNdkSupportedCapability()
57 ALOGE("%s: Unknonwn capability %d", __FUNCTION__, capability); in isNdkSupportedCapability()
75 uint8_t capability = entry.data.u8[i]; in filterUnsupportedFeatures() local
76 if (isNdkSupportedCapability(capability)) { in filterUnsupportedFeatures()
77 capabilities.push(capability); in filterUnsupportedFeatures()
DACameraMetadata.h61 bool isNdkSupportedCapability(const int32_t capability);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DConnection.java90 public void onConnectionCapabilitiesChanged(int capability); in onConnectionCapabilitiesChanged() argument
113 public void onConnectionCapabilitiesChanged(int capability) {} in onConnectionCapabilitiesChanged() argument
681 public static int addCapability(int capabilities, int capability) { in addCapability() argument
682 return capabilities | capability; in addCapability()
692 public static int removeCapability(int capabilities, int capability) { in removeCapability() argument
693 return capabilities & ~capability; in removeCapability()
/frameworks/support/compat/java/android/support/v4/accessibilityservice/
DAccessibilityServiceInfoCompat.java427 public static String capabilityToString(int capability) { in capabilityToString() argument
428 switch (capability) { in capabilityToString()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java990 public static String capabilityToString(int capability) { in capabilityToString() argument
991 switch (capability) { in capabilityToString()
1085 public final int capability; field in AccessibilityServiceInfo.CapabilityInfo
1089 public CapabilityInfo(int capability, int titleResId, int descResId) { in CapabilityInfo() argument
1090 this.capability = capability; in CapabilityInfo()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java364 public void addCapability(int capability) { in addCapability() argument
365 mNetworkCapabilities.addCapability(capability); in addCapability()
369 public void removeCapability(int capability) { in removeCapability() argument
370 mNetworkCapabilities.removeCapability(capability); in removeCapability()
1278 void expectCapabilitiesWith(int capability, MockNetworkAgent agent) { in expectCapabilitiesWith() argument
1281 assertTrue(nc.hasCapability(capability)); in expectCapabilitiesWith()
1284 void expectCapabilitiesWithout(int capability, MockNetworkAgent agent) { in expectCapabilitiesWithout() argument
1287 assertFalse(nc.hasCapability(capability)); in expectCapabilitiesWithout()
1606 private void tryNetworkFactoryRequests(int capability) throws Exception { in tryNetworkFactoryRequests() argument
1608 final NetworkCapabilities nc = new NetworkRequest.Builder().addCapability(capability) in tryNetworkFactoryRequests()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java662 for (int capability : capabilities) { in posixCapabilitiesAsBits()
663 if ((capability < 0) || (capability > OsConstants.CAP_LAST_CAP)) { in posixCapabilitiesAsBits()
664 throw new IllegalArgumentException(String.valueOf(capability)); in posixCapabilitiesAsBits()
666 result |= (1L << capability); in posixCapabilitiesAsBits()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h87 bool hasCapability(HWC2::Capability capability) const;
DHWC2.cpp269 for (auto capability : capabilities) { in loadCapabilities() local
270 mCapabilities.emplace(static_cast<Capability>(capability)); in loadCapabilities()
274 bool Device::hasCapability(HWC2::Capability capability) const in hasCapability()
277 capability) != mCapabilities.cend(); in hasCapability()
DHWComposer.cpp113 bool HWComposer::hasCapability(HWC2::Capability capability) const in hasCapability()
115 return mHwcDevice->getCapabilities().count(capability) > 0; in hasCapability()
DHWC2.h105 bool hasCapability(HWC2::Capability capability) const;
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java175 private boolean hasCapability(int[] capabilities, int capability) { in hasCapability() argument
177 if (c == capability) return true; in hasCapability()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java189 private boolean hasCapability(int[] capabilities, int capability) { in hasCapability() argument
191 if (c == capability) return true; in hasCapability()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java1086 SupplicantResult<Integer> capability = new SupplicantResult( in getGroupCapability() local
1091 capability.setResult(status, cap); in getGroupCapability()
1098 if (!capability.isSuccess()) { in getGroupCapability()
1102 return capability.getResult(); in getGroupCapability()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWificondControl.java346 capabilities.from(ies, result.capability); in getScanResults()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java1881 public boolean isCapabilitySupported(int capability) { in isCapabilitySupported() argument
1882 if (capability < 0) { in isCapabilitySupported()
1888 return availableCapabilities.contains(capability); in isCapabilitySupported()

12