LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PHalChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 11 943 1.2 %
Date: 2017-07-14 16:53:18 Functions: 2 70 2.9 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/hal_sandbox/PHalChild.h"
       8             : 
       9             : #include "mozilla/dom/PContentChild.h"
      10             : #include "mozilla/dom/PBrowserChild.h"
      11             : 
      12             : #include "nsIFile.h"
      13             : #include "GeckoProfiler.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace hal_sandbox {
      17             : 
      18             : 
      19           0 : auto PHalChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      20             : {
      21           0 : }
      22             : 
      23           2 : MOZ_IMPLICIT PHalChild::PHalChild() :
      24             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      25           2 :     mState(PHal::__Dead)
      26             : {
      27           2 :     MOZ_COUNT_CTOR(PHalChild);
      28           2 : }
      29             : 
      30           0 : PHalChild::~PHalChild()
      31             : {
      32           0 :     MOZ_COUNT_DTOR(PHalChild);
      33           0 : }
      34             : 
      35           0 : auto PHalChild::Manager() const -> PContentChild*
      36             : {
      37           0 :     return static_cast<PContentChild*>(IProtocol::Manager());
      38             : }
      39             : 
      40           0 : auto PHalChild::SendVibrate(
      41             :         const nsTArray<uint32_t>& pattern,
      42             :         const nsTArray<uint64_t>& id,
      43             :         PBrowserChild* browser) -> bool
      44             : {
      45           0 :     IPC::Message* msg__ = PHal::Msg_Vibrate(Id());
      46             : 
      47           0 :     Write(pattern, msg__);
      48             :     // Sentinel = 'pattern'
      49           0 :     (msg__)->WriteSentinel(2105892009);
      50           0 :     Write(id, msg__);
      51             :     // Sentinel = 'id'
      52           0 :     (msg__)->WriteSentinel(2794505629);
      53           0 :     Write(browser, msg__, false);
      54             :     // Sentinel = 'browser'
      55           0 :     (msg__)->WriteSentinel(2836343679);
      56             : 
      57             : 
      58             : 
      59             : 
      60           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
      61           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      62             :     }
      63           0 :     AUTO_PROFILER_LABEL("PHal::Msg_Vibrate", OTHER);
      64           0 :     PHal::Transition(PHal::Msg_Vibrate__ID, (&(mState)));
      65             : 
      66           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      67           0 :     return sendok__;
      68             : }
      69             : 
      70           0 : auto PHalChild::SendCancelVibrate(
      71             :         const nsTArray<uint64_t>& id,
      72             :         PBrowserChild* browser) -> bool
      73             : {
      74           0 :     IPC::Message* msg__ = PHal::Msg_CancelVibrate(Id());
      75             : 
      76           0 :     Write(id, msg__);
      77             :     // Sentinel = 'id'
      78           0 :     (msg__)->WriteSentinel(2794505629);
      79           0 :     Write(browser, msg__, false);
      80             :     // Sentinel = 'browser'
      81           0 :     (msg__)->WriteSentinel(2836343679);
      82             : 
      83             : 
      84             : 
      85             : 
      86           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
      87           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      88             :     }
      89           0 :     AUTO_PROFILER_LABEL("PHal::Msg_CancelVibrate", OTHER);
      90           0 :     PHal::Transition(PHal::Msg_CancelVibrate__ID, (&(mState)));
      91             : 
      92           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      93           0 :     return sendok__;
      94             : }
      95             : 
      96           0 : auto PHalChild::SendEnableBatteryNotifications() -> bool
      97             : {
      98           0 :     IPC::Message* msg__ = PHal::Msg_EnableBatteryNotifications(Id());
      99             : 
     100             : 
     101             : 
     102             : 
     103             : 
     104           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     105           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     106             :     }
     107           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableBatteryNotifications", OTHER);
     108           0 :     PHal::Transition(PHal::Msg_EnableBatteryNotifications__ID, (&(mState)));
     109             : 
     110           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     111           0 :     return sendok__;
     112             : }
     113             : 
     114           0 : auto PHalChild::SendDisableBatteryNotifications() -> bool
     115             : {
     116           0 :     IPC::Message* msg__ = PHal::Msg_DisableBatteryNotifications(Id());
     117             : 
     118             : 
     119             : 
     120             : 
     121             : 
     122           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     123           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     124             :     }
     125           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableBatteryNotifications", OTHER);
     126           0 :     PHal::Transition(PHal::Msg_DisableBatteryNotifications__ID, (&(mState)));
     127             : 
     128           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     129           0 :     return sendok__;
     130             : }
     131             : 
     132           0 : auto PHalChild::SendGetCurrentBatteryInformation(BatteryInformation* aBatteryInfo) -> bool
     133             : {
     134           0 :     IPC::Message* msg__ = PHal::Msg_GetCurrentBatteryInformation(Id());
     135             : 
     136             : 
     137           0 :     (msg__)->set_sync();
     138             : 
     139             : 
     140           0 :     Message reply__;
     141             : 
     142           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     143           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     144             :     }
     145           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetCurrentBatteryInformation", OTHER);
     146           0 :     PHal::Transition(PHal::Msg_GetCurrentBatteryInformation__ID, (&(mState)));
     147             : 
     148             :     bool sendok__;
     149             :     {
     150             :         AutoProfilerTracing syncIPCTracer(
     151             :                 "IPC",
     152           0 :                 "PHal::Msg_GetCurrentBatteryInformation");
     153           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     154             :     }
     155           0 :     if ((!(sendok__))) {
     156           0 :         return false;
     157             :     }
     158             : 
     159           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     160           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     161             :     }
     162             : 
     163           0 :     PickleIterator iter__(reply__);
     164             : 
     165           0 :     if ((!(Read(aBatteryInfo, (&(reply__)), (&(iter__)))))) {
     166           0 :         FatalError("Error deserializing 'BatteryInformation'");
     167           0 :         return false;
     168             :     }
     169             :     // Sentinel = 'aBatteryInfo'
     170           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2078351088)))) {
     171           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'BatteryInformation'");
     172           0 :         return false;
     173             :     }
     174           0 :     (reply__).EndRead(iter__, (reply__).type());
     175             : 
     176           0 :     return true;
     177             : }
     178             : 
     179           0 : auto PHalChild::SendEnableNetworkNotifications() -> bool
     180             : {
     181           0 :     IPC::Message* msg__ = PHal::Msg_EnableNetworkNotifications(Id());
     182             : 
     183             : 
     184             : 
     185             : 
     186             : 
     187           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     188           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     189             :     }
     190           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableNetworkNotifications", OTHER);
     191           0 :     PHal::Transition(PHal::Msg_EnableNetworkNotifications__ID, (&(mState)));
     192             : 
     193           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     194           0 :     return sendok__;
     195             : }
     196             : 
     197           0 : auto PHalChild::SendDisableNetworkNotifications() -> bool
     198             : {
     199           0 :     IPC::Message* msg__ = PHal::Msg_DisableNetworkNotifications(Id());
     200             : 
     201             : 
     202             : 
     203             : 
     204             : 
     205           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     206           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     207             :     }
     208           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableNetworkNotifications", OTHER);
     209           0 :     PHal::Transition(PHal::Msg_DisableNetworkNotifications__ID, (&(mState)));
     210             : 
     211           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     212           0 :     return sendok__;
     213             : }
     214             : 
     215           0 : auto PHalChild::SendGetCurrentNetworkInformation(NetworkInformation* aNetworkInfo) -> bool
     216             : {
     217           0 :     IPC::Message* msg__ = PHal::Msg_GetCurrentNetworkInformation(Id());
     218             : 
     219             : 
     220           0 :     (msg__)->set_sync();
     221             : 
     222             : 
     223           0 :     Message reply__;
     224             : 
     225           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     226           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     227             :     }
     228           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetCurrentNetworkInformation", OTHER);
     229           0 :     PHal::Transition(PHal::Msg_GetCurrentNetworkInformation__ID, (&(mState)));
     230             : 
     231             :     bool sendok__;
     232             :     {
     233             :         AutoProfilerTracing syncIPCTracer(
     234             :                 "IPC",
     235           0 :                 "PHal::Msg_GetCurrentNetworkInformation");
     236           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     237             :     }
     238           0 :     if ((!(sendok__))) {
     239           0 :         return false;
     240             :     }
     241             : 
     242           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     243           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     244             :     }
     245             : 
     246           0 :     PickleIterator iter__(reply__);
     247             : 
     248           0 :     if ((!(Read(aNetworkInfo, (&(reply__)), (&(iter__)))))) {
     249           0 :         FatalError("Error deserializing 'NetworkInformation'");
     250           0 :         return false;
     251             :     }
     252             :     // Sentinel = 'aNetworkInfo'
     253           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1908218217)))) {
     254           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NetworkInformation'");
     255           0 :         return false;
     256             :     }
     257           0 :     (reply__).EndRead(iter__, (reply__).type());
     258             : 
     259           0 :     return true;
     260             : }
     261             : 
     262           0 : auto PHalChild::SendGetScreenEnabled(bool* enabled) -> bool
     263             : {
     264           0 :     IPC::Message* msg__ = PHal::Msg_GetScreenEnabled(Id());
     265             : 
     266             : 
     267           0 :     (msg__)->set_sync();
     268             : 
     269             : 
     270           0 :     Message reply__;
     271             : 
     272           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     273           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     274             :     }
     275           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetScreenEnabled", OTHER);
     276           0 :     PHal::Transition(PHal::Msg_GetScreenEnabled__ID, (&(mState)));
     277             : 
     278             :     bool sendok__;
     279             :     {
     280             :         AutoProfilerTracing syncIPCTracer(
     281             :                 "IPC",
     282           0 :                 "PHal::Msg_GetScreenEnabled");
     283           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     284             :     }
     285           0 :     if ((!(sendok__))) {
     286           0 :         return false;
     287             :     }
     288             : 
     289           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     290           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     291             :     }
     292             : 
     293           0 :     PickleIterator iter__(reply__);
     294             : 
     295           0 :     if ((!(Read(enabled, (&(reply__)), (&(iter__)))))) {
     296           0 :         FatalError("Error deserializing 'bool'");
     297           0 :         return false;
     298             :     }
     299             :     // Sentinel = 'enabled'
     300           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3743499116)))) {
     301           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     302           0 :         return false;
     303             :     }
     304           0 :     (reply__).EndRead(iter__, (reply__).type());
     305             : 
     306           0 :     return true;
     307             : }
     308             : 
     309           0 : auto PHalChild::SendSetScreenEnabled(const bool& aEnabled) -> bool
     310             : {
     311           0 :     IPC::Message* msg__ = PHal::Msg_SetScreenEnabled(Id());
     312             : 
     313           0 :     Write(aEnabled, msg__);
     314             :     // Sentinel = 'aEnabled'
     315           0 :     (msg__)->WriteSentinel(2225039408);
     316             : 
     317             : 
     318             : 
     319             : 
     320           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     321           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     322             :     }
     323           0 :     AUTO_PROFILER_LABEL("PHal::Msg_SetScreenEnabled", OTHER);
     324           0 :     PHal::Transition(PHal::Msg_SetScreenEnabled__ID, (&(mState)));
     325             : 
     326           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     327           0 :     return sendok__;
     328             : }
     329             : 
     330           0 : auto PHalChild::SendGetKeyLightEnabled(bool* enabled) -> bool
     331             : {
     332           0 :     IPC::Message* msg__ = PHal::Msg_GetKeyLightEnabled(Id());
     333             : 
     334             : 
     335           0 :     (msg__)->set_sync();
     336             : 
     337             : 
     338           0 :     Message reply__;
     339             : 
     340           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     341           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     342             :     }
     343           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetKeyLightEnabled", OTHER);
     344           0 :     PHal::Transition(PHal::Msg_GetKeyLightEnabled__ID, (&(mState)));
     345             : 
     346             :     bool sendok__;
     347             :     {
     348             :         AutoProfilerTracing syncIPCTracer(
     349             :                 "IPC",
     350           0 :                 "PHal::Msg_GetKeyLightEnabled");
     351           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     352             :     }
     353           0 :     if ((!(sendok__))) {
     354           0 :         return false;
     355             :     }
     356             : 
     357           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     358           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     359             :     }
     360             : 
     361           0 :     PickleIterator iter__(reply__);
     362             : 
     363           0 :     if ((!(Read(enabled, (&(reply__)), (&(iter__)))))) {
     364           0 :         FatalError("Error deserializing 'bool'");
     365           0 :         return false;
     366             :     }
     367             :     // Sentinel = 'enabled'
     368           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3743499116)))) {
     369           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     370           0 :         return false;
     371             :     }
     372           0 :     (reply__).EndRead(iter__, (reply__).type());
     373             : 
     374           0 :     return true;
     375             : }
     376             : 
     377           0 : auto PHalChild::SendSetKeyLightEnabled(const bool& aEnabled) -> bool
     378             : {
     379           0 :     IPC::Message* msg__ = PHal::Msg_SetKeyLightEnabled(Id());
     380             : 
     381           0 :     Write(aEnabled, msg__);
     382             :     // Sentinel = 'aEnabled'
     383           0 :     (msg__)->WriteSentinel(2225039408);
     384             : 
     385             : 
     386             : 
     387             : 
     388           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     389           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     390             :     }
     391           0 :     AUTO_PROFILER_LABEL("PHal::Msg_SetKeyLightEnabled", OTHER);
     392           0 :     PHal::Transition(PHal::Msg_SetKeyLightEnabled__ID, (&(mState)));
     393             : 
     394           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     395           0 :     return sendok__;
     396             : }
     397             : 
     398           0 : auto PHalChild::SendGetCpuSleepAllowed(bool* allowed) -> bool
     399             : {
     400           0 :     IPC::Message* msg__ = PHal::Msg_GetCpuSleepAllowed(Id());
     401             : 
     402             : 
     403           0 :     (msg__)->set_sync();
     404             : 
     405             : 
     406           0 :     Message reply__;
     407             : 
     408           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     409           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     410             :     }
     411           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetCpuSleepAllowed", OTHER);
     412           0 :     PHal::Transition(PHal::Msg_GetCpuSleepAllowed__ID, (&(mState)));
     413             : 
     414             :     bool sendok__;
     415             :     {
     416             :         AutoProfilerTracing syncIPCTracer(
     417             :                 "IPC",
     418           0 :                 "PHal::Msg_GetCpuSleepAllowed");
     419           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     420             :     }
     421           0 :     if ((!(sendok__))) {
     422           0 :         return false;
     423             :     }
     424             : 
     425           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     426           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     427             :     }
     428             : 
     429           0 :     PickleIterator iter__(reply__);
     430             : 
     431           0 :     if ((!(Read(allowed, (&(reply__)), (&(iter__)))))) {
     432           0 :         FatalError("Error deserializing 'bool'");
     433           0 :         return false;
     434             :     }
     435             :     // Sentinel = 'allowed'
     436           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1297156503)))) {
     437           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     438           0 :         return false;
     439             :     }
     440           0 :     (reply__).EndRead(iter__, (reply__).type());
     441             : 
     442           0 :     return true;
     443             : }
     444             : 
     445           0 : auto PHalChild::SendSetCpuSleepAllowed(const bool& aAllowed) -> bool
     446             : {
     447           0 :     IPC::Message* msg__ = PHal::Msg_SetCpuSleepAllowed(Id());
     448             : 
     449           0 :     Write(aAllowed, msg__);
     450             :     // Sentinel = 'aAllowed'
     451           0 :     (msg__)->WriteSentinel(785233983);
     452             : 
     453             : 
     454             : 
     455             : 
     456           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     457           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     458             :     }
     459           0 :     AUTO_PROFILER_LABEL("PHal::Msg_SetCpuSleepAllowed", OTHER);
     460           0 :     PHal::Transition(PHal::Msg_SetCpuSleepAllowed__ID, (&(mState)));
     461             : 
     462           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     463           0 :     return sendok__;
     464             : }
     465             : 
     466           0 : auto PHalChild::SendGetScreenBrightness(double* brightness) -> bool
     467             : {
     468           0 :     IPC::Message* msg__ = PHal::Msg_GetScreenBrightness(Id());
     469             : 
     470             : 
     471           0 :     (msg__)->set_sync();
     472             : 
     473             : 
     474           0 :     Message reply__;
     475             : 
     476           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     477           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     478             :     }
     479           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetScreenBrightness", OTHER);
     480           0 :     PHal::Transition(PHal::Msg_GetScreenBrightness__ID, (&(mState)));
     481             : 
     482             :     bool sendok__;
     483             :     {
     484             :         AutoProfilerTracing syncIPCTracer(
     485             :                 "IPC",
     486           0 :                 "PHal::Msg_GetScreenBrightness");
     487           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     488             :     }
     489           0 :     if ((!(sendok__))) {
     490           0 :         return false;
     491             :     }
     492             : 
     493           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     494           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     495             :     }
     496             : 
     497           0 :     PickleIterator iter__(reply__);
     498             : 
     499           0 :     if ((!(Read(brightness, (&(reply__)), (&(iter__)))))) {
     500           0 :         FatalError("Error deserializing 'double'");
     501           0 :         return false;
     502             :     }
     503             :     // Sentinel = 'brightness'
     504           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 288670311)))) {
     505           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'double'");
     506           0 :         return false;
     507             :     }
     508           0 :     (reply__).EndRead(iter__, (reply__).type());
     509             : 
     510           0 :     return true;
     511             : }
     512             : 
     513           0 : auto PHalChild::SendSetScreenBrightness(const double& aBrightness) -> bool
     514             : {
     515           0 :     IPC::Message* msg__ = PHal::Msg_SetScreenBrightness(Id());
     516             : 
     517           0 :     Write(aBrightness, msg__);
     518             :     // Sentinel = 'aBrightness'
     519           0 :     (msg__)->WriteSentinel(2646084451);
     520             : 
     521             : 
     522             : 
     523             : 
     524           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     525           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     526             :     }
     527           0 :     AUTO_PROFILER_LABEL("PHal::Msg_SetScreenBrightness", OTHER);
     528           0 :     PHal::Transition(PHal::Msg_SetScreenBrightness__ID, (&(mState)));
     529             : 
     530           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     531           0 :     return sendok__;
     532             : }
     533             : 
     534           0 : auto PHalChild::SendAdjustSystemClock(const int64_t& aDeltaMilliseconds) -> bool
     535             : {
     536           0 :     IPC::Message* msg__ = PHal::Msg_AdjustSystemClock(Id());
     537             : 
     538           0 :     Write(aDeltaMilliseconds, msg__);
     539             :     // Sentinel = 'aDeltaMilliseconds'
     540           0 :     (msg__)->WriteSentinel(596392573);
     541             : 
     542             : 
     543             : 
     544             : 
     545           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     546           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     547             :     }
     548           0 :     AUTO_PROFILER_LABEL("PHal::Msg_AdjustSystemClock", OTHER);
     549           0 :     PHal::Transition(PHal::Msg_AdjustSystemClock__ID, (&(mState)));
     550             : 
     551           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     552           0 :     return sendok__;
     553             : }
     554             : 
     555           0 : auto PHalChild::SendSetTimezone(const nsCString& aTimezoneSpec) -> bool
     556             : {
     557           0 :     IPC::Message* msg__ = PHal::Msg_SetTimezone(Id());
     558             : 
     559           0 :     Write(aTimezoneSpec, msg__);
     560             :     // Sentinel = 'aTimezoneSpec'
     561           0 :     (msg__)->WriteSentinel(2553958496);
     562             : 
     563             : 
     564             : 
     565             : 
     566           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     567           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     568             :     }
     569           0 :     AUTO_PROFILER_LABEL("PHal::Msg_SetTimezone", OTHER);
     570           0 :     PHal::Transition(PHal::Msg_SetTimezone__ID, (&(mState)));
     571             : 
     572           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     573           0 :     return sendok__;
     574             : }
     575             : 
     576           0 : auto PHalChild::SendGetTimezone(nsCString* aTimezoneSpec) -> bool
     577             : {
     578           0 :     IPC::Message* msg__ = PHal::Msg_GetTimezone(Id());
     579             : 
     580             : 
     581           0 :     (msg__)->set_sync();
     582             : 
     583             : 
     584           0 :     Message reply__;
     585             : 
     586           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     587           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     588             :     }
     589           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetTimezone", OTHER);
     590           0 :     PHal::Transition(PHal::Msg_GetTimezone__ID, (&(mState)));
     591             : 
     592             :     bool sendok__;
     593             :     {
     594             :         AutoProfilerTracing syncIPCTracer(
     595             :                 "IPC",
     596           0 :                 "PHal::Msg_GetTimezone");
     597           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     598             :     }
     599           0 :     if ((!(sendok__))) {
     600           0 :         return false;
     601             :     }
     602             : 
     603           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     604           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     605             :     }
     606             : 
     607           0 :     PickleIterator iter__(reply__);
     608             : 
     609           0 :     if ((!(Read(aTimezoneSpec, (&(reply__)), (&(iter__)))))) {
     610           0 :         FatalError("Error deserializing 'nsCString'");
     611           0 :         return false;
     612             :     }
     613             :     // Sentinel = 'aTimezoneSpec'
     614           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2553958496)))) {
     615           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     616           0 :         return false;
     617             :     }
     618           0 :     (reply__).EndRead(iter__, (reply__).type());
     619             : 
     620           0 :     return true;
     621             : }
     622             : 
     623           0 : auto PHalChild::SendGetTimezoneOffset(int32_t* aTimezoneOffset) -> bool
     624             : {
     625           0 :     IPC::Message* msg__ = PHal::Msg_GetTimezoneOffset(Id());
     626             : 
     627             : 
     628           0 :     (msg__)->set_sync();
     629             : 
     630             : 
     631           0 :     Message reply__;
     632             : 
     633           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     634           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     635             :     }
     636           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetTimezoneOffset", OTHER);
     637           0 :     PHal::Transition(PHal::Msg_GetTimezoneOffset__ID, (&(mState)));
     638             : 
     639             :     bool sendok__;
     640             :     {
     641             :         AutoProfilerTracing syncIPCTracer(
     642             :                 "IPC",
     643           0 :                 "PHal::Msg_GetTimezoneOffset");
     644           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     645             :     }
     646           0 :     if ((!(sendok__))) {
     647           0 :         return false;
     648             :     }
     649             : 
     650           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     651           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     652             :     }
     653             : 
     654           0 :     PickleIterator iter__(reply__);
     655             : 
     656           0 :     if ((!(Read(aTimezoneOffset, (&(reply__)), (&(iter__)))))) {
     657           0 :         FatalError("Error deserializing 'int32_t'");
     658           0 :         return false;
     659             :     }
     660             :     // Sentinel = 'aTimezoneOffset'
     661           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4001217354)))) {
     662           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     663           0 :         return false;
     664             :     }
     665           0 :     (reply__).EndRead(iter__, (reply__).type());
     666             : 
     667           0 :     return true;
     668             : }
     669             : 
     670           0 : auto PHalChild::SendEnableSystemClockChangeNotifications() -> bool
     671             : {
     672           0 :     IPC::Message* msg__ = PHal::Msg_EnableSystemClockChangeNotifications(Id());
     673             : 
     674             : 
     675             : 
     676             : 
     677             : 
     678           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     679           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     680             :     }
     681           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableSystemClockChangeNotifications", OTHER);
     682           0 :     PHal::Transition(PHal::Msg_EnableSystemClockChangeNotifications__ID, (&(mState)));
     683             : 
     684           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     685           0 :     return sendok__;
     686             : }
     687             : 
     688           0 : auto PHalChild::SendDisableSystemClockChangeNotifications() -> bool
     689             : {
     690           0 :     IPC::Message* msg__ = PHal::Msg_DisableSystemClockChangeNotifications(Id());
     691             : 
     692             : 
     693             : 
     694             : 
     695             : 
     696           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     697           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     698             :     }
     699           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableSystemClockChangeNotifications", OTHER);
     700           0 :     PHal::Transition(PHal::Msg_DisableSystemClockChangeNotifications__ID, (&(mState)));
     701             : 
     702           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     703           0 :     return sendok__;
     704             : }
     705             : 
     706           2 : auto PHalChild::SendEnableSystemTimezoneChangeNotifications() -> bool
     707             : {
     708           2 :     IPC::Message* msg__ = PHal::Msg_EnableSystemTimezoneChangeNotifications(Id());
     709             : 
     710             : 
     711             : 
     712             : 
     713             : 
     714           2 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     715           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     716             :     }
     717           4 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableSystemTimezoneChangeNotifications", OTHER);
     718           2 :     PHal::Transition(PHal::Msg_EnableSystemTimezoneChangeNotifications__ID, (&(mState)));
     719             : 
     720           2 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     721           4 :     return sendok__;
     722             : }
     723             : 
     724           0 : auto PHalChild::SendDisableSystemTimezoneChangeNotifications() -> bool
     725             : {
     726           0 :     IPC::Message* msg__ = PHal::Msg_DisableSystemTimezoneChangeNotifications(Id());
     727             : 
     728             : 
     729             : 
     730             : 
     731             : 
     732           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     733           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     734             :     }
     735           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableSystemTimezoneChangeNotifications", OTHER);
     736           0 :     PHal::Transition(PHal::Msg_DisableSystemTimezoneChangeNotifications__ID, (&(mState)));
     737             : 
     738           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     739           0 :     return sendok__;
     740             : }
     741             : 
     742           0 : auto PHalChild::SendModifyWakeLock(
     743             :         const nsString& aTopic,
     744             :         const WakeLockControl& aLockAdjust,
     745             :         const WakeLockControl& aHiddenAdjust,
     746             :         const uint64_t& aProcessID) -> bool
     747             : {
     748           0 :     IPC::Message* msg__ = PHal::Msg_ModifyWakeLock(Id());
     749             : 
     750           0 :     Write(aTopic, msg__);
     751             :     // Sentinel = 'aTopic'
     752           0 :     (msg__)->WriteSentinel(2759450316);
     753           0 :     Write(aLockAdjust, msg__);
     754             :     // Sentinel = 'aLockAdjust'
     755           0 :     (msg__)->WriteSentinel(3857892778);
     756           0 :     Write(aHiddenAdjust, msg__);
     757             :     // Sentinel = 'aHiddenAdjust'
     758           0 :     (msg__)->WriteSentinel(2900615369);
     759           0 :     Write(aProcessID, msg__);
     760             :     // Sentinel = 'aProcessID'
     761           0 :     (msg__)->WriteSentinel(2181368637);
     762             : 
     763             : 
     764             : 
     765             : 
     766           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     767           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     768             :     }
     769           0 :     AUTO_PROFILER_LABEL("PHal::Msg_ModifyWakeLock", OTHER);
     770           0 :     PHal::Transition(PHal::Msg_ModifyWakeLock__ID, (&(mState)));
     771             : 
     772           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     773           0 :     return sendok__;
     774             : }
     775             : 
     776           0 : auto PHalChild::SendEnableWakeLockNotifications() -> bool
     777             : {
     778           0 :     IPC::Message* msg__ = PHal::Msg_EnableWakeLockNotifications(Id());
     779             : 
     780             : 
     781             : 
     782             : 
     783             : 
     784           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     785           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     786             :     }
     787           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableWakeLockNotifications", OTHER);
     788           0 :     PHal::Transition(PHal::Msg_EnableWakeLockNotifications__ID, (&(mState)));
     789             : 
     790           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     791           0 :     return sendok__;
     792             : }
     793             : 
     794           0 : auto PHalChild::SendDisableWakeLockNotifications() -> bool
     795             : {
     796           0 :     IPC::Message* msg__ = PHal::Msg_DisableWakeLockNotifications(Id());
     797             : 
     798             : 
     799             : 
     800             : 
     801             : 
     802           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     803           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     804             :     }
     805           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableWakeLockNotifications", OTHER);
     806           0 :     PHal::Transition(PHal::Msg_DisableWakeLockNotifications__ID, (&(mState)));
     807             : 
     808           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     809           0 :     return sendok__;
     810             : }
     811             : 
     812           0 : auto PHalChild::SendGetWakeLockInfo(
     813             :         const nsString& aTopic,
     814             :         WakeLockInformation* aWakeLockInfo) -> bool
     815             : {
     816           0 :     IPC::Message* msg__ = PHal::Msg_GetWakeLockInfo(Id());
     817             : 
     818           0 :     Write(aTopic, msg__);
     819             :     // Sentinel = 'aTopic'
     820           0 :     (msg__)->WriteSentinel(2759450316);
     821             : 
     822           0 :     (msg__)->set_sync();
     823             : 
     824             : 
     825           0 :     Message reply__;
     826             : 
     827           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     828           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     829             :     }
     830           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetWakeLockInfo", OTHER);
     831           0 :     PHal::Transition(PHal::Msg_GetWakeLockInfo__ID, (&(mState)));
     832             : 
     833             :     bool sendok__;
     834             :     {
     835             :         AutoProfilerTracing syncIPCTracer(
     836             :                 "IPC",
     837           0 :                 "PHal::Msg_GetWakeLockInfo");
     838           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     839             :     }
     840           0 :     if ((!(sendok__))) {
     841           0 :         return false;
     842             :     }
     843             : 
     844           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     845           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     846             :     }
     847             : 
     848           0 :     PickleIterator iter__(reply__);
     849             : 
     850           0 :     if ((!(Read(aWakeLockInfo, (&(reply__)), (&(iter__)))))) {
     851           0 :         FatalError("Error deserializing 'WakeLockInformation'");
     852           0 :         return false;
     853             :     }
     854             :     // Sentinel = 'aWakeLockInfo'
     855           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1498930717)))) {
     856           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'WakeLockInformation'");
     857           0 :         return false;
     858             :     }
     859           0 :     (reply__).EndRead(iter__, (reply__).type());
     860             : 
     861           0 :     return true;
     862             : }
     863             : 
     864           0 : auto PHalChild::SendEnableScreenConfigurationNotifications() -> bool
     865             : {
     866           0 :     IPC::Message* msg__ = PHal::Msg_EnableScreenConfigurationNotifications(Id());
     867             : 
     868             : 
     869             : 
     870             : 
     871             : 
     872           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     873           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     874             :     }
     875           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableScreenConfigurationNotifications", OTHER);
     876           0 :     PHal::Transition(PHal::Msg_EnableScreenConfigurationNotifications__ID, (&(mState)));
     877             : 
     878           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     879           0 :     return sendok__;
     880             : }
     881             : 
     882           0 : auto PHalChild::SendDisableScreenConfigurationNotifications() -> bool
     883             : {
     884           0 :     IPC::Message* msg__ = PHal::Msg_DisableScreenConfigurationNotifications(Id());
     885             : 
     886             : 
     887             : 
     888             : 
     889             : 
     890           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     891           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     892             :     }
     893           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableScreenConfigurationNotifications", OTHER);
     894           0 :     PHal::Transition(PHal::Msg_DisableScreenConfigurationNotifications__ID, (&(mState)));
     895             : 
     896           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     897           0 :     return sendok__;
     898             : }
     899             : 
     900           0 : auto PHalChild::SendLockScreenOrientation(
     901             :         const ScreenOrientationInternal& aOrientation,
     902             :         bool* allowed) -> bool
     903             : {
     904           0 :     IPC::Message* msg__ = PHal::Msg_LockScreenOrientation(Id());
     905             : 
     906           0 :     Write(aOrientation, msg__);
     907             :     // Sentinel = 'aOrientation'
     908           0 :     (msg__)->WriteSentinel(1665072289);
     909             : 
     910           0 :     (msg__)->set_sync();
     911             : 
     912             : 
     913           0 :     Message reply__;
     914             : 
     915           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     916           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     917             :     }
     918           0 :     AUTO_PROFILER_LABEL("PHal::Msg_LockScreenOrientation", OTHER);
     919           0 :     PHal::Transition(PHal::Msg_LockScreenOrientation__ID, (&(mState)));
     920             : 
     921             :     bool sendok__;
     922             :     {
     923             :         AutoProfilerTracing syncIPCTracer(
     924             :                 "IPC",
     925           0 :                 "PHal::Msg_LockScreenOrientation");
     926           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     927             :     }
     928           0 :     if ((!(sendok__))) {
     929           0 :         return false;
     930             :     }
     931             : 
     932           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     933           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     934             :     }
     935             : 
     936           0 :     PickleIterator iter__(reply__);
     937             : 
     938           0 :     if ((!(Read(allowed, (&(reply__)), (&(iter__)))))) {
     939           0 :         FatalError("Error deserializing 'bool'");
     940           0 :         return false;
     941             :     }
     942             :     // Sentinel = 'allowed'
     943           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1297156503)))) {
     944           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     945           0 :         return false;
     946             :     }
     947           0 :     (reply__).EndRead(iter__, (reply__).type());
     948             : 
     949           0 :     return true;
     950             : }
     951             : 
     952           0 : auto PHalChild::SendUnlockScreenOrientation() -> bool
     953             : {
     954           0 :     IPC::Message* msg__ = PHal::Msg_UnlockScreenOrientation(Id());
     955             : 
     956             : 
     957             : 
     958             : 
     959             : 
     960           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     961           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     962             :     }
     963           0 :     AUTO_PROFILER_LABEL("PHal::Msg_UnlockScreenOrientation", OTHER);
     964           0 :     PHal::Transition(PHal::Msg_UnlockScreenOrientation__ID, (&(mState)));
     965             : 
     966           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     967           0 :     return sendok__;
     968             : }
     969             : 
     970           0 : auto PHalChild::SendEnableSwitchNotifications(const SwitchDevice& aDevice) -> bool
     971             : {
     972           0 :     IPC::Message* msg__ = PHal::Msg_EnableSwitchNotifications(Id());
     973             : 
     974           0 :     Write(aDevice, msg__);
     975             :     // Sentinel = 'aDevice'
     976           0 :     (msg__)->WriteSentinel(2436697236);
     977             : 
     978             : 
     979             : 
     980             : 
     981           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
     982           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     983             :     }
     984           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableSwitchNotifications", OTHER);
     985           0 :     PHal::Transition(PHal::Msg_EnableSwitchNotifications__ID, (&(mState)));
     986             : 
     987           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     988           0 :     return sendok__;
     989             : }
     990             : 
     991           0 : auto PHalChild::SendDisableSwitchNotifications(const SwitchDevice& aDevice) -> bool
     992             : {
     993           0 :     IPC::Message* msg__ = PHal::Msg_DisableSwitchNotifications(Id());
     994             : 
     995           0 :     Write(aDevice, msg__);
     996             :     // Sentinel = 'aDevice'
     997           0 :     (msg__)->WriteSentinel(2436697236);
     998             : 
     999             : 
    1000             : 
    1001             : 
    1002           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1003           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1004             :     }
    1005           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableSwitchNotifications", OTHER);
    1006           0 :     PHal::Transition(PHal::Msg_DisableSwitchNotifications__ID, (&(mState)));
    1007             : 
    1008           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1009           0 :     return sendok__;
    1010             : }
    1011             : 
    1012           0 : auto PHalChild::SendGetCurrentSwitchState(
    1013             :         const SwitchDevice& aDevice,
    1014             :         SwitchState* aState) -> bool
    1015             : {
    1016           0 :     IPC::Message* msg__ = PHal::Msg_GetCurrentSwitchState(Id());
    1017             : 
    1018           0 :     Write(aDevice, msg__);
    1019             :     // Sentinel = 'aDevice'
    1020           0 :     (msg__)->WriteSentinel(2436697236);
    1021             : 
    1022           0 :     (msg__)->set_sync();
    1023             : 
    1024             : 
    1025           0 :     Message reply__;
    1026             : 
    1027           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1028           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1029             :     }
    1030           0 :     AUTO_PROFILER_LABEL("PHal::Msg_GetCurrentSwitchState", OTHER);
    1031           0 :     PHal::Transition(PHal::Msg_GetCurrentSwitchState__ID, (&(mState)));
    1032             : 
    1033             :     bool sendok__;
    1034             :     {
    1035             :         AutoProfilerTracing syncIPCTracer(
    1036             :                 "IPC",
    1037           0 :                 "PHal::Msg_GetCurrentSwitchState");
    1038           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1039             :     }
    1040           0 :     if ((!(sendok__))) {
    1041           0 :         return false;
    1042             :     }
    1043             : 
    1044           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1045           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1046             :     }
    1047             : 
    1048           0 :     PickleIterator iter__(reply__);
    1049             : 
    1050           0 :     if ((!(Read(aState, (&(reply__)), (&(iter__)))))) {
    1051           0 :         FatalError("Error deserializing 'SwitchState'");
    1052           0 :         return false;
    1053             :     }
    1054             :     // Sentinel = 'aState'
    1055           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3694751962)))) {
    1056           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'SwitchState'");
    1057           0 :         return false;
    1058             :     }
    1059           0 :     (reply__).EndRead(iter__, (reply__).type());
    1060             : 
    1061           0 :     return true;
    1062             : }
    1063             : 
    1064           0 : auto PHalChild::SendFactoryReset(const nsString& aReason) -> bool
    1065             : {
    1066           0 :     IPC::Message* msg__ = PHal::Msg_FactoryReset(Id());
    1067             : 
    1068           0 :     Write(aReason, msg__);
    1069             :     // Sentinel = 'aReason'
    1070           0 :     (msg__)->WriteSentinel(829905706);
    1071             : 
    1072             : 
    1073             : 
    1074             : 
    1075           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1076           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1077             :     }
    1078           0 :     AUTO_PROFILER_LABEL("PHal::Msg_FactoryReset", OTHER);
    1079           0 :     PHal::Transition(PHal::Msg_FactoryReset__ID, (&(mState)));
    1080             : 
    1081           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1082           0 :     return sendok__;
    1083             : }
    1084             : 
    1085           0 : auto PHalChild::SendEnableSensorNotifications(const SensorType& aSensor) -> bool
    1086             : {
    1087           0 :     IPC::Message* msg__ = PHal::Msg_EnableSensorNotifications(Id());
    1088             : 
    1089           0 :     Write(aSensor, msg__);
    1090             :     // Sentinel = 'aSensor'
    1091           0 :     (msg__)->WriteSentinel(942615000);
    1092             : 
    1093             : 
    1094             : 
    1095             : 
    1096           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1097           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1098             :     }
    1099           0 :     AUTO_PROFILER_LABEL("PHal::Msg_EnableSensorNotifications", OTHER);
    1100           0 :     PHal::Transition(PHal::Msg_EnableSensorNotifications__ID, (&(mState)));
    1101             : 
    1102           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1103           0 :     return sendok__;
    1104             : }
    1105             : 
    1106           0 : auto PHalChild::SendDisableSensorNotifications(const SensorType& aSensor) -> bool
    1107             : {
    1108           0 :     IPC::Message* msg__ = PHal::Msg_DisableSensorNotifications(Id());
    1109             : 
    1110           0 :     Write(aSensor, msg__);
    1111             :     // Sentinel = 'aSensor'
    1112           0 :     (msg__)->WriteSentinel(942615000);
    1113             : 
    1114             : 
    1115             : 
    1116             : 
    1117           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1118           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1119             :     }
    1120           0 :     AUTO_PROFILER_LABEL("PHal::Msg_DisableSensorNotifications", OTHER);
    1121           0 :     PHal::Transition(PHal::Msg_DisableSensorNotifications__ID, (&(mState)));
    1122             : 
    1123           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1124           0 :     return sendok__;
    1125             : }
    1126             : 
    1127           0 : auto PHalChild::Send__delete__(PHalChild* actor) -> bool
    1128             : {
    1129           0 :     if ((!(actor))) {
    1130           0 :         return false;
    1131             :     }
    1132             : 
    1133           0 :     IPC::Message* msg__ = PHal::Msg___delete__((actor)->Id());
    1134             : 
    1135           0 :     (actor)->Write(actor, msg__, false);
    1136             :     // Sentinel = 'actor'
    1137           0 :     (msg__)->WriteSentinel(875202478);
    1138             : 
    1139             : 
    1140             : 
    1141           0 :     if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1142           0 :         mozilla::ipc::LogMessageForProtocol("PHalChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1143             :     }
    1144           0 :     AUTO_PROFILER_LABEL("PHal::Msg___delete__", OTHER);
    1145           0 :     PHal::Transition(PHal::Msg___delete____ID, (&((actor)->mState)));
    1146             : 
    1147           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
    1148             : 
    1149           0 :     IProtocol* mgr = (actor)->Manager();
    1150           0 :     (actor)->DestroySubtree(Deletion);
    1151           0 :     (actor)->DeallocSubtree();
    1152           0 :     (mgr)->RemoveManagee(PHalMsgStart, actor);
    1153           0 :     return sendok__;
    1154             : }
    1155             : 
    1156           0 : auto PHalChild::RemoveManagee(
    1157             :         int32_t aProtocolId,
    1158             :         ProtocolBase* aListener) -> void
    1159             : {
    1160           0 :     FatalError("unreached");
    1161           0 :     return;
    1162             : }
    1163             : 
    1164           0 : auto PHalChild::OnMessageReceived(const Message& msg__) -> PHalChild::Result
    1165             : {
    1166           0 :     switch ((msg__).type()) {
    1167             :     case PHal::Msg_NotifyBatteryChange__ID:
    1168             :         {
    1169           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1170           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1171             :             }
    1172           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifyBatteryChange", OTHER);
    1173             : 
    1174           0 :             PickleIterator iter__(msg__);
    1175           0 :             BatteryInformation aBatteryInfo;
    1176             : 
    1177           0 :             if ((!(Read((&(aBatteryInfo)), (&(msg__)), (&(iter__)))))) {
    1178           0 :                 FatalError("Error deserializing 'BatteryInformation'");
    1179           0 :                 return MsgValueError;
    1180             :             }
    1181             :             // Sentinel = 'aBatteryInfo'
    1182           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2078351088)))) {
    1183           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'BatteryInformation'");
    1184           0 :                 return MsgValueError;
    1185             :             }
    1186           0 :             (msg__).EndRead(iter__, (msg__).type());
    1187           0 :             PHal::Transition(PHal::Msg_NotifyBatteryChange__ID, (&(mState)));
    1188           0 :             if ((!(RecvNotifyBatteryChange(mozilla::Move(aBatteryInfo))))) {
    1189           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1190             :                 // Error handled in mozilla::ipc::IPCResult
    1191           0 :                 return MsgProcessingError;
    1192             :             }
    1193             : 
    1194           0 :             return MsgProcessed;
    1195             :         }
    1196             :     case PHal::Msg_NotifyNetworkChange__ID:
    1197             :         {
    1198           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1199           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1200             :             }
    1201           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifyNetworkChange", OTHER);
    1202             : 
    1203           0 :             PickleIterator iter__(msg__);
    1204           0 :             NetworkInformation aNetworkInfo;
    1205             : 
    1206           0 :             if ((!(Read((&(aNetworkInfo)), (&(msg__)), (&(iter__)))))) {
    1207           0 :                 FatalError("Error deserializing 'NetworkInformation'");
    1208           0 :                 return MsgValueError;
    1209             :             }
    1210             :             // Sentinel = 'aNetworkInfo'
    1211           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1908218217)))) {
    1212           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NetworkInformation'");
    1213           0 :                 return MsgValueError;
    1214             :             }
    1215           0 :             (msg__).EndRead(iter__, (msg__).type());
    1216           0 :             PHal::Transition(PHal::Msg_NotifyNetworkChange__ID, (&(mState)));
    1217           0 :             if ((!(RecvNotifyNetworkChange(mozilla::Move(aNetworkInfo))))) {
    1218           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1219             :                 // Error handled in mozilla::ipc::IPCResult
    1220           0 :                 return MsgProcessingError;
    1221             :             }
    1222             : 
    1223           0 :             return MsgProcessed;
    1224             :         }
    1225             :     case PHal::Msg_NotifyWakeLockChange__ID:
    1226             :         {
    1227           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1228           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1229             :             }
    1230           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifyWakeLockChange", OTHER);
    1231             : 
    1232           0 :             PickleIterator iter__(msg__);
    1233           0 :             WakeLockInformation aWakeLockInfo;
    1234             : 
    1235           0 :             if ((!(Read((&(aWakeLockInfo)), (&(msg__)), (&(iter__)))))) {
    1236           0 :                 FatalError("Error deserializing 'WakeLockInformation'");
    1237           0 :                 return MsgValueError;
    1238             :             }
    1239             :             // Sentinel = 'aWakeLockInfo'
    1240           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1498930717)))) {
    1241           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'WakeLockInformation'");
    1242           0 :                 return MsgValueError;
    1243             :             }
    1244           0 :             (msg__).EndRead(iter__, (msg__).type());
    1245           0 :             PHal::Transition(PHal::Msg_NotifyWakeLockChange__ID, (&(mState)));
    1246           0 :             if ((!(RecvNotifyWakeLockChange(mozilla::Move(aWakeLockInfo))))) {
    1247           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1248             :                 // Error handled in mozilla::ipc::IPCResult
    1249           0 :                 return MsgProcessingError;
    1250             :             }
    1251             : 
    1252           0 :             return MsgProcessed;
    1253             :         }
    1254             :     case PHal::Msg_NotifyScreenConfigurationChange__ID:
    1255             :         {
    1256           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1257           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1258             :             }
    1259           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifyScreenConfigurationChange", OTHER);
    1260             : 
    1261           0 :             PickleIterator iter__(msg__);
    1262           0 :             ScreenConfiguration aScreenOrientation;
    1263             : 
    1264           0 :             if ((!(Read((&(aScreenOrientation)), (&(msg__)), (&(iter__)))))) {
    1265           0 :                 FatalError("Error deserializing 'ScreenConfiguration'");
    1266           0 :                 return MsgValueError;
    1267             :             }
    1268             :             // Sentinel = 'aScreenOrientation'
    1269           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2886778787)))) {
    1270           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ScreenConfiguration'");
    1271           0 :                 return MsgValueError;
    1272             :             }
    1273           0 :             (msg__).EndRead(iter__, (msg__).type());
    1274           0 :             PHal::Transition(PHal::Msg_NotifyScreenConfigurationChange__ID, (&(mState)));
    1275           0 :             if ((!(RecvNotifyScreenConfigurationChange(mozilla::Move(aScreenOrientation))))) {
    1276           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1277             :                 // Error handled in mozilla::ipc::IPCResult
    1278           0 :                 return MsgProcessingError;
    1279             :             }
    1280             : 
    1281           0 :             return MsgProcessed;
    1282             :         }
    1283             :     case PHal::Msg_NotifySwitchChange__ID:
    1284             :         {
    1285           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1286           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1287             :             }
    1288           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifySwitchChange", OTHER);
    1289             : 
    1290           0 :             PickleIterator iter__(msg__);
    1291           0 :             SwitchEvent aEvent;
    1292             : 
    1293           0 :             if ((!(Read((&(aEvent)), (&(msg__)), (&(iter__)))))) {
    1294           0 :                 FatalError("Error deserializing 'SwitchEvent'");
    1295           0 :                 return MsgValueError;
    1296             :             }
    1297             :             // Sentinel = 'aEvent'
    1298           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
    1299           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'SwitchEvent'");
    1300           0 :                 return MsgValueError;
    1301             :             }
    1302           0 :             (msg__).EndRead(iter__, (msg__).type());
    1303           0 :             PHal::Transition(PHal::Msg_NotifySwitchChange__ID, (&(mState)));
    1304           0 :             if ((!(RecvNotifySwitchChange(mozilla::Move(aEvent))))) {
    1305           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1306             :                 // Error handled in mozilla::ipc::IPCResult
    1307           0 :                 return MsgProcessingError;
    1308             :             }
    1309             : 
    1310           0 :             return MsgProcessed;
    1311             :         }
    1312             :     case PHal::Msg_NotifySystemClockChange__ID:
    1313             :         {
    1314           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1315           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1316             :             }
    1317           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifySystemClockChange", OTHER);
    1318             : 
    1319           0 :             PickleIterator iter__(msg__);
    1320             :             int64_t aClockDeltaMS;
    1321             : 
    1322           0 :             if ((!(Read((&(aClockDeltaMS)), (&(msg__)), (&(iter__)))))) {
    1323           0 :                 FatalError("Error deserializing 'int64_t'");
    1324           0 :                 return MsgValueError;
    1325             :             }
    1326             :             // Sentinel = 'aClockDeltaMS'
    1327           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 490214104)))) {
    1328           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
    1329           0 :                 return MsgValueError;
    1330             :             }
    1331           0 :             (msg__).EndRead(iter__, (msg__).type());
    1332           0 :             PHal::Transition(PHal::Msg_NotifySystemClockChange__ID, (&(mState)));
    1333           0 :             if ((!(RecvNotifySystemClockChange(mozilla::Move(aClockDeltaMS))))) {
    1334           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1335             :                 // Error handled in mozilla::ipc::IPCResult
    1336           0 :                 return MsgProcessingError;
    1337             :             }
    1338             : 
    1339           0 :             return MsgProcessed;
    1340             :         }
    1341             :     case PHal::Msg_NotifySystemTimezoneChange__ID:
    1342             :         {
    1343           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1344           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1345             :             }
    1346           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifySystemTimezoneChange", OTHER);
    1347             : 
    1348           0 :             PickleIterator iter__(msg__);
    1349           0 :             SystemTimezoneChangeInformation aSystemTimezoneChangeInfo;
    1350             : 
    1351           0 :             if ((!(Read((&(aSystemTimezoneChangeInfo)), (&(msg__)), (&(iter__)))))) {
    1352           0 :                 FatalError("Error deserializing 'SystemTimezoneChangeInformation'");
    1353           0 :                 return MsgValueError;
    1354             :             }
    1355             :             // Sentinel = 'aSystemTimezoneChangeInfo'
    1356           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3797357450)))) {
    1357           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'SystemTimezoneChangeInformation'");
    1358           0 :                 return MsgValueError;
    1359             :             }
    1360           0 :             (msg__).EndRead(iter__, (msg__).type());
    1361           0 :             PHal::Transition(PHal::Msg_NotifySystemTimezoneChange__ID, (&(mState)));
    1362           0 :             if ((!(RecvNotifySystemTimezoneChange(mozilla::Move(aSystemTimezoneChangeInfo))))) {
    1363           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1364             :                 // Error handled in mozilla::ipc::IPCResult
    1365           0 :                 return MsgProcessingError;
    1366             :             }
    1367             : 
    1368           0 :             return MsgProcessed;
    1369             :         }
    1370             :     case PHal::Msg_NotifySensorChange__ID:
    1371             :         {
    1372           0 :             if (mozilla::ipc::LoggingEnabledFor("PHalChild")) {
    1373           0 :                 mozilla::ipc::LogMessageForProtocol("PHalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1374             :             }
    1375           0 :             AUTO_PROFILER_LABEL("PHal::Msg_NotifySensorChange", OTHER);
    1376             : 
    1377           0 :             PickleIterator iter__(msg__);
    1378           0 :             SensorData aSensorData;
    1379             : 
    1380           0 :             if ((!(Read((&(aSensorData)), (&(msg__)), (&(iter__)))))) {
    1381           0 :                 FatalError("Error deserializing 'SensorData'");
    1382           0 :                 return MsgValueError;
    1383             :             }
    1384             :             // Sentinel = 'aSensorData'
    1385           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2949034804)))) {
    1386           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'SensorData'");
    1387           0 :                 return MsgValueError;
    1388             :             }
    1389           0 :             (msg__).EndRead(iter__, (msg__).type());
    1390           0 :             PHal::Transition(PHal::Msg_NotifySensorChange__ID, (&(mState)));
    1391           0 :             if ((!(RecvNotifySensorChange(mozilla::Move(aSensorData))))) {
    1392           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1393             :                 // Error handled in mozilla::ipc::IPCResult
    1394           0 :                 return MsgProcessingError;
    1395             :             }
    1396             : 
    1397           0 :             return MsgProcessed;
    1398             :         }
    1399             :     case PHal::Reply___delete____ID:
    1400             :         {
    1401           0 :             return MsgProcessed;
    1402             :         }
    1403             :     default:
    1404             :         {
    1405           0 :             return MsgNotKnown;
    1406             :         }
    1407             :     }
    1408             : }
    1409             : 
    1410           0 : auto PHalChild::OnMessageReceived(
    1411             :         const Message& msg__,
    1412             :         Message*& reply__) -> PHalChild::Result
    1413             : {
    1414           0 :     return MsgNotKnown;
    1415             : }
    1416             : 
    1417           0 : auto PHalChild::OnCallReceived(
    1418             :         const Message& msg__,
    1419             :         Message*& reply__) -> PHalChild::Result
    1420             : {
    1421           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
    1422             :     return MsgNotKnown;
    1423             : }
    1424             : 
    1425           0 : auto PHalChild::GetProtocolTypeId() -> int32_t
    1426             : {
    1427           0 :     return PHalMsgStart;
    1428             : }
    1429             : 
    1430           0 : auto PHalChild::ProtocolName() const -> const char*
    1431             : {
    1432           0 :     return "PHalChild";
    1433             : }
    1434             : 
    1435           0 : auto PHalChild::DestroySubtree(ActorDestroyReason why) -> void
    1436             : {
    1437             :     // Unregister from our manager.
    1438           0 :     Unregister(Id());
    1439             : 
    1440             :     // Reject owning pending promises.
    1441           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    1442             : 
    1443             :     // Finally, destroy "us".
    1444           0 :     ActorDestroy(why);
    1445           0 : }
    1446             : 
    1447           0 : auto PHalChild::DeallocSubtree() -> void
    1448             : {
    1449           0 : }
    1450             : 
    1451           0 : auto PHalChild::Write(
    1452             :         const SwitchEvent& v__,
    1453             :         Message* msg__) -> void
    1454             : {
    1455           0 :     Write((v__).device(), msg__);
    1456             :     // Sentinel = 'device'
    1457           0 :     (msg__)->WriteSentinel(1277795288);
    1458           0 :     Write((v__).status(), msg__);
    1459             :     // Sentinel = 'status'
    1460           0 :     (msg__)->WriteSentinel(3714608576);
    1461           0 : }
    1462             : 
    1463           0 : auto PHalChild::Read(
    1464             :         SwitchEvent* v__,
    1465             :         const Message* msg__,
    1466             :         PickleIterator* iter__) -> bool
    1467             : {
    1468           0 :     if ((!(Read((&((v__)->device())), msg__, iter__)))) {
    1469           0 :         FatalError("Error deserializing 'device' (SwitchDevice) member of 'SwitchEvent'");
    1470           0 :         return false;
    1471             :     }
    1472             :     // Sentinel = 'device'
    1473           0 :     if ((!((msg__)->ReadSentinel(iter__, 1277795288)))) {
    1474           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'device' (SwitchDevice) member of 'SwitchEvent'");
    1475           0 :         return false;
    1476             :     }
    1477           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    1478           0 :         FatalError("Error deserializing 'status' (SwitchState) member of 'SwitchEvent'");
    1479           0 :         return false;
    1480             :     }
    1481             :     // Sentinel = 'status'
    1482           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    1483           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (SwitchState) member of 'SwitchEvent'");
    1484           0 :         return false;
    1485             :     }
    1486           0 :     return true;
    1487             : }
    1488             : 
    1489           0 : auto PHalChild::Write(
    1490             :         const PBrowserChild* v__,
    1491             :         Message* msg__,
    1492             :         bool nullable__) -> void
    1493             : {
    1494             :     int32_t id;
    1495           0 :     if ((!(v__))) {
    1496           0 :         if ((!(nullable__))) {
    1497           0 :             FatalError("NULL actor value passed to non-nullable param");
    1498             :         }
    1499           0 :         id = 0;
    1500             :     }
    1501             :     else {
    1502           0 :         id = (v__)->Id();
    1503           0 :         if ((1) == (id)) {
    1504           0 :             FatalError("actor has been |delete|d");
    1505             :         }
    1506             :     }
    1507             : 
    1508           0 :     Write(id, msg__);
    1509           0 : }
    1510             : 
    1511           0 : auto PHalChild::Read(
    1512             :         PBrowserChild** v__,
    1513             :         const Message* msg__,
    1514             :         PickleIterator* iter__,
    1515             :         bool nullable__) -> bool
    1516             : {
    1517           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
    1518           0 :     if ((actor).isNothing()) {
    1519           0 :         return false;
    1520             :     }
    1521             : 
    1522           0 :     (*(v__)) = static_cast<PBrowserChild*>((actor).value());
    1523           0 :     return true;
    1524             : }
    1525             : 
    1526           0 : auto PHalChild::Write(
    1527             :         const ScreenConfiguration& v__,
    1528             :         Message* msg__) -> void
    1529             : {
    1530           0 :     Write((v__).rect(), msg__);
    1531             :     // Sentinel = 'rect'
    1532           0 :     (msg__)->WriteSentinel(438776542);
    1533           0 :     Write((v__).orientation(), msg__);
    1534             :     // Sentinel = 'orientation'
    1535           0 :     (msg__)->WriteSentinel(759639429);
    1536           0 :     Write((v__).angle(), msg__);
    1537             :     // Sentinel = 'angle'
    1538           0 :     (msg__)->WriteSentinel(3388308388);
    1539           0 :     Write((v__).colorDepth(), msg__);
    1540             :     // Sentinel = 'colorDepth'
    1541           0 :     (msg__)->WriteSentinel(4107545146);
    1542           0 :     Write((v__).pixelDepth(), msg__);
    1543             :     // Sentinel = 'pixelDepth'
    1544           0 :     (msg__)->WriteSentinel(4055642053);
    1545           0 : }
    1546             : 
    1547           0 : auto PHalChild::Read(
    1548             :         ScreenConfiguration* v__,
    1549             :         const Message* msg__,
    1550             :         PickleIterator* iter__) -> bool
    1551             : {
    1552           0 :     if ((!(Read((&((v__)->rect())), msg__, iter__)))) {
    1553           0 :         FatalError("Error deserializing 'rect' (nsIntRect) member of 'ScreenConfiguration'");
    1554           0 :         return false;
    1555             :     }
    1556             :     // Sentinel = 'rect'
    1557           0 :     if ((!((msg__)->ReadSentinel(iter__, 438776542)))) {
    1558           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'rect' (nsIntRect) member of 'ScreenConfiguration'");
    1559           0 :         return false;
    1560             :     }
    1561           0 :     if ((!(Read((&((v__)->orientation())), msg__, iter__)))) {
    1562           0 :         FatalError("Error deserializing 'orientation' (ScreenOrientationInternal) member of 'ScreenConfiguration'");
    1563           0 :         return false;
    1564             :     }
    1565             :     // Sentinel = 'orientation'
    1566           0 :     if ((!((msg__)->ReadSentinel(iter__, 759639429)))) {
    1567           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (ScreenOrientationInternal) member of 'ScreenConfiguration'");
    1568           0 :         return false;
    1569             :     }
    1570           0 :     if ((!(Read((&((v__)->angle())), msg__, iter__)))) {
    1571           0 :         FatalError("Error deserializing 'angle' (uint16_t) member of 'ScreenConfiguration'");
    1572           0 :         return false;
    1573             :     }
    1574             :     // Sentinel = 'angle'
    1575           0 :     if ((!((msg__)->ReadSentinel(iter__, 3388308388)))) {
    1576           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'angle' (uint16_t) member of 'ScreenConfiguration'");
    1577           0 :         return false;
    1578             :     }
    1579           0 :     if ((!(Read((&((v__)->colorDepth())), msg__, iter__)))) {
    1580           0 :         FatalError("Error deserializing 'colorDepth' (uint32_t) member of 'ScreenConfiguration'");
    1581           0 :         return false;
    1582             :     }
    1583             :     // Sentinel = 'colorDepth'
    1584           0 :     if ((!((msg__)->ReadSentinel(iter__, 4107545146)))) {
    1585           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'colorDepth' (uint32_t) member of 'ScreenConfiguration'");
    1586           0 :         return false;
    1587             :     }
    1588           0 :     if ((!(Read((&((v__)->pixelDepth())), msg__, iter__)))) {
    1589           0 :         FatalError("Error deserializing 'pixelDepth' (uint32_t) member of 'ScreenConfiguration'");
    1590           0 :         return false;
    1591             :     }
    1592             :     // Sentinel = 'pixelDepth'
    1593           0 :     if ((!((msg__)->ReadSentinel(iter__, 4055642053)))) {
    1594           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'pixelDepth' (uint32_t) member of 'ScreenConfiguration'");
    1595           0 :         return false;
    1596             :     }
    1597           0 :     return true;
    1598             : }
    1599             : 
    1600           0 : auto PHalChild::Write(
    1601             :         const BatteryInformation& v__,
    1602             :         Message* msg__) -> void
    1603             : {
    1604           0 :     Write((v__).level(), msg__);
    1605             :     // Sentinel = 'level'
    1606           0 :     (msg__)->WriteSentinel(144336999);
    1607           0 :     Write((v__).charging(), msg__);
    1608             :     // Sentinel = 'charging'
    1609           0 :     (msg__)->WriteSentinel(253813181);
    1610           0 :     Write((v__).remainingTime(), msg__);
    1611             :     // Sentinel = 'remainingTime'
    1612           0 :     (msg__)->WriteSentinel(3991324882);
    1613           0 : }
    1614             : 
    1615           0 : auto PHalChild::Read(
    1616             :         BatteryInformation* v__,
    1617             :         const Message* msg__,
    1618             :         PickleIterator* iter__) -> bool
    1619             : {
    1620           0 :     if ((!(Read((&((v__)->level())), msg__, iter__)))) {
    1621           0 :         FatalError("Error deserializing 'level' (double) member of 'BatteryInformation'");
    1622           0 :         return false;
    1623             :     }
    1624             :     // Sentinel = 'level'
    1625           0 :     if ((!((msg__)->ReadSentinel(iter__, 144336999)))) {
    1626           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'level' (double) member of 'BatteryInformation'");
    1627           0 :         return false;
    1628             :     }
    1629           0 :     if ((!(Read((&((v__)->charging())), msg__, iter__)))) {
    1630           0 :         FatalError("Error deserializing 'charging' (bool) member of 'BatteryInformation'");
    1631           0 :         return false;
    1632             :     }
    1633             :     // Sentinel = 'charging'
    1634           0 :     if ((!((msg__)->ReadSentinel(iter__, 253813181)))) {
    1635           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'charging' (bool) member of 'BatteryInformation'");
    1636           0 :         return false;
    1637             :     }
    1638           0 :     if ((!(Read((&((v__)->remainingTime())), msg__, iter__)))) {
    1639           0 :         FatalError("Error deserializing 'remainingTime' (double) member of 'BatteryInformation'");
    1640           0 :         return false;
    1641             :     }
    1642             :     // Sentinel = 'remainingTime'
    1643           0 :     if ((!((msg__)->ReadSentinel(iter__, 3991324882)))) {
    1644           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'remainingTime' (double) member of 'BatteryInformation'");
    1645           0 :         return false;
    1646             :     }
    1647           0 :     return true;
    1648             : }
    1649             : 
    1650           0 : auto PHalChild::Write(
    1651             :         const WakeLockInformation& v__,
    1652             :         Message* msg__) -> void
    1653             : {
    1654           0 :     Write((v__).topic(), msg__);
    1655             :     // Sentinel = 'topic'
    1656           0 :     (msg__)->WriteSentinel(261826960);
    1657           0 :     Write((v__).numLocks(), msg__);
    1658             :     // Sentinel = 'numLocks'
    1659           0 :     (msg__)->WriteSentinel(2358740108);
    1660           0 :     Write((v__).numHidden(), msg__);
    1661             :     // Sentinel = 'numHidden'
    1662           0 :     (msg__)->WriteSentinel(813961573);
    1663           0 :     Write((v__).lockingProcesses(), msg__);
    1664             :     // Sentinel = 'lockingProcesses'
    1665           0 :     (msg__)->WriteSentinel(1213055746);
    1666           0 : }
    1667             : 
    1668           0 : auto PHalChild::Read(
    1669             :         WakeLockInformation* v__,
    1670             :         const Message* msg__,
    1671             :         PickleIterator* iter__) -> bool
    1672             : {
    1673           0 :     if ((!(Read((&((v__)->topic())), msg__, iter__)))) {
    1674           0 :         FatalError("Error deserializing 'topic' (nsString) member of 'WakeLockInformation'");
    1675           0 :         return false;
    1676             :     }
    1677             :     // Sentinel = 'topic'
    1678           0 :     if ((!((msg__)->ReadSentinel(iter__, 261826960)))) {
    1679           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'topic' (nsString) member of 'WakeLockInformation'");
    1680           0 :         return false;
    1681             :     }
    1682           0 :     if ((!(Read((&((v__)->numLocks())), msg__, iter__)))) {
    1683           0 :         FatalError("Error deserializing 'numLocks' (uint32_t) member of 'WakeLockInformation'");
    1684           0 :         return false;
    1685             :     }
    1686             :     // Sentinel = 'numLocks'
    1687           0 :     if ((!((msg__)->ReadSentinel(iter__, 2358740108)))) {
    1688           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'numLocks' (uint32_t) member of 'WakeLockInformation'");
    1689           0 :         return false;
    1690             :     }
    1691           0 :     if ((!(Read((&((v__)->numHidden())), msg__, iter__)))) {
    1692           0 :         FatalError("Error deserializing 'numHidden' (uint32_t) member of 'WakeLockInformation'");
    1693           0 :         return false;
    1694             :     }
    1695             :     // Sentinel = 'numHidden'
    1696           0 :     if ((!((msg__)->ReadSentinel(iter__, 813961573)))) {
    1697           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'numHidden' (uint32_t) member of 'WakeLockInformation'");
    1698           0 :         return false;
    1699             :     }
    1700           0 :     if ((!(Read((&((v__)->lockingProcesses())), msg__, iter__)))) {
    1701           0 :         FatalError("Error deserializing 'lockingProcesses' (uint64_t[]) member of 'WakeLockInformation'");
    1702           0 :         return false;
    1703             :     }
    1704             :     // Sentinel = 'lockingProcesses'
    1705           0 :     if ((!((msg__)->ReadSentinel(iter__, 1213055746)))) {
    1706           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'lockingProcesses' (uint64_t[]) member of 'WakeLockInformation'");
    1707           0 :         return false;
    1708             :     }
    1709           0 :     return true;
    1710             : }
    1711             : 
    1712           0 : auto PHalChild::Write(
    1713             :         const NetworkInformation& v__,
    1714             :         Message* msg__) -> void
    1715             : {
    1716           0 :     Write((v__).type(), msg__);
    1717             :     // Sentinel = 'type'
    1718           0 :     (msg__)->WriteSentinel(2982068540);
    1719           0 :     Write((v__).isWifi(), msg__);
    1720             :     // Sentinel = 'isWifi'
    1721           0 :     (msg__)->WriteSentinel(68302097);
    1722           0 :     Write((v__).dhcpGateway(), msg__);
    1723             :     // Sentinel = 'dhcpGateway'
    1724           0 :     (msg__)->WriteSentinel(1492137774);
    1725           0 : }
    1726             : 
    1727           0 : auto PHalChild::Read(
    1728             :         NetworkInformation* v__,
    1729             :         const Message* msg__,
    1730             :         PickleIterator* iter__) -> bool
    1731             : {
    1732           0 :     if ((!(Read((&((v__)->type())), msg__, iter__)))) {
    1733           0 :         FatalError("Error deserializing 'type' (uint32_t) member of 'NetworkInformation'");
    1734           0 :         return false;
    1735             :     }
    1736             :     // Sentinel = 'type'
    1737           0 :     if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
    1738           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'type' (uint32_t) member of 'NetworkInformation'");
    1739           0 :         return false;
    1740             :     }
    1741           0 :     if ((!(Read((&((v__)->isWifi())), msg__, iter__)))) {
    1742           0 :         FatalError("Error deserializing 'isWifi' (bool) member of 'NetworkInformation'");
    1743           0 :         return false;
    1744             :     }
    1745             :     // Sentinel = 'isWifi'
    1746           0 :     if ((!((msg__)->ReadSentinel(iter__, 68302097)))) {
    1747           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isWifi' (bool) member of 'NetworkInformation'");
    1748           0 :         return false;
    1749             :     }
    1750           0 :     if ((!(Read((&((v__)->dhcpGateway())), msg__, iter__)))) {
    1751           0 :         FatalError("Error deserializing 'dhcpGateway' (uint32_t) member of 'NetworkInformation'");
    1752           0 :         return false;
    1753             :     }
    1754             :     // Sentinel = 'dhcpGateway'
    1755           0 :     if ((!((msg__)->ReadSentinel(iter__, 1492137774)))) {
    1756           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'dhcpGateway' (uint32_t) member of 'NetworkInformation'");
    1757           0 :         return false;
    1758             :     }
    1759           0 :     return true;
    1760             : }
    1761             : 
    1762           0 : auto PHalChild::Write(
    1763             :         const SystemTimezoneChangeInformation& v__,
    1764             :         Message* msg__) -> void
    1765             : {
    1766           0 :     Write((v__).oldTimezoneOffsetMinutes(), msg__);
    1767             :     // Sentinel = 'oldTimezoneOffsetMinutes'
    1768           0 :     (msg__)->WriteSentinel(3940000210);
    1769           0 :     Write((v__).newTimezoneOffsetMinutes(), msg__);
    1770             :     // Sentinel = 'newTimezoneOffsetMinutes'
    1771           0 :     (msg__)->WriteSentinel(2391265445);
    1772           0 : }
    1773             : 
    1774           0 : auto PHalChild::Read(
    1775             :         SystemTimezoneChangeInformation* v__,
    1776             :         const Message* msg__,
    1777             :         PickleIterator* iter__) -> bool
    1778             : {
    1779           0 :     if ((!(Read((&((v__)->oldTimezoneOffsetMinutes())), msg__, iter__)))) {
    1780           0 :         FatalError("Error deserializing 'oldTimezoneOffsetMinutes' (int32_t) member of 'SystemTimezoneChangeInformation'");
    1781           0 :         return false;
    1782             :     }
    1783             :     // Sentinel = 'oldTimezoneOffsetMinutes'
    1784           0 :     if ((!((msg__)->ReadSentinel(iter__, 3940000210)))) {
    1785           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'oldTimezoneOffsetMinutes' (int32_t) member of 'SystemTimezoneChangeInformation'");
    1786           0 :         return false;
    1787             :     }
    1788           0 :     if ((!(Read((&((v__)->newTimezoneOffsetMinutes())), msg__, iter__)))) {
    1789           0 :         FatalError("Error deserializing 'newTimezoneOffsetMinutes' (int32_t) member of 'SystemTimezoneChangeInformation'");
    1790           0 :         return false;
    1791             :     }
    1792             :     // Sentinel = 'newTimezoneOffsetMinutes'
    1793           0 :     if ((!((msg__)->ReadSentinel(iter__, 2391265445)))) {
    1794           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'newTimezoneOffsetMinutes' (int32_t) member of 'SystemTimezoneChangeInformation'");
    1795           0 :         return false;
    1796             :     }
    1797           0 :     return true;
    1798             : }
    1799             : 
    1800           0 : auto PHalChild::Write(
    1801             :         const SensorData& v__,
    1802             :         Message* msg__) -> void
    1803             : {
    1804           0 :     Write((v__).sensor(), msg__);
    1805             :     // Sentinel = 'sensor'
    1806           0 :     (msg__)->WriteSentinel(1053903548);
    1807           0 :     Write((v__).timestamp(), msg__);
    1808             :     // Sentinel = 'timestamp'
    1809           0 :     (msg__)->WriteSentinel(2167067209);
    1810           0 :     Write((v__).values(), msg__);
    1811             :     // Sentinel = 'values'
    1812           0 :     (msg__)->WriteSentinel(3006433652);
    1813           0 :     Write((v__).accuracy(), msg__);
    1814             :     // Sentinel = 'accuracy'
    1815           0 :     (msg__)->WriteSentinel(354491327);
    1816           0 : }
    1817             : 
    1818           0 : auto PHalChild::Read(
    1819             :         SensorData* v__,
    1820             :         const Message* msg__,
    1821             :         PickleIterator* iter__) -> bool
    1822             : {
    1823           0 :     if ((!(Read((&((v__)->sensor())), msg__, iter__)))) {
    1824           0 :         FatalError("Error deserializing 'sensor' (SensorType) member of 'SensorData'");
    1825           0 :         return false;
    1826             :     }
    1827             :     // Sentinel = 'sensor'
    1828           0 :     if ((!((msg__)->ReadSentinel(iter__, 1053903548)))) {
    1829           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sensor' (SensorType) member of 'SensorData'");
    1830           0 :         return false;
    1831             :     }
    1832           0 :     if ((!(Read((&((v__)->timestamp())), msg__, iter__)))) {
    1833           0 :         FatalError("Error deserializing 'timestamp' (PRTime) member of 'SensorData'");
    1834           0 :         return false;
    1835             :     }
    1836             :     // Sentinel = 'timestamp'
    1837           0 :     if ((!((msg__)->ReadSentinel(iter__, 2167067209)))) {
    1838           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'timestamp' (PRTime) member of 'SensorData'");
    1839           0 :         return false;
    1840             :     }
    1841           0 :     if ((!(Read((&((v__)->values())), msg__, iter__)))) {
    1842           0 :         FatalError("Error deserializing 'values' (float[]) member of 'SensorData'");
    1843           0 :         return false;
    1844             :     }
    1845             :     // Sentinel = 'values'
    1846           0 :     if ((!((msg__)->ReadSentinel(iter__, 3006433652)))) {
    1847           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'values' (float[]) member of 'SensorData'");
    1848           0 :         return false;
    1849             :     }
    1850           0 :     if ((!(Read((&((v__)->accuracy())), msg__, iter__)))) {
    1851           0 :         FatalError("Error deserializing 'accuracy' (SensorAccuracyType) member of 'SensorData'");
    1852           0 :         return false;
    1853             :     }
    1854             :     // Sentinel = 'accuracy'
    1855           0 :     if ((!((msg__)->ReadSentinel(iter__, 354491327)))) {
    1856           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'accuracy' (SensorAccuracyType) member of 'SensorData'");
    1857           0 :         return false;
    1858             :     }
    1859           0 :     return true;
    1860             : }
    1861             : 
    1862           0 : auto PHalChild::Write(
    1863             :         const PHalChild* v__,
    1864             :         Message* msg__,
    1865             :         bool nullable__) -> void
    1866             : {
    1867             :     int32_t id;
    1868           0 :     if ((!(v__))) {
    1869           0 :         if ((!(nullable__))) {
    1870           0 :             FatalError("NULL actor value passed to non-nullable param");
    1871             :         }
    1872           0 :         id = 0;
    1873             :     }
    1874             :     else {
    1875           0 :         id = (v__)->Id();
    1876           0 :         if ((1) == (id)) {
    1877           0 :             FatalError("actor has been |delete|d");
    1878             :         }
    1879             :     }
    1880             : 
    1881           0 :     Write(id, msg__);
    1882           0 : }
    1883             : 
    1884           0 : auto PHalChild::Read(
    1885             :         PHalChild** v__,
    1886             :         const Message* msg__,
    1887             :         PickleIterator* iter__,
    1888             :         bool nullable__) -> bool
    1889             : {
    1890           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHal", PHalMsgStart);
    1891           0 :     if ((actor).isNothing()) {
    1892           0 :         return false;
    1893             :     }
    1894             : 
    1895           0 :     (*(v__)) = static_cast<PHalChild*>((actor).value());
    1896           0 :     return true;
    1897             : }
    1898             : 
    1899             : 
    1900             : 
    1901             : } // namespace hal_sandbox
    1902             : } // namespace mozilla

Generated by: LCOV version 1.13