/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/ |
D | inv_gesture_test.c | 117 FILE *fp; in read_sysfs_int() local 119 fp = fopen(filename, "r"); in read_sysfs_int() 120 if (fp!=NULL) { in read_sysfs_int() 121 fscanf(fp, "%d\n", var); in read_sysfs_int() 122 fclose(fp); in read_sysfs_int() 133 FILE *fp; in write_sysfs_int() local 139 fp = fopen(filename, "w"); in write_sysfs_int() 140 if (fp != NULL) { in write_sysfs_int() 141 fprintf(fp, "%d\n", data); in write_sysfs_int() 142 fclose(fp); in write_sysfs_int() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_load_dmp.c | 254 FILE *fp; in read_dmp_img() local 259 if ((fp = fopen(dmp_path, "rb")) < 0) { in read_dmp_img() 262 i = fread(dmp_img, 1, dmpSize, fp); in read_dmp_img() 264 fclose(fp); in read_dmp_img() 265 fp = fopen(out_file, "wt"); in read_dmp_img() 266 if(fp == NULL) { in read_dmp_img() 270 fprintf(fp, "char rec[]={\n"); in read_dmp_img() 272 fprintf(fp, "0x%02x, ", dmp_img[i]); in read_dmp_img() 274 fprintf(fp, "\n"); in read_dmp_img() 277 fprintf(fp, "};\n "); in read_dmp_img() [all …]
|
D | ml_stored_data.c | 46 FILE *fp; in inv_read_cal() local 50 fp = fopen(MLCAL_FILE,"rb"); in inv_read_cal() 51 if (fp == NULL) { in inv_read_cal() 57 fseek (fp, 0 , SEEK_END); in inv_read_cal() 58 fsize = ftell (fp); in inv_read_cal() 59 rewind (fp); in inv_read_cal() 65 fclose(fp); in inv_read_cal() 69 *bytesRead = fread(*calData, 1, fsize, fp); in inv_read_cal() 80 fclose(fp); in inv_read_cal() 86 FILE *fp; in inv_write_cal() local [all …]
|
D | inv_sysfs_utils.c | 28 FILE *fp; in inv_sysfs_write() local 33 fp = fopen(filename, "w"); in inv_sysfs_write() 34 if (!fp) in inv_sysfs_write() 36 count = fprintf(fp, "%ld", data); in inv_sysfs_write() 37 fclose(fp); in inv_sysfs_write() 50 FILE *fp; in inv_sysfs_read() local 55 fp = fopen(filename, "r"); in inv_sysfs_read() 56 if (!fp) in inv_sysfs_read() 58 count = fread(data, 1, num_bytes, fp); in inv_sysfs_read() 59 fclose(fp); in inv_sysfs_read()
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | ml_load_dmp.c | 289 FILE *fp; in read_dmp_img() local 294 if ((fp = fopen(dmp_path, "rb")) < 0) { in read_dmp_img() 297 i = fread(dmp_img, 1, dmpSize, fp); in read_dmp_img() 299 fclose(fp); in read_dmp_img() 300 fp = fopen(out_file, "wt"); in read_dmp_img() 301 if(fp == NULL) { in read_dmp_img() 305 fprintf(fp, "char rec[]={\n"); in read_dmp_img() 307 fprintf(fp, "0x%02x, ", dmp_img[i]); in read_dmp_img() 309 fprintf(fp, "\n"); in read_dmp_img() 312 fprintf(fp, "};\n "); in read_dmp_img() [all …]
|
D | ml_stored_data.c | 46 FILE *fp; in inv_read_cal() local 50 fp = fopen(MLCAL_FILE,"rb"); in inv_read_cal() 51 if (fp == NULL) { in inv_read_cal() 57 fseek (fp, 0 , SEEK_END); in inv_read_cal() 58 fsize = ftell (fp); in inv_read_cal() 59 rewind (fp); in inv_read_cal() 65 fclose(fp); in inv_read_cal() 69 *bytesRead = fread(*calData, 1, fsize, fp); in inv_read_cal() 80 fclose(fp); in inv_read_cal() 86 FILE *fp; in inv_write_cal() local [all …]
|
D | inv_sysfs_utils.c | 34 FILE *fp; in inv_sysfs_write() local 39 fp = fopen(filename, "w"); in inv_sysfs_write() 40 if (!fp) in inv_sysfs_write() 42 count = fprintf(fp, "%ld", data); in inv_sysfs_write() 43 fclose(fp); in inv_sysfs_write() 56 FILE *fp; in inv_sysfs_read() local 61 fp = fopen(filename, "r"); in inv_sysfs_read() 62 if (!fp) in inv_sysfs_read() 64 count = fread(data, 1, num_bytes, fp); in inv_sysfs_read() 65 fclose(fp); in inv_sysfs_read()
|
/hardware/qcom/display/msm8960/libmemtrack/ |
D | kgsl.c | 48 FILE *fp; in kgsl_memtrack_get_memory() local 63 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 64 if (fp != NULL) { in kgsl_memtrack_get_memory() 65 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory() 69 fclose(fp); in kgsl_memtrack_get_memory() 76 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 77 if (fp == NULL) { in kgsl_memtrack_get_memory() 92 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 125 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8084/libmemtrack/ |
D | kgsl.c | 49 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp != NULL) { in kgsl_memtrack_get_memory() 67 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory() 71 fclose(fp); in kgsl_memtrack_get_memory() 78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 79 if (fp == NULL) { in kgsl_memtrack_get_memory() 94 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 129 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8226/libmemtrack/ |
D | kgsl.c | 49 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp != NULL) { in kgsl_memtrack_get_memory() 67 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory() 71 fclose(fp); in kgsl_memtrack_get_memory() 78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 79 if (fp == NULL) { in kgsl_memtrack_get_memory() 94 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 129 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8994/libmemtrack/ |
D | kgsl.c | 49 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp != NULL) { in kgsl_memtrack_get_memory() 67 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory() 71 fclose(fp); in kgsl_memtrack_get_memory() 78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 79 if (fp == NULL) { in kgsl_memtrack_get_memory() 94 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 131 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8996/libmemtrack/ |
D | kgsl.c | 48 FILE *fp; in kgsl_memtrack_get_memory() local 63 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 64 if (fp != NULL) { in kgsl_memtrack_get_memory() 65 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory() 69 fclose(fp); in kgsl_memtrack_get_memory() 76 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 77 if (fp == NULL) { in kgsl_memtrack_get_memory() 92 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 128 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8909/libmemtrack/ |
D | kgsl.c | 48 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp == NULL) { in kgsl_memtrack_get_memory() 81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 97 fclose(fp); in kgsl_memtrack_get_memory() 102 fclose(fp); in kgsl_memtrack_get_memory() 110 fclose(fp); in kgsl_memtrack_get_memory() 117 fclose(fp); in kgsl_memtrack_get_memory() 141 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8909w_3100/libmemtrack/ |
D | kgsl.c | 48 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp == NULL) { in kgsl_memtrack_get_memory() 81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 97 fclose(fp); in kgsl_memtrack_get_memory() 102 fclose(fp); in kgsl_memtrack_get_memory() 110 fclose(fp); in kgsl_memtrack_get_memory() 117 fclose(fp); in kgsl_memtrack_get_memory() 141 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8998/libmemtrack/ |
D | kgsl.c | 48 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp == NULL) { in kgsl_memtrack_get_memory() 81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 97 fclose(fp); in kgsl_memtrack_get_memory() 102 fclose(fp); in kgsl_memtrack_get_memory() 110 fclose(fp); in kgsl_memtrack_get_memory() 117 fclose(fp); in kgsl_memtrack_get_memory() 141 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/sdm845/display/libmemtrack/ |
D | kgsl.c | 48 FILE *fp; in kgsl_memtrack_get_memory() local 65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory() 66 if (fp == NULL) { in kgsl_memtrack_get_memory() 81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory() 97 fclose(fp); in kgsl_memtrack_get_memory() 102 fclose(fp); in kgsl_memtrack_get_memory() 110 fclose(fp); in kgsl_memtrack_get_memory() 117 fclose(fp); in kgsl_memtrack_get_memory() 141 fclose(fp); in kgsl_memtrack_get_memory()
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlayUtils.cpp | 43 IOFile(const char* s, const char* mode) : fp(0) { in IOFile() 44 fp = ::fopen(s, mode); in IOFile() 45 if(!fp) { in IOFile() 51 if(fp) { in read() 52 return ::fread(&r, sizeof(T), elem, fp); in read() 57 if(fp) { in write() 58 return ::fprintf(fp, s, val); in write() 62 bool valid() const { return fp != 0; } in valid() 64 if(fp) ::fclose(fp); in ~IOFile() 65 fp=0; in ~IOFile() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/test/ |
D | mm_lib2d_test.c | 55 FILE *fp = fopen(filename, "w+"); \ 56 if (fp) { \ 57 rc = fwrite(p_addr, 1, len, fp); \ 59 fclose(fp); \ 74 FILE *fp = fopen(filename, "w+"); \ 75 if (fp) { \ 76 rc = fwrite(p_addr1, 1, len1, fp); \ 77 rc = fwrite(p_addr2, 1, len2, fp); \ 79 fclose(fp); \ 219 FILE *fp = 0; in lib2d_test_load_input_yuv_data() local [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlayUtils.cpp | 44 IOFile(const char* s, const char* mode) : fp(0) { in IOFile() 45 fp = ::fopen(s, mode); in IOFile() 46 if(!fp) { in IOFile() 52 if(fp) { in read() 53 return ::fread(&r, sizeof(T), elem, fp); in read() 58 if(fp) { in write() 59 return ::fprintf(fp, s, val); in write() 63 bool valid() const { return fp != 0; } in valid() 65 if(fp) ::fclose(fp); in ~IOFile() 66 fp=0; in ~IOFile() [all …]
|
/hardware/nxp/nfc/halimpl/utils/ |
D | NfccPowerTracker.cpp | 299 FILE *fp; in UpdatePowerStateLog() local 302 fp = fopen(POWER_TRACKER_LOG_FILE.c_str(), "w"); in UpdatePowerStateLog() 303 if (fp == NULL) { in UpdatePowerStateLog() 329 if (!TryLockFile(fp)) { in UpdatePowerStateLog() 332 fclose(fp); in UpdatePowerStateLog() 335 fwrite(PwrInfo.c_str(), sizeof(char), PwrInfo.length(), fp); in UpdatePowerStateLog() 336 fflush(fp); in UpdatePowerStateLog() 337 UnlockFile(fp); in UpdatePowerStateLog() 338 fclose(fp); in UpdatePowerStateLog() 419 bool NfccPowerTracker::TryLockFile(FILE *fp) { in TryLockFile() argument [all …]
|
/hardware/google/av/media/codecs/avc/ |
D | C2SoftAvcDec.h | 62 FILE *fp = fopen(m_filename, "wb"); \ 63 if (fp != NULL) { \ 64 fclose(fp); \ 71 FILE *fp = fopen(m_filename, "ab"); \ 72 if (fp != NULL && m_buf != NULL && m_offset == 0) { \ 74 i = fwrite(m_buf, 1, m_size, fp); \ 80 } else if (fp == NULL) { \ 83 if (fp) { \ 84 fclose(fp); \
|
/hardware/google/pixel/powerstats/ |
D | GenericStateResidencyDataProvider.cpp | 64 FILE *fp, char *&line, size_t &len) { in parseState() argument 69 while ((numFieldsRead < numFields) && (getline(&line, &len, fp) != -1)) { in parseState() 100 static auto findNext(const std::vector<T> &collection, FILE *fp, char *&line, size_t &len, in findNext() argument 107 while (getline(&line, &len, fp) != -1) { in findNext() 120 const std::vector<std::pair<uint32_t, StateResidencyConfig>> &stateResidencyConfigs, FILE *fp, in getStateData() argument 136 stateResidencyConfigs, fp, line, len, pred)) != endState) { in getStateData() 139 if (parseState(data, nextState->second, fp, line, len)) { in getStateData() 158 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(mPath.c_str(), "r"), fclose); in getResults() local 159 if (!fp) { in getResults() 179 mPowerEntityConfigs, fp.get(), line, len, pred)) != endConfig) { in getResults() [all …]
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_fixup.c | 36 xdr_float(xdrp, fp) in xdr_float() argument 38 float *fp; 40 return xdr_long(xdrp, (long*)fp);
|
/hardware/qcom/sdm845/gps/msm8994/loc_api/libloc_api-rpc/gen-1240/ |
D | loc_api_fixup.c | 32 xdr_float(xdrp, fp) in xdr_float() argument 34 float *fp; 36 return xdr_long(xdrp, (long*)fp);
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc/gen-1240/ |
D | loc_api_fixup.c | 32 xdr_float(xdrp, fp) in xdr_float() argument 34 float *fp; 36 return xdr_long(xdrp, (long*)fp);
|