Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 21 of 21) sorted by relevance

/device/asus/flo/conn_init/
Dconn_init.c31 FILE *fp = NULL; in wifi_check_qcom_cfg_files() local
33 fp = fopen("/persist/wifi/.macaddr", "r"); in wifi_check_qcom_cfg_files()
34 if ( fp == NULL ) in wifi_check_qcom_cfg_files()
41 n = fread(macAddress, 12, 1, fp); in wifi_check_qcom_cfg_files()
42 fclose(fp); in wifi_check_qcom_cfg_files()
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c44 FILE *fp = fopen(filename, "w+"); \
45 if (fp) { \
46 rc = fwrite(p_addr, 1, len, fp); \
47 fclose(fp); \
144 FILE *fp = NULL; in mm_jpeg_test_read() local
146 fp = fopen(p_obj->filename, "rb"); in mm_jpeg_test_read()
147 if (!fp) { in mm_jpeg_test_read()
151 fseek(fp, 0, SEEK_END); in mm_jpeg_test_read()
152 file_size = ftell(fp); in mm_jpeg_test_read()
153 fseek(fp, 0, SEEK_SET); in mm_jpeg_test_read()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c43 FILE *fp = fopen(filename, "w+"); \
44 if (fp) { \
45 fwrite(p_addr, 1, len, fp); \
46 fclose(fp); \
142 FILE *fp = NULL; in mm_jpeg_test_read() local
144 fp = fopen(p_obj->filename, "rb"); in mm_jpeg_test_read()
145 if (!fp) { in mm_jpeg_test_read()
149 fseek(fp, 0, SEEK_END); in mm_jpeg_test_read()
150 file_size = ftell(fp); in mm_jpeg_test_read()
151 fseek(fp, 0, SEEK_SET); in mm_jpeg_test_read()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c51 FILE *fp = fopen(filename, "w+"); \
52 if (fp) { \
53 fwrite(p_addr, 1, len, fp); \
54 fclose(fp); \
171 FILE *fp = NULL; in mm_jpegdec_test_read() local
173 fp = fopen(p_obj->filename, "rb"); in mm_jpegdec_test_read()
174 if (!fp) { in mm_jpegdec_test_read()
178 fseek(fp, 0, SEEK_END); in mm_jpegdec_test_read()
179 file_size = ftell(fp); in mm_jpegdec_test_read()
180 fseek(fp, 0, SEEK_SET); in mm_jpegdec_test_read()
[all …]
Dmm_jpeg_test.c45 FILE *fp = fopen(filename, "w+"); \
46 if (fp) { \
47 fwrite(p_addr, 1, len, fp); \
48 fclose(fp); \
222 FILE *fp = NULL; in mm_jpeg_test_read() local
224 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read()
225 if (!fp) { in mm_jpeg_test_read()
229 fseek(fp, 0, SEEK_END); in mm_jpeg_test_read()
230 file_size = ftell(fp); in mm_jpeg_test_read()
231 fseek(fp, 0, SEEK_SET); in mm_jpeg_test_read()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h81 FILE *fp = fopen(filename, "w+"); \
82 if (fp) { \
83 rc = fwrite(p_addr, 1, len, fp); \
85 fclose(fp); \
100 FILE *fp = fopen(filename, "w+"); \
101 if (fp) { \
102 rc = fwrite(p_addr1, 1, len1, fp); \
103 rc = fwrite(p_addr2, 1, len2, fp); \
105 fclose(fp); \
/device/generic/goldfish/opengl/tests/gles_android_wrapper/
Degl.cpp113 FILE *fp = fopen("/proc/self/cmdline", "rt"); in getProcName() local
114 if (fp == NULL) { in getProcName()
120 if (fgets(line, sizeof(line), fp) == NULL) { in getProcName()
122 fclose(fp); in getProcName()
125 fclose(fp); in getProcName()
160 FILE *fp = fopen(GLES_EMUL_TARGETS_FILE, "rt"); in isNeedEncode() local
161 if (fp == NULL) { in isNeedEncode()
170 while (fgets(line, sizeof(line), fp) != NULL) { in isNeedEncode()
181 fclose(fp); in isNeedEncode()
/device/generic/mips/
DBoardConfig.mk10 TARGET_ARCH_VARIANT := mips32-fp
/device/generic/goldfish/fingerprint/
Dfingerprint.c87 static void save_fingerid(FILE* fp, int fingerid, uint64_t secureid, uint64_t authenid) { in save_fingerid() argument
88 if (!fp) return; in save_fingerid()
89 fprintf(fp, " %d %" PRIu64 " %" PRIu64, fingerid, secureid, authenid); in save_fingerid()
90 fflush(fp); in save_fingerid()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQualcommUsbCamera.cpp2272 FILE *fp = NULL; in get_uvc_device() local
2354 if(fp) in get_uvc_device()
2355 fclose(fp); in get_uvc_device()
2382 FILE *fp = NULL; in fileDump() local
2384 fp = fopen(fn, "wb"); in fileDump()
2385 if (NULL == fp) { in fileDump()
2388 fclose(fp); in fileDump()
2390 fp = fopen(fn, "ab"); in fileDump()
2391 if (NULL == fp) { in fileDump()
2394 fwrite(data, 1, length, fp); in fileDump()
[all …]
/device/asus/deb/
Dreleasetools.py167 fp = info.info_dict["build.prop"]["ro.build.fingerprint"]
168 if "release-keys" in fp:
/device/lge/hammerhead/
Dreleasetools.py181 fp = info.info_dict["build.prop"]["ro.build.fingerprint"]
182 if "release-keys" in fp:
/device/asus/flo/
Dreleasetools.py192 fp = info.info_dict["build.prop"]["ro.build.fingerprint"]
193 if "release-keys" in fp:
/device/htc/flounder/sensor_hub/libsensors/
DCwMcuSensor.cpp1298 FILE *fp; in cw_read_calibrator_file() local
1306 fp = fopen(path, "r"); in cw_read_calibrator_file()
1307 if (!fp) { in cw_read_calibrator_file()
1315 readBytes = fscanf(fp, "%d %d %d\n", &str[0], &str[1], &str[2]); in cw_read_calibrator_file()
1325 readBytes = fscanf(fp, "%d ", &str[i]); in cw_read_calibrator_file()
1330 fclose(fp); in cw_read_calibrator_file()
1335 fclose(fp); in cw_read_calibrator_file()
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_types.h65 FILE *fp = fopen(filename, "w+"); \
66 if (fp) { \
67 fwrite(p_addr, 1, len, fp); \
69 fclose(fp); \
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c58 FILE *fp = fopen(filename, "w+"); \
59 if (fp) { \
60 rc = fwrite(p_addr, 1, len, fp); \
62 fclose(fp); \
77 FILE *fp = fopen(filename, "w+"); \
78 if (fp) { \
79 rc = fwrite(p_addr1, 1, len1, fp); \
80 rc = fwrite(p_addr2, 1, len2, fp); \
82 fclose(fp); \
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c97 FILE *fp; in mm_camera_util_chip_is_a_family() local
98 if ((fp = fopen("/sys/devices/system/soc/soc0/id", "r")) != NULL) { in mm_camera_util_chip_is_a_family()
99 fscanf(fp, "%d", &id); in mm_camera_util_chip_is_a_family()
100 fclose(fp); in mm_camera_util_chip_is_a_family()
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c97 FILE *fp; in mm_camera_util_chip_is_a_family() local
98 if ((fp = fopen("/sys/devices/system/soc/soc0/id", "r")) != NULL) { in mm_camera_util_chip_is_a_family()
99 fscanf(fp, "%d", &id); in mm_camera_util_chip_is_a_family()
100 fclose(fp); in mm_camera_util_chip_is_a_family()
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c60 FILE *fp = fopen(filename, "w+"); \
61 if (fp) { \
62 rc = fwrite(p_addr, 1, len, fp); \
64 fclose(fp); \
79 FILE *fp = fopen(filename, "w+"); \
80 if (fp) { \
81 rc = fwrite(p_addr1, 1, len1, fp); \
82 rc = fwrite(p_addr2, 1, len2, fp); \
84 fclose(fp); \
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c2065 FILE *fp = NULL; in mm_jpeg_read_meta_keyfile() local
2067 fp = fopen(filename, "r"); in mm_jpeg_read_meta_keyfile()
2068 if (!fp) { in mm_jpeg_read_meta_keyfile()
2072 fseek(fp, 0, SEEK_END); in mm_jpeg_read_meta_keyfile()
2073 file_size = ftell(fp); in mm_jpeg_read_meta_keyfile()
2074 fseek(fp, 0, SEEK_SET); in mm_jpeg_read_meta_keyfile()
2083 fread(p_session->meta_enc_key, 1, file_size, fp); in mm_jpeg_read_meta_keyfile()
2084 fclose(fp); in mm_jpeg_read_meta_keyfile()
/device/htc/flounder/audio/hal/
Daudio_hw.c2960 FILE *fp; in fast_set_affinity() local
2962 if ((fp = fopen(irq_procfs, "r")) == NULL) { in fast_set_affinity()
2967 if (fscanf(fp, "%d", &cpu_num) != 1) { in fast_set_affinity()
2969 fclose(fp); in fast_set_affinity()
2972 fclose(fp); in fast_set_affinity()