Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 11 of 11) sorted by relevance

/device/google/contexthub/util/nanotool/
Dcalibrationfile.cpp48 off64_t file_size = file_->seekTo(0, SEEK_END); in Initialize() local
49 if (file_size > 0) { in Initialize()
50 auto file_data = std::vector<char>(file_size); in Initialize()
52 ssize_t bytes_read = file_->read(file_data.data(), file_size); in Initialize()
53 if (bytes_read != file_size) { in Initialize()
55 bytes_read, file_size); in Initialize()
59 sp<JSONCompound> json = JSONCompound::Parse(file_data.data(), file_size); in Initialize()
Dcontexthub.cpp148 long file_size = ftell(firmware_file); in Flash() local
151 auto firmware_data = std::vector<uint8_t>(file_size); in Flash()
153 file_size, firmware_file); in Flash()
156 if (bytes_read != static_cast<size_t>(file_size)) { in Flash()
158 bytes_read, file_size); in Flash()
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c173 size_t file_size = 0; in mm_jpegdec_test_read() local
180 file_size = (size_t)ftell(fp); in mm_jpegdec_test_read()
184 __func__, __LINE__, file_size); in mm_jpegdec_test_read()
186 p_obj->input.size = file_size; in mm_jpegdec_test_read()
Dmm_jpeg_test.c223 size_t file_size = 0; in mm_jpeg_test_read() local
230 file_size = (size_t)ftell(fp); in mm_jpeg_test_read()
233 __func__, __LINE__, file_size, p_obj->input[idx].size); in mm_jpeg_test_read()
235 if (p_obj->input[idx].size > file_size) { in mm_jpeg_test_read()
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c172 int file_size = 0; in mm_jpegdec_test_read() local
179 file_size = ftell(fp); in mm_jpegdec_test_read()
183 __func__, __LINE__, file_size); in mm_jpegdec_test_read()
185 p_obj->input.size = file_size; in mm_jpegdec_test_read()
Dmm_jpeg_test.c223 int file_size = 0; in mm_jpeg_test_read() local
230 file_size = ftell(fp); in mm_jpeg_test_read()
233 __func__, __LINE__, file_size, p_obj->input[idx].size); in mm_jpeg_test_read()
235 if (p_obj->input[idx].size > file_size) { in mm_jpeg_test_read()
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c173 size_t file_size = 0; in mm_jpegdec_test_read() local
180 file_size = (size_t)ftell(fp); in mm_jpegdec_test_read()
184 __func__, __LINE__, file_size); in mm_jpegdec_test_read()
186 p_obj->input.size = file_size; in mm_jpegdec_test_read()
Dmm_jpeg_test.c223 size_t file_size = 0; in mm_jpeg_test_read() local
230 file_size = (size_t)ftell(fp); in mm_jpeg_test_read()
233 __func__, __LINE__, file_size, p_obj->input[idx].size); in mm_jpeg_test_read()
235 if (p_obj->input[idx].size > file_size) { in mm_jpeg_test_read()
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c2066 int file_size = 0; in mm_jpeg_read_meta_keyfile() local
2073 file_size = ftell(fp); in mm_jpeg_read_meta_keyfile()
2076 p_session->meta_enc_key = (uint8_t *) malloc((file_size + 1) * sizeof(uint8_t)); in mm_jpeg_read_meta_keyfile()
2083 fread(p_session->meta_enc_key, 1, file_size, fp); in mm_jpeg_read_meta_keyfile()
2086 p_session->meta_enc_keylen = file_size; in mm_jpeg_read_meta_keyfile()
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c2200 size_t file_size = 0; in mm_jpeg_read_meta_keyfile() local
2207 file_size = (size_t)ftell(fp); in mm_jpeg_read_meta_keyfile()
2210 p_session->meta_enc_key = (uint8_t *) malloc((file_size + 1) * sizeof(uint8_t)); in mm_jpeg_read_meta_keyfile()
2217 fread(p_session->meta_enc_key, 1, file_size, fp); in mm_jpeg_read_meta_keyfile()
2220 p_session->meta_enc_keylen = file_size; in mm_jpeg_read_meta_keyfile()
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c2200 size_t file_size = 0; in mm_jpeg_read_meta_keyfile() local
2207 file_size = (size_t)ftell(fp); in mm_jpeg_read_meta_keyfile()
2210 p_session->meta_enc_key = (uint8_t *) malloc((file_size + 1) * sizeof(uint8_t)); in mm_jpeg_read_meta_keyfile()
2217 fread(p_session->meta_enc_key, 1, file_size, fp); in mm_jpeg_read_meta_keyfile()
2220 p_session->meta_enc_keylen = file_size; in mm_jpeg_read_meta_keyfile()