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.java267 public NetworkCapabilities addCapability(int capability) { in addCapability() argument
268 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) { in addCapability()
271 mNetworkCapabilities |= 1 << capability; in addCapability()
282 public NetworkCapabilities removeCapability(int capability) { in removeCapability() argument
283 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) { in removeCapability()
286 mNetworkCapabilities &= ~(1 << capability); in removeCapability()
307 public boolean hasCapability(int capability) { in hasCapability() argument
308 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) { in hasCapability()
311 return ((mNetworkCapabilities & (1 << capability)) != 0); in hasCapability()
914 public static String capabilityNameOf(int capability) { in capabilityNameOf() argument
[all …]
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/telecomm/java/android/telecom/
DConference.java184 public static boolean can(int capabilities, int capability) { in can() argument
185 return (capabilities & capability) != 0; in can()
195 public boolean can(int capability) { in can() argument
196 return can(mConnectionCapabilities, capability); in can()
205 public void removeCapability(int capability) { in removeCapability() argument
207 newCapabilities &= ~capability; in removeCapability()
218 public void addCapability(int capability) { in addCapability() argument
220 newCapabilities |= capability; in addCapability()
DConnection.java601 public static boolean can(int capabilities, int capability) { in can() argument
602 return (capabilities & capability) == capability; in can()
612 public boolean can(int capability) { in can() argument
613 return can(mConnectionCapabilities, capability); in can()
622 public void removeCapability(int capability) { in removeCapability() argument
623 mConnectionCapabilities &= ~capability; in removeCapability()
632 public void addCapability(int capability) { in addCapability() argument
633 mConnectionCapabilities |= capability; in addCapability()
DPhoneAccount.java669 public boolean hasCapabilities(int capability) { in hasCapabilities() argument
670 return (mCapabilities & capability) == capability; in hasCapabilities()
DCall.java448 public static boolean can(int capabilities, int capability) { in can() argument
449 return (capabilities & capability) == capability; in can()
458 public boolean can(int capability) { in can() argument
459 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
115 public void onConnectionCapabilitiesChanged(int capability) {} in onConnectionCapabilitiesChanged() argument
706 public static int addCapability(int capabilities, int capability) { in addCapability() argument
707 return capabilities | capability; in addCapability()
717 public static int removeCapability(int capabilities, int capability) { in removeCapability() argument
718 return capabilities & ~capability; in removeCapability()
/frameworks/support/compat/java/android/support/v4/accessibilityservice/
DAccessibilityServiceInfoCompat.java299 public static String capabilityToString(int capability) { in capabilityToString() argument
300 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/android/net/
DConnectivityManagerTest.java87 for (int capability : capabilities) { in verifyNetworkCapabilities()
88 assertTrue(nc.hasCapability(capability)); in verifyNetworkCapabilities()
104 static void verifyRestrictedMobileNetworkCapabilities(int legacyType, int capability) { in verifyRestrictedMobileNetworkCapabilities() argument
108 capability, in verifyRestrictedMobileNetworkCapabilities()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java689 for (int capability : capabilities) { in posixCapabilitiesAsBits()
690 if ((capability < 0) || (capability > OsConstants.CAP_LAST_CAP)) { in posixCapabilitiesAsBits()
691 throw new IllegalArgumentException(String.valueOf(capability)); in posixCapabilitiesAsBits()
693 result |= (1L << capability); in posixCapabilitiesAsBits()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java392 public void addCapability(int capability) { in addCapability() argument
393 mNetworkCapabilities.addCapability(capability); in addCapability()
397 public void removeCapability(int capability) { in removeCapability() argument
398 mNetworkCapabilities.removeCapability(capability); in removeCapability()
1370 void expectCapabilitiesWith(int capability, MockNetworkAgent agent) { in expectCapabilitiesWith() argument
1373 assertTrue(nc.hasCapability(capability)); in expectCapabilitiesWith()
1376 void expectCapabilitiesWithout(int capability, MockNetworkAgent agent) { in expectCapabilitiesWithout() argument
1379 assertFalse(nc.hasCapability(capability)); in expectCapabilitiesWithout()
1789 private void tryNetworkFactoryRequests(int capability) throws Exception { in tryNetworkFactoryRequests() argument
1791 final NetworkCapabilities nc = new NetworkRequest.Builder().addCapability(capability) in tryNetworkFactoryRequests()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h78 bool hasCapability(HWC2::Capability capability) const;
DHWComposer.cpp87 bool HWComposer::hasCapability(HWC2::Capability capability) const in hasCapability()
89 return mHwcDevice->getCapabilities().count(capability) > 0; in hasCapability()
DHWC2.cpp219 for (auto capability : capabilities) { in loadCapabilities() local
220 mCapabilities.emplace(static_cast<Capability>(capability)); in loadCapabilities()
/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.java1087 SupplicantResult<Integer> capability = new SupplicantResult( in getGroupCapability() local
1092 capability.setResult(status, cap); in getGroupCapability()
1099 if (!capability.isSuccess()) { in getGroupCapability()
1103 return capability.getResult(); in getGroupCapability()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWificondControl.java375 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()
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h199 bool hasCapability(Capability capability) const;

12