Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 23 of 23) sorted by relevance

/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp724 string file_name = StorageManager::getDataHistoryFileName((long)getWallClockSec(), in onConfigMetricsReportLocked() local
726 StorageManager::writeFile(file_name.c_str(), buffer->data(), buffer->size()); in onConfigMetricsReportLocked()
850 string file_name = in WriteDataToDiskLocked() local
852 StorageManager::writeFile(file_name.c_str(), buffer.data(), buffer.size()); in WriteDataToDiskLocked()
873 string file_name = StringPrintf("%s/active_metrics", STATS_ACTIVE_METRIC_DIR); in SaveActiveConfigsToDisk() local
874 StorageManager::deleteFile(file_name.c_str()); in SaveActiveConfigsToDisk()
876 open(file_name.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR)); in SaveActiveConfigsToDisk()
878 ALOGE("Attempt to write %s but failed", file_name.c_str()); in SaveActiveConfigsToDisk()
900 string file_name = StringPrintf("%s/metadata", STATS_METADATA_DIR); in SaveMetadataToDisk() local
901 StorageManager::deleteFile(file_name.c_str()); in SaveMetadataToDisk()
[all …]
/packages/modules/Bluetooth/system/blueberry/utils/
Dbt_audio_utils.py48 file_name = 'sine_%dhz_%dch_%drate_%dbit_%dsec.wav' % (
50 mobly_directory_path = os.path.join(device.log_path, file_name)
55 device_storage_path = os.path.join(pushed_file_path, file_name)
276 file_path, file_name = os.path.split(audio_file)
277 file_name, file_ext = os.path.splitext(file_name)
279 file_name,
Dbt_test_utils.py63 file_name = f'contacts_{int(time.time())}.vcf'
64 vcf_file_path = os.path.join(output_path, file_name)
192 def write_record_file(file_name, audio_params, frames): argument
200 log.debug('writing frame to %s', file_name)
201 wf = wave.open(file_name, 'wb')
/packages/modules/Bluetooth/system/tools/scripts/
Ddump_le_audio.py551 file_name = ""
557 file_name += context_case.get(connection_map[acl_handle].context, "Unknown")
574 file_name += ("_sf" + sf_case[ase.sampling_frequencies])
576 file_name += ("_fd" + fd_case[ase.frame_duration])
583 file_name += ("_" + al_case[ase.channel_allocation])
584 file_name += ("_frame" + str(ase.octets_per_frame))
585 file_name += ("_" + convert_time_str(connection_map[acl_handle].start_time))
590 f = open(file_name + "_input.bin", 'wb')
600 f = open(file_name + "_output.bin", 'wb')
614 file_name = "broadcast"
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/pbap/
Dbluetooth_pbap_test.py85 def _import_vcf_to_pse(self, file_name, expected_contact_count): argument
95 if not self.pri_phone.aud(text=file_name).exists():
98 'No file name matches "%s" in PickActivity.' % file_name)
112 self.pri_phone.aud(text=file_name).click()
113 self.pri_phone.log.info('Importing "%s"...' % file_name)
142 file_name = vcf_file.split('/')[-1]
143 self._import_vcf_to_pse(file_name, num_of_contacts)
145 'rm -rf %s' % os.path.join(STORAGE_PATH, file_name))
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp138 string file_name; in main() local
153 getline(in,file_name); in main()
155 PgmImage ref(file_name); in main()
159 cerr << "Could not open image" << file_name << ". Exiting." << endl; in main()
249 s << "aligned_" << file_name; in main()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp586 string file_name = output.getFullFileName(STATS_SERVICE_DIR); in readConfigFromDisk() local
587 int fd = open(file_name.c_str(), O_RDONLY | O_CLOEXEC); in readConfigFromDisk()
692 string file_name; in trimToFit() local
694 file_name = StringPrintf("%s/%s", path, name); in trimToFit()
699 file_name = output.getFullFileName(path); in trimToFit()
707 deleteFile(file_name.c_str()); in trimToFit()
711 ifstream file(file_name.c_str(), ifstream::in | ifstream::binary); in trimToFit()
719 fileNames.emplace_back(file_name, output.mIsHistory, fileSize, fileAge); in trimToFit()
762 string file_name = output.getFullFileName(path); in printDirStats() local
763 ifstream file(file_name.c_str(), ifstream::in | ifstream::binary); in printDirStats()
/packages/modules/Bluetooth/android/pandora/mmi2grpc/_build/
Dprotoc-gen-custom_grpc170 for file_name in request.file_to_generate:
171 file = next(filter(lambda x: x.name == file_name, request.proto_file))
188 name=file_name.replace('.proto', '_grpc.py'),
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dcontroller_properties.cc227 ControllerProperties::ControllerProperties(const std::string& file_name) in ControllerProperties() argument
249 if (file_name.empty()) {
253 LOG_INFO("Reading controller properties from %s.", file_name.c_str());
255 std::ifstream file(file_name);
263 file_name.c_str(), errs.c_str());
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dtest_command_handler.cc91 void TestCommandHandler::FromFile(const std::string& file_name) { in FromFile() argument
92 if (file_name.size() == 0) { in FromFile()
96 std::ifstream file(file_name.c_str()); in FromFile()
Dtest_command_handler.h46 void FromFile(const std::string& file_name);
/packages/modules/Bluetooth/system/gd/rust/packets/
Dbuild.rs30 out_dir.join(outputted.file_name().unwrap()).as_os_str().to_str().unwrap(), in main()
84 out_dir.join(outputted[i].file_name().unwrap()).as_os_str().to_str().unwrap(), in generate_packets()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dconfig_util.rs120 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_hci_devices_string()
136 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_pid_files()
/packages/modules/SdkExtensions/derive_classpath/
Dderive_classpath_test.cpp242 const std::string file_name = android::base::StringPrintf("/proc/self/fd/%d", fd.get()); in TEST_F() local
244 .output_path = file_name, in TEST_F()
249 const std::vector<std::string> exportLines = ParseExportsFile(file_name.c_str()); in TEST_F()
/packages/modules/adb/client/
Dbugreport.h45 virtual void UpdateProgress(const std::string& file_name, int progress_percentage);
/packages/modules/StatsD/statsd/src/config/
DConfigManager.cpp308 string file_name = in update_saved_configs_locked() local
311 StorageManager::writeFile(file_name.c_str(), &buffer[0], numBytes); in update_saved_configs_locked()
/packages/modules/Bluetooth/tools/rootcanal/lmp/
Dbuild.rs30 out_dir.join(outputted.file_name().unwrap()).as_os_str().to_str().unwrap(), in main()
/packages/modules/Virtualization/compos/src/
Dartifact_signer.rs75 let mut signature_name = info_path.file_name().unwrap().to_owned(); in write_info_and_signature()
/packages/modules/Virtualization/apkdmverity/src/
Dloopdevice.rs170 let dio = Path::new("/sys/block").join(dev.file_name().unwrap()).join("loop/dio"); in is_direct_io()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemView.java88 mFileName = (TextView) findViewById(R.id.file_name); in onFinishInflate()
/packages/modules/Bluetooth/system/gd/docs/testing/
Dcert_test.md112 * `--test_file=<file_name>`: Running only tests listed in `<file_name>`
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DFileUploadActivity.java127 mFileName = findViewById(R.id.file_name); in initLayout()
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs300 path.file_name().ok_or_else(|| anyhow!("Bad file name: {:?}", path))?; in add_entry_at_ro_dir_by_path()