Home
last modified time | relevance | path

Searched refs:recorder (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioRecordRoutingNative.java66 AudioRecorder recorder = new AudioRecorder(); in testAquireDefaultProxy() local
67 recorder.ClearLastSLResult(); in testAquireDefaultProxy()
68 recorder.RealizeRecorder(); in testAquireDefaultProxy()
69 recorder.RealizeRoutingProxy(); in testAquireDefaultProxy()
71 AudioRouting routingObj = recorder.GetRoutingInterface(); in testAquireDefaultProxy()
75 routingObj = recorder.GetRoutingInterface(); in testAquireDefaultProxy()
77 assertTrue(recorder.GetLastSLResult() != 0); in testAquireDefaultProxy()
79 recorder.ReleaseRoutingInterface(routingObj); in testAquireDefaultProxy()
80 assertTrue(recorder.GetLastSLResult() == 0); in testAquireDefaultProxy()
88 AudioRecorder recorder = new AudioRecorder(); in testAquirePreRealizeDefaultProxy() local
[all …]
DAudioRecordAppOpTest.java66 AudioRecord recorder = null; in testRecordAppOps() local
88 recorder = candidateRecorder; in testRecordAppOps()
104 recorder.stop(); in testRecordAppOps()
105 recorder.release(); in testRecordAppOps()
106 recorder = null; in testRecordAppOps()
117 if (recorder != null) { in testRecordAppOps()
118 recorder.stop(); in testRecordAppOps()
119 recorder.release(); in testRecordAppOps()
DAudioNativeTest.java258 AudioRecordNative recorder = new AudioRecordNative(); in testInputChannelMasksPreQ() local
277 boolean ok = recorder.open(channelCount, in testInputChannelMasksPreQ()
279 recorder.close(); in testInputChannelMasksPreQ()
285 AudioRecordNative recorder = new AudioRecordNative(); in testInputChannelMasksPostQ() local
288 boolean res = recorder.open(1, 1 | CHANNEL_INDEX_MASK_MAGIC, 16000, false, 2); in testInputChannelMasksPostQ()
291 AudioRouting router = recorder.getRoutingInterface(); in testInputChannelMasksPostQ()
294 recorder.close(); in testInputChannelMasksPostQ()
325 boolean ok = recorder.open(channelCount, in testInputChannelMasksPostQ()
327 recorder.close(); in testInputChannelMasksPostQ()
DAudioRecordTest.java188 public void onMarkerReached(AudioRecord recorder) { in testAudioRecordOP()
192 public void onPeriodicNotification(AudioRecord recorder) { in testAudioRecordOP()
633 AudioRecord recorder = null; in testRecordNoDataForIdleUids() local
654 recorder = candidateRecorder; in testRecordNoDataForIdleUids()
662 readDataTimed(recorder, 5000, buffer); in testRecordNoDataForIdleUids()
675 readDataTimed(recorder, 5000, buffer); in testRecordNoDataForIdleUids()
684 readDataTimed(recorder, 5000, buffer); in testRecordNoDataForIdleUids()
688 if (recorder != null) { in testRecordNoDataForIdleUids()
689 recorder.stop(); in testRecordNoDataForIdleUids()
690 recorder.release(); in testRecordNoDataForIdleUids()
[all …]
DMediaPlayerTest.java1078 MediaRecorder recorder = new MediaRecorder();
1079 recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
1080 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
1081 recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
1082 recorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
1083 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
1084 recorder.setOutputFile(file);
1085 recorder.setOrientationHint(angle);
1086 recorder.setVideoSize(w, h);
1087 recorder.setPreviewDisplay(getActivity().getSurfaceHolder2().getSurface());
[all …]
DMediaRandomTest.java281 public void onError(MediaRecorder recorder, int what, int extra) { in testRecorderRandomAction()
282 if (mRecorder == recorder && in testRecorderRandomAction()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2460/
Dpoc.cpp40 sp<IMediaRecorder> recorder = in main() local
42 ALOGI("Get recorder instance, 0x%08lx\n", (unsigned long)recorder.get()); in main()
46 recorder->setVideoSource(2); in main()
47 recorder->setOutputFile(fd); in main()
48 recorder->setOutputFormat(0); in main()
49 recorder->init(); in main()
50 recorder->prepare(); in main()
51 recorder->start(); in main()
54 sp<IGraphicBufferProducer> iGBP = recorder->querySurfaceMediaSource(); in main()
/cts/tests/tests/media/libaudiojni/
Dappendix-b-1-2-recording.cpp48 SLObjectItf recorder; in TestAudioRecording() local
170 res = (*EngineItf)->CreateAudioRecorder(EngineItf, &recorder, in TestAudioRecording()
175 res = (*recorder)->Realize(recorder, SL_BOOLEAN_FALSE); in TestAudioRecording()
179 res = (*recorder)->GetInterface(recorder, SL_IID_RECORD, (void *)&recordItf); in TestAudioRecording()
208 (*recorder)->Destroy(recorder); in TestAudioRecording()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java1330 MediaRecorder recorder = new MediaRecorder(); in recordVideoBySize() local
1333 recorder.setCamera(mCamera); in recordVideoBySize()
1334 recorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in recordVideoBySize()
1335 recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoBySize()
1336 recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); in recordVideoBySize()
1337 recorder.setVideoEncodingBitRate(VIDEO_BIT_RATE_IN_BPS); in recordVideoBySize()
1338 recorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT); in recordVideoBySize()
1339 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); in recordVideoBySize()
1340 recorder.setVideoSize(size.width, size.height); in recordVideoBySize()
1341 recorder.setOutputFile("/dev/null"); in recordVideoBySize()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundRecorderObject.java146 public void periodicNotification(AudioRecord recorder) {} in periodicNotification() argument
153 public void onPeriodicNotification(AudioRecord recorder) { in onPeriodicNotification() argument
154 periodicNotification(recorder); in onPeriodicNotification()
DAudioAEC.java227 public void periodicNotification(AudioRecord recorder) { in onCreate()
DAudioFrequencySpeakerActivity.java632 public void onPeriodicNotification(AudioRecord recorder) { in onPeriodicNotification() argument
DAudioFrequencyLineActivity.java616 public void onPeriodicNotification(AudioRecord recorder) { in onPeriodicNotification() argument
DAudioFrequencyMicActivity.java849 public void onPeriodicNotification(AudioRecord recorder) { in onPeriodicNotification() argument
DAudioFrequencyVoiceRecognitionActivity.java152 public void periodicNotification(AudioRecord recorder) { in onCreate()
DAudioFrequencyUnprocessedActivity.java1074 public void onPeriodicNotification(AudioRecord recorder) { in onPeriodicNotification() argument
/cts/hostsidetests/incident/src/com/android/server/cts/
DNetstatsIncidentTest.java227 private long sum(NetworkStatsRecorderProto recorder, in sum() argument
230 return sum(recorder, startTime, key -> true, func); in sum()
233 private long sum(NetworkStatsRecorderProto recorder, in sum() argument
240 : recorder.getCompleteHistory().getStatsList()) { in sum()
297 private void checkStats(NetworkStatsRecorderProto recorder, boolean withUid, boolean withTag) { in checkStats() argument
342 assertNotNegative("Pending bytes", recorder.getPendingTotalBytes()); in checkStats()
344 … for (NetworkStatsCollectionStatsProto stats : recorder.getCompleteHistory().getStatsList()) { in checkStats()
/cts/tests/tests/media/libndkaudio/
DAudioRecorder.cpp62 AudioRecorder* recorder = (AudioRecorder*)context; in RecBufferQueueCallback() local
64 recorder->enqueBuffer(); in RecBufferQueueCallback()