Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 31) sorted by relevance

12

/device/google/dragon/audio/hal/dsp/tests/
Draw.c13 float *read_raw(const char *filename, size_t *frames) in read_raw() argument
22 if (stat(filename, &st) < 0) { in read_raw()
23 fprintf(stderr, "cannot stat file %s\n", filename); in read_raw()
27 fd = open(filename, O_RDONLY); in read_raw()
29 fprintf(stderr, "cannot open file %s\n", filename); in read_raw()
66 int write_raw(const char *filename, float *input, size_t frames) in write_raw() argument
79 int fd = open(filename, O_WRONLY | O_CREAT, 0644); in write_raw()
81 fprintf(stderr, "cannot open file %s\n", filename); in write_raw()
85 fprintf(stderr, "short write file %s\n", filename); in write_raw()
Draw.h29 float *read_raw(const char *filename, size_t *frames);
40 void write_raw(const char *filename, float *buf, size_t frames);
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_helper.c43 int mm_camera_dump_image(void *addr, uint32_t size, char *filename) in mm_camera_dump_image() argument
45 int file_fd = open(filename, O_RDWR | O_CREAT, 0777); in mm_camera_dump_image()
53 CDBG("%s: %s, size=%d\n", __func__, filename, size); in mm_camera_dump_image()
/device/google/dragon/crash_collector/
Dcrash_collector.cc86 String8 filename = String8(kOutputDirectory).appendPath(entry.d_name); in MakeRoomForNewReport() local
88 if (stat(filename.string(), &attributes)) in MakeRoomForNewReport()
90 all_files.push_back(std::make_pair(attributes.st_mtime, filename)); in MakeRoomForNewReport()
91 if (filename.getPathExtension() == ".dmp") in MakeRoomForNewReport()
103 const String8& filename = file.second; in MakeRoomForNewReport() local
105 if (!RemoveRecursively(filename.string())) in MakeRoomForNewReport()
130 const std::string& filename) { in WriteMetadata() argument
154 content, filename, S_IRUSR | S_IWUSR, AID_SYSTEM, AID_SYSTEM); in WriteMetadata()
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c50 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
52 FILE *fp = fopen(filename, "w+"); \
64 char *filename; member
72 char *filename; member
174 fp = fopen(p_obj->filename, "rb"); in mm_jpegdec_test_read()
238 p_obj->filename = p_input->filename; in decode_init()
345 p_test->filename = optarg; in mm_jpegdec_test_get_input()
346 fprintf(stderr, "%-25s%s\n", "Input image path", p_test->filename); in mm_jpegdec_test_get_input()
369 if (!p_test->filename || !p_test->filename || !p_test->width || in mm_jpegdec_test_get_input()
411 p_input->filename, p_input->out_filename, in decode_test()
Dmm_jpeg_test.c44 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
45 FILE *fp = fopen(filename, "w+"); \
63 char *filename; member
103 char *filename[MAX_NUM_BUFS]; member
224 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read()
256 p_obj->filename[i] = p_in->filename; in encode_init()
303 } while((++p_in)->filename); in encode_init()
571 p_test->filename = in_files[i]; in mm_jpeg_test_get_input()
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c50 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
52 FILE *fp = fopen(filename, "w+"); \
64 char *filename; member
72 char *filename; member
174 fp = fopen(p_obj->filename, "rb"); in mm_jpegdec_test_read()
238 p_obj->filename = p_input->filename; in decode_init()
345 p_test->filename = optarg; in mm_jpegdec_test_get_input()
346 fprintf(stderr, "%-25s%s\n", "Input image path", p_test->filename); in mm_jpegdec_test_get_input()
369 if (!p_test->filename || !p_test->filename || !p_test->width || in mm_jpegdec_test_get_input()
411 p_input->filename, p_input->out_filename, in decode_test()
Dmm_jpeg_test.c44 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
45 FILE *fp = fopen(filename, "w+"); \
63 char *filename; member
103 char *filename[MAX_NUM_BUFS]; member
224 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read()
256 p_obj->filename[i] = p_in->filename; in encode_init()
303 } while((++p_in)->filename); in encode_init()
571 p_test->filename = in_files[i]; in mm_jpeg_test_get_input()
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c50 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
51 FILE *fp = fopen(filename, "w+"); \
63 char *filename; member
71 char *filename; member
173 fp = fopen(p_obj->filename, "rb"); in mm_jpegdec_test_read()
237 p_obj->filename = p_input->filename; in decode_init()
343 p_test->filename = optarg; in mm_jpegdec_test_get_input()
344 fprintf(stderr, "%-25s%s\n", "Input image path", p_test->filename); in mm_jpegdec_test_get_input()
367 if (!p_test->filename || !p_test->filename || !p_test->width || in mm_jpegdec_test_get_input()
409 p_input->filename, p_input->out_filename, in decode_test()
Dmm_jpeg_test.c44 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
45 FILE *fp = fopen(filename, "w+"); \
63 char *filename; member
103 char *filename[MAX_NUM_BUFS]; member
224 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read()
255 p_obj->filename[i] = p_in->filename; in encode_init()
301 } while((++p_in)->filename); in encode_init()
568 p_test->filename = in_files[i]; in mm_jpeg_test_get_input()
/device/asus/fugu/recovery/
Drecovery_updater.cpp287 char *filename = NULL; in FlashIfwiFuguFn() local
296 if (ReadArgs(state, argv, 1, &filename) < 0) { in FlashIfwiFuguFn()
301 if (filename == NULL || strlen(filename) == 0) { in FlashIfwiFuguFn()
306 if ((f = fopen(filename,"rb")) == NULL) { in FlashIfwiFuguFn()
307 ErrorAbort(state, "Unable to open file %s: %s ", filename, strerror(errno)); in FlashIfwiFuguFn()
336 if (filename) in FlashIfwiFuguFn()
337 free(filename); in FlashIfwiFuguFn()
/device/google/dragon/recovery/updater/
Dvboot_interface.c41 char filename[PATH_MAX]; in fdt_read_string() local
46 snprintf(filename, sizeof(filename), FDT_BASE_PATH "/%s", prop); in fdt_read_string()
47 file = fopen(filename, "r"); in fdt_read_string()
71 char filename[PATH_MAX]; in fdt_read_u32() local
75 snprintf(filename, sizeof(filename), FDT_BASE_PATH "/%s", prop); in fdt_read_u32()
76 file = fopen(filename, "r"); in fdt_read_u32()
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h80 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
82 FILE *fp = fopen(filename, "w+"); \
88 CDBG_ERROR("%s:%d] open %s failed", __func__, __LINE__, filename); \
99 #define DUMP_TO_FILE2(filename, p_addr1, len1, paddr2, len2) ({ \ argument
101 FILE *fp = fopen(filename, "w+"); \
108 CDBG_ERROR("%s:%d] open %s failed", __func__, __LINE__, filename); \
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h80 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
82 FILE *fp = fopen(filename, "w+"); \
88 CDBG_ERROR("%s:%d] open %s failed", __func__, __LINE__, filename); \
99 #define DUMP_TO_FILE2(filename, p_addr1, len1, paddr2, len2) ({ \ argument
101 FILE *fp = fopen(filename, "w+"); \
108 CDBG_ERROR("%s:%d] open %s failed", __func__, __LINE__, filename); \
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h79 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
81 FILE *fp = fopen(filename, "w+"); \
87 CDBG_ERROR("%s:%d] open %s failed", __func__, __LINE__, filename); \
98 #define DUMP_TO_FILE2(filename, p_addr1, len1, paddr2, len2) ({ \ argument
100 FILE *fp = fopen(filename, "w+"); \
107 CDBG_ERROR("%s:%d] open %s failed", __func__, __LINE__, filename); \
/device/huawei/angler/
Dreleasetools.py293 filename = "%s.img" % image.name
295 filename = "%s.%s" % (group_name, filename)
304 common.ZipWriteStr(info.output_zip, filename, image.data)
307 (filename, device))
/device/moto/shamu/
Dreleasetools.py255 filename = "%s.img" % image.name
257 filename = "%s.%s" % (group_name,filename)
265 common.ZipWriteStr(info.output_zip, filename, image.data)
268 (filename, device))
/device/huawei/angler/camera/QCamera2/stack/common/
Dmm_camera_interface.h59 char filename[FILENAME_MAX]; \
61 snprintf(filename, FILENAME_MAX, "%s/%s%d.%s", path, name, index, extn); \
63 snprintf(filename, FILENAME_MAX, "%s/%s.%s", path, name, extn); \
64 FILE *fp = fopen(filename, "w+"); \
70 ALOGE("%s:%d] open %s failed", __func__, __LINE__, filename); \
/device/lge/bullhead/camera/QCamera2/stack/common/
Dmm_camera_interface.h59 char filename[FILENAME_MAX]; \
61 snprintf(filename, FILENAME_MAX, "%s/%s%d.%s", path, name, index, extn); \
63 snprintf(filename, FILENAME_MAX, "%s/%s.%s", path, name, extn); \
64 FILE *fp = fopen(filename, "w+"); \
70 ALOGE("%s:%d] open %s failed", __func__, __LINE__, filename); \
/device/google/dragon/audio/hal/
Dcras_dsp.c125 void cras_dsp_init(const char *filename) in cras_dsp_init() argument
128 ini_filename = strdup(filename); in cras_dsp_init()
Dcras_dsp.h22 void cras_dsp_init(const char *filename);
/device/generic/goldfish/fingerprint/
Dfingerprint.c92 static FILE* openForWrite(const char* filename);
134 static FILE* openForWrite(const char* filename) { in openForWrite() argument
136 if (!filename) return NULL; in openForWrite()
138 FILE* fp = fopen(filename, "r+"); // write but don't truncate in openForWrite()
140 fp = fopen(filename, "w"); in openForWrite()
155 static void saveAuthenticatorId(const char* filename, uint64_t authenid) { in saveAuthenticatorId() argument
157 FILE* fp = openForWrite(filename); in saveAuthenticatorId()
/device/google/contexthub/util/nanotool/
Dnanotool.cpp56 std::string filename; member
164 && args->filename.empty()) { in ValidateArgs()
342 args->filename = std::string(optarg); in ParseArgs()
461 success = hub->Flash(args->filename); in main()
/device/linaro/hikey/installer/
Dhisi-idt.py96 def getsize(self, filename): argument
97 st = os.stat(filename)
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_types.h60 char filename[CAM_FN_CNT]; \
62 snprintf(filename, CAM_FN_CNT-1, "%s/%s%d.%s", path, name, index, extn); \
64 snprintf(filename, CAM_FN_CNT-1, "%s/%s.%s", path, name, extn); \
65 FILE *fp = fopen(filename, "w+"); \
71 ALOGE("%s:%d] open %s failed", __func__, __LINE__, filename); \

12