Home
last modified time | relevance | path

Searched refs:getFormat (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/cts/
DHardwareBufferTest.java52 assertEquals(HardwareBuffer.RGBA_8888, buffer.getFormat()); in testCreate()
58 assertEquals(HardwareBuffer.RGBX_8888, buffer.getFormat()); in testCreate()
61 assertEquals(HardwareBuffer.RGB_888, buffer.getFormat()); in testCreate()
64 assertEquals(HardwareBuffer.RGB_565, buffer.getFormat()); in testCreate()
67 assertEquals(HardwareBuffer.BLOB, buffer.getFormat()); in testCreate()
109 assertEquals(HardwareBuffer.RGBA_8888, buffer.getFormat()); in testCreateFromNativeObject()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceBuilderTest.java59 assertEquals(SliceItem.FORMAT_INT, item.getFormat()); in testInt()
77 assertEquals(SliceItem.FORMAT_IMAGE, item.getFormat()); in testIcon()
95 assertEquals(SliceItem.FORMAT_TEXT, item.getFormat()); in testText()
113 assertEquals(SliceItem.FORMAT_LONG, item.getFormat()); in testLong()
131 assertEquals(SliceItem.FORMAT_REMOTE_INPUT, item.getFormat()); in testRemoteInput()
149 assertEquals(SliceItem.FORMAT_BUNDLE, item.getFormat()); in testBundle()
169 assertEquals(SliceItem.FORMAT_ACTION, item.getFormat()); in testActionSubtype()
188 assertEquals(SliceItem.FORMAT_SLICE, item.getFormat()); in testSubsliceSubtype()
249 assertEquals(s1.getFormat(), s2.getFormat()); in assertEquivalent()
DSliceBindingTest.java93 assertEquals(SliceItem.FORMAT_SLICE, item.getFormat()); in testSubSlice()
110 assertEquals(SliceItem.FORMAT_TEXT, item.getFormat()); in testText()
125 assertEquals(SliceItem.FORMAT_IMAGE, item.getFormat()); in testIcon()
150 assertEquals(SliceItem.FORMAT_ACTION, item.getFormat()); in testAction()
174 assertEquals(SliceItem.FORMAT_INT, item.getFormat()); in testInt()
188 assertEquals(SliceItem.FORMAT_LONG, item.getFormat()); in testTimestamp()
226 assertEquals(SliceItem.FORMAT_BUNDLE, item.getFormat()); in testBundle()
DSliceManagerTest.java166 if (SliceItem.FORMAT_SLICE.equals(item.getFormat())) { in findAction()
169 if (SliceItem.FORMAT_ACTION.equals(item.getFormat())) { in findAction()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordingConfigurationTest.java133 mAudioRecord.getFormat(), mAudioRecord.getRoutedDevice(), configs)); in testAudioManagerGetActiveRecordConfigurations()
188 mAudioRecord.getAudioSessionId(), mAudioRecord.getFormat(), in doCallbackTest()
314 && (config.getFormat().getEncoding() != AudioFormat.ENCODING_INVALID) in verifyAudioConfig()
315 && (config.getFormat().getSampleRate() > 0) in verifyAudioConfig()
317 && ((config.getFormat().getChannelMask() != AudioFormat.CHANNEL_INVALID) in verifyAudioConfig()
318 || (config.getFormat().getChannelIndexMask() != in verifyAudioConfig()
DAdaptivePlaybackTest.java392 return getFormat(c) != null; in isValid()
453 return getFormat(c) != null; in isValid()
509 return getFormat(c) != null && c.mediaList.length > 1; in isValid()
1212 codec.configureAndStart(media.getFormat(), s /* surface */);
1262 public MediaFormat getFormat() {
1357 Log.i(TAG, "format=" + media.getFormat());
1360 if (media.getFormat().containsKey(tag)) {
1361 ByteBuffer csd = media.getFormat().getByteBuffer(tag);
1436 !capabilities.isFormatSupported(media.getFormat())) {
1438 Log.w(TAG, "codec " + name + " doesn't support " + media.getFormat());
[all …]
DCodecUtils.java66 public int getFormat() { in getFormat() method in CodecUtils.ImageWrapper
67 return mImage.getFormat(); in getFormat()
DCodecImage.java95 public abstract int getFormat(); in getFormat() method in CodecImage
DYUVImage.java73 public int getFormat() { in getFormat() method in YUVImage
DImageReaderDecoderTest.java617 assertEquals("Format doesn't match", format, image.getFormat()); in validateImage()
727 int format = image.getFormat(); in checkAndroidImageFormat()
757 int format = image.getFormat(); in getDataFromImage()
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
DHardwareBufferVrTest.java50 assertEquals(format, buffer.getFormat()); in testLayeredBuffersForVr()
57 assertEquals(format, buffer.getFormat()); in testLayeredBuffersForVr()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp70 static jint getFormat(JNIEnv* env, jclass, jobject jbitmap) { in getFormat() function
89 { "nGetFormat", "(Landroid/graphics/Bitmap;)I", (void*) getFormat },
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DDepthImage.java62 return new DepthImage(decode.getFormat(), decode.getFar(), in createFromXMPMetadata()
100 public String getFormat() { in getFormat() method in DepthImage
DDepthTransform.java37 public String getFormat(); in getFormat() method
/cts/tests/tests/widget/src/android/widget/cts/
DChronometerTest.java82 assertEquals(mActivity.getString(R.string.chronometer_format), chronometer.getFormat()); in testConstructorFromAttr()
90 assertEquals(mActivity.getString(R.string.chronometer_format), chronometer.getFormat()); in testConstructorFromStyle()
126 assertEquals(expected, chronometer.getFormat()); in testAccessFormat()
DRemoteViewsTest.java317 assertEquals("HH:MM:SS", chronometer.getFormat()); in testSetChronometer()
323 assertEquals("HH:MM:SS", chronometer.getFormat()); in testSetChronometer()
329 assertEquals("invalid", chronometer.getFormat()); in testSetChronometer()
572 assertNull(chronometer.getFormat()); in testSetString()
576 assertEquals(format, chronometer.getFormat()); in testSetString()
/cts/tests/tests/keystore/src/android/keystore/cts/
DTransparentSecretKey.java47 public String getFormat() { in getFormat() method in TransparentSecretKey
DTestUtils.java200 assertEquals("X.509", key.getFormat()); in assertKeyMaterialExportable()
202 assertEquals("PKCS#8", key.getFormat()); in assertKeyMaterialExportable()
204 assertEquals("RAW", key.getFormat()); in assertKeyMaterialExportable()
216 assertEquals(null, key.getFormat()); in assertKeyMaterialNotExportable()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/image/
DRangeLinearDepthTransform.java48 public String getFormat() { in getFormat() method in RangeLinearDepthTransform
DRangeInverseDepthTransform.java47 public String getFormat() { in getFormat() method in RangeInverseDepthTransform
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1004 assertEquals("Format doesn't match", format, image.getFormat()); in checkImage()
1023 int format = image.getFormat(); in getDataFromImage()
1111 int format = image.getFormat(); in checkAndroidImageFormat()
1972 if (src.getFormat() != dst.getFormat()) { in imageCopy()
1975 if (src.getFormat() == ImageFormat.PRIVATE || in imageCopy()
1976 dst.getFormat() == ImageFormat.PRIVATE) { in imageCopy()
2070 switch (image.getFormat()) { in getEffectivePlaneSizeForImage()
2087 String.format("Invalid image format %d", image.getFormat())); in getEffectivePlaneSizeForImage()
2116 if (lhsImg.getFormat() != rhsImg.getFormat()) { in isImageStronglyEqual()
2117 Log.i(TAG, "lhsImg format " + lhsImg.getFormat() + " is different with rhsImg format " in isImageStronglyEqual()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java191 int format = image.getFormat(); in getDataFromImage()
202 "Invalid image format passed to getDataFromImage: " + image.getFormat()); in getDataFromImage()
299 int format = image.getFormat(); in checkAndroidImageFormat()
/cts/tests/camera/src/android/hardware/camera2/cts/
DRobustnessTest.java233 int format = streamInfo.getFormat(); in setupConfigurationTargets()
334 if (streamInfo.getFormat() == ImageFormat.YUV_420_888) { in testMandatoryStreamCombination()
346 if (streamInfo.getFormat() == ImageFormat.JPEG) { in testMandatoryStreamCombination()
525 if (streamInfo.getFormat() == ImageFormat.YUV_420_888) { in testMandatoryReprocessableStreamCombination()
539 if (streamInfo.getFormat() == ImageFormat.JPEG) { in testMandatoryReprocessableStreamCombination()
579 int inputFormat = streamInfo.get(0).getFormat(); in testMandatoryReprocessableStreamCombination()
605 final boolean inputIsYuv = inputConfig.getFormat() == ImageFormat.YUV_420_888; in testMandatoryReprocessableStreamCombination()
606 final boolean inputIsY8 = inputConfig.getFormat() == ImageFormat.Y8; in testMandatoryReprocessableStreamCombination()
617 inputConfig.getFormat(), in testMandatoryReprocessableStreamCombination()
DReprocessCaptureTest.java1217 inputConfig.getWidth(), inputConfig.getHeight(), inputConfig.getFormat(), in setupReprocessableSession()
1222 inputConfig.getFormat() == mFirstImageReader.getImageFormat()); in setupReprocessableSession()
1447 switch(image.getFormat()) { in dumpImage()
1460 filename += "." + image.getFormat(); in dumpImage()
DImageWriterTest.java252 mWriter.getFormat() == CAMERA_PRIVATE_FORMAT); in readerWriterFormatTestByCamera()

12