ICellsPrivateService.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef __ICELLSSERVICE_H__
  2. #define __ICELLSSERVICE_H__
  3. #include <binder/IInterface.h>
  4. #include <binder/Parcel.h>
  5. #include <binder/BinderService.h>
  6. #include <cutils/properties.h>
  7. #include <utils/String16.h>
  8. namespace android
  9. {
  10. class String16;
  11. class ICellsPrivateService : public IInterface
  12. {
  13. protected:
  14. enum {
  15. SETPROPERTY = IBinder::FIRST_CALL_TRANSACTION,
  16. STARTCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 1,
  17. STOPCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 2,
  18. SWITCHCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 3,
  19. UPLOADCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 4,
  20. DOWNLOADCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 5,
  21. UNTARCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 6,
  22. TARCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 7,
  23. SYSTEMREADY = IBinder::FIRST_CALL_TRANSACTION + 8,
  24. CELLSSWITCHVM = IBinder::FIRST_CALL_TRANSACTION + 9,
  25. CELLSSWITCHHOST = IBinder::FIRST_CALL_TRANSACTION + 10,
  26. ENTERCELL = IBinder::FIRST_CALL_TRANSACTION + 11,
  27. ENTERHOST = IBinder::FIRST_CALL_TRANSACTION + 12,
  28. EXITCELL = IBinder::FIRST_CALL_TRANSACTION + 13,
  29. EXITHOST = IBinder::FIRST_CALL_TRANSACTION + 14,
  30. SENDCELLSVM = IBinder::FIRST_CALL_TRANSACTION + 15,
  31. };
  32. public:
  33. DECLARE_META_INTERFACE(CellsPrivateService);
  34. virtual status_t setProperty(const String16& name,const String16& value) = 0;
  35. virtual status_t startCellsVM(const String16& name) = 0;
  36. virtual status_t stopCellsVM(const String16& name) = 0;
  37. virtual status_t cellsSwitchVM(const String16& name) = 0;
  38. virtual status_t cellsSwitchHOST(const String16& name) = 0;
  39. virtual status_t enterCell(const String16& name) = 0;
  40. virtual status_t enterHost(const String16& name) = 0;
  41. virtual status_t exitCell(const String16& name) = 0;
  42. virtual status_t exitHost(const String16& name) = 0;
  43. virtual status_t switchCellsVM(const String16& name) = 0;
  44. virtual status_t uploadCellsVM(const String16& name) = 0;
  45. virtual status_t downloadCellsVM(const String16& name) = 0;
  46. virtual status_t untarCellsVM(const String16& name) = 0;
  47. virtual status_t tarCellsVM(const String16& name) = 0;
  48. virtual status_t vmSystemReady(const String16& name) = 0;
  49. virtual status_t sendCellsVM(const String16& path, const String16& address) = 0;
  50. };
  51. class BnCellsPrivateService : public BnInterface<ICellsPrivateService>
  52. {
  53. virtual status_t onTransact(uint32_t code,
  54. const Parcel& data,
  55. Parcel* reply,
  56. uint32_t flags = 0);
  57. };
  58. };
  59. #endif