/cts/tests/tests/media/src/android/media/cts/ |
AudioRecordRoutingNative.java | 61 // Test a basic Aquire/Release cycle on the default recorder. 66 AudioRecorder recorder = new AudioRecorder(); local 67 recorder.ClearLastSLResult(); 68 recorder.RealizeRecorder(); 69 recorder.RealizeRoutingProxy(); 71 AudioRouting routingObj = recorder.GetRoutingInterface(); 75 routingObj = recorder.GetRoutingInterface(); 77 assertTrue(recorder.GetLastSLResult() != 0); 79 recorder.ReleaseRoutingInterface(routingObj); 80 assertTrue(recorder.GetLastSLResult() == 0) 88 AudioRecorder recorder = new AudioRecorder(); local 110 AudioRecorder recorder = new AudioRecorder(); local [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
isd1820.cxx | 36 // This example was tested on the Grove Recorder. 38 upm::ISD1820* recorder = new upm::ISD1820(2, 3); local 58 recorder->record(true); 60 recorder->play(true); 70 recorder->record(false); 72 recorder->play(false); 78 delete recorder;
|
/libcore/luni/src/test/java/dalvik/system/ |
BlockGuardTest.java | 33 private RecordingPolicy recorder = new RecordingPolicy(); field in class:BlockGuardTest 38 BlockGuard.setThreadPolicy(recorder); 44 recorder.clear(); 49 recorder.expectAndClear("onReadFromDisk", "onWriteToDisk"); 57 recorder.expectNoViolations(); 60 recorder.expectAndClear("onWriteToDisk"); 63 recorder.expectAndClear("onReadFromDisk"); 66 recorder.expectAndClear("onReadFromDisk"); 69 recorder.expectAndClear("onReadFromDisk"); 72 recorder.expectAndClear("onReadFromDisk") [all...] |
/external/skia/tests/ |
RecordOptsTest.cpp | 24 SkRecorder recorder(&record, W, H); 26 recorder.drawRect(SkRect::MakeWH(200, 200), SkPaint()); 27 recorder.drawRect(SkRect::MakeWH(300, 300), SkPaint()); 28 recorder.drawRect(SkRect::MakeWH(100, 100), SkPaint()); 39 SkRecorder recorder(&record, W, H); 41 recorder.save(); 42 recorder.clipRect(SkRect::MakeWH(200, 200)); 43 recorder.restore(); 53 SkRecorder recorder(&record, W, H); 56 recorder.save() 235 SkPictureRecorder recorder; local [all...] |
RecordPatternTest.cpp | 27 SkRecorder recorder(&record, 1920, 1200); 30 recorder.save(); 33 recorder.clipRect(SkRect::MakeWH(300, 200)); 36 recorder.restore(); 47 SkRecorder recorder(&record, 1920, 1200); 51 recorder.save(); 52 recorder.clipRect(SkRect::MakeWH(300, 200)); 53 recorder.restore(); 70 SkRecorder recorder(&record, 1920, 1200); 72 recorder.save() [all...] |
GrTRecorderTest.cpp | 37 GrTRecorder<IntWrapper, int> recorder(j); 39 REPORTER_ASSERT(reporter, recorder.empty()); 43 REPORTER_ASSERT(reporter, i == *GrNEW_APPEND_TO_RECORDER(recorder, 47 *GrNEW_APPEND_WITH_DATA_TO_RECORDER(recorder, 51 REPORTER_ASSERT(reporter, !recorder.empty()); 52 REPORTER_ASSERT(reporter, i == recorder.back()); 54 recorder.pop_back(); 56 REPORTER_ASSERT(reporter, !recorder.empty()); 57 REPORTER_ASSERT(reporter, i-1 == recorder.back()); 62 REPORTER_ASSERT(reporter, !recorder.empty()) [all...] |
RecordDrawTest.cpp | 35 SkRecorder recorder(&record, W, H); 38 recorder.save(); 40 recorder.drawColor(SK_ColorRED); 42 recorder.scale(2, 2); 44 recorder.restore(); 52 recorder.save(); 53 recorder.save(); 54 recorder.restore(); 55 recorder.restore(); 62 SkRecorder recorder(&record, W, H) [all...] |
PictureTest.cpp | 55 SkPictureRecorder recorder; local 56 recorder.beginRecording(100,100)->drawImage(image, 0,0); 57 SkAutoTUnref<SkPicture> picture(recorder.endRecording()); 64 SkPictureRecorder recorder; local 66 SkCanvas* canvas = recorder.beginRecording(100, 100); 70 SkAutoTUnref<SkPicture> picture(recorder.endRecording()); 73 canvas = recorder.beginRecording(100, 100); 89 picture.reset(recorder.endRecording()); 98 SkPictureRecorder recorder; local 100 recorder.beginRecording(0, 0) 109 SkPictureRecorder recorder; local 140 SkPictureRecorder recorder; local 295 SkPictureRecorder recorder; local 329 SkPictureRecorder recorder; local 481 SkPictureRecorder recorder; local 662 SkPictureRecorder recorder; local 685 SkPictureRecorder recorder; local 715 SkPictureRecorder recorder; local 742 SkPictureRecorder recorder; local 797 SkPictureRecorder recorder; local 835 SkPictureRecorder recorder; local 846 SkPictureRecorder recorder; local 956 SkPictureRecorder recorder; local 1028 SkPictureRecorder recorder; local 1100 SkPictureRecorder recorder; local 1123 SkPictureRecorder recorder; local 1163 SkPictureRecorder recorder; local 1181 SkPictureRecorder recorder; local 1236 SkPictureRecorder recorder; local 1272 SkPictureRecorder recorder; local 1328 SkPictureRecorder recorder; local 1400 SkPictureRecorder recorder; local [all...] |
RecorderTest.cpp | 42 DEF_TEST(Recorder, r) { 44 SkRecorder recorder(&record, 1920, 1080); 46 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); 66 SkRecorder recorder(&record, 1920, 1080); 67 recorder.saveLayer(&bounds, &paint); 83 SkRecorder recorder(&record, 100, 100); 86 recorder.drawImage(image.get(), 0, 0); 98 SkRecorder recorder(&record, 100, 100); 101 recorder.drawImageRect(image.get(), SkRect::MakeWH(100, 100), nullptr);
|
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
MacrobenchmarkAllocationWorker.java | 34 private final AllocationRecorder recorder; field in class:MacrobenchmarkAllocationWorker 37 @BenchmarkMethod Method method, AllocationRecorder recorder) { 39 this.recorder = recorder; 52 recorder.startRecording(); 54 return recorder.stopRecording(1);
|
/libcore/luni/src/test/java/libcore/java/util/ |
SpliteratorsTest.java | 222 PrimitiveIntArrayList recorder = new PrimitiveIntArrayList(16); local 224 recorder.add(1); 225 recorder.add(2); 229 assertTrue(split1.tryAdvance((int value) -> recorder.add(value))); 230 assertTrue(split1.tryAdvance((Integer value) -> recorder.add(value))); 235 split2.forEachRemaining((int value) -> recorder.add(value)); 241 split1.forEachRemaining((int value) -> recorder.add(value)); 242 intSp.forEachRemaining((int value) -> recorder.add(value)); 244 int[] recorded = recorder.toSortedArray(); 252 PrimitiveIntArrayList recorder = new PrimitiveIntArrayList(4) local 265 PrimitiveLongArrayList recorder = new PrimitiveLongArrayList(4); local 278 PrimitiveDoubleArrayList recorder = new PrimitiveDoubleArrayList(4); local 298 PrimitiveLongArrayList recorder = new PrimitiveLongArrayList(16); local 335 PrimitiveDoubleArrayList recorder = new PrimitiveDoubleArrayList(16); local 592 PrimitiveIntArrayList recorder = new PrimitiveIntArrayList(16); local 626 PrimitiveIntArrayList recorder = new PrimitiveIntArrayList(16); local 663 PrimitiveLongArrayList recorder = new PrimitiveLongArrayList(16); local 697 PrimitiveLongArrayList recorder = new PrimitiveLongArrayList(16); local 734 PrimitiveDoubleArrayList recorder = new PrimitiveDoubleArrayList(16); local 768 PrimitiveDoubleArrayList recorder = new PrimitiveDoubleArrayList(16); local 805 PrimitiveIntArrayList recorder = new PrimitiveIntArrayList(16); local 823 PrimitiveLongArrayList recorder = new PrimitiveLongArrayList(16); local 842 PrimitiveDoubleArrayList recorder = new PrimitiveDoubleArrayList(16); local 859 ArrayList<String> recorder = new ArrayList<>(); local [all...] |
PrimitiveIteratorTest.java | 94 final ArrayList<Integer> recorder = new ArrayList<>(); local 96 cit.forEachRemaining((int i) -> recorder.add(i)); 98 assertEquals(Arrays.asList(1, 2, 4, 5), recorder); 111 final ArrayList<Integer> recorder = new ArrayList<>(); local 113 cit.forEachRemaining((Integer i) -> recorder.add(i)); 115 assertEquals(Arrays.asList(1, 2, 4, 5), recorder); 122 assertEquals(recorder, recorder2); 141 final ArrayList<Long> recorder = new ArrayList<>(); local 143 cit.forEachRemaining((long i) -> recorder.add(i)); 145 assertEquals(Arrays.asList(1L, 2L, 4L, 5L), recorder); 158 final ArrayList<Long> recorder = new ArrayList<>(); local 188 final ArrayList<Double> recorder = new ArrayList<>(); local 205 final ArrayList<Double> recorder = new ArrayList<>(); local [all...] |
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
AndroidAudioRecorder.java | 30 private AudioRecord recorder;
field in class:AndroidAudioRecorder 35 recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, samplingRate, channelConfig, AudioFormat.ENCODING_PCM_16BIT,
37 if (recorder.getState() != AudioRecord.STATE_INITIALIZED)
39 recorder.startRecording();
44 recorder.stop();
45 recorder.release();
52 read += recorder.read(samples, offset + read, numSamples - read);
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
TestSuiteBuilderTest.java | 53 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder); local 55 assertTrue(recorder.passed("SimpleTest.testSimpleOne")); 56 assertTrue(recorder.passed("SimpleTest.testSimpleTwo")); 57 assertTrue(recorder.passed("AnotherSimpleTest.testAnotherOne")); 66 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder); local 68 assertTrue(recorder.passed("SimpleTest.testSimpleTwo")); 74 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder); local 76 assertTrue(recorder.failed("FailingTest.testFailOne")); 77 assertTrue(recorder.failed("FailingTest.testFailTwo")); 83 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder) local 92 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder); local 104 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder); local 123 SuiteExecutionRecorder recorder = runSuite(testSuiteBuilder); local [all...] |
/external/autotest/server/site_tests/audio_AudioBasicInternalMicrophone/ |
audio_AudioBasicInternalMicrophone.py | 51 recorder = widget_factory.create_widget( 80 recorder.start_recording() 84 recorder.stop_recording() 90 recorder.read_recorded_binary() 95 recorder.save_file(recorded_file) 100 recorder.remove_head(1.0) 103 recorder.lowpass_filter(1500) 106 recorder.save_file(recorded_file) 109 # of the recorder to compare the recorded data with left channel of the 112 recorder.channel_map = [0 [all...] |
/external/autotest/server/site_tests/audio_MediaBasicVerification/ |
audio_MediaBasicVerification.py | 41 recorder = widget_factory.create_widget( 43 binder = widget_factory.create_binder(source, recorder) 68 recorder.start_recording() 72 recorder.stop_recording() 79 recorder.read_recorded_binary() 84 recorder.save_file(recorded_file) 89 recorder.remove_head(0.5) 92 recorder.lowpass_filter(4000) 95 recorder.save_file(recorded_file) 104 recorder, check_anomaly=True [all...] |
/external/autotest/server/site_tests/audio_AudioBasicExternalMicrophone/ |
audio_AudioBasicExternalMicrophone.py | 50 recorder = widget_factory.create_widget( 52 binder = widget_factory.create_binder(source, recorder) 80 recorder.start_recording() 84 recorder.stop_recording() 90 recorder.read_recorded_binary() 95 recorder.save_file(recorded_file) 100 recorder.remove_head(1.5) 104 recorder.save_file(recorded_file) 113 golden_file, recorder, check_anomaly=check_quality)
|
/external/autotest/server/site_tests/audio_AudioBasicHeadphone/ |
audio_AudioBasicHeadphone.py | 50 recorder = widget_factory.create_widget( 52 binder = widget_factory.create_binder(source, recorder) 79 recorder.start_recording() 83 recorder.stop_recording() 89 recorder.read_recorded_binary() 94 recorder.save_file(recorded_file) 99 recorder.remove_head(0.5) 103 recorder.save_file(recorded_file) 111 golden_file, recorder, check_anomaly=check_quality)
|
/external/autotest/server/site_tests/audio_AudioBasicInternalSpeaker/ |
audio_AudioBasicInternalSpeaker.py | 48 recorder = widget_factory.create_widget( 76 recorder.start_recording() 80 recorder.stop_recording() 86 recorder.read_recorded_binary() 91 recorder.save_file(recorded_file) 96 recorder.remove_head(0.5) 99 recorder.lowpass_filter(1000) 102 recorder.save_file(recorded_file) 110 audio_test_utils.check_recorded_frequency(golden_file, recorder,
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
AudioRecorderTest.java | 28 AudioRecorder recorder;
field in class:AudioRecorderTest 33 recorder = Gdx.audio.newAudioRecorder(44100, true);
40 recorder.read(samples, 0, samples.length);
57 recorder.dispose();
63 recorder = Gdx.audio.newAudioRecorder(44100, true);
|
/external/skia/gm/ |
distantclip.cpp | 33 SkPictureRecorder recorder; local 37 SkCanvas* rec = recorder.beginRecording(kExtents, kOffset + kExtents, nullptr, 0); 46 SkAutoTUnref<SkPicture> pict(recorder.endRecording()); 49 pict->playback(recorder.beginRecording(pict->cullRect().width(), 52 SkAutoTUnref<SkPicture> pict2(recorder.endRecording());
|
/external/skia/bench/ |
RecordingBench.cpp | 39 SkPictureRecorder recorder; local 40 fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : nullptr, flags)); 41 SkSafeUnref(recorder.endRecording());
|
/external/skia/platform_tools/android/apps/canvasproof/src/main/jni/ |
org_skia_canvasproof_CreateSkiaPicture.cpp | 34 SkPictureRecorder recorder; 37 recorder.beginRecording(bounds, &bbh)->drawPicture(p); 38 return reinterpret_cast<long>(recorder.endRecordingAsPicture());
|
/external/skia/tools/ |
gpuveto.cpp | 54 SkPictureRecorder recorder; local 55 picture->playback(recorder.beginRecording(picture->cullRect().width(), 58 SkAutoTUnref<SkPicture> recorded(recorder.endRecording());
|
/external/skia/tools/skiaserve/urlhandlers/ |
DownloadHandler.cpp | 31 // Playback into picture recorder 32 SkPictureRecorder recorder; local 33 SkCanvas* canvas = recorder.beginRecording(Request::kImageWidth, 38 SkAutoTUnref<SkPicture> picture(recorder.endRecording());
|