/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | ApplicationMediaCapabilitiesTest.java | 43 ApplicationMediaCapabilities capability = in testSetSupportHevc() local 46 assertTrue(capability.isVideoMimeTypeSupported(MediaFormat.MIMETYPE_VIDEO_HEVC)); in testSetSupportHevc() 50 ApplicationMediaCapabilities capability = in testSetUnsupportVideoMime() local 53 assertFalse(capability.isVideoMimeTypeSupported(MediaFormat.MIMETYPE_VIDEO_HEVC)); in testSetUnsupportVideoMime() 57 ApplicationMediaCapabilities capability = in testSetSupportHdr() local 61 assertTrue(capability.isHdrTypeSupported(MediaFeature.HdrType.HDR10_PLUS)); in testSetSupportHdr() 65 ApplicationMediaCapabilities capability = in testSetUnsupportHdr() local 69 assertFalse(capability.isHdrTypeSupported(MediaFeature.HdrType.HDR10_PLUS)); in testSetUnsupportHdr() 75 ApplicationMediaCapabilities capability = in testSupportHdrWithoutSupportHevc() 84 ApplicationMediaCapabilities capability = in testBuilder() local [all …]
|
/cts/tests/translation/src/android/translation/cts/unittests/ |
D | TranslationCapabilityTest.java | 56 final TranslationCapability capability = in testCapability_validCapability() local 61 assertThat(capability.getState()) in testCapability_validCapability() 63 assertThat(capability.getSupportedTranslationFlags()) in testCapability_validCapability() 65 assertThat(capability.isUiTranslationEnabled()).isTrue(); in testCapability_validCapability() 67 assertThat(capability.getSourceSpec().getLocale()).isEqualTo(ULocale.ENGLISH); in testCapability_validCapability() 68 assertThat(capability.getSourceSpec().getDataFormat()) in testCapability_validCapability() 71 assertThat(capability.getTargetSpec().getLocale()).isEqualTo(ULocale.FRENCH); in testCapability_validCapability() 72 assertThat(capability.getTargetSpec().getDataFormat()) in testCapability_validCapability() 78 final TranslationCapability capability = in testParceledCapability() local 83 assertThat(capability.getState()) in testParceledCapability() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | RcsUceAdapterTest.java | 599 RcsContactUceCapability capability = waitForResult(capabilityQueue); in testCapabilitiesRequestAllowed() local 600 assertNotNull("Capabilities were not received for contact: " + sTestNumberUri, capability); in testCapabilitiesRequestAllowed() 601 verifyCapabilityResult(capability, sTestNumberUri, SOURCE_TYPE_NETWORK, in testCapabilitiesRequestAllowed() 613 capability = waitForResult(capabilityQueue); in testCapabilitiesRequestAllowed() 614 verifyCapabilityResult(capability, sTestNumberUri, SOURCE_TYPE_NETWORK, in testCapabilitiesRequestAllowed() 993 RcsContactUceCapability capability = waitForResult(capabilityQueue); in testRequestCapabilitiesWithPresenceMechanism() local 994 assertNotNull("Capabilities were not received for contact", capability); in testRequestCapabilitiesWithPresenceMechanism() 995 resultCapList.add(capability); in testRequestCapabilitiesWithPresenceMechanism() 997 capability = waitForResult(capabilityQueue); in testRequestCapabilitiesWithPresenceMechanism() 998 assertNotNull("Capabilities were not received for contact", capability); in testRequestCapabilitiesWithPresenceMechanism() [all …]
|
D | TestRcsFeature.java | 145 public boolean queryCapabilityConfiguration(int capability, int radioTech) { in queryCapabilityConfiguration() argument 147 Log.d(TAG, "TestRcsFeature.queryCapabilityConfiguration capability: " + capability); in queryCapabilityConfiguration() 150 return mRcsCapabilitiesLte.isCapable(capability); in queryCapabilityConfiguration() 152 return mRcsCapabilitiesIWan.isCapable(capability); in queryCapabilityConfiguration()
|
D | TestMmTelFeature.java | 60 public boolean queryCapabilityConfiguration(int capability, int radioTech) { in queryCapabilityConfiguration() argument 62 Log.d(TAG, "queryCapabilityConfiguration called with capability: " + capability); in queryCapabilityConfiguration() 64 return mCapabilities.isCapable(capability); in queryCapabilityConfiguration()
|
D | EabControllerTest.java | 246 RcsContactUceCapability capability = requestCapabilities(contacts); in testRequestCapabilities() local 249 verifyCapabilityResult(capability, in testRequestCapabilities() 284 RcsContactUceCapability capability = requestAvailability(sTestNumberUri); in testRequestAvailabilities() local 287 verifyCapabilityResult(capability, in testRequestAvailabilities() 331 RcsContactUceCapability capability = requestCapabilities(contacts); in testRequestExpiredCapabilities() local 334 verifyCapabilityResult(capability, in testRequestExpiredCapabilities() 377 RcsContactUceCapability capability = requestAvailability(sTestNumberUri); in testRequestExpiredAvailabilities() local 380 verifyCapabilityResult(capability, in testRequestExpiredAvailabilities()
|
D | ImsServiceTest.java | 3444 int capability = sSrcReceiver.getCapability(); in testProvisioningManagerRcsVolteSingleRegistrationCapable() local 3447 (ProvisioningManager.STATUS_CARRIER_NOT_CAPABLE & capability) == 0); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3462 capability = sSrcReceiver.getCapability(); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3465 (ProvisioningManager.STATUS_CARRIER_NOT_CAPABLE & capability) == 0); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3477 capability = sSrcReceiver.getCapability(); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3480 (ProvisioningManager.STATUS_DEVICE_NOT_CAPABLE & capability) == 0); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3492 capability = sSrcReceiver.getCapability(); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3495 (ProvisioningManager.STATUS_DEVICE_NOT_CAPABLE & capability) == 0); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3507 capability = sSrcReceiver.getCapability(); in testProvisioningManagerRcsVolteSingleRegistrationCapable() 3510 (ProvisioningManager.STATUS_DEVICE_NOT_CAPABLE & capability) == 0); in testProvisioningManagerRcsVolteSingleRegistrationCapable() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileUtils.java | 96 public CapabilitySet add(int capability) { in add() argument 97 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()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | WatchUidRunner.java | 167 public void waitFor(int cmd, String procState, Integer capability) { in waitFor() argument 168 waitFor(cmd, procState, capability, mDefaultWaitTime); in waitFor() 175 public void waitFor(int cmd, String procState, Integer capability, long timeout) { in waitFor() argument 178 String[] line = waitForNextLine(waitUntil, cmd, procState, capability); in waitFor() 180 if (procState == null && capability == null) { in waitFor() 185 if (procState != null && capability != null) { in waitFor() 186 if (procState.equals(line[2]) && capability.toString().equals(line[6])) { in waitFor() 195 } else if (capability != null) { in waitFor() 196 if (capability.toString().equals(line[6])) { in waitFor() 230 String[] waitForNextLine(long waitUntil, int cmd, String procState, Integer capability) { in waitForNextLine() argument [all …]
|
/cts/tests/translation/src/android/translation/cts/ |
D | TranslationManagerTest.java | 145 final Consumer<TranslationCapability> updateListener = capability -> { in testTranslationCapabilityUpdateListener() 146 Log.w(TAG, "text2textListener called. capability = " + capability); in testTranslationCapabilityUpdateListener() 147 resultRef.set(capability); in testTranslationCapabilityUpdateListener() 497 capabilities.forEach((capability) -> { in testGetTranslationCapabilities() argument 498 assertThat(capability.getState()).isEqualTo(TranslationCapability.STATE_ON_DEVICE); in testGetTranslationCapabilities() 500 assertThat(capability.getSupportedTranslationFlags()).isEqualTo(0); in testGetTranslationCapabilities() 501 assertThat(capability.isUiTranslationEnabled()).isTrue(); in testGetTranslationCapabilities() 502 assertThat(capability.getSourceSpec().getLocale()).isEqualTo(ULocale.ENGLISH); in testGetTranslationCapabilities() 503 assertThat(capability.getSourceSpec().getDataFormat()).isEqualTo(DATA_FORMAT_TEXT); in testGetTranslationCapabilities() 504 assertThat(capability.getTargetSpec().getLocale()).isEqualTo(ULocale.FRENCH); in testGetTranslationCapabilities() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | StaticMetadataTest.java | 183 for (Integer capability = REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE; in testCapabilities() 184 capability <= StaticMetadata.LAST_CAPABILITY_ENUM; capability++) { in testCapabilities() 185 boolean isCapabilityAvailable = availableCaps.contains(capability); in testCapabilities() 186 validateCapability(capability, isCapabilityAvailable); in testCapabilities() 288 private void validateCapability(Integer capability, boolean isCapabilityAvailable) { in validateCapability() argument 298 switch (capability) { in validateCapability() 457 assertTrue(String.format("Unknown capability set: %d", capability), in validateCapability()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 348 for (int capability : actualCapabilities) { in getItsCompatibleCameraIds() 349 if (capability == BACKWARD_COMPAT) { in getItsCompatibleCameraIds() 352 if (capability == LOGICAL_MULTI_CAMERA) { in getItsCompatibleCameraIds() 392 for (int capability : physicalActualCapabilities) { in getItsCompatibleCameraIds() 393 if (capability == BACKWARD_COMPAT) { in getItsCompatibleCameraIds()
|
D | ItsService.java | 2075 private boolean hasCapability(int capability) throws ItsException { 2082 if (c == capability) {
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConferenceTest.java | 550 private void assertCallCapability(final Call call, final int capability) { in assertCallCapability() argument 560 return call.getDetails().can(capability); in assertCallCapability() 564 "Call should have capability " + capability in assertCallCapability()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputHidTestCase.java | 147 private InputDevice getInputDevice(Capability capability) { in getInputDevice() argument 154 && capability.check(inputDevice)) { in getInputDevice()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 182 for (int capability : capabilities) { in checkCamera2Features() 183 switch (capability) { in checkCamera2Features()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 959 private List<Integer> getSupportedSoftApBand(SoftApCapability capability) { in getSupportedSoftApBand() argument 962 capability.areFeaturesSupported( in getSupportedSoftApBand() 967 capability.areFeaturesSupported( in getSupportedSoftApBand() 972 capability.areFeaturesSupported( in getSupportedSoftApBand() 977 capability.areFeaturesSupported( in getSupportedSoftApBand() 2122 private boolean shouldFallbackToSingleAp(int[] bands, SoftApCapability capability) { in shouldFallbackToSingleAp() argument 2124 if (capability.getSupportedChannelList(band).length == 0) { in shouldFallbackToSingleAp() 2131 private SparseIntArray getAvailableBandAndChannelForTesting(SoftApCapability capability) { in getAvailableBandAndChannelForTesting() argument 2140 int[] supportedList = capability.getSupportedChannelList(band); in getAvailableBandAndChannelForTesting()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | StaticMetadata.java | 2132 public boolean isCapabilitySupported(int capability) { in isCapabilitySupported() argument 2133 if (capability < 0) { in isCapabilitySupported() 2139 return availableCapabilities.contains(capability); in isCapabilitySupported()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1127 public static boolean hasCapability(CameraCharacteristics characteristics, int capability) { in hasCapability() argument 1131 if (c == capability) { in hasCapability()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 1439 public void onPhoneCapabilityChanged(PhoneCapability capability) { in onPhoneCapabilityChanged() argument 1441 mPhoneCapability = capability; in onPhoneCapabilityChanged()
|