/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_wifi.c | 18 char* file_name; member 39 static int add_hdl_info(int fd, char* file_name, netmgr_type_t type) in add_hdl_info() argument 52 cur->file_name = strdup(file_name); in add_hdl_info() 60 static int del_hdl_by_name(char* file_name) in del_hdl_by_name() argument 66 if(strcmp(cur->file_name, file_name) == 0) { in del_hdl_by_name() 73 free(cur->file_name); in del_hdl_by_name() 81 static netmgr_hdl_t get_hdl_by_name(char* file_name) in get_hdl_by_name() argument 87 if(strcmp(cur->file_name, file_name) == 0) { in get_hdl_by_name()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/ |
A D | imageio_util.c | 71 int ImgIoUtilReadFile(const char* const file_name, in ImgIoUtilReadFile() argument 77 const int from_stdin = (file_name == NULL) || !WSTRCMP(file_name, "-"); in ImgIoUtilReadFile() 85 in = WFOPEN(file_name, "rb"); in ImgIoUtilReadFile() 87 WFPRINTF(stderr, "cannot open input file '%s'\n", (const W_CHAR*)file_name); in ImgIoUtilReadFile() 98 (const W_CHAR*)file_name); in ImgIoUtilReadFile() 106 (int)file_size, (const W_CHAR*)file_name); in ImgIoUtilReadFile() 118 int ImgIoUtilWriteFile(const char* const file_name, in ImgIoUtilWriteFile() argument 122 const int to_stdout = (file_name == NULL) || !WSTRCMP(file_name, "-"); in ImgIoUtilWriteFile() 127 out = to_stdout ? ImgIoUtilSetBinaryMode(stdout) : WFOPEN(file_name, "wb"); in ImgIoUtilWriteFile() 130 (const W_CHAR*)file_name); in ImgIoUtilWriteFile()
|
A D | imageio_util.h | 38 int ImgIoUtilReadFile(const char* const file_name, 46 int ImgIoUtilWriteFile(const char* const file_name,
|
/AliOS-Things-master/components/uvoice/media/ |
A D | uvoice_mlist.c | 37 char file_name[128]; in mlist_source_show() local 70 memset(file_name, 0, sizeof(file_name)); in mlist_source_show() 71 os_fgets(file_name, sizeof(file_name), list_fp); in mlist_source_show() 73 if (file_name[strlen(file_name) - 1] == '\n') in mlist_source_show() 74 file_name[strlen(file_name) - 1] = '\0'; in mlist_source_show() 76 ptr = strchr(file_name, '/'); in mlist_source_show() 244 char file_name[128]; in mlist_source_get() local 297 memset(file_name, 0, sizeof(file_name)); in mlist_source_get() 298 os_fgets(file_name, sizeof(file_name), list_fp); in mlist_source_get() 300 if (file_name[strlen(file_name) - 1] == '\n') in mlist_source_get() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/ |
A D | unicode_gif.h | 37 static GifFileType* DGifOpenFileUnicode(const W_CHAR* file_name, int* error) { in DGifOpenFileUnicode() argument 38 if (!WSTRCMP(file_name, "-")) { in DGifOpenFileUnicode() 49 int file_handle = _wopen(file_name, _O_RDONLY | _O_BINARY); in DGifOpenFileUnicode() 64 return DGifOpenFileName(file_name, error); in DGifOpenFileUnicode() 66 return DGifOpenFileName(file_name); in DGifOpenFileUnicode()
|
A D | anim_util.c | 158 W_CHAR* file_name = NULL; in DumpFrame() local 168 file_name = (W_CHAR*)malloc(max_len * sizeof(*file_name)); in DumpFrame() 169 if (file_name == NULL) goto End; in DumpFrame() 171 if (WSNPRINTF(file_name, max_len, "%s/%s_frame_%d.pam", in DumpFrame() 177 f = WFOPEN(file_name, "wb"); in DumpFrame() 179 WFPRINTF(stderr, "Error opening file for writing: %s\n", file_name); in DumpFrame() 186 WFPRINTF(stderr, "Write error for file %s\n", file_name); in DumpFrame() 192 WFPRINTF(stderr, "Error writing to file: %s\n", file_name); in DumpFrame() 200 free(file_name); in DumpFrame()
|
A D | vwebp.c | 66 const char* file_name; member 399 PrintString(kParams.file_name); in HandleDisplay() 517 if (c < argc - 1) kParams.file_name = (const char*)GET_WARGV(argv, ++c); in main() 524 kParams.file_name = (const char*)GET_WARGV(argv, c); in main() 533 if (kParams.file_name == NULL) { in main() 539 if (!ImgIoUtilReadFile(kParams.file_name, in main()
|
/AliOS-Things-master/components/netmgr/src/ |
A D | netmgr_service.c | 23 char* file_name; member 65 static int add_hdl_info(int fd, char* file_name, netmgr_type_t type) in add_hdl_info() argument 71 printf("malloc hdl info for dev %s failed\n", file_name); in add_hdl_info() 77 cur->file_name = strdup(file_name); in add_hdl_info() 85 static int del_hdl_by_name(char* file_name) in del_hdl_by_name() argument 91 if(strcmp(cur->file_name, file_name) == 0) { in del_hdl_by_name() 98 free(cur->file_name); in del_hdl_by_name() 106 static netmgr_hdl_t get_hdl_by_name(const char* file_name) in get_hdl_by_name() argument 112 if(strcmp(cur->file_name, file_name) == 0) { in get_hdl_by_name() 180 del_hdl_by_name(cur->file_name); in netmgr_service_deinit()
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/ |
A D | accuracy_utils_test.cc | 28 string file_name = tensorflow::io::JoinPath(tensorflow::testing::TmpDir(), in TEST() local 31 TF_ASSERT_OK(WriteStringToFile(Env::Default(), file_name, file_data)); in TEST() 34 TF_ASSERT_OK(ReadGroundTruthFile(file_name, &ground_truth)); in TEST()
|
A D | freeze.py | 161 def save_graph_def(file_name, frozen_graph_def): argument 170 os.path.dirname(file_name), 171 os.path.basename(file_name), 173 tf.compat.v1.logging.info('Saved frozen graph to %s', file_name) 176 def save_saved_model(file_name, sess, input_tensor, output_tensor): argument 186 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(file_name)
|
A D | accuracy_utils.cc | 27 Status ReadGroundTruthFile(const string& file_name, in ReadGroundTruthFile() argument 29 std::ifstream file(file_name); in ReadGroundTruthFile() 31 return tensorflow::errors::NotFound("Ground truth file '", file_name, in ReadGroundTruthFile()
|
A D | label_wav.cc | 58 Status ReadLabelsFile(const string& file_name, std::vector<string>* result) { in ReadLabelsFile() argument 59 std::ifstream file(file_name); in ReadLabelsFile() 61 return tensorflow::errors::NotFound("Labels file ", file_name, in ReadLabelsFile()
|
A D | accuracy_utils.py | 52 def read_ground_truth_file(self, file_name): argument 54 with open(file_name, 'r') as f:
|
A D | test_streaming_accuracy.cc | 117 Status ReadLabelsFile(const string& file_name, std::vector<string>* result) { in ReadLabelsFile() argument 118 std::ifstream file(file_name); in ReadLabelsFile() 120 return tensorflow::errors::NotFound("Labels file '", file_name, in ReadLabelsFile()
|
/AliOS-Things-master/components/ota/tools/ |
A D | ota_image_package.py | 14 def write_file(file_name, gap_szie, data): argument 15 if file_name is None: 18 fp = open(file_name,'ab') 25 print '%s write fail\n'%(file_name)
|
/AliOS-Things-master/components/freetype/src/base/ |
A D | ftdbgmem.c | 59 const char* file_name; member 369 FT_FILENAME( node->source->file_name ), in ft_mem_table_destroy() 469 if ( node->file_name == _ft_debug_file && in ft_mem_table_get_source() 481 node->file_name = _ft_debug_file; in ft_mem_table_get_source() 538 FT_FILENAME( node->source->file_name ), node->source->line_no, in ft_mem_table_set() 745 const char* file_name = FT_FILENAME( _ft_debug_file ); in ft_mem_debug_realloc() local 757 file_name, line_no ); in ft_mem_debug_realloc() 765 block, cur_size, file_name, line_no ); in ft_mem_debug_realloc() 773 block, file_name, line_no ); in ft_mem_debug_realloc() 778 block, file_name, line_no ); in ft_mem_debug_realloc() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/libtests/ |
A D | pngstest.c | 577 const char *file_name; member 657 image->file_name = file_name; in initimage() 738 image->file_name); in logerror() 2394 if (transform->in_image->file_name != transform->out_image->file_name) in logpixel() 2620 b->file_name); in compare_two_images() 2978 image->file_name, ""); in read_file() 3036 checkbuffer(image, image->file_name); in read_file() 3056 FILE *f = fopen(image->file_name, "rb"); in read_one_file() 3295 output->file_name); in write_one_file() 3454 initimage(&image, opts, file_name, stride_extra); in test_one_file() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/release/aos_burn_tool/ |
A D | ymodem.py | 140 file_name = os.path.basename(file_path) 142 file_sent = self.send(file_stream, file_name, file_size, retry, callback) 148 print("File: " + file_name) 408 file_name = bytes.decode(file_name_bytes) 410 print("TASK: " + file_name + " " + data_size + "Bytes") 411 self.rt.set_task_name(file_name) 413 file_stream = open(os.path.join(root_path, file_name), 'wb+')
|
/AliOS-Things-master/hardware/chip/haas1000/release/aos_burn_tool/ |
A D | ymodem.py | 140 file_name = os.path.basename(file_path) 142 file_sent = self.send(file_stream, file_name, file_size, retry, callback) 148 print("File: " + file_name) 394 file_name = bytes.decode(file_name_bytes) 396 print("TASK: " + file_name + " " + data_size + "Bytes") 397 self.rt.set_task_name(file_name) 399 file_stream = open(os.path.join(root_path, file_name), 'wb+')
|
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/sendfile/ |
A D | sendfile.c | 86 char * file_name = NULL; in sendfile_client() local 121 file_name = argv[i]; in sendfile_client() 125 if((NULL == dst_addr) || (NULL == dst_port) || (NULL == src_file) || (NULL == file_name)) { in sendfile_client() 169 fd = open(file_name, O_WRONLY|O_CREAT, mode); in sendfile_client() 171 LWIP_DEBUGF( SENDFILE_DEBUG, ("open file %s failed: %s", file_name, strerror(errno))); in sendfile_client()
|
/AliOS-Things-master/components/linkkit/http2/ |
A D | http2_upload_api.c | 81 static int http2_stream_get_file_size(const char *file_name) in http2_stream_get_file_size() argument 86 fp = HAL_Fopen(file_name, "r"); in http2_stream_get_file_size() 88 h2_err("The file %s can not be opened.\n", file_name); in http2_stream_get_file_size() 119 static int http2_stream_get_file_data(const char *file_name, char *data, in http2_stream_get_file_data() argument 125 fp = HAL_Fopen(file_name, "r"); in http2_stream_get_file_data() 127 h2_err("The file %s can not be opened.\n", file_name); in http2_stream_get_file_data() 133 h2_err("The file %s can not move offset.\n", file_name); in http2_stream_get_file_data()
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | ymodemfile.py | 147 file_name = os.path.basename(file_path) 149 file_sent = self.send(file_stream, file_name, file_size, retry, callback) 156 print("File: " + file_name) 425 file_name = bytes.decode(file_name_bytes) 427 logging.debug("TASK: " + file_name + " " + data_size + "Bytes") 428 self.rt.set_task_name(file_name) 430 file_stream = open(os.path.join(root_path, file_name), 'wb+')
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/ |
A D | example.c | 248 int check_if_png(char *file_name, FILE **fp) 253 if ((*fp = fopen(file_name, "rb")) == NULL) 273 void read_png(char *file_name) /* We need to open the file */ 282 if ((fp = fopen(file_name, "rb")) == NULL) 739 void write_png(char *file_name /* , ... other image information ... */) 747 fp = fopen(file_name, "wb");
|
/AliOS-Things-master/components/ble_host/bt_host/port/core/settings/src/ |
A D | settings_file.c | 197 const char *file_name) in settings_file_create_or_replace() argument 201 if (fs_stat(file_name, &entry) == 0) { in settings_file_create_or_replace() 203 if (fs_unlink(file_name)) { in settings_file_create_or_replace() 211 return fs_open(zfp, file_name); in settings_file_create_or_replace()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/ftp_client/ |
A D | net_dump.h | 13 int net_get_dump_size(net_dump_handle_t net_dump_t,char *file_name);
|