/external/selinux/libsepol/cil/test/unit/ |
CilTest.h | 38 uint32_t file_size; member in struct:cil_file_data
|
test_cil_parser.c | 52 rc = cil_parser("policy.cil", data->buffer, data->file_size + 2, &test_parse_root);
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.file_size/ |
file_size.pass.cpp | 14 // uintmax_t file_size(const path& p); 15 // uintmax_t file_size(const path& p, std::error_code& ec) noexcept; 33 ASSERT_SAME_TYPE(decltype(file_size(p)), uintmax_t); 34 ASSERT_SAME_TYPE(decltype(file_size(p, ec)), uintmax_t); 35 ASSERT_NOT_NOEXCEPT(file_size(p)); 36 ASSERT_NOEXCEPT(file_size(p, ec)); 42 TEST_CHECK(file_size(p) == 0); 44 TEST_CHECK(file_size(p, ec) == 0); 51 TEST_CHECK(file_size(p) == 42); 53 TEST_CHECK(file_size(p, ec) == 42) [all...] |
/external/v8/tools/ |
shell-utils.h | 49 int file_size = static_cast<int>(ftell(file)); local 52 *size = file_size * repeat; 55 for (int i = 0; i < file_size;) { 56 int read = static_cast<int>(fread(&chars[i], 1, file_size - i, file)); 61 for (int i = file_size; i < *size; i++) { 62 chars[i] = chars[i - file_size];
|
/system/extras/tests/pagingtest/ |
pageinout_test.c | 12 int pageinout_test(int test_runs, bool cache, unsigned long long file_size) { 27 fd = create_tmp_file(tmpname, file_size); 32 vec = alloc_mincore_vec(file_size); 37 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); 43 if (!check_caching((void *)buf, vec, file_size, false)) { 49 rc = madvise((void *)buf, file_size, MADV_RANDOM) || 50 posix_fadvise(fd, 0, file_size, POSIX_FADV_RANDOM); 59 for (j = 0; j < file_size; j += pagesize) { 67 if (!check_caching((void *)buf, vec, file_size, true)) { 72 rc = madvise((void *)buf, file_size, MADV_DONTNEED) | [all...] |
pagingtest.c | 17 #define FILE_SIZE (10 * 1024 * 1024) 142 unsigned long long file_size = 0ULL; local 146 //arguments: <program> [test_runs [alloc_size [file_size]]] 160 file_size = strtoull(argv[3], NULL, 10); 162 if (!file_size) { 163 file_size = FILE_SIZE; 170 rc = pageinout_test(test_runs, true, file_size); 174 rc = pageinout_test(test_runs, false, file_size);
|
/bootable/recovery/minadbd/ |
fuse_adb_provider.h | 25 uint64_t file_size; member in struct:adb_data 30 int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size);
|
fuse_adb_provider.cpp | 48 int run_adb_fuse(int sfd, uint64_t file_size, uint32_t block_size) { 51 ad.file_size = file_size; 58 return run_fuse_sideload(&vtab, &ad, file_size, block_size);
|
minadbd_services.cpp | 45 int file_size; local 47 if (sscanf(args, "%d:%d", &file_size, &block_size) != 2) { 53 printf("sideload-host file size %d block size %d\n", file_size, block_size); 55 int result = run_adb_fuse(sfd, file_size, block_size);
|
/external/chromium-trace/catapult/telemetry/telemetry/core/ |
memory_cache_http_server_unittest.py | 27 file_size = self._test_file_size 28 last_byte = file_size - 1 30 self.CheckContentHeaders('0-', '0-%d' % last_byte, file_size) 33 self.CheckContentHeaders('100-', '100-%d' % last_byte, file_size - 100) 39 self.CheckContentHeaders('-228', '%d-%d' % (file_size - 228, last_byte), 43 self.CheckContentHeaders('100-5', '100-%d' % last_byte, file_size - 100)
|
/external/valgrind/none/tests/linux/ |
pthread-stack.c | 73 const size_t file_size = 1024 * 1024; local 78 void *p = malloc(file_size); 80 memset(p, 0, file_size); 81 int written = write(fd, p, file_size); 82 assert(written == file_size); 90 assert(stack_size < file_size);
|
/bootable/recovery/ |
fuse_sideload.h | 36 uint64_t file_size, uint32_t block_size);
|
fuse_sdcard_provider.cpp | 33 uint64_t file_size; member in struct:file_data 72 fd.file_size = sb.st_size; 84 return run_fuse_sideload(&vtab, &fd, fd.file_size, fd.block_size) == 0;
|
/device/google/contexthub/util/nanotool/ |
calibrationfile.cpp | 48 off64_t file_size = file_->seekTo(0, SEEK_END); local 49 if (file_size > 0) { 50 auto file_data = std::vector<char>(file_size); 52 ssize_t bytes_read = file_->read(file_data.data(), file_size); 53 if (bytes_read != file_size) { 55 bytes_read, file_size); 59 sp<JSONCompound> json = JSONCompound::Parse(file_data.data(), file_size);
|
/external/valgrind/none/tests/solaris/ |
pthread-stack.c | 68 size_t file_size = 1024 * 1024; local 73 void *p = calloc(file_size, 1); 75 int written = write(fd, p, file_size); 76 assert(written == file_size); 84 assert(stack_size < file_size);
|
/external/libbrillo/brillo/ |
cryptohome.cc | 37 int64_t file_size; local 38 if (!base::GetFileSize(salt_path, &file_size)) { 42 if (file_size > static_cast<int64_t>(std::numeric_limits<int>::max())) { 43 LOG(ERROR) << "System salt too large: " << file_size; 47 buf.resize(file_size); 48 unsigned int data_read = base::ReadFile(salt_path, buf.data(), file_size); 49 if (data_read != file_size) { 51 << " != " << file_size; local 57 salt->assign(buf.data(), file_size);
|
/system/extras/libfec/include/fec/ |
ecc.h | 57 inline uint64_t fec_ecc_get_size(uint64_t file_size, int roots) 59 return fec_div_round_up(fec_div_round_up(file_size, FEC_BLOCKSIZE),
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
lseek08.c | 87 size_t file_size; /* size of the temporary file */ variable 118 * is equal to the file_size. 120 if (TEST_RETURN != file_size) { 123 TEST_RETURN, file_size); 185 file_size = stat_buf.st_size;
|
/external/libvpx/libvpx/third_party/libwebm/common/ |
file_util.cc | 53 uint64_t file_size = 0; local 63 file_size = st.st_size; 65 return file_size;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
3-1.c | 35 long file_size; local 50 file_size = 2 * page_size; 66 if (ftruncate(fd, file_size) == -1) {
|
9-1.c | 32 long file_size; local 45 file_size = 2 * page_size; 61 if (ftruncate(fd, file_size) == -1) {
|
/external/sfntly/cpp/src/sample/subsetter/ |
subset_util.cc | 52 size_t file_size = ftell(input_file); local 54 input_buffer.resize(file_size); 55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file);
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
input_audio_file.cc | 51 const long file_size = ftell(fp_); local 52 RTC_CHECK_NE(EOF, file_size) << "Error returned when getting file position."; 57 new_pos = new_pos % file_size; // Wrap around the end of the file.
|
/external/autotest/client/tests/rmaptest/src/ |
rmap-test.c | 142 loff_t file_size; local 191 file_size = nvmas; 192 file_size *= vmasize; 193 file_size += nvmas - 1; 194 file_size *= pagesize; 197 file_size / 1024, 200 if (ftruncate(fd, file_size) < 0) {
|
/external/ltp/testcases/kernel/fs/fsx-linux/ |
fsx-linux.c | 101 off_t file_size = 0; variable 319 save_buffer(good_buf, file_size, fsxgoodfd); 486 if (file_size != statbuf.st_size || file_size != size_by_seek) { 488 (unsigned long long)file_size, 603 if (size + offset > file_size) { 658 if (size + offset > file_size) { 737 log4(OP_WRITE, offset, size, file_size, &t); 740 if (file_size < offset + size) { 741 if (file_size < offset [all...] |