Lines Matching refs:gsid

50 static int Disable(sp<IGsiService> gsid, int argc, char** argv);
51 static int Enable(sp<IGsiService> gsid, int argc, char** argv);
52 static int Install(sp<IGsiService> gsid, int argc, char** argv);
53 static int Wipe(sp<IGsiService> gsid, int argc, char** argv);
54 static int WipeData(sp<IGsiService> gsid, int argc, char** argv);
55 static int Status(sp<IGsiService> gsid, int argc, char** argv);
56 static int Cancel(sp<IGsiService> gsid, int argc, char** argv);
80 explicit ProgressBar(sp<IGsiService> gsid) : gsid_(gsid) {} in ProgressBar() argument
192 static int Install(sp<IGsiService> gsid, int argc, char** argv) { in Install() argument
251 gsid->isGsiRunning(&running_gsi); in Install()
264 ProgressBar progress(gsid); in Install()
267 auto status = gsid->openInstall(installDir, &error); in Install()
273 auto status = gsid->createPartition("userdata", userdataSize, false, &error); in Install()
281 status = gsid->createPartition(partition, gsiSize, true, &error); in Install()
290 status = gsid->commitGsiChunkFromStream(stream, gsiSize, &ok); in Install()
296 status = gsid->closeInstall(&error); in Install()
303 status = gsid->getActiveDsuSlot(&dsuSlot); in Install()
308 status = gsid->enableGsi(true, dsuSlot, &error); in Install()
325 static int Wipe(sp<IGsiService> gsid, int argc, char** /* argv */) { in Wipe() argument
331 auto status = gsid->removeGsi(&ok); in Wipe()
338 if (gsid->isGsiRunning(&running).isOk() && running) { in Wipe()
346 static int WipeData(sp<IGsiService> gsid, int argc, char** /* argv */) { in WipeData() argument
353 auto status = gsid->isGsiRunning(&running); in WipeData()
364 status = gsid->isGsiInstalled(&installed); in WipeData()
375 status = gsid->zeroPartition("userdata" + std::string(kDsuPostfix), &error); in WipeData()
383 static int Status(sp<IGsiService> gsid, int argc, char** /* argv */) { in Status() argument
389 auto status = gsid->isGsiRunning(&running); in Status()
397 status = gsid->isGsiInstalled(&installed); in Status()
405 status = gsid->isGsiEnabled(&enabled); in Status()
419 status = gsid->getInstalledDsuSlots(&dsu_slots); in Status()
428 status = gsid->openImageService("dsu/" + dsu_slot + "/", &image_service); in Status()
458 static int Cancel(sp<IGsiService> gsid, int /* argc */, char** /* argv */) { in Cancel() argument
460 auto status = gsid->cancelGsiInstall(&cancelled); in Cancel()
472 static int Enable(sp<IGsiService> gsid, int argc, char** argv) { in Enable() argument
496 gsid->isGsiInstalled(&installed); in Enable()
503 gsid->isGsiInstallInProgress(&installing); in Enable()
509 auto status = gsid->getActiveDsuSlot(&dsuSlot); in Enable()
516 auto status = gsid->enableGsi(one_shot, dsuSlot, &error); in Enable()
525 static int Disable(sp<IGsiService> gsid, int argc, char** /* argv */) { in Disable() argument
532 gsid->isGsiInstallInProgress(&installing); in Disable()
539 gsid->disableGsi(&ok); in Disable()