/external/ltp/testcases/kernel/mem/mtest06/ |
D | mmap2.c | 157 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 …]
|
D | mmap3.c | 70 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()
|
D | shmat1.c | 94 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/ |
D | thread_code.c | 45 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/ |
D | jpeg_mem_unittest.cc | 61 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/ |
D | DtsUtil.java | 179 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/ |
D | widget_state.py | 23 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/ |
D | artifacts_uploader.py | 57 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/ |
D | ftpupload.c | 72 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/ |
D | growfiles.c | 1956 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/ |
D | directories.pm | 206 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/ |
D | readahead02.c | 157 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/ |
D | file_stream.cc | 40 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/ |
D | kmsview.cpp | 79 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/ |
D | platform_FileSize.py | 45 fsize = os.path.getsize(fname) 47 return fsize
|
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.space/ |
D | space.pass.cpp | 94 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/ |
D | ldo.h | 48 #define checkstackGC(L,fsize) \ argument 49 luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.cc | 253 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/ |
D | trace_sched.c | 140 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/ |
D | sanitizer_libc_test.cc | 111 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/ |
D | sanitizer_posix.cpp | 195 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/ |
D | model.py | 430 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/ |
D | elf32_fsize.c | 43 elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version) in elfw2() argument
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_libc_test.cpp | 133 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/ |
D | hexagon_graph_execution_test.cc | 130 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()
|