Lines Matching refs:size
116 if (argv.size() < 1 || argv.size() > 2) { in PackageExtractFileFn()
118 argv.size()); in PackageExtractFileFn()
121 if (argv.size() == 2) { in PackageExtractFileFn()
127 argv.size()); in PackageExtractFileFn()
172 argv.size()); in PackageExtractFileFn()
188 ExtractToMemory(za, &entry, reinterpret_cast<uint8_t*>(&buffer[0]), buffer.size()); in PackageExtractFileFn()
192 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); in PackageExtractFileFn()
209 if (argv.size() != 2) { in PatchPartitionCheckFn()
211 "%s(): Invalid number of args (expected 2, got %zu)", name, argv.size()); in PatchPartitionCheckFn()
245 if (argv.size() != 3) { in PatchPartitionFn()
247 "%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()
344 if (argv.size() != 1) { in IsMountedFn()
345 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in IsMountedFn()
368 if (argv.size() != 1) { in UnmountFn()
369 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in UnmountFn()
422 if (argv.size() != 5) { in FormatFn()
424 argv.size()); in FormatFn()
452 int64_t size; in FormatFn() local
453 if (!android::base::ParseInt(fs_size, &size)) { in FormatFn()
462 if (size != 0) { in FormatFn()
463 mke2fs_args.push_back(std::to_string(size / 4096LL)); in FormatFn()
480 if (size < 0) { in FormatFn()
487 if (size >= 512) { in FormatFn()
488 f2fs_args.push_back(std::to_string(size / 512)); in FormatFn()
511 if (argv.size() != 2) { in ShowProgressFn()
513 argv.size()); in ShowProgressFn()
542 if (argv.size() != 1) { in SetProgressFn()
543 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in SetProgressFn()
565 if (argv.size() != 1) { in GetPropFn()
566 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetPropFn()
584 if (argv.size() != 2) { in FileGetPropFn()
586 argv.size()); in FileGetPropFn()
603 for (size_t i = 0; i < lines.size(); i++) { in FileGetPropFn()
630 if (argv.size() != 1) { in ApplyPatchSpaceFn()
632 argv.size()); in ApplyPatchSpaceFn()
656 argv.size()); in WipeCacheFn()
663 if (argv.size() < 1) { in RunProgramFn()
673 LOG(INFO) << "about to run program [" << exec_args[0] << "] with " << argv.size() << " args"; in RunProgramFn()
698 if (argv.size() != 1) { in ReadFileFn()
699 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in ReadFileFn()
722 if (argv.size() != 2) { in WriteValueFn()
724 argv.size()); in WriteValueFn()
756 if (argv.size() != 2) { in RebootNowFn()
758 argv.size()); in RebootNowFn()
798 if (argv.size() != 2) { in SetStageFn()
800 argv.size()); in SetStageFn()
832 if (argv.size() != 1) { in GetStageFn()
833 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetStageFn()
853 if (argv.size() != 2) { in WipeBlockDeviceFn()
855 argv.size()); in WipeBlockDeviceFn()
884 argv.size()); in EnableRebootFn()
893 return ErrorAbort(state, kArgsParsingFailure, "%s() expects args, got %zu", name, argv.size()); in Tune2FsFn()
906 if (auto result = tune2fs_main(tune2fs_args.size() - 1, tune2fs_args.data()); result != 0) { in Tune2FsFn()