Searched refs:capability (Results 1 - 21 of 21) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
H A DCapabilityListElement.java23 Constants.ANQPElementType capability = Constants.mapANQPElement(capID);
24 if (capability == null)
25 throw new ProtocolException("Unknown capability: " + capID);
26 mCapabilities[index++] = capability;
H A DHSCapabilityListElement.java24 Constants.ANQPElementType capability = Constants.mapHS20Element(capID);
25 if (capability == null) {
26 throw new ProtocolException("Unknown capability: " + capID);
28 mCapabilities[index++] = capability;
/frameworks/base/core/java/android/net/
H A DNetworkCapabilities.java167 * Indicates that this network is not a VPN. This capability is set by default and should be
202 * capability's presence cannot be known in advance. If such a capability is requested, then we
204 * get immediately torn down because they do not have the requested capability.
233 * Adds the given capability to this {@code NetworkCapability} instance.
237 * @param capability the {@code NetworkCapabilities.NET_CAPABILITY_*} to be added.
241 public NetworkCapabilities addCapability(int capability) { argument
242 if (capability < MIN_NET_CAPABILITY || capability > MAX_NET_CAPABILITY) {
245 mNetworkCapabilities |= 1 << capability;
256 removeCapability(int capability) argument
281 hasCapability(int capability) argument
[all...]
H A DNetworkRequest.java87 // when later an unrestricted capability could be added to mNetworkCapabilities, in
97 * Add the given capability requirement to this builder. These represent
103 * @param capability The {@code NetworkCapabilities.NET_CAPABILITY_*} to add.
107 public Builder addCapability(int capability) { argument
108 mNetworkCapabilities.addCapability(capability);
113 * Removes (if found) the given capability from this builder instance.
115 * @param capability The {@code NetworkCapabilities.NET_CAPABILITY_*} to remove.
118 public Builder removeCapability(int capability) { argument
119 mNetworkCapabilities.removeCapability(capability);
/frameworks/base/telecomm/java/android/telecom/
H A DConference.java134 * Whether the given capabilities support the specified capability.
136 * @param capabilities A capability bit field.
137 * @param capability The capability to check capabilities for.
138 * @return Whether the specified capability is supported.
141 public static boolean can(int capabilities, int capability) { argument
142 return (capabilities & capability) != 0;
146 * Whether the capabilities of this {@code Connection} supports the specified capability.
148 * @param capability The capability t
152 can(int capability) argument
162 removeCapability(int capability) argument
172 addCapability(int capability) argument
[all...]
H A DPhoneAccount.java83 * Only the Android framework can register a {@code PhoneAccount} having this capability.
423 * @param capability The capabilities to check.
424 * @return {@code true} if the phone account has the capability.
426 public boolean hasCapabilities(int capability) { argument
427 return (mCapabilities & capability) == capability;
H A DConnection.java111 * capability allows a merge button to be shown while the conference is in the foreground
138 * Connection supports conference management. This capability only applies to
274 * {@link PhoneAccount} supports the capability {@link PhoneAccount#CAPABILITY_CALL_SUBJECT}.
282 * Whether the given capabilities support the specified capability.
284 * @param capabilities A capability bit field.
285 * @param capability The capability to check capabilities for.
286 * @return Whether the specified capability is supported.
289 public static boolean can(int capabilities, int capability) { argument
290 return (capabilities & capability) !
300 can(int capability) argument
310 removeCapability(int capability) argument
320 addCapability(int capability) argument
[all...]
H A DCall.java117 * capability allows a merge button to be shown while the conference call is in the foreground
144 * Call supports conference call management. This capability only applies to {@link Conference}
259 * Whether the supplied capabilities supports the specified capability.
262 * @param capability The capability to check capabilities for.
263 * @return Whether the specified capability is supported.
265 public static boolean can(int capabilities, int capability) { argument
266 return (capabilities & capability) != 0;
270 * Whether the capabilities of this {@code Details} supports the specified capability.
272 * @param capability Th
275 can(int capability) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DConnectivityServiceTest.java260 public void addCapability(int capability) { argument
261 mNetworkCapabilities.addCapability(capability);
1050 private void tryNetworkFactoryRequests(int capability) throws Exception { argument
1052 final NetworkCapabilities nc = new NetworkRequest.Builder().addCapability(capability)
1054 if (capability == NET_CAPABILITY_CBS || capability == NET_CAPABILITY_DUN ||
1055 capability == NET_CAPABILITY_EIMS || capability == NET_CAPABILITY_FOTA ||
1056 capability == NET_CAPABILITY_IA || capability
[all...]
/frameworks/support/v4/java/android/support/v4/accessibilityservice/
H A DAccessibilityServiceInfoCompat.java218 * this flag have to declare this capability in their meta-data by setting
242 * Services that want to set this flag have to declare this capability
269 * Services that want to set this flag have to declare this capability
418 * @return The capability bit mask.
430 * Returns the string representation of a capability. For example,
434 * @param capability The capability.
437 public static String capabilityToString(int capability) { argument
438 switch (capability) {
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityServiceInfo.java221 * this flag have to declare this capability in their meta-data by setting
247 * Services that want to set this flag have to declare this capability
276 * Services that want to set this flag have to declare this capability
297 * Services that want to set this flag have to declare the capability
599 * @return The capability bit mask.
614 * @param capabilities The capability bit mask.
903 * Returns the string representation of a capability. For example,
907 * @param capability The capability.
910 public static String capabilityToString(int capability) { argument
950 public final int capability; field in class:AccessibilityServiceInfo.CapabilityInfo
954 CapabilityInfo(int capability, int titleResId, int descResId) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java556 for (int capability : capabilities) {
557 if ((capability < 0) || (capability > OsConstants.CAP_LAST_CAP)) {
558 throw new IllegalArgumentException(String.valueOf(capability));
560 result |= (1L << capability);
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DCameraOps.java108 // Find first back-facing camera that has necessary capability
175 private boolean hasCapability(int[] capabilities, int capability) { argument
177 if (c == capability) return true;
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp280 // Sanitize the high speed session against necessary capability bit.
286 uint8_t capability = entry.data.u8[i]; local
287 if (capability == ANDROID_REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO) {
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraMetadataNative.java847 for (int capability : capabilities) {
848 if (capability == CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE) {
/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp33 #include <sys/capability.h>
H A Dandroid_util_AssetManager.cpp23 #include <linux/capability.h>
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c25 #include <sys/capability.h>
/frameworks/native/cmds/installd/
H A Dinstalld.cpp21 #include <sys/capability.h>
H A Dcommands.cpp28 #include <sys/capability.h>
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsLocationProvider.java1345 private boolean hasCapability(int capability) { argument
1346 return ((mEngineCapabilities & capability) != 0);

Completed in 456 milliseconds