Home
last modified time | relevance | path

Searched refs:golden_file (Results 1 – 25 of 33) sorted by relevance

12

/external/googletest/googlemock/test/
Dgmock_output_test.py159 golden_file = open(GOLDEN_PATH, 'rb')
160 golden = golden_file.read().decode('utf-8')
161 golden_file.close()
176 golden_file = open(GOLDEN_PATH, 'wb') variable
177 golden_file.write(output)
178 golden_file.close()
/external/autotest/server/site_tests/audio_AudioBasicUSBPlaybackRecord/
Daudio_AudioBasicUSBPlaybackRecord.py37 golden_file = audio_test_data.GenerateAudioTestData(
76 playback_source.set_playback_data(golden_file)
77 record_source.set_playback_data(golden_file)
110 golden_file.path)
112 logging.info('Start playing %s on Chameleon', golden_file.path)
147 audio_test_utils.check_recorded_frequency(golden_file,
149 audio_test_utils.check_recorded_frequency(golden_file, record_recorder)
/external/autotest/server/site_tests/audio_AudioArtifacts/
Daudio_AudioArtifacts.py32 golden_file, switch_hsp=False, argument
94 if golden_file.duration_secs:
95 record_secs = golden_file.duration_secs
101 file_url = getattr(golden_file, 'url', None)
120 source.set_playback_data(golden_file)
127 golden_file.path)
182 golden_file, recorder,
Dcontrol.usb31 golden_file=audio_test_data.FREQUENCY_TEST_FILE,
/external/googletest/googletest/test/
Dgoogletest-output-test.py284 golden_file = open(GOLDEN_PATH, 'rb')
289 golden = ToUnixLineEnding(golden_file.read().decode())
290 golden_file.close()
333 golden_file = open(GOLDEN_PATH, 'wb') variable
334 golden_file.write(output.encode())
335 golden_file.close()
/external/autotest/server/site_tests/audio_AudioBasicInternalSpeaker/
Daudio_AudioBasicInternalSpeaker.py32 golden_file = audio_test_data.GenerateAudioTestData(
54 source.set_playback_data(golden_file)
58 logging.info('Start playing %s on Cros device', golden_file.path)
98 golden_file,
/external/autotest/server/site_tests/audio_AudioBasicUSBPlayback/
Daudio_AudioBasicUSBPlayback.py34 golden_file = audio_test_data.GenerateAudioTestData(
61 source.set_playback_data(golden_file)
79 logging.info('Start playing %s on Cros device', golden_file.path)
97 audio_test_utils.check_recorded_frequency(golden_file, recorder)
/external/autotest/server/site_tests/audio_AudioWebRTCLoopback/
Daudio_AudioWebRTCLoopback.py65 golden_file = audio_test_data.GenerateAudioTestData(
121 usb_out.set_playback_data(golden_file)
132 golden_file.path)
148 golden_file.delete()
165 golden_file, linein, check_artifacts=check_quality)
/external/autotest/server/site_tests/audio_AudioPinnedStream/
Daudio_AudioPinnedStream.py36 golden_file = audio_test_data.GenerateAudioTestData(
83 source.set_playback_data(golden_file)
86 logging.info('Start playing %s', golden_file.path)
130 audio_test_utils.check_recorded_frequency(golden_file, recorder)
136 golden_file, recorder, second_peak_ratio=0.3)
/external/autotest/server/site_tests/audio_AudioBasicInternalMicrophone/
Daudio_AudioBasicInternalMicrophone.py35 golden_file = audio_test_data.GenerateAudioTestData(
63 source.set_playback_data(golden_file)
68 logging.info('Start playing %s from Chameleon', golden_file.path)
115 golden_file, recorder, second_peak_ratio=0.2)
/external/autotest/server/site_tests/audio_AudioBasicHeadphone/
Daudio_AudioBasicHeadphone.py44 golden_file = audio_test_data.GenerateAudioTestData(
67 source.set_playback_data(golden_file)
71 logging.info('Start playing %s on Cros device', golden_file.path)
113 golden_file, recorder, check_artifacts=check_quality)
/external/autotest/server/site_tests/audio_AudioBasicExternalMicrophone/
Daudio_AudioBasicExternalMicrophone.py42 golden_file = audio_test_data.GenerateAudioTestData(
66 source.set_playback_data(golden_file)
71 logging.info('Start playing %s from Chameleon', golden_file.path)
109 golden_file,
/external/autotest/server/site_tests/audio_AudioBasicUSBRecord/
Daudio_AudioBasicUSBRecord.py34 golden_file = audio_test_data.GenerateAudioTestData(
60 source.set_playback_data(golden_file)
85 golden_file.path)
106 audio_test_utils.check_recorded_frequency(golden_file, recorder)
/external/autotest/server/site_tests/audio_AudioBasicBluetoothPlaybackRecord/
Daudio_AudioBasicBluetoothPlaybackRecord.py118 golden_file = audio_test_data.SIMPLE_FREQUENCY_TEST_FILE
189 playback_source.set_playback_data(golden_file)
190 record_source.set_playback_data(golden_file)
235 golden_file.path)
238 golden_file.path)
317 golden_file, playback_recorder, check_anomaly=check_quality,
324 golden_file, record_recorder, check_anomaly=check_quality,
/external/autotest/server/site_tests/audio_AudioBasicHDMI/
Daudio_AudioBasicHDMI.py78 golden_file = audio_test_data.GenerateAudioTestData(
115 source.set_playback_data(golden_file)
122 logging.info('Start playing %s on Cros device', golden_file.path)
142 golden_file, recorder, check_artifacts=check_quality)
/external/autotest/server/site_tests/audio_AudioVolume/
Daudio_AudioVolume.py86 golden_file = get_golden_file(source_id)
122 source.set_playback_data(golden_file)
138 golden_file.path)
166 golden_file,
174 golden_file,
/external/autotest/server/site_tests/audio_AudioBasicHotwording/
Daudio_AudioBasicHotwording.py51 golden_file = audio_test_data.GenerateAudioTestData(
102 remote_golden_file_path = source.set_playback_data(golden_file)
108 logging.info('Start playing %s from Chameleon', golden_file.path)
163 golden_file, listener, second_peak_ratio=0.2)
/external/autotest/server/site_tests/audio_AudioAfterReboot/
Daudio_AudioAfterReboot.py43 source_widget.set_playback_data(self.golden_file)
44 logging.debug('Start playing %s', self.golden_file.path)
89 self.golden_file,
190 self.golden_file, self.low_pass_freq = golden_data
/external/autotest/server/site_tests/audio_AudioBasicBluetoothPlayback/
Daudio_AudioBasicBluetoothPlayback.py106 golden_file = audio_test_data.FREQUENCY_TEST_FILE
147 source.set_playback_data(golden_file)
187 golden_file.path)
227 golden_file, recorder, check_anomaly=check_quality)
/external/autotest/server/site_tests/audio_AudioBasicBluetoothRecord/
Daudio_AudioBasicBluetoothRecord.py108 golden_file = audio_test_data.SIMPLE_FREQUENCY_TEST_FILE
164 source.set_playback_data(golden_file)
202 golden_file.path)
241 golden_file, recorder, check_anomaly=check_quality,
/external/grpc-grpc/test/cpp/codegen/
Dgolden_file_test.cc41 const std::basic_string<char>& golden_file) { in run_test() argument
43 std::ifstream golden(golden_file); in run_test()
/external/autotest/server/site_tests/audio_AudioAfterSuspend/
Daudio_AudioAfterSuspend.py122 source_widget.set_playback_data(self.golden_file)
123 logging.debug('Start playing %s', self.golden_file.path)
172 self.golden_file, recorder_widget,
232 self.golden_file, self.low_pass_freq = golden_data
/external/libchrome/base/android/jni_generator/
Djni_generator_tests.py98 def _ReadGoldenFile(self, golden_file): argument
99 if not os.path.exists(golden_file):
101 with file(golden_file, 'r') as f:
111 golden_file = os.path.join(script_dir, '%s%s.golden' % (caller, suffix))
112 golden_text = self._ReadGoldenFile(golden_file)
115 with file(golden_file, 'w') as f:
879 golden_file = os.path.join(script_dir, 'SampleForTests_jni.golden')
880 golden_content = file(golden_file).read()
887 with file(golden_file, 'w') as f:
/external/autotest/client/cros/chameleon/
Daudio_test_utils.py463 golden_file, argument
545 golden_frequency = golden_file.frequencies[golden_channel]
786 def compare_recorded_correlation(golden_file, recorder, parameters=None): argument
798 golden_file.path)
800 golden_file.get_binary(), golden_file.data_format,
/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_lib.py569 golden_file = get_golden_filepath(golden_name)
572 logging.warning("Updating golden values in file %s.", golden_file)
573 if not os.path.exists(golden_file):
575 golden_file, _resource_loader.get_root_dir_with_all_resources())
580 with open(golden_file, "wb") as f:
583 golden_data = np.load(golden_file, allow_pickle=False)

12