Searched refs:capability (Results 1 – 6 of 6) sorted by relevance
96 public CapabilitySet add(int capability) { in add() argument97 if ((capability < 0) || (capability > OsConstants.CAP_LAST_CAP)) { in add()99 "capability id %d out of valid range", capability)); in add()101 mCapabilities.add(capability); in add()
174 for (Integer capability = REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE; in testCapabilities()175 capability <= LAST_CAPABILITY_ENUM; capability++) { in testCapabilities()176 boolean isCapabilityAvailable = availableCaps.contains(capability); in testCapabilities()177 validateCapability(capability, isCapabilityAvailable); in testCapabilities()279 private void validateCapability(Integer capability, boolean isCapabilityAvailable) { in validateCapability() argument289 switch (capability) { in validateCapability()423 assertTrue(String.format("Unknown capability set: %d", capability), in validateCapability()
326 private void assertCallCapability(final Call call, final int capability) { in assertCallCapability() argument336 return call.getDetails().can(capability); in assertCallCapability()340 "Call should have capability " + capability in assertCallCapability()
153 for (int capability : capabilities) { in checkCamera2Features()154 switch (capability) { in checkCamera2Features()
1852 public boolean isCapabilitySupported(int capability) { in isCapabilitySupported() argument1853 if (capability < 0) { in isCapabilitySupported()1859 return availableCapabilities.contains(capability); in isCapabilitySupported()
1636 for (int capability : capabilities) {1637 if (capability ==