Home
last modified time | relevance | path

Searched refs:fsize (Results 1 – 25 of 60) sorted by relevance

123

/external/ltp/testcases/kernel/mem/mtest06/
Dmmap2.c157 unsigned long fsize = 128; in main() local
198 fsize = atoi(optarg); in main()
199 if (fsize == 0) in main()
201 "fsize %lu MB\n", fsize = 128); in main()
218 "\tSize of temp file in MB: %lu\n", exec_time, fsize); in main()
222 if (fsize > avail_memory_mb) { in main()
245 fd = mkfile(fsize); in main()
255 memptr = mmap(0, (fsize * MB), PROT_READ | PROT_WRITE, in main()
264 memset(memptr, 'A', ((fsize * MB) / sizeof(char))); in main()
266 if (msync(memptr, ((fsize * MB) / sizeof(char)), in main()
[all …]
Dmmap3.c70 int fsize; in map_write_unmap() local
82 if ((fd = mkfile(&fsize)) == -1) in map_write_unmap()
85 addr = SAFE_MMAP(NULL, fsize, PROT_WRITE | PROT_READ, in map_write_unmap()
88 memset(addr, 'A', fsize); in map_write_unmap()
91 tid, addr, fsize/1024, i); in map_write_unmap()
95 SAFE_MUNMAP(addr, fsize); in map_write_unmap()
Dshmat1.c94 int fsize; /* size of the file to be created. */ variable
237 fsize = (1 + (int)(1000.0 * rand() / (RAND_MAX + 1.0))) * 4096; in shmat_shmdt()
239 if ((shmid = shmget(shmkey, fsize, IPC_CREAT | 0666)) == -1) { in shmat_shmdt()
245 STR_SHMAT, pthread_self(), fsize); in shmat_shmdt()
/external/ltp/testcases/misc/math/float/
Dthread_code.c45 size_t fsize; in read_file() local
66 fsize = bufstat.st_size; in read_file()
67 if (!fsize) { in read_file()
72 while ((buffer = malloc(fsize)) == NULL) { in read_file()
95 while (read(fd, buffer, fsize) != fsize) { in read_file()
112 return fsize; in read_file()
280 size_t fsize, fsize2, fsize3; in thread_code() local
284 fsize = read_file(th_data->th_func.din_fname, (void **)&din); in thread_code()
285 if (fsize == (size_t) 0) { in thread_code()
331 if (fsize2 != fsize) in thread_code()
[all …]
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_mem_unittest.cc61 const int fsize = jpeg.size(); in TestJPEG() local
73 imgdata.reset(Uncompress(temp, fsize / 2, flags, &w, &h, &c, nullptr)); in TestJPEG()
78 imgdata.reset(Uncompress(temp, fsize / 2, flags, &w, &h, &c, nullptr)); in TestJPEG()
83 imgdata.reset(Uncompress(temp, fsize, flags, &w, &h, &c, nullptr)); in TestJPEG()
103 const int fsize = jpeg.size(); in TestCropAndDecodeJpeg() local
112 imgdata1.reset(Uncompress(temp, fsize, flags, &w1, &h1, &c1, nullptr)); in TestCropAndDecodeJpeg()
118 imgdata1.reset(Uncompress(temp, fsize, flags, nullptr, in TestCropAndDecodeJpeg()
141 imgdata2.reset(Uncompress(temp, fsize, flags, &w, &h, &c, nullptr)); in TestCropAndDecodeJpeg()
144 imgdata2.reset(Uncompress(temp, fsize, flags, nullptr, in TestCropAndDecodeJpeg()
226 const int fsize = jpeg.size(); in TEST() local
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/audio/
DDtsUtil.java179 int fsize; in getDtsFrameSize() local
183 fsize = (((data[6] & 0x03) << 12) | ((data[7] & 0xFF) << 4) | ((data[8] & 0x3C) >> 2)) + 1; in getDtsFrameSize()
187 fsize = (((data[4] & 0x03) << 12) | ((data[7] & 0xFF) << 4) | ((data[6] & 0xF0) >> 4)) + 1; in getDtsFrameSize()
190 fsize = (((data[7] & 0x03) << 12) | ((data[6] & 0xFF) << 4) | ((data[9] & 0x3C) >> 2)) + 1; in getDtsFrameSize()
195 fsize = (((data[5] & 0x03) << 12) | ((data[6] & 0xFF) << 4) | ((data[7] & 0xF0) >> 4)) + 1; in getDtsFrameSize()
199 return uses14BitPerWord ? fsize * 16 / 14 : fsize; in getDtsFrameSize()
/external/python/cpython2/Demo/tkinter/ttk/
Dwidget_state.py23 fsize = str(self.tk.eval("font configure %s -size" % btn_font))
27 self.fsize_prefix = fsize[0] if fsize[0] == '-' else ''
28 self.base_fsize = int(fsize[1 if fsize[0] == '-' else 0:])
/external/perfetto/infra/ci/worker/
Dartifacts_uploader.py57 fsize = os.path.getsize(fpath)
60 hdr = {'Content-Length': fsize, 'Content-type': mime_type}
61 if fsize > 0:
63 mm = mmap.mmap(f.fileno(), fsize, access=mmap.ACCESS_READ)
66 if fsize > 0:
71 return fsize
/external/curl/docs/examples/
Dftpupload.c72 curl_off_t fsize; in main() local
83 fsize = (curl_off_t)file_info.st_size; in main()
85 printf("Local file size: %" CURL_FORMAT_CURL_OFF_T " bytes.\n", fsize); in main()
120 (curl_off_t)fsize); in main()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c1956 off_t fsize; /* current size of file */ in growfile() local
1976 fsize = stbuf.st_size; in growfile()
2021 Woffset = fsize; in growfile()
2105 random_range(min_lseek, fsize, 1, NULL); in growfile()
2109 random_range(min_lseek, fsize + grow_incr, in growfile()
2122 if (fsize <= min_lseek + grow_incr) in growfile()
2127 fsize - grow_incr, 1, in growfile()
2317 size_grew = (Woffset + Grow_incr) - fsize; in growfile()
2493 int fsize; in check_write() local
2526 if ((fsize = file_size(fd)) == -1) { in check_write()
[all …]
/external/curl/tests/
Ddirectories.pm206 my $fsize = "";
208 $fsize = $file{'size'} ? sprintf("%7s", $file{'size'}) : sprintf("%7d", 4096);
211 $fsize = sprintf("%7d", length $file{'content'});
215 push(@contentlist, "$ftype$fperm $fhlink $fuser $fgroup $fsize $ftime $file{'name'}$eol");
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead02.c157 const char *fname, size_t fsize, in read_testfile() argument
171 TEST(tc->readahead(fd, offset, fsize - offset)); in read_testfile()
179 } while ((size_t)offset < fsize); in read_testfile()
194 p = SAFE_MMAP(NULL, fsize, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); in read_testfile()
198 for (i = 0; i < fsize; i += pagesize) in read_testfile()
207 SAFE_MUNMAP(p, fsize); in read_testfile()
/external/puffin/src/
Dfile_stream.cc40 auto fsize = lseek(fd_, 0, SEEK_END); in GetSize() local
41 TEST_AND_RETURN_FALSE(fsize >= 0); in GetSize()
44 *size = fsize; in GetSize()
/external/libkmsxx/utils/
Dkmsview.cpp79 unsigned fsize = is.tellg(); in main() local
98 unsigned num_frames = fsize / frame_size; in main()
99 printf("file size %u, frame size %u, frames %u\n", fsize, frame_size, num_frames); in main()
/external/autotest/client/site_tests/platform_FileSize/
Dplatform_FileSize.py45 fsize = os.path.getsize(fname)
47 return fsize
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.space/
Dspace.pass.cpp94 std::uintmax_t fsize = expect.f_frsize; in TEST_CASE() local
95 std::uintmax_t new_val = val * fsize; in TEST_CASE()
96 TEST_CHECK(new_val / fsize == val); // Test for overflow in TEST_CASE()
/external/lua/src/
Dldo.h48 #define checkstackGC(L,fsize) \ argument
49 luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc253 uptr fsize = internal_filesize(fd); in MapFileToMemory() local
254 CHECK_NE(fsize, (uptr)-1); in MapFileToMemory()
255 CHECK_GT(fsize, 0); in MapFileToMemory()
256 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
/external/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c140 int fsize = -1; /* size of the /proc/<pid>/stat file. */ in get_proc_num() local
156 if ((fsize = read(fd, fbuff, 512)) == -1) { in get_proc_num()
163 return atoi(&fbuff[fsize - 2]); in get_proc_num()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc111 uptr fsize = internal_filesize(fd); in TEST() local
112 EXPECT_EQ(len1 + len2, fsize); in TEST()
118 EXPECT_EQ(fsize, (uptr)st3.st_size); in TEST()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cpp195 uptr fsize = internal_filesize(fd); in MapFileToMemory() local
196 CHECK_NE(fsize, (uptr)-1); in MapFileToMemory()
197 CHECK_GT(fsize, 0); in MapFileToMemory()
198 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
/external/python/cffi/cffi/
Dmodel.py430 fsize = fieldsize[i]
436 nlen, nrest = divmod(fsize, ffi.sizeof(BItemType))
447 assert fsize == 0
450 if bitemsize != fsize:
455 bitemsize, fsize))
/external/elfutils/libelf/
Delf32_fsize.c43 elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version) in elfw2() argument
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cpp133 uptr fsize = internal_filesize(fd); in TEST() local
134 EXPECT_EQ(len1 + len2, fsize); in TEST()
140 EXPECT_EQ(fsize, (uptr)st3.st_size); in TEST()
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_graph_execution_test.cc130 const int fsize = bmp.size(); in LoadImage() local
131 LOG(INFO) << "Read " << IMAGE_FILENAME << ", size = " << fsize << "bytes"; in LoadImage()
133 CHECK(fsize >= 22 /* pos of height */ + sizeof(int)); in LoadImage()
144 CHECK(fsize >= (WIDTH + 1) * WIDTH * 3 + header_size); in LoadImage()
155 CHECK(src_pos + 2 + header_size < fsize); in LoadImage()

123