/device/google/dragon/audio/hal/dsp/tests/ |
D | raw.c | 13 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()
|
D | raw.h | 29 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/ |
D | mm_camera_helper.c | 43 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/ |
D | crash_collector.cc | 86 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/ |
D | mm_jpegdec_test.c | 50 #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()
|
D | mm_jpeg_test.c | 44 #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/ |
D | mm_jpegdec_test.c | 50 #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()
|
D | mm_jpeg_test.c | 44 #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/ |
D | mm_jpegdec_test.c | 50 #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()
|
D | mm_jpeg_test.c | 44 #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/ |
D | recovery_updater.cpp | 287 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/ |
D | vboot_interface.c | 41 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/ |
D | mm_jpeg.h | 80 #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/ |
D | mm_jpeg.h | 80 #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/ |
D | mm_jpeg.h | 79 #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/ |
D | releasetools.py | 293 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/ |
D | releasetools.py | 255 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/ |
D | mm_camera_interface.h | 59 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/ |
D | mm_camera_interface.h | 59 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/ |
D | cras_dsp.c | 125 void cras_dsp_init(const char *filename) in cras_dsp_init() argument 128 ini_filename = strdup(filename); in cras_dsp_init()
|
D | cras_dsp.h | 22 void cras_dsp_init(const char *filename);
|
/device/generic/goldfish/fingerprint/ |
D | fingerprint.c | 92 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/ |
D | nanotool.cpp | 56 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/ |
D | hisi-idt.py | 96 def getsize(self, filename): argument 97 st = os.stat(filename)
|
/device/moto/shamu/camera/QCamera2/stack/common/ |
D | cam_types.h | 60 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); \
|