Lines Matching refs:args
74 std::vector<std::string> args(argv + 1, argv + argc); in main() local
76 if (args.size() > 0 && args[0] == "--wait") { in main()
78 args.erase(args.begin()); in main()
81 if (args.size() < 2) { in main()
92 if (args[0] == "cryptfs" && args[1] == "enablefilecrypto") { in main()
93 checkStatus(args, vold->fbeEnable()); in main()
94 } else if (args[0] == "cryptfs" && args[1] == "init_user0") { in main()
95 checkStatus(args, vold->initUser0()); in main()
96 } else if (args[0] == "cryptfs" && args[1] == "enablecrypto") { in main()
99 checkStatus(args, vold->fdeEnable(passwordType, "", encryptionFlags)); in main()
100 } else if (args[0] == "cryptfs" && args[1] == "mountdefaultencrypted") { in main()
101 checkStatus(args, vold->mountDefaultEncrypted()); in main()
102 } else if (args[0] == "volume" && args[1] == "shutdown") { in main()
103 checkStatus(args, vold->shutdown()); in main()
104 } else if (args[0] == "volume" && args[1] == "reset") { in main()
105 checkStatus(args, vold->reset()); in main()
106 } else if (args[0] == "cryptfs" && args[1] == "mountFstab" && args.size() == 4) { in main()
107 checkStatus(args, vold->mountFstab(args[2], args[3])); in main()
108 } else if (args[0] == "cryptfs" && args[1] == "encryptFstab" && args.size() == 4) { in main()
109 checkStatus(args, vold->encryptFstab(args[2], args[3])); in main()
110 } else if (args[0] == "checkpoint" && args[1] == "supportsCheckpoint" && args.size() == 2) { in main()
112 checkStatus(args, vold->supportsCheckpoint(&supported)); in main()
114 } else if (args[0] == "checkpoint" && args[1] == "supportsBlockCheckpoint" && in main()
115 args.size() == 2) { in main()
117 checkStatus(args, vold->supportsBlockCheckpoint(&supported)); in main()
119 } else if (args[0] == "checkpoint" && args[1] == "supportsFileCheckpoint" && args.size() == 2) { in main()
121 checkStatus(args, vold->supportsFileCheckpoint(&supported)); in main()
123 } else if (args[0] == "checkpoint" && args[1] == "startCheckpoint" && args.size() == 3) { in main()
125 if (!android::base::ParseInt(args[2], &retry)) exit(EINVAL); in main()
126 checkStatus(args, vold->startCheckpoint(retry)); in main()
127 } else if (args[0] == "checkpoint" && args[1] == "needsCheckpoint" && args.size() == 2) { in main()
129 checkStatus(args, vold->needsCheckpoint(&enabled)); in main()
131 } else if (args[0] == "checkpoint" && args[1] == "needsRollback" && args.size() == 2) { in main()
133 checkStatus(args, vold->needsRollback(&enabled)); in main()
135 } else if (args[0] == "checkpoint" && args[1] == "commitChanges" && args.size() == 2) { in main()
136 checkStatus(args, vold->commitChanges()); in main()
137 } else if (args[0] == "checkpoint" && args[1] == "prepareCheckpoint" && args.size() == 2) { in main()
138 checkStatus(args, vold->prepareCheckpoint()); in main()
139 } else if (args[0] == "checkpoint" && args[1] == "restoreCheckpoint" && args.size() == 3) { in main()
140 checkStatus(args, vold->restoreCheckpoint(args[2])); in main()
141 } else if (args[0] == "checkpoint" && args[1] == "restoreCheckpointPart" && args.size() == 4) { in main()
143 if (!android::base::ParseInt(args[3], &count)) exit(EINVAL); in main()
144 checkStatus(args, vold->restoreCheckpointPart(args[2], count)); in main()
145 } else if (args[0] == "checkpoint" && args[1] == "markBootAttempt" && args.size() == 2) { in main()
146 checkStatus(args, vold->markBootAttempt()); in main()
147 } else if (args[0] == "checkpoint" && args[1] == "abortChanges" && args.size() == 4) { in main()
149 if (!android::base::ParseInt(args[2], &retry)) exit(EINVAL); in main()
150 checkStatus(args, vold->abortChanges(args[2], retry != 0)); in main()
151 } else if (args[0] == "checkpoint" && args[1] == "resetCheckpoint") { in main()
152 checkStatus(args, vold->resetCheckpoint()); in main()