Lines Matching refs:size
101 if (argv.size() < 1 || argv.size() > 2) { in PackageExtractFileFn()
103 argv.size()); in PackageExtractFileFn()
106 if (argv.size() == 2) { in PackageExtractFileFn()
112 argv.size()); in PackageExtractFileFn()
163 argv.size()); in PackageExtractFileFn()
178 ExtractToMemory(za, &entry, reinterpret_cast<uint8_t*>(&buffer[0]), buffer.size()); in PackageExtractFileFn()
182 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); in PackageExtractFileFn()
199 if (argv.size() != 2) { in PatchPartitionCheckFn()
201 "%s(): Invalid number of args (expected 2, got %zu)", name, argv.size()); in PatchPartitionCheckFn()
240 if (argv.size() != 3) { in PatchPartitionFn()
242 "%s(): Invalid number of args (expected 3, got %zu)", name, argv.size()); in PatchPartitionFn()
282 if (argv.size() != 4 && argv.size() != 5) { in MountFn()
284 argv.size()); in MountFn()
297 if (argv.size() == 5) { in MountFn()
329 if (argv.size() != 1) { in IsMountedFn()
330 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in IsMountedFn()
352 if (argv.size() != 1) { in UnmountFn()
353 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in UnmountFn()
387 if (argv.size() != 5) { in FormatFn()
389 argv.size()); in FormatFn()
417 int64_t size; in FormatFn() local
418 if (!android::base::ParseInt(fs_size, &size)) { in FormatFn()
428 if (size != 0) { in FormatFn()
429 mke2fs_args.push_back(std::to_string(size / 4096LL)); in FormatFn()
447 if (size < 0) { in FormatFn()
454 if (size >= 512) { in FormatFn()
455 f2fs_args.push_back(std::to_string(size / 512)); in FormatFn()
479 if (argv.size() != 2) { in ShowProgressFn()
481 argv.size()); in ShowProgressFn()
509 if (argv.size() != 1) { in SetProgressFn()
510 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in SetProgressFn()
531 if (argv.size() != 1) { in GetPropFn()
532 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetPropFn()
552 if (argv.size() != 2) { in FileGetPropFn()
554 argv.size()); in FileGetPropFn()
572 for (size_t i = 0; i < lines.size(); i++) { in FileGetPropFn()
599 if (argv.size() != 1) { in ApplyPatchSpaceFn()
601 argv.size()); in ApplyPatchSpaceFn()
625 argv.size()); in WipeCacheFn()
633 if (argv.size() < 1) { in RunProgramFn()
650 if (argv.size() != 1) { in ReadFileFn()
651 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in ReadFileFn()
675 if (argv.size() != 2) { in WriteValueFn()
677 argv.size()); in WriteValueFn()
709 if (argv.size() != 2) { in RebootNowFn()
711 argv.size()); in RebootNowFn()
750 if (argv.size() != 2) { in SetStageFn()
752 argv.size()); in SetStageFn()
784 if (argv.size() != 1) { in GetStageFn()
785 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetStageFn()
805 if (argv.size() != 2) { in WipeBlockDeviceFn()
807 argv.size()); in WipeBlockDeviceFn()
830 argv.size()); in EnableRebootFn()
838 return ErrorAbort(state, kArgsParsingFailure, "%s() expects args, got %zu", name, argv.size()); in Tune2FsFn()
857 if (argv.size() != 1) { in AddSlotSuffixFn()
858 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in AddSlotSuffixFn()