Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 29) sorted by relevance

12

/AliOS-Things-master/components/http/src/
A Dhttp_formdata.c189 …nt_data_t* client_data, char* content_disposition, char* name, char* content_type, char* file_path) in httpclient_formdata_addfile() argument
196 if((content_disposition == NULL) || (name == NULL) || (file_path == NULL)) { in httpclient_formdata_addfile()
239 …6 + strlen(content_disposition) + strlen(name) + strlen(file_path) - get_url_file_name(file_path) … in httpclient_formdata_addfile()
242 …8 + strlen(content_disposition) + strlen(name) + strlen(file_path) - get_url_file_name(file_path) … in httpclient_formdata_addfile()
259 memcpy(current->file_path, file_path, strlen(file_path)); in httpclient_formdata_addfile()
261 …, buf_len, FILE_FORMAT_START, content_disposition, name, file_path + get_url_file_name(file_path)); in httpclient_formdata_addfile()
264 …LE_FORMAT_CONTENT_TYPE_START, content_disposition, name, file_path + get_url_file_name(file_path),… in httpclient_formdata_addfile()
290 fd = fopen(current->file_path, "rb"); in httpclient_formdata_len()
292 http_err("%s: open file(%s) failed errno=%d", __func__, current->file_path, errno); in httpclient_formdata_len()
353 FILE* fd = fopen(current->file_path, "rb"); in httpclient_send_formdata()
[all …]
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/
A Dinput_data_test.py52 file_path = os.path.join(dir_name, "some_audio_%d.wav" % i)
53 self._saveTestWavFile(file_path, wav_data)
76 self._saveTestWavFile(file_path, wav_data)
138 self._saveTestWavFile(file_path, wav_data)
147 file_path = os.path.join(tmp_dir, "load_test.wav")
149 self._saveTestWavFile(file_path, wav_data)
150 sample_data = input_data.load_wav_file(file_path)
155 file_path = os.path.join(tmp_dir, "load_test.wav")
157 input_data.save_wav_file(file_path, save_data, 16000)
158 loaded_data = input_data.load_wav_file(file_path)
[all …]
A Dtrain_test.py69 file_path = os.path.join(dir_name, 'some_audio_%d.wav' % i)
70 self._saveTestWavFile(file_path, wav_data)
81 file_path = os.path.join(background_dir, 'background_audio_%d.wav' % i)
82 self._saveTestWavFile(file_path, wav_data)
A Dwav_to_features_test.py49 file_path = os.path.join(dir_name, "some_audio_%d.wav" % i)
50 self._saveTestWavFile(file_path, wav_data)
/AliOS-Things-master/components/linkkit/http2/
A Dhttp2_upload_api.c46 const char *file_path; member
98 static const char *_http2_fs_get_filename(const char *file_path) in _http2_fs_get_filename() argument
102 if (file_path == NULL) { in _http2_fs_get_filename()
106 p_name = file_path + strlen(file_path); in _http2_fs_get_filename()
108 while (--p_name != file_path) { in _http2_fs_get_filename()
167 filename = _http2_fs_get_filename(fs_node->file_path); in _http2_fs_open_channel()
290 filesize = http2_stream_get_file_size(fs_node->file_path); in _http2_fs_node_handle()
319 fs_node->opened_cb(fs_node->file_path, rsp_data.fs_upload_id, in _http2_fs_node_handle()
344 fs_node->end_cb(fs_node->file_path, UPLOAD_MALLOC_FAILED, in _http2_fs_node_handle()
538 if (params->file_path == NULL) { in IOT_HTTP2_UploadFile_Request()
[all …]
/AliOS-Things-master/components/linkkit/include/linkkit/
A Dhttp2_upload_api.h31 const char *file_path; /* file path, filename must be ASCII string and member
73 typedef void (*http2_upload_completed_cb_t)(const char *file_path, int result,
78 typedef void (*http2_upload_id_received_cb_t)(const char *file_path,
/AliOS-Things-master/components/uvoice/media/
A Duvoice_mlist.c351 char file_path[128]; in mlist_source_del() local
359 memset(file_path, 0, sizeof(file_path)); in mlist_source_del()
361 if (mlist_source_get(index, file_path, sizeof(file_path))) { in mlist_source_del()
366 if (strncmp(file_path, "fs:", strlen("fs:"))) { in mlist_source_del()
371 if (unlink((char *)file_path + strlen("fs:"))) { in mlist_source_del()
372 M_LOGE("delete %s failed !\n", file_path); in mlist_source_del()
407 M_LOGI("%s delete\n", file_path); in mlist_source_del()
/AliOS-Things-master/components/ota/hal/
A Dota_hal_fs_plat.c50 OTA_WEAK int ota_jsapp_version_get(char *version, char *file_path) in ota_jsapp_version_get() argument
58 if ((version != NULL) && (file_path != NULL)) { in ota_jsapp_version_get()
60 fd = ota_fopen(file_path, O_RDONLY); in ota_jsapp_version_get()
A Dota_hal_ctrl.c150 int ota_verify_fsfile(ota_boot_param_t *param, char *file_path) in ota_verify_fsfile() argument
160 if ((param == NULL) || (file_path == NULL)) { in ota_verify_fsfile()
169 fd = ota_fopen(file_path, O_RDONLY); in ota_verify_fsfile()
172 OTA_LOG_E("open %s failed\n", file_path); in ota_verify_fsfile()
/AliOS-Things-master/components/SDL2/src/core/linux/
A DSDL_ibus.c174 IBus_ReadAddressFromFile(const char *file_path) in IBus_ReadAddressFromFile() argument
180 addr_file = fopen(file_path, "r"); in IBus_ReadAddressFromFile()
214 char file_path[PATH_MAX]; in IBus_GetDBusAddressFilename() local
279 SDL_memset(file_path, 0, sizeof(file_path)); in IBus_GetDBusAddressFilename()
280 SDL_snprintf(file_path, sizeof(file_path), "%s/ibus/bus/%s-%s-%s", in IBus_GetDBusAddressFilename()
285 return SDL_strdup(file_path); in IBus_GetDBusAddressFilename()
/AliOS-Things-master/components/uvoice/test/
A Dtest_player.c506 char file_path[128]; in uvoice_play_test() local
507 memset(file_path, 0, sizeof(file_path)); in uvoice_play_test()
508 if (mlist_source_get(index, file_path, sizeof(file_path))) { in uvoice_play_test()
512 uvocplayer->set_source(file_path); in uvoice_play_test()
/AliOS-Things-master/components/py_engine/modules/video/
A Dak_camera.c334 char file_path[64] = { 0 }; in save_data() local
339 snprintf(file_path, sizeof(file_path), "/mnt/sdcard/%s_%s.%s", path, in save_data()
346 fd = fopen(file_path, "wb+"); in save_data()
/AliOS-Things-master/components/http/internal/
A Dhttp_form_data.h17 char file_path[FORM_DATA_MAXLEN]; member
/AliOS-Things-master/components/uvoice/include/
A Duvoice_types.h71 char file_path[128]; /* cache file full path */ member
/AliOS-Things-master/components/amp_adapter/platform/aos/haas700/
A Dota_agent.h266 int ota_download_to_fs_service(void *ota_ctx , char *file_path);
554 int ota_jsapp_version_get(char *version, char *file_path);
/AliOS-Things-master/components/ota/include/
A Dota_agent.h266 int ota_download_to_fs_service(void *ota_ctx , char *file_path);
554 int ota_jsapp_version_get(char *version, char *file_path);
A Dota_import.h126 int ota_verify_fsfile(ota_boot_param_t *param, char *file_path);
/AliOS-Things-master/components/ota/ota_agent/
A Dota_service.c23 int ota_download_to_fs_service(void *ota_ctx , char *file_path) in ota_download_to_fs_service() argument
29 if (ctx == NULL || file_path == NULL) { in ota_download_to_fs_service()
37 ret = ota_download_store_fs_start(ota_param.url, strlen(ota_param.url), file_path, in ota_download_to_fs_service()
43 ret = ota_verify_fsfile(&ota_param, file_path); in ota_download_to_fs_service()
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_ota.c15 int ota_verify_fsfile(ota_boot_param_t *param, char *file_path) in ota_verify_fsfile() argument
/AliOS-Things-master/hardware/chip/rtl872xd/release/aos_burn_tool/
A Dymodem.py137 def send_file(self, file_path, retry=20, callback=None): argument
139 file_stream = open(file_path, 'rb')
140 file_name = os.path.basename(file_path)
141 file_size = os.path.getsize(file_path)
/AliOS-Things-master/hardware/chip/haas1000/release/aos_burn_tool/
A Dymodem.py137 def send_file(self, file_path, retry=20, callback=None): argument
139 file_stream = open(file_path, 'rb')
140 file_name = os.path.basename(file_path)
141 file_size = os.path.getsize(file_path)
/AliOS-Things-master/components/py_engine/engine/tools/
A Dymodemfile.py144 def send_file(self, file_path, retry=20, callback=None): argument
146 file_stream = open(file_path, 'rb')
147 file_name = os.path.basename(file_path)
148 file_size = os.path.getsize(file_path)
/AliOS-Things-master/components/oss/src/
A Doss_app.cpp101 char *pfile_path,file_path[256]; in oss_upload_local_file() local
119 memset(file_path,0,256); in oss_upload_local_file()
121 strncpy(file_path,&pfile_path[1],strlen(pfile_path)-1); in oss_upload_local_file()
122 ObjectName = file_path; in oss_upload_local_file()
/AliOS-Things-master/components/py_engine/modules/audio/
A Duvoiceplayer.c398 const char *file_path = get_str_from_dict(config_dict, "file_path"); in uvoice_cache_config() local
399 strncpy(config.file_path, file_path, strlen(file_path)); in uvoice_cache_config()
/AliOS-Things-master/components/http/include/
A Dhttpclient.h237 …t_data_t* client_data, char* content_disposition, char* name, char* content_type, char* file_path);

Completed in 28 milliseconds

12