/cts/tests/tests/media/src/android/media/cts/ |
D | MediaFormatTest.java | 32 MediaFormat format, String key, String type) { in assertGetByteBuffersThrowClassCastException() argument 34 ByteBuffer value = format.getByteBuffer(key); in assertGetByteBuffersThrowClassCastException() 40 ByteBuffer value = format.getByteBuffer(key, defaultByteBuffer); in assertGetByteBuffersThrowClassCastException() 47 MediaFormat format, String key, String type) { in assertGetFloatsThrowClassCastException() argument 49 float value = format.getFloat(key); in assertGetFloatsThrowClassCastException() 55 float value = format.getFloat(key, 321.f); in assertGetFloatsThrowClassCastException() 62 MediaFormat format, String key, String type) { in assertGetIntegersThrowClassCastException() argument 64 int value = format.getInteger(key); in assertGetIntegersThrowClassCastException() 70 int value = format.getInteger(key, 123); in assertGetIntegersThrowClassCastException() 77 MediaFormat format, String key, String type) { in assertGetLongsThrowClassCastException() argument [all …]
|
D | EncoderTest.java | 79 MediaFormat format = new MediaFormat(); in testAMRNBEncoders() local 80 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_NB); in testAMRNBEncoders() 81 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); in testAMRNBEncoders() 82 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRNBEncoders() 83 format.setInteger(MediaFormat.KEY_BIT_RATE, kBitRates[j]); in testAMRNBEncoders() 84 formats.push(format); in testAMRNBEncoders() 97 MediaFormat format = new MediaFormat(); in testAMRWBEncoders() local 98 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_WB); in testAMRWBEncoders() 99 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 16000); in testAMRWBEncoders() 100 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRWBEncoders() [all …]
|
D | MediaCodecTunneledPlayer.java | 123 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio() local 124 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() 130 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 131 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio() 132 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio() 134 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio() 137 if (!addTrack(i, format)) { in prepareAudio() 142 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio() 143 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio() 157 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo() local [all …]
|
D | MediaCodecTest.java | 127 MediaFormat format = MediaFormat.createAudioFormat( in testException() local 129 tested = verifyException(format, false /* isEncoder */) || tested; in testException() 132 format = MediaFormat.createAudioFormat( in testException() 134 format.setInteger(MediaFormat.KEY_BIT_RATE, 19850); in testException() 135 tested = verifyException(format, true /* isEncoder */) || tested; in testException() 138 format = createMediaFormat(); in testException() 139 tested = verifyException(format, false /* isEncoder */) || tested; in testException() 142 tested = verifyException(format, true /* isEncoder */) || tested; in testException() 169 private static boolean verifyException(MediaFormat format, boolean isEncoder) in verifyException() argument 171 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() [all …]
|
D | MediaCodecClearKeyPlayer.java | 211 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio() local 212 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() 217 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 218 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio() 219 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio() 221 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio() 233 addTrack(i, format, mEncryptedAudio); in prepareAudio() 236 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio() 237 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio() 257 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo() local [all …]
|
D | MediaCodecCapabilitiesTest.java | 430 MediaFormat format = MediaFormat.createVideoFormat(mime, 176, 144); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() local 431 format.setFeatureEnabled(CodecCapabilities.FEATURE_AdaptivePlayback, true); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 432 String codec = mAllCodecs.findDecoderForFormat(format); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 469 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in createReasonableVideoFormat() local 480 format.setInteger(format.KEY_BIT_RATE, bitrate); in createReasonableVideoFormat() 481 format.setInteger(format.KEY_FRAME_RATE, maxRate); in createReasonableVideoFormat() 482 format.setInteger(format.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in createReasonableVideoFormat() 484 return format; in createReasonableVideoFormat() 528 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in createVideoFormatForBitrateMode() local 534 format.setInteger(MediaFormat.KEY_BITRATE_MODE, bitrateMode); in createVideoFormatForBitrateMode() [all …]
|
D | NdkMediaCodec.java | 104 public void configure(MediaFormat format, int flags) { in configure() argument 106 int width = format.getInteger(MediaFormat.KEY_WIDTH, -1); in configure() 107 int height = format.getInteger(MediaFormat.KEY_HEIGHT, -1); in configure() 108 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure() 109 int bitRate = format.getInteger(MediaFormat.KEY_BIT_RATE, -1); in configure() 110 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure() 111 int iFrameInterval = format.getInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); in configure() 114 if (format.containsKey(CSD_0)) { in configure() 115 ByteBuffer csdBufOld = format.getByteBuffer(CSD_0); in configure() 123 format.getString(MediaFormat.KEY_MIME), in configure() [all …]
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 17 package android.text.format.cts; 32 import android.text.format.DateFormat; 137 assertEquals("D", DateFormat.format("MMMMM", c)); in test_format_M() 138 assertEquals("December", DateFormat.format("MMMM", c)); in test_format_M() 139 assertEquals("Dec", DateFormat.format("MMM", c)); in test_format_M() 140 assertEquals("12", DateFormat.format("MM", c)); in test_format_M() 141 assertEquals("12", DateFormat.format("M", c)); in test_format_M() 148 assertEquals("D", DateFormat.format("LLLLL", c)); in test_format_L() 149 assertEquals("December", DateFormat.format("LLLL", c)); in test_format_L() 150 assertEquals("Dec", DateFormat.format("LLL", c)); in test_format_L() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | RetryableException.java | 33 public RetryableException(String format, Object...args) { in RetryableException() argument 34 this((Timeout) null, String.format(format, args)); in RetryableException() 37 public RetryableException(Throwable cause, String format, Object...args) { in RetryableException() argument 38 this((Timeout) null, cause, String.format(format, args), cause); in RetryableException() 46 public RetryableException(@Nullable Timeout timeout, String format, Object...args) { in RetryableException() argument 47 super(String.format(format, args)); in RetryableException() 51 public RetryableException(@Nullable Timeout timeout, Throwable cause, String format, in RetryableException() argument 53 super(String.format(format, args), cause); in RetryableException()
|
D | MediaUtils.java | 219 for (MediaFormat format : formats) { in getCodecNames() 220 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames() 228 if (caps.isFormatSupported(format)) { in getCodecNames() 256 MediaFormat format = new MediaFormat(); in getDecoderNamesForMime() local 257 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime() 258 return getCodecNames(false /* isEncoder */, null /* isGoog */, format); in getDecoderNamesForMime() 262 MediaFormat format = new MediaFormat(); in getEncoderNamesForMime() local 263 format.setString(MediaFormat.KEY_MIME, mime); in getEncoderNamesForMime() 264 return getCodecNames(true /* isEncoder */, null /* isGoog */, format); in getEncoderNamesForMime() 280 public static MediaCodec getDecoder(MediaFormat format) { in getDecoder() argument [all …]
|
D | BusinessLogicDeviceExecutor.java | 52 public void logInfo(String format, Object... args) { in logInfo() argument 53 Log.i(LOG_TAG, String.format(format, args)); in logInfo() 60 public void logDebug(String format, Object... args) { in logDebug() argument 61 Log.d(LOG_TAG, String.format(format, args)); in logDebug() 69 return String.format("%s(%s)", method, TextUtils.join(", ", args)); in formatExecutionString() 113 throw new RuntimeException(String.format( in getResolvedMethod()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RetryableException.java | 33 public RetryableException(String format, Object...args) { in RetryableException() argument 34 this((Timeout) null, String.format(format, args)); in RetryableException() 37 public RetryableException(Throwable cause, String format, Object...args) { in RetryableException() argument 38 this((Timeout) null, cause, String.format(format, args), cause); in RetryableException() 46 public RetryableException(@Nullable Timeout timeout, String format, Object...args) { in RetryableException() argument 47 super(String.format(format, args)); in RetryableException() 51 public RetryableException(@Nullable Timeout timeout, Throwable cause, String format, in RetryableException() argument 53 super(String.format(format, args), cause); in RetryableException()
|
D | MediaUtils.java | 221 for (MediaFormat format : formats) { in getCodecNames() 222 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames() 230 if (caps.isFormatSupported(format)) { in getCodecNames() 258 MediaFormat format = new MediaFormat(); in getDecoderNamesForMime() local 259 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime() 260 return getCodecNames(false /* isEncoder */, null /* isGoog */, format); in getDecoderNamesForMime() 264 MediaFormat format = new MediaFormat(); in getEncoderNamesForMime() local 265 format.setString(MediaFormat.KEY_MIME, mime); in getEncoderNamesForMime() 266 return getCodecNames(true /* isEncoder */, null /* isGoog */, format); in getEncoderNamesForMime() 282 public static MediaCodec getDecoder(MediaFormat format) { in getDecoder() argument [all …]
|
D | BusinessLogicDeviceExecutor.java | 52 public void logInfo(String format, Object... args) { in logInfo() argument 53 Log.i(LOG_TAG, String.format(format, args)); in logInfo() 60 public void logDebug(String format, Object... args) { in logDebug() argument 61 Log.d(LOG_TAG, String.format(format, args)); in logDebug() 69 return String.format("%s(%s)", method, TextUtils.join(", ", args)); in formatExecutionString() 113 throw new RuntimeException(String.format( in getResolvedMethod()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | DeviceIdentifiersTest.java | 44 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getDeviceId"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 47 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getImei"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 50 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getMeid"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 53 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSubscriberId"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 57 String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSimSerialNumber"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 61 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "Build#getSerial"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 77 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getDeviceId")); in testProfileOwnerCannotGetDeviceIdentifiersWithoutPermission() 83 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getImei")); in testProfileOwnerCannotGetDeviceIdentifiersWithoutPermission() 89 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getMeid")); in testProfileOwnerCannotGetDeviceIdentifiersWithoutPermission() 95 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getSubscriberId")); in testProfileOwnerCannotGetDeviceIdentifiersWithoutPermission() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | DeviceIdentifiersTest.java | 44 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getDeviceId"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 47 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getImei"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 50 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getMeid"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 53 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSubscriberId"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 57 String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSimSerialNumber"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 61 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "Build#getSerial"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 77 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getDeviceId")); in testDeviceOwnerCannotGetDeviceIdentifiersWithoutPermission() 83 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getImei")); in testDeviceOwnerCannotGetDeviceIdentifiersWithoutPermission() 89 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getMeid")); in testDeviceOwnerCannotGetDeviceIdentifiersWithoutPermission() 95 fail(String.format(NO_SECURITY_EXCEPTION_ERROR_MESSAGE, "getSubscriberId")); in testDeviceOwnerCannotGetDeviceIdentifiersWithoutPermission() [all …]
|
/cts/tools/dasm/src/dasm/ |
D | DopInfo.java | 124 InsnFormat format = dop.getFormat(); in getArgsFormat() local 126 if (format instanceof Form10x) return ""; in getArgsFormat() 127 if (format instanceof Form12x) return ARG_REG_REG; in getArgsFormat() 128 if (format instanceof Form11n) return ARG_REG_LITERAL; in getArgsFormat() 129 if (format instanceof Form11x) return ARG_REGISTER; in getArgsFormat() 130 if (format instanceof Form10t || format instanceof Form20t) in getArgsFormat() 132 if (format instanceof Form22x) return ARG_REG_REG; in getArgsFormat() 133 if (format instanceof Form21t) return ARG_REG_ADDRESS; in getArgsFormat() 134 if (format instanceof Form21s) return ARG_REG_LITERAL; in getArgsFormat() 135 if (format instanceof Form21h) return ARG_REG_LITERAL; in getArgsFormat() [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 151 AMediaFormat* format = mFormats.front(); in ~CallbackData() local 153 AMediaFormat_delete(format); in ~CallbackData() 182 void addOutputFormat(AMediaFormat *format) { in addOutputFormat() argument 185 mFormats.push(format); in addOutputFormat() 189 int32_t getOutput(AMediaCodecBufferInfo *bufferInfo, AMediaFormat **format) { in getOutput() argument 200 *format = mFormats.front(); in getOutput() 233 AMediaFormat *format) { in OnFormatChangedCB() argument 234 ALOGV("OnFormatChangedCB: format(%s)", AMediaFormat_toString(format)); in OnFormatChangedCB() 236 callbackData->addOutputFormat(format); in OnFormatChangedCB() 269 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in testExtractor() local [all …]
|
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/ |
D | MediaPreparerAppTest.java | 79 return String.format("%dx%d", width, height); in toString() 90 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions() 92 width = Math.max(width, format.getInteger(MediaFormat.KEY_WIDTH)); in testGetResolutions() 93 height = Math.max(height, format.getInteger(MediaFormat.KEY_HEIGHT)); in testGetResolutions() 103 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions() 104 supported &= MediaUtils.checkDecoderForFormat(format); in testGetResolutions() 141 MediaFormat format = new MediaFormat(); in parseTrackFormat() local 142 format.setString(MediaFormat.KEY_MIME, ""); in parseTrackFormat() 151 format.setInteger(k, Integer.parseInt(v)); in parseTrackFormat() 153 format.setString(k, v); in parseTrackFormat() [all …]
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 63 const char* AHBFormatAsString(int32_t format) { in AHBFormatAsString() argument 64 switch (format) { in AHBFormatAsString() 94 const char* format_string = AHBFormatAsString(info.param.format); in GetTestName() 201 bool FormatHasAlpha(uint32_t format) { in FormatHasAlpha() argument 202 switch (format) { in FormatHasAlpha() 218 bool FormatIsFloat(uint32_t format) { in FormatIsFloat() argument 219 return format == AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT || format == GL_RGBA16F; in FormatIsFloat() 223 bool FormatIsYuv(uint32_t format) { in FormatIsYuv() argument 225 return format == AHARDWAREBUFFER_FORMAT_Y8Cb8Cr8_420; in FormatIsYuv() 228 void UploadData(const AHardwareBuffer_Desc& desc, GLenum format, GLenum type, const void* data) { in UploadData() argument [all …]
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | DepCsvPrinter.java | 64 String fileName = String.format("%s/%s.csv", dirName, exeName); in compareEntries() 104 mPWriter.println(String.format("%s,%s", node.getKey(), node.getValue())); in writeCsv() 109 mPWriter.println(String.format("%s,%s", link.getKey(), link.getValue())); in writeCsv() 116 String.format( in writeCsv() 135 String fileName = String.format("%s/%s.csv", dirName, "RC-files"); in compareRcEntries() 143 mPWriter.println(String.format("%s [label=\"%s\"]", rootNode, getNodeName(mTitle))); in compareRcEntries() 165 mPWriter.printf(String.format("%s [label=\"%s\"", sourceNode, rcName)); in writeRcDigraph() 169 mPWriter.println(String.format("%s -> %s", rootNode, sourceNode)); in writeRcDigraph() 175 mPWriter.printf(String.format("%s [label=\"%s\"", targetNode, targetFile)); in writeRcDigraph() 182 String depPath = String.format("%s -> %s", sourceNode, targetNode); in writeRcDigraph() [all …]
|
D | DepPrinter.java | 62 String fileName = String.format("%s/%s.gv", dirName, exeName); in compareEntries() 94 String.format( in writeDigraph() 98 mPWriter.printf(String.format("%s [label=\"%s\"", sourceNode, exeName)); in writeDigraph() 120 String fileName = String.format("%s/%s.gv", dirName, "RC-files"); in compareRcEntries() 128 mPWriter.println(String.format("%s [label=\"%s\"]", rootNode, getNodeName(mTitle))); in compareRcEntries() 150 mPWriter.printf(String.format("%s [label=\"%s\"", sourceNode, rcName)); in writeRcDigraph() 154 mPWriter.println(String.format("%s -> %s", rootNode, sourceNode)); in writeRcDigraph() 160 mPWriter.printf(String.format("%s [label=\"%s\"", targetNode, targetFile)); in writeRcDigraph() 167 String depPath = String.format("%s -> %s", sourceNode, targetNode); in writeRcDigraph() 227 String depPath = String.format("%s -> %s", sourceNode, targetNode); in printDep() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | Asn1UTCTime.java | 110 builder.append(twoDigit.format(year % 100)); in encodeToIA5String() 111 builder.append(twoDigit.format(month)); in encodeToIA5String() 112 builder.append(twoDigit.format(day)); in encodeToIA5String() 113 builder.append(twoDigit.format(hour % 100)); in encodeToIA5String() 114 builder.append(twoDigit.format(minute)); in encodeToIA5String() 115 builder.append(twoDigit.format(second)); in encodeToIA5String() 125 builder.append(fourDigit.format(year)); in toHumanReadableString() 127 builder.append(twoDigit.format(month)); in toHumanReadableString() 129 builder.append(twoDigit.format(day)); in toHumanReadableString() 131 builder.append(twoDigit.format(hour)); in toHumanReadableString() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ExtendedCameraCharacteristicsTest.java | 154 assertNotNull(String.format("No stream configuration map found for: ID %s", in testAvailableStreamConfigs() 175 String.format("No valid YUV_420_888 preview formats found for: ID %s", in testAvailableStreamConfigs() 179 String.format("No valid Y8 preview formats found for: ID %s", in testAvailableStreamConfigs() 182 assertArrayContains(String.format("No JPEG image format for: ID %s", in testAvailableStreamConfigs() 192 String.format("No sizes for preview format %x for: ID %s", in testAvailableStreamConfigs() 196 String.format("No sizes for preview format %x for: ID %s", in testAvailableStreamConfigs() 232 assertArrayContainsAnyOf(String.format( in testAvailableStreamConfigs() 237 assertArrayContainsAnyOf(String.format( in testAvailableStreamConfigs() 246 assertArrayContains(String.format( in testAvailableStreamConfigs() 250 assertArrayContains(String.format( in testAvailableStreamConfigs() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 137 public static Size getMaxOutputSize(CameraCharacteristics ccs, int format) in getMaxOutputSize() argument 139 return getMaxSize(getOutputSizes(ccs, format)); in getMaxOutputSize() 146 private static Size[] getOutputSizes(CameraCharacteristics ccs, int format) in getOutputSizes() argument 153 Size[] normalSizes = configMap.getOutputSizes(format); in getOutputSizes() 154 Size[] slowSizes = configMap.getHighResolutionOutputSizes(format); in getOutputSizes() 191 int format = image.getFormat(); in getDataFromImage() local 205 if (format == ImageFormat.JPEG) { in getDataFromImage() 221 } else if (format == ImageFormat.YUV_420_888 || format == ImageFormat.RAW_SENSOR in getDataFromImage() 222 || format == ImageFormat.RAW10 || format == ImageFormat.RAW12 in getDataFromImage() 223 || format == ImageFormat.Y8) { in getDataFromImage() [all …]
|