CellsPrivateService.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma GCC system_header
  2. #ifndef __GUIEXT_SERVICE_H__
  3. #define __GUIEXT_SERVICE_H__
  4. #include <utils/threads.h>
  5. #include "ICellsPrivateService.h"
  6. namespace android
  7. {
  8. class String16;
  9. class CellsPrivateService :
  10. public BinderService<CellsPrivateService>,
  11. public BnCellsPrivateService
  12. // public Thread
  13. {
  14. friend class BinderService<CellsPrivateService>;
  15. public:
  16. CellsPrivateService();
  17. ~CellsPrivateService();
  18. static char const* getServiceName() { return "CellsPrivateService"; }
  19. virtual status_t setProperty(const String16& name,const String16& value);
  20. virtual status_t startCellsVM(const String16& name);
  21. virtual status_t stopCellsVM(const String16& name);
  22. virtual status_t cellsSwitchVM(const String16& name);
  23. virtual status_t cellsSwitchHOST(const String16& name);
  24. virtual status_t enterCell(const String16& name);
  25. virtual status_t enterHost(const String16& name);
  26. virtual status_t exitCell(const String16& name);
  27. virtual status_t exitHost(const String16& name);
  28. virtual status_t switchCellsVM(const String16& name);
  29. virtual status_t uploadCellsVM(const String16& name);
  30. virtual status_t downloadCellsVM(const String16& name);
  31. virtual status_t untarCellsVM(const String16& name);
  32. virtual status_t tarCellsVM(const String16& name);
  33. virtual status_t vmSystemReady(const String16& name);
  34. virtual status_t sendCellsVM(const String16& path, const String16& address);
  35. int isInCellstar();
  36. void setCellstaring();
  37. void setCellstared();
  38. void startCellstar();
  39. private:
  40. int mtar_pthread_t;
  41. };
  42. };
  43. #endif