/frameworks/base/media/jni/ |
H A D | android_media_MediaProfiles.cpp | 86 video_encoder encoder = encoders[index]; local 87 int minBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.min", encoder); 88 int maxBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.max", encoder); 89 int minFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.min", encoder); 90 int maxFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.max", encoder); 91 int minFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.min", encoder); 92 int maxFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.max", encoder); 93 int minFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.min", encoder); 94 int maxFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.max", encoder); 102 jniThrowException(env, "java/lang/RuntimeException", "Error retrieving video encoder capabilit 138 audio_encoder encoder = encoders[index]; local [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | Base64Test.java | 245 Base64.Encoder encoder = new Base64.Encoder(Base64.NO_PADDING | Base64.NO_WRAP, 248 encoder.process(input, 0, 3, false); 249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); 250 assertEquals(0, encoder.tailLen); 252 encoder.process(input, 0, 3, false); 253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); 254 assertEquals(0, encoder.tailLen); 256 encoder [all...] |
/frameworks/base/core/java/android/util/jar/ |
H A D | StrictJarManifest.java | 256 CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder(); 266 writeEntry(out, versionName, version, encoder, buffer); 271 writeEntry(out, name, manifest.mainAttributes.getValue(name), encoder, buffer); 279 writeEntry(out, Attributes.Name.NAME, key, encoder, buffer); 284 writeEntry(out, name, attributes.getValue(name), encoder, buffer); 291 String value, CharsetEncoder encoder, ByteBuffer bBuf) throws IOException { 296 encoder.reset(); 302 CoderResult r = encoder.encode(cBuf, bBuf, true); 304 r = encoder.flush(bBuf); 290 writeEntry(OutputStream os, Attributes.Name name, String value, CharsetEncoder encoder, ByteBuffer bBuf) argument
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
H A D | MainActivityTest.java | 34 Object encoder = createEncoder(baos); 35 invokeMethod(View.class, view, "encode", encoder); 36 invokeMethod(encoder.getClass(), encoder, "endStream");
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 147 * Configures and starts the MediaCodec encoder. Obtains an input surface 188 ALOGV("Creating encoder input surface"); 193 "ERROR: unable to create encoder input surface (err=%d)\n", err); 310 * Runs the MediaCodec encoder, sending the output to the MediaMuxer. The 318 static status_t runEncoder(const sp<MediaCodec>& encoder, argument 332 err = encoder->getOutputBuffers(&buffers); 352 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec, 427 err = encoder->releaseOutputBuffer(bufIndex); 447 encoder->getOutputFormat(&newFormat); 460 // Not expected for an encoder; handl 568 sp<MediaCodec> encoder; local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | record.cpp | 222 sp<MediaSource> encoder = 227 writer->addSource(encoder); 236 CHECK_EQ((status_t)OK, encoder->start()); 239 while (encoder->read(&buffer) == OK) { 254 err = encoder->stop(); 323 sp<IMediaSource> encoder = local 326 encoder->start(); 331 while ((err = encoder->read(&buffer)) == OK) { 344 encoder->stop();
|
H A D | audioloop.cpp | 115 sp<IMediaSource> encoder = MediaCodecSource::Create(looper, meta, source); local 125 writer->addSource(encoder); 131 sp<IMediaSource> decoder = SimpleDecodingSource::Create(encoder);
|
/frameworks/av/include/media/ |
H A D | IMediaCodecList.h | 41 const char *type, bool encoder, size_t startIndex = 0) const = 0;
|
/frameworks/av/media/libmedia/include/media/ |
H A D | IMediaCodecList.h | 41 const char *type, bool encoder, size_t startIndex = 0) const = 0;
|
/frameworks/base/core/java/android/util/ |
H A D | Base64.java | 29 * Default values for encoder/decoder flags. 510 Encoder encoder = new Encoder(flags, null); 516 if (encoder.do_padding) { 529 if (encoder.do_newline && len > 0) { 531 (encoder.do_cr ? 2 : 1); 534 encoder.output = new byte[output_len]; 535 encoder.process(input, offset, len, true); 537 assert encoder.op == output_len; 539 return encoder.output; 604 // Using local variables makes the encoder abou [all...] |
/frameworks/av/media/libstagefright/xmlparser/include/media/stagefright/xmlparser/ |
H A D | MediaCodecsXmlParser.h | 64 bool isEncoder; ///< Whether this codec is an encoder or a decoder 170 status_t addMediaCodecFromAttributes(bool encoder, const char **attrs); 171 void addMediaCodec(bool encoder, const char *name, 175 status_t addTypeFromAttributes(const char **attrs, bool encoder);
|
/frameworks/av/media/libstagefright/ |
H A D | MediaCodecList.cpp | 207 const char *type, bool encoder, size_t startIndex) const { 217 if (info.isEncoder() != encoder) { 284 const char *mime, bool encoder, uint32_t flags, 299 list->findCodecByType(mime, encoder, index); 206 findCodecByType( const char *type, bool encoder, size_t startIndex) const argument 283 findMatchingCodecs( const char *mime, bool encoder, uint32_t flags, Vector<AString> *matches, Vector<AString> *owners) argument
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
H A D | SoftFlacEncoder.h | 74 // FLAC encoder callbacks 77 const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], 85 // before passing the input data to the encoder
|
/frameworks/base/core/java/android/widget/ |
H A D | FrameLayout.java | 402 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument 403 super.encodeProperties(encoder); 405 encoder.addProperty("measurement:measureAllChildren", mMeasureAllChildren); 406 encoder.addProperty("padding:foregroundPaddingLeft", mForegroundPaddingLeft); 407 encoder.addProperty("padding:foregroundPaddingTop", mForegroundPaddingTop); 408 encoder.addProperty("padding:foregroundPaddingRight", mForegroundPaddingRight); 409 encoder.addProperty("padding:foregroundPaddingBottom", mForegroundPaddingBottom);
|
H A D | TableRow.java | 516 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument 517 super.encodeProperties(encoder); 518 encoder.addProperty("layout:column", column); 519 encoder.addProperty("layout:span", span);
|
H A D | ActionMenuView.java | 840 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument 841 super.encodeProperties(encoder); 843 encoder.addProperty("layout:overFlowButton", isOverflowButton); 844 encoder.addProperty("layout:cellsUsed", cellsUsed); 845 encoder.addProperty("layout:extraPixels", extraPixels); 846 encoder.addProperty("layout:expandable", expandable); 847 encoder.addProperty("layout:preventEdgeOffset", preventEdgeOffset);
|
H A D | AdapterView.java | 1278 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument 1279 super.encodeProperties(encoder); 1281 encoder.addProperty("scrolling:firstPosition", mFirstPosition); 1282 encoder.addProperty("list:nextSelectedPosition", mNextSelectedPosition); 1283 encoder.addProperty("list:nextSelectedRowId", mNextSelectedRowId); 1284 encoder.addProperty("list:selectedPosition", mSelectedPosition); 1285 encoder.addProperty("list:itemCount", mItemCount);
|
/frameworks/av/media/libmedia/ |
H A D | IMediaCodecList.cpp | 82 const char *type, bool encoder, size_t startIndex = 0) const 91 data.writeInt32(encoder); 81 findCodecByType( const char *type, bool encoder, size_t startIndex = 0) const argument
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodecList.java | 214 return findCodecForFormat(false /* encoder */, format); 218 * Find an encoder supporting a given {@link MediaFormat} in the list 231 * @param format An encoder media format with optional feature directives. 234 * @return the name of an encoder that supports the given format and feature 238 return findCodecForFormat(true /* encoder */, format); 241 private String findCodecForFormat(boolean encoder, MediaFormat format) { argument 244 if (info.isEncoder() != encoder) {
|
/frameworks/av/include/media/stagefright/ |
H A D | MediaCodecList.h | 44 const char *type, bool encoder, size_t startIndex = 0) const;
|
H A D | ACodec.h | 394 // sets color aspects for the encoder for certain |width/height| based on |configFormat|, and 401 // gets color aspects for the encoder for certain |width/height| based on |configFormat|, and 409 // sets color aspects for the video encoder assuming bytebuffer mode for certain |configFormat| 416 // sets color aspects for the video encoder in surface mode. This basically sets the default 423 // gets color aspects for the video encoder input port and sets them into the |format|. 427 // updates the encoder output format with |aspects| defaulting to |dataSpace| for 434 // sets HDR static metadata for the video encoder/decoder based on |configFormat|, and 445 // gets HDR static information for the video encoder/decoder port and sets them into |format|. 457 bool encoder, 463 status_t setupAC3Codec(bool encoder, int32_ [all...] |
/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | MediaCodecList.h | 44 const char *type, bool encoder, size_t startIndex = 0) const;
|
H A D | ACodec.h | 394 // sets color aspects for the encoder for certain |width/height| based on |configFormat|, and 401 // gets color aspects for the encoder for certain |width/height| based on |configFormat|, and 409 // sets color aspects for the video encoder assuming bytebuffer mode for certain |configFormat| 416 // sets color aspects for the video encoder in surface mode. This basically sets the default 423 // gets color aspects for the video encoder input port and sets them into the |format|. 427 // updates the encoder output format with |aspects| defaulting to |dataSpace| for 434 // sets HDR static metadata for the video encoder/decoder based on |configFormat|, and 445 // gets HDR static information for the video encoder/decoder port and sets them into |format|. 457 bool encoder, 463 status_t setupAC3Codec(bool encoder, int32_ [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | YuvToJpegEncoder.cpp | 230 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides); local 232 if (encoder != NULL) { 233 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); 234 delete encoder;
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardSecurityViewFlipper.java | 294 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument 295 super.encodeProperties(encoder); 297 encoder.addProperty("layout:maxWidth", maxWidth); 298 encoder.addProperty("layout:maxHeight", maxHeight);
|