Home
last modified time | relevance | path

Searched refs:encoder (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/core/tests/privacytests/src/android/privacy/
DLongitudinalReportingEncoderTest.java54 final LongitudinalReportingEncoder encoder = in testLongitudinalReportingEncoder_config() local
57 assertEquals("LongitudinalReporting", encoder.getConfig().getAlgorithm()); in testLongitudinalReportingEncoder_config()
60 encoder.getConfig().toString()); in testLongitudinalReportingEncoder_config()
72 final LongitudinalReportingEncoder encoder = in testLongitudinalReportingEncoder_basicIRRTest() local
75 assertEquals(1, encoder.encodeBoolean(true)[0]); in testLongitudinalReportingEncoder_basicIRRTest()
76 assertEquals(1, encoder.encodeBoolean(true)[0]); in testLongitudinalReportingEncoder_basicIRRTest()
77 assertEquals(1, encoder.encodeBoolean(true)[0]); in testLongitudinalReportingEncoder_basicIRRTest()
78 assertEquals(0, encoder.encodeBoolean(true)[0]); in testLongitudinalReportingEncoder_basicIRRTest()
79 assertEquals(1, encoder.encodeBoolean(true)[0]); in testLongitudinalReportingEncoder_basicIRRTest()
80 assertEquals(1, encoder.encodeBoolean(true)[0]); in testLongitudinalReportingEncoder_basicIRRTest()
[all …]
DRapporEncoderTest.java56 final RapporEncoder encoder = RapporEncoder.createEncoder(config, in testRapporEncoder_config() local
58 assertEquals("Rappor", encoder.getConfig().getAlgorithm()); in testRapporEncoder_config()
61 + "NumBloomHashes: 2", encoder.getConfig().toString()); in testRapporEncoder_config()
75 final RapporEncoder encoder = RapporEncoder.createInsecureEncoderForTest(config); in testRapporEncoder_basicIRRTest() local
76 assertEquals(768, toLong(encoder.encodeString("Testing"))); in testRapporEncoder_basicIRRTest()
/frameworks/base/media/jni/
Dandroid_media_MediaProfiles.cpp86 video_encoder encoder = encoders[index]; in android_media_MediaProfiles_native_get_video_encoder_cap() local
87 int minBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
88 int maxBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
89 int minFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
90 int maxFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
91 int minFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
92 int maxFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
93 int minFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.min", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
94 int maxFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.max", encoder); in android_media_MediaProfiles_native_get_video_encoder_cap()
111 static_cast<int>(encoder), in android_media_MediaProfiles_native_get_video_encoder_cap()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java252 Base64.Encoder encoder = new Base64.Encoder(Base64.NO_PADDING | Base64.NO_WRAP, in XXXtestEncodeInternal() local
255 encoder.process(input, 0, 3, false); in XXXtestEncodeInternal()
256 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal()
257 assertEquals(0, encoder.tailLen); in XXXtestEncodeInternal()
259 encoder.process(input, 0, 3, false); in XXXtestEncodeInternal()
260 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal()
261 assertEquals(0, encoder.tailLen); in XXXtestEncodeInternal()
263 encoder.process(input, 0, 1, false); in XXXtestEncodeInternal()
264 assertEquals(0, encoder.op); in XXXtestEncodeInternal()
265 assertEquals(1, encoder.tailLen); in XXXtestEncodeInternal()
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeEncoder.cpp73 Encoder *encoder = new Encoder(); in Java_com_android_media_benchmark_library_Native_Encode() local
74 encoder->setupEncoder(); in Java_com_android_media_benchmark_library_Native_Encode()
75 auto status = encoder->encode(sCodecName, eleStream, eleSize, mode, encParams, in Java_com_android_media_benchmark_library_Native_Encode()
82 encoder->deInitCodec(); in Java_com_android_media_benchmark_library_Native_Encode()
97 encoder->dumpStatistics(inputReference, clipDurationUs, sCodecName, in Java_com_android_media_benchmark_library_Native_Encode()
100 encoder->resetEncoder(); in Java_com_android_media_benchmark_library_Native_Encode()
101 delete encoder; in Java_com_android_media_benchmark_library_Native_Encode()
102 encoder = nullptr; in Java_com_android_media_benchmark_library_Native_Encode()
DCMakeLists.txt34 ${native_source_path}/encoder/Encoder.cpp)
40 include_directories(${native_source_path}/encoder)
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DPrivacyUtilsTests.java89 DifferentialPrivacyEncoder encoder = PrivacyUtils.createInsecureDPEncoderForTest("foo"); in testPrivacyUtils_createInsecureDPEncoderForTest() local
93 encoder.getConfig().toString()); in testPrivacyUtils_createInsecureDPEncoderForTest()
94 assertTrue(encoder.isInsecureEncoderForTest()); in testPrivacyUtils_createInsecureDPEncoderForTest()
99 DifferentialPrivacyEncoder encoder = PrivacyUtils.createSecureDPEncoder(TEST_SECRET, "foo"); in testPrivacyUtils_createSecureDPEncoderTest() local
103 encoder.getConfig().toString()); in testPrivacyUtils_createSecureDPEncoderTest()
104 assertFalse(encoder.isInsecureEncoderForTest()); in testPrivacyUtils_createSecureDPEncoderTest()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DActivityCompat.java53 final ViewHierarchyEncoder encoder = new ViewHierarchyEncoder(out); in encodeViewHierarchy() local
55 encoder.addProperty("window:left", location[0]); in encodeViewHierarchy()
56 encoder.addProperty("window:top", location[1]); in encodeViewHierarchy()
57 view.encode(encoder); in encodeViewHierarchy()
58 encoder.endStream(); in encodeViewHierarchy()
/frameworks/base/core/java/android/util/jar/
DStrictJarManifest.java259 CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder(); in write() local
269 writeEntry(out, versionName, version, encoder, buffer); in write()
274 writeEntry(out, name, manifest.mainAttributes.getValue(name), encoder, buffer); in write()
282 writeEntry(out, ATTRIBUTE_NAME_NAME, key, encoder, buffer); in write()
287 writeEntry(out, name, attributes.getValue(name), encoder, buffer); in write()
294 String value, CharsetEncoder encoder, ByteBuffer bBuf) throws IOException { in writeEntry() argument
299 encoder.reset(); in writeEntry()
305 CoderResult r = encoder.encode(cBuf, bBuf, true); in writeEntry()
307 r = encoder.flush(bBuf); in writeEntry()
/frameworks/av/cmds/stagefright/
Drecord.cpp224 sp<MediaSource> encoder =
229 writer->addSource(encoder);
238 CHECK_EQ((status_t)OK, encoder->start());
241 while (encoder->read(&buffer) == OK) {
256 err = encoder->stop();
325 sp<MediaSource> encoder = in main() local
328 encoder->start(); in main()
333 while ((err = encoder->read(&buffer)) == OK) { in main()
346 encoder->stop(); in main()
Daudioloop.cpp143 sp<MediaSource> encoder = MediaCodecSource::Create(looper, meta, source); in main() local
153 writer->addSource(encoder); in main()
159 sp<MediaSource> decoder = SimpleDecodingSource::Create(encoder); in main()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp361 static status_t runEncoder(const sp<MediaCodec>& encoder, in runEncoder() argument
376 err = encoder->getOutputBuffers(&buffers); in runEncoder()
402 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec, in runEncoder()
477 err = encoder->releaseOutputBuffer(bufIndex); in runEncoder()
497 encoder->getOutputFormat(&newFormat); in runEncoder()
512 err = encoder->getOutputBuffers(&buffers); in runEncoder()
629 sp<MediaCodec> encoder; in recordScreen() local
633 err = prepareEncoder(mainDpyInfo.fps, &encoder, &encoderInputSurface); in recordScreen()
646 err = prepareEncoder(mainDpyInfo.fps, &encoder, in recordScreen()
680 if (encoder != NULL) encoder->release(); in recordScreen()
[all …]
/frameworks/av/media/tests/benchmark/tests/
DEncoderTest.cpp57 Encoder *encoder = new Encoder(); in TEST_P() local
58 ASSERT_NE(encoder, nullptr) << "Decoder creation failed"; in TEST_P()
133 encoder->setupEncoder(); in TEST_P()
136 status = encoder->encode(codecName, eleStream, eleSize, asyncMode, encParams, (char *)mime); in TEST_P()
139 encoder->deInitCodec(); in TEST_P()
142 encoder->dumpStatistics(inputReference, extractor->getClipDuration(), codecName, in TEST_P()
155 encoder->resetEncoder(); in TEST_P()
160 delete encoder; in TEST_P()
/frameworks/base/core/java/android/util/
DBase64.java512 Encoder encoder = new Encoder(flags, null); in encode() local
518 if (encoder.do_padding) { in encode()
531 if (encoder.do_newline && len > 0) { in encode()
533 (encoder.do_cr ? 2 : 1); in encode()
536 encoder.output = new byte[output_len]; in encode()
537 encoder.process(input, offset, len, true); in encode()
539 assert encoder.op == output_len; in encode()
541 return encoder.output; in encode()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivityTest.java34 Object encoder = createEncoder(baos); in encode() local
35 invokeMethod(View.class, view, "encode", encoder); in encode()
36 invokeMethod(encoder.getClass(), encoder, "endStream"); in encode() local
/frameworks/base/core/java/android/widget/
DFrameLayout.java412 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { in encodeProperties() argument
413 super.encodeProperties(encoder); in encodeProperties()
415 encoder.addProperty("measurement:measureAllChildren", mMeasureAllChildren); in encodeProperties()
416 encoder.addProperty("padding:foregroundPaddingLeft", mForegroundPaddingLeft); in encodeProperties()
417 encoder.addProperty("padding:foregroundPaddingTop", mForegroundPaddingTop); in encodeProperties()
418 encoder.addProperty("padding:foregroundPaddingRight", mForegroundPaddingRight); in encodeProperties()
419 encoder.addProperty("padding:foregroundPaddingBottom", mForegroundPaddingBottom); in encodeProperties()
DAdapterView.java1293 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { in encodeProperties() argument
1294 super.encodeProperties(encoder); in encodeProperties()
1296 encoder.addProperty("scrolling:firstPosition", mFirstPosition); in encodeProperties()
1297 encoder.addProperty("list:nextSelectedPosition", mNextSelectedPosition); in encodeProperties()
1298 encoder.addProperty("list:nextSelectedRowId", mNextSelectedRowId); in encodeProperties()
1299 encoder.addProperty("list:selectedPosition", mSelectedPosition); in encodeProperties()
1300 encoder.addProperty("list:itemCount", mItemCount); in encodeProperties()
/frameworks/av/services/mediaanalytics/
Dstatsd_codec.cpp73 int32_t encoder = -1; in statsd_codec() local
74 if ( item->getInt32("android.media.mediacodec.encoder", &encoder)) { in statsd_codec()
75 metrics_proto.set_encoder(encoder); in statsd_codec()
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp82 bool encoder = trait.kind == C2Component::KIND_ENCODER; in addSupportedProfileLevels() local
83 C2StreamProfileLevelInfo pl(encoder /* output */, 0u); in addSupportedProfileLevels()
196 bool encoder = trait.kind == C2Component::KIND_ENCODER; in addSupportedColorFormats() local
210 if (encoder && trait.name.find("android") != std::string::npos) { in addSupportedColorFormats()
471 bool encoder = trait.kind == C2Component::KIND_ENCODER; in buildMediaCodecList() local
474 if (encoder) { in buildMediaCodecList()
509 "media-type-" + mediaType + (encoder ? "-encoder" : "-decoder"), in buildMediaCodecList()
512 mediaType.c_str(), (encoder ? "encoder" : "decoder"), in buildMediaCodecList()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DEncoderTest.java264 Encoder encoder = new Encoder(); in testEncoder() local
265 encoder.setupEncoder(encodeOutputStream, eleStream); in testEncoder()
266 status = encoder.encode(codecName, encodeFormat, mMime, ENCODE_DEFAULT_FRAME_RATE, in testEncoder()
268 encoder.deInitEncoder(); in testEncoder()
285 encoder.dumpStatistics(inputReference, codecName, (asyncMode ? "async" : "sync"), in testEncoder()
289 encoder.resetEncoder(); in testEncoder()
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h472 bool encoder,
478 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
480 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
482 status_t setupAC4Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
487 status_t setupAMRCodec(bool encoder, bool isWAMR, int32_t bitRate);
488 status_t setupG711Codec(bool encoder, int32_t sampleRate, int32_t numChannels);
491 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel,
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DPrivacyUtils.java95 final DifferentialPrivacyEncoder encoder = isSecure in createDpEncodedReportMap() local
101 boolean encodedVisitedWatchlist = ((int) encoder.encodeBoolean(visitedWatchlist)[0] in createDpEncodedReportMap()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp253 const char *type, bool encoder, size_t startIndex) const { in findCodecByType() argument
263 if (info.isEncoder() != encoder) { in findCodecByType()
346 const char *mime, bool encoder, uint32_t flags, in findMatchingCodecs() argument
358 list->findCodecByType(mime, encoder, index); in findMatchingCodecs()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java302 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { in encodeProperties() argument
303 super.encodeProperties(encoder); in encodeProperties()
305 encoder.addProperty("layout:maxWidth", maxWidth); in encodeProperties()
306 encoder.addProperty("layout:maxHeight", maxHeight); in encodeProperties()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp245 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides); in YuvImage_compressToJpeg() local
247 if (encoder != NULL) { in YuvImage_compressToJpeg()
248 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); in YuvImage_compressToJpeg()
249 delete encoder; in YuvImage_compressToJpeg()

123