Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PHal.cpp
Line
Count
Source (jump to first uncovered line)
1
//
2
// Automatically generated by ipdlc.
3
// Edit at your own risk
4
//
5
6
7
#include "mozilla/GfxMessageUtils.h"
8
#include "mozilla/dom/PContentParent.h"
9
#include "mozilla/dom/PContentChild.h"
10
#include "mozilla/dom/PBrowserParent.h"
11
#include "mozilla/dom/PBrowserChild.h"
12
#include "mozilla/hal_sandbox/PHal.h"
13
14
namespace mozilla {
15
namespace hal_sandbox {
16
namespace PHal {
17
18
nsresult
19
CreateEndpoints(
20
        base::ProcessId aParentDestPid,
21
        base::ProcessId aChildDestPid,
22
        mozilla::ipc::Endpoint<mozilla::hal_sandbox::PHalParent>* aParent,
23
        mozilla::ipc::Endpoint<mozilla::hal_sandbox::PHalChild>* aChild)
24
0
{
25
0
    return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild);
26
0
}
27
IPC::Message*
28
Msg_NotifyBatteryChange(int32_t routingId)
29
0
{
30
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyBatteryChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
31
0
}
32
IPC::Message*
33
Msg_NotifyNetworkChange(int32_t routingId)
34
0
{
35
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyNetworkChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
36
0
}
37
IPC::Message*
38
Msg_NotifyWakeLockChange(int32_t routingId)
39
0
{
40
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyWakeLockChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
41
0
}
42
IPC::Message*
43
Msg_NotifyScreenConfigurationChange(int32_t routingId)
44
0
{
45
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyScreenConfigurationChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
46
0
}
47
IPC::Message*
48
Msg_Vibrate(int32_t routingId)
49
0
{
50
0
    return IPC::Message::IPDLMessage(routingId, Msg_Vibrate__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
51
0
}
52
IPC::Message*
53
Msg_CancelVibrate(int32_t routingId)
54
0
{
55
0
    return IPC::Message::IPDLMessage(routingId, Msg_CancelVibrate__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
56
0
}
57
IPC::Message*
58
Msg_EnableBatteryNotifications(int32_t routingId)
59
0
{
60
0
    return IPC::Message::IPDLMessage(routingId, Msg_EnableBatteryNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
61
0
}
62
IPC::Message*
63
Msg_DisableBatteryNotifications(int32_t routingId)
64
0
{
65
0
    return IPC::Message::IPDLMessage(routingId, Msg_DisableBatteryNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
66
0
}
67
IPC::Message*
68
Msg_GetCurrentBatteryInformation(int32_t routingId)
69
0
{
70
0
    return IPC::Message::IPDLMessage(routingId, Msg_GetCurrentBatteryInformation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
71
0
}
72
IPC::Message*
73
Reply_GetCurrentBatteryInformation(int32_t routingId)
74
0
{
75
0
    return IPC::Message::IPDLMessage(routingId, Reply_GetCurrentBatteryInformation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
76
0
}
77
IPC::Message*
78
Msg_EnableNetworkNotifications(int32_t routingId)
79
0
{
80
0
    return IPC::Message::IPDLMessage(routingId, Msg_EnableNetworkNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
81
0
}
82
IPC::Message*
83
Msg_DisableNetworkNotifications(int32_t routingId)
84
0
{
85
0
    return IPC::Message::IPDLMessage(routingId, Msg_DisableNetworkNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
86
0
}
87
IPC::Message*
88
Msg_GetCurrentNetworkInformation(int32_t routingId)
89
0
{
90
0
    return IPC::Message::IPDLMessage(routingId, Msg_GetCurrentNetworkInformation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
91
0
}
92
IPC::Message*
93
Reply_GetCurrentNetworkInformation(int32_t routingId)
94
0
{
95
0
    return IPC::Message::IPDLMessage(routingId, Reply_GetCurrentNetworkInformation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
96
0
}
97
IPC::Message*
98
Msg_ModifyWakeLock(int32_t routingId)
99
0
{
100
0
    return IPC::Message::IPDLMessage(routingId, Msg_ModifyWakeLock__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
101
0
}
102
IPC::Message*
103
Msg_EnableWakeLockNotifications(int32_t routingId)
104
0
{
105
0
    return IPC::Message::IPDLMessage(routingId, Msg_EnableWakeLockNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
106
0
}
107
IPC::Message*
108
Msg_DisableWakeLockNotifications(int32_t routingId)
109
0
{
110
0
    return IPC::Message::IPDLMessage(routingId, Msg_DisableWakeLockNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
111
0
}
112
IPC::Message*
113
Msg_GetWakeLockInfo(int32_t routingId)
114
0
{
115
0
    return IPC::Message::IPDLMessage(routingId, Msg_GetWakeLockInfo__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
116
0
}
117
IPC::Message*
118
Reply_GetWakeLockInfo(int32_t routingId)
119
0
{
120
0
    return IPC::Message::IPDLMessage(routingId, Reply_GetWakeLockInfo__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
121
0
}
122
IPC::Message*
123
Msg_EnableScreenConfigurationNotifications(int32_t routingId)
124
0
{
125
0
    return IPC::Message::IPDLMessage(routingId, Msg_EnableScreenConfigurationNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
126
0
}
127
IPC::Message*
128
Msg_DisableScreenConfigurationNotifications(int32_t routingId)
129
0
{
130
0
    return IPC::Message::IPDLMessage(routingId, Msg_DisableScreenConfigurationNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
131
0
}
132
IPC::Message*
133
Msg_LockScreenOrientation(int32_t routingId)
134
0
{
135
0
    return IPC::Message::IPDLMessage(routingId, Msg_LockScreenOrientation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
136
0
}
137
IPC::Message*
138
Reply_LockScreenOrientation(int32_t routingId)
139
0
{
140
0
    return IPC::Message::IPDLMessage(routingId, Reply_LockScreenOrientation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
141
0
}
142
IPC::Message*
143
Msg_UnlockScreenOrientation(int32_t routingId)
144
0
{
145
0
    return IPC::Message::IPDLMessage(routingId, Msg_UnlockScreenOrientation__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
146
0
}
147
IPC::Message*
148
Msg_NotifySensorChange(int32_t routingId)
149
0
{
150
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifySensorChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
151
0
}
152
IPC::Message*
153
Msg_EnableSensorNotifications(int32_t routingId)
154
0
{
155
0
    return IPC::Message::IPDLMessage(routingId, Msg_EnableSensorNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
156
0
}
157
IPC::Message*
158
Msg_DisableSensorNotifications(int32_t routingId)
159
0
{
160
0
    return IPC::Message::IPDLMessage(routingId, Msg_DisableSensorNotifications__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
161
0
}
162
IPC::Message*
163
Msg___delete__(int32_t routingId)
164
0
{
165
0
    return IPC::Message::IPDLMessage(routingId, Msg___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
166
0
}
167
IPC::Message*
168
Reply___delete__(int32_t routingId)
169
0
{
170
0
    return IPC::Message::IPDLMessage(routingId, Reply___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
171
0
}
172
173
} // namespace PHal
174
} // namespace hal_sandbox
175
} // namespace mozilla
176
177
//-----------------------------------------------------------------------------
178
// Method definitions for the IPDL type |struct BatteryInformation|
179
//
180
namespace mozilla {
181
namespace hal {
182
auto BatteryInformation::operator==(const BatteryInformation& _o) const -> bool
183
0
{
184
0
    if ((!((level()) == ((_o).level())))) {
185
0
        return false;
186
0
    }
187
0
    if ((!((charging()) == ((_o).charging())))) {
188
0
        return false;
189
0
    }
190
0
    if ((!((remainingTime()) == ((_o).remainingTime())))) {
191
0
        return false;
192
0
    }
193
0
    return true;
194
0
}
195
196
auto BatteryInformation::operator!=(const BatteryInformation& _o) const -> bool
197
0
{
198
0
    return (!(operator==(_o)));
199
0
}
200
201
} // namespace hal
202
} // namespace mozilla
203
204
namespace mozilla {
205
namespace ipc {
206
auto IPDLParamTraits<mozilla::hal::BatteryInformation>::Write(
207
        IPC::Message* aMsg,
208
        mozilla::ipc::IProtocol* aActor,
209
        const paramType& aVar) -> void
210
0
{
211
0
    WriteIPDLParam(aMsg, aActor, (aVar).level());
212
0
    // Sentinel = 'level'
213
0
    (aMsg)->WriteSentinel(144336999);
214
0
    WriteIPDLParam(aMsg, aActor, (aVar).charging());
215
0
    // Sentinel = 'charging'
216
0
    (aMsg)->WriteSentinel(253813181);
217
0
    WriteIPDLParam(aMsg, aActor, (aVar).remainingTime());
218
0
    // Sentinel = 'remainingTime'
219
0
    (aMsg)->WriteSentinel(3991324882);
220
0
}
221
222
auto IPDLParamTraits<mozilla::hal::BatteryInformation>::Read(
223
        const IPC::Message* aMsg,
224
        PickleIterator* aIter,
225
        mozilla::ipc::IProtocol* aActor,
226
        paramType* aVar) -> bool
227
0
{
228
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->level())))))) {
229
0
        (aActor)->FatalError("Error deserializing 'level' (double) member of 'BatteryInformation'");
230
0
        return false;
231
0
    }
232
0
    // Sentinel = 'level'
233
0
    if ((!((aMsg)->ReadSentinel(aIter, 144336999)))) {
234
0
        mozilla::ipc::SentinelReadError("Error deserializing 'level' (double) member of 'BatteryInformation'");
235
0
        return false;
236
0
    }
237
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->charging())))))) {
238
0
        (aActor)->FatalError("Error deserializing 'charging' (bool) member of 'BatteryInformation'");
239
0
        return false;
240
0
    }
241
0
    // Sentinel = 'charging'
242
0
    if ((!((aMsg)->ReadSentinel(aIter, 253813181)))) {
243
0
        mozilla::ipc::SentinelReadError("Error deserializing 'charging' (bool) member of 'BatteryInformation'");
244
0
        return false;
245
0
    }
246
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->remainingTime())))))) {
247
0
        (aActor)->FatalError("Error deserializing 'remainingTime' (double) member of 'BatteryInformation'");
248
0
        return false;
249
0
    }
250
0
    // Sentinel = 'remainingTime'
251
0
    if ((!((aMsg)->ReadSentinel(aIter, 3991324882)))) {
252
0
        mozilla::ipc::SentinelReadError("Error deserializing 'remainingTime' (double) member of 'BatteryInformation'");
253
0
        return false;
254
0
    }
255
0
    return true;
256
0
}
257
258
} // namespace ipc
259
} // namespace mozilla
260
261
//-----------------------------------------------------------------------------
262
// Method definitions for the IPDL type |struct SensorData|
263
//
264
namespace mozilla {
265
namespace hal {
266
auto SensorData::operator==(const SensorData& _o) const -> bool
267
0
{
268
0
    if ((!((sensor()) == ((_o).sensor())))) {
269
0
        return false;
270
0
    }
271
0
    if ((!((timestamp()) == ((_o).timestamp())))) {
272
0
        return false;
273
0
    }
274
0
    if ((!((values()) == ((_o).values())))) {
275
0
        return false;
276
0
    }
277
0
    return true;
278
0
}
279
280
auto SensorData::operator!=(const SensorData& _o) const -> bool
281
0
{
282
0
    return (!(operator==(_o)));
283
0
}
284
285
} // namespace hal
286
} // namespace mozilla
287
288
namespace mozilla {
289
namespace ipc {
290
auto IPDLParamTraits<mozilla::hal::SensorData>::Write(
291
        IPC::Message* aMsg,
292
        mozilla::ipc::IProtocol* aActor,
293
        const paramType& aVar) -> void
294
0
{
295
0
    WriteIPDLParam(aMsg, aActor, (aVar).sensor());
296
0
    // Sentinel = 'sensor'
297
0
    (aMsg)->WriteSentinel(1053903548);
298
0
    WriteIPDLParam(aMsg, aActor, (aVar).timestamp());
299
0
    // Sentinel = 'timestamp'
300
0
    (aMsg)->WriteSentinel(2167067209);
301
0
    WriteIPDLParam(aMsg, aActor, (aVar).values());
302
0
    // Sentinel = 'values'
303
0
    (aMsg)->WriteSentinel(3006433652);
304
0
}
305
306
auto IPDLParamTraits<mozilla::hal::SensorData>::Read(
307
        const IPC::Message* aMsg,
308
        PickleIterator* aIter,
309
        mozilla::ipc::IProtocol* aActor,
310
        paramType* aVar) -> bool
311
0
{
312
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sensor())))))) {
313
0
        (aActor)->FatalError("Error deserializing 'sensor' (SensorType) member of 'SensorData'");
314
0
        return false;
315
0
    }
316
0
    // Sentinel = 'sensor'
317
0
    if ((!((aMsg)->ReadSentinel(aIter, 1053903548)))) {
318
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sensor' (SensorType) member of 'SensorData'");
319
0
        return false;
320
0
    }
321
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->timestamp())))))) {
322
0
        (aActor)->FatalError("Error deserializing 'timestamp' (PRTime) member of 'SensorData'");
323
0
        return false;
324
0
    }
325
0
    // Sentinel = 'timestamp'
326
0
    if ((!((aMsg)->ReadSentinel(aIter, 2167067209)))) {
327
0
        mozilla::ipc::SentinelReadError("Error deserializing 'timestamp' (PRTime) member of 'SensorData'");
328
0
        return false;
329
0
    }
330
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->values())))))) {
331
0
        (aActor)->FatalError("Error deserializing 'values' (float[]) member of 'SensorData'");
332
0
        return false;
333
0
    }
334
0
    // Sentinel = 'values'
335
0
    if ((!((aMsg)->ReadSentinel(aIter, 3006433652)))) {
336
0
        mozilla::ipc::SentinelReadError("Error deserializing 'values' (float[]) member of 'SensorData'");
337
0
        return false;
338
0
    }
339
0
    return true;
340
0
}
341
342
} // namespace ipc
343
} // namespace mozilla
344
345
//-----------------------------------------------------------------------------
346
// Method definitions for the IPDL type |struct NetworkInformation|
347
//
348
namespace mozilla {
349
namespace hal {
350
auto NetworkInformation::operator==(const NetworkInformation& _o) const -> bool
351
0
{
352
0
    if ((!((type()) == ((_o).type())))) {
353
0
        return false;
354
0
    }
355
0
    if ((!((isWifi()) == ((_o).isWifi())))) {
356
0
        return false;
357
0
    }
358
0
    if ((!((dhcpGateway()) == ((_o).dhcpGateway())))) {
359
0
        return false;
360
0
    }
361
0
    return true;
362
0
}
363
364
auto NetworkInformation::operator!=(const NetworkInformation& _o) const -> bool
365
0
{
366
0
    return (!(operator==(_o)));
367
0
}
368
369
} // namespace hal
370
} // namespace mozilla
371
372
namespace mozilla {
373
namespace ipc {
374
auto IPDLParamTraits<mozilla::hal::NetworkInformation>::Write(
375
        IPC::Message* aMsg,
376
        mozilla::ipc::IProtocol* aActor,
377
        const paramType& aVar) -> void
378
0
{
379
0
    WriteIPDLParam(aMsg, aActor, (aVar).type());
380
0
    // Sentinel = 'type'
381
0
    (aMsg)->WriteSentinel(2982068540);
382
0
    WriteIPDLParam(aMsg, aActor, (aVar).isWifi());
383
0
    // Sentinel = 'isWifi'
384
0
    (aMsg)->WriteSentinel(68302097);
385
0
    WriteIPDLParam(aMsg, aActor, (aVar).dhcpGateway());
386
0
    // Sentinel = 'dhcpGateway'
387
0
    (aMsg)->WriteSentinel(1492137774);
388
0
}
389
390
auto IPDLParamTraits<mozilla::hal::NetworkInformation>::Read(
391
        const IPC::Message* aMsg,
392
        PickleIterator* aIter,
393
        mozilla::ipc::IProtocol* aActor,
394
        paramType* aVar) -> bool
395
0
{
396
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->type())))))) {
397
0
        (aActor)->FatalError("Error deserializing 'type' (uint32_t) member of 'NetworkInformation'");
398
0
        return false;
399
0
    }
400
0
    // Sentinel = 'type'
401
0
    if ((!((aMsg)->ReadSentinel(aIter, 2982068540)))) {
402
0
        mozilla::ipc::SentinelReadError("Error deserializing 'type' (uint32_t) member of 'NetworkInformation'");
403
0
        return false;
404
0
    }
405
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isWifi())))))) {
406
0
        (aActor)->FatalError("Error deserializing 'isWifi' (bool) member of 'NetworkInformation'");
407
0
        return false;
408
0
    }
409
0
    // Sentinel = 'isWifi'
410
0
    if ((!((aMsg)->ReadSentinel(aIter, 68302097)))) {
411
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isWifi' (bool) member of 'NetworkInformation'");
412
0
        return false;
413
0
    }
414
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->dhcpGateway())))))) {
415
0
        (aActor)->FatalError("Error deserializing 'dhcpGateway' (uint32_t) member of 'NetworkInformation'");
416
0
        return false;
417
0
    }
418
0
    // Sentinel = 'dhcpGateway'
419
0
    if ((!((aMsg)->ReadSentinel(aIter, 1492137774)))) {
420
0
        mozilla::ipc::SentinelReadError("Error deserializing 'dhcpGateway' (uint32_t) member of 'NetworkInformation'");
421
0
        return false;
422
0
    }
423
0
    return true;
424
0
}
425
426
} // namespace ipc
427
} // namespace mozilla
428
429
//-----------------------------------------------------------------------------
430
// Method definitions for the IPDL type |struct WakeLockInformation|
431
//
432
namespace mozilla {
433
namespace hal {
434
auto WakeLockInformation::operator==(const WakeLockInformation& _o) const -> bool
435
0
{
436
0
    if ((!((topic()) == ((_o).topic())))) {
437
0
        return false;
438
0
    }
439
0
    if ((!((numLocks()) == ((_o).numLocks())))) {
440
0
        return false;
441
0
    }
442
0
    if ((!((numHidden()) == ((_o).numHidden())))) {
443
0
        return false;
444
0
    }
445
0
    if ((!((lockingProcesses()) == ((_o).lockingProcesses())))) {
446
0
        return false;
447
0
    }
448
0
    return true;
449
0
}
450
451
auto WakeLockInformation::operator!=(const WakeLockInformation& _o) const -> bool
452
0
{
453
0
    return (!(operator==(_o)));
454
0
}
455
456
} // namespace hal
457
} // namespace mozilla
458
459
namespace mozilla {
460
namespace ipc {
461
auto IPDLParamTraits<mozilla::hal::WakeLockInformation>::Write(
462
        IPC::Message* aMsg,
463
        mozilla::ipc::IProtocol* aActor,
464
        const paramType& aVar) -> void
465
0
{
466
0
    WriteIPDLParam(aMsg, aActor, (aVar).topic());
467
0
    // Sentinel = 'topic'
468
0
    (aMsg)->WriteSentinel(261826960);
469
0
    WriteIPDLParam(aMsg, aActor, (aVar).numLocks());
470
0
    // Sentinel = 'numLocks'
471
0
    (aMsg)->WriteSentinel(2358740108);
472
0
    WriteIPDLParam(aMsg, aActor, (aVar).numHidden());
473
0
    // Sentinel = 'numHidden'
474
0
    (aMsg)->WriteSentinel(813961573);
475
0
    WriteIPDLParam(aMsg, aActor, (aVar).lockingProcesses());
476
0
    // Sentinel = 'lockingProcesses'
477
0
    (aMsg)->WriteSentinel(1213055746);
478
0
}
479
480
auto IPDLParamTraits<mozilla::hal::WakeLockInformation>::Read(
481
        const IPC::Message* aMsg,
482
        PickleIterator* aIter,
483
        mozilla::ipc::IProtocol* aActor,
484
        paramType* aVar) -> bool
485
0
{
486
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->topic())))))) {
487
0
        (aActor)->FatalError("Error deserializing 'topic' (nsString) member of 'WakeLockInformation'");
488
0
        return false;
489
0
    }
490
0
    // Sentinel = 'topic'
491
0
    if ((!((aMsg)->ReadSentinel(aIter, 261826960)))) {
492
0
        mozilla::ipc::SentinelReadError("Error deserializing 'topic' (nsString) member of 'WakeLockInformation'");
493
0
        return false;
494
0
    }
495
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->numLocks())))))) {
496
0
        (aActor)->FatalError("Error deserializing 'numLocks' (uint32_t) member of 'WakeLockInformation'");
497
0
        return false;
498
0
    }
499
0
    // Sentinel = 'numLocks'
500
0
    if ((!((aMsg)->ReadSentinel(aIter, 2358740108)))) {
501
0
        mozilla::ipc::SentinelReadError("Error deserializing 'numLocks' (uint32_t) member of 'WakeLockInformation'");
502
0
        return false;
503
0
    }
504
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->numHidden())))))) {
505
0
        (aActor)->FatalError("Error deserializing 'numHidden' (uint32_t) member of 'WakeLockInformation'");
506
0
        return false;
507
0
    }
508
0
    // Sentinel = 'numHidden'
509
0
    if ((!((aMsg)->ReadSentinel(aIter, 813961573)))) {
510
0
        mozilla::ipc::SentinelReadError("Error deserializing 'numHidden' (uint32_t) member of 'WakeLockInformation'");
511
0
        return false;
512
0
    }
513
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->lockingProcesses())))))) {
514
0
        (aActor)->FatalError("Error deserializing 'lockingProcesses' (uint64_t[]) member of 'WakeLockInformation'");
515
0
        return false;
516
0
    }
517
0
    // Sentinel = 'lockingProcesses'
518
0
    if ((!((aMsg)->ReadSentinel(aIter, 1213055746)))) {
519
0
        mozilla::ipc::SentinelReadError("Error deserializing 'lockingProcesses' (uint64_t[]) member of 'WakeLockInformation'");
520
0
        return false;
521
0
    }
522
0
    return true;
523
0
}
524
525
} // namespace ipc
526
} // namespace mozilla
527
528
//-----------------------------------------------------------------------------
529
// Method definitions for the IPDL type |struct ScreenConfiguration|
530
//
531
namespace mozilla {
532
namespace hal {
533
auto ScreenConfiguration::operator==(const ScreenConfiguration& _o) const -> bool
534
0
{
535
0
    if ((!((rect()) == ((_o).rect())))) {
536
0
        return false;
537
0
    }
538
0
    if ((!((orientation()) == ((_o).orientation())))) {
539
0
        return false;
540
0
    }
541
0
    if ((!((angle()) == ((_o).angle())))) {
542
0
        return false;
543
0
    }
544
0
    if ((!((colorDepth()) == ((_o).colorDepth())))) {
545
0
        return false;
546
0
    }
547
0
    if ((!((pixelDepth()) == ((_o).pixelDepth())))) {
548
0
        return false;
549
0
    }
550
0
    return true;
551
0
}
552
553
auto ScreenConfiguration::operator!=(const ScreenConfiguration& _o) const -> bool
554
0
{
555
0
    return (!(operator==(_o)));
556
0
}
557
558
} // namespace hal
559
} // namespace mozilla
560
561
namespace mozilla {
562
namespace ipc {
563
auto IPDLParamTraits<mozilla::hal::ScreenConfiguration>::Write(
564
        IPC::Message* aMsg,
565
        mozilla::ipc::IProtocol* aActor,
566
        const paramType& aVar) -> void
567
0
{
568
0
    WriteIPDLParam(aMsg, aActor, (aVar).rect());
569
0
    // Sentinel = 'rect'
570
0
    (aMsg)->WriteSentinel(438776542);
571
0
    WriteIPDLParam(aMsg, aActor, (aVar).orientation());
572
0
    // Sentinel = 'orientation'
573
0
    (aMsg)->WriteSentinel(759639429);
574
0
    WriteIPDLParam(aMsg, aActor, (aVar).angle());
575
0
    // Sentinel = 'angle'
576
0
    (aMsg)->WriteSentinel(3388308388);
577
0
    WriteIPDLParam(aMsg, aActor, (aVar).colorDepth());
578
0
    // Sentinel = 'colorDepth'
579
0
    (aMsg)->WriteSentinel(4107545146);
580
0
    WriteIPDLParam(aMsg, aActor, (aVar).pixelDepth());
581
0
    // Sentinel = 'pixelDepth'
582
0
    (aMsg)->WriteSentinel(4055642053);
583
0
}
584
585
auto IPDLParamTraits<mozilla::hal::ScreenConfiguration>::Read(
586
        const IPC::Message* aMsg,
587
        PickleIterator* aIter,
588
        mozilla::ipc::IProtocol* aActor,
589
        paramType* aVar) -> bool
590
0
{
591
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->rect())))))) {
592
0
        (aActor)->FatalError("Error deserializing 'rect' (nsIntRect) member of 'ScreenConfiguration'");
593
0
        return false;
594
0
    }
595
0
    // Sentinel = 'rect'
596
0
    if ((!((aMsg)->ReadSentinel(aIter, 438776542)))) {
597
0
        mozilla::ipc::SentinelReadError("Error deserializing 'rect' (nsIntRect) member of 'ScreenConfiguration'");
598
0
        return false;
599
0
    }
600
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->orientation())))))) {
601
0
        (aActor)->FatalError("Error deserializing 'orientation' (ScreenOrientation) member of 'ScreenConfiguration'");
602
0
        return false;
603
0
    }
604
0
    // Sentinel = 'orientation'
605
0
    if ((!((aMsg)->ReadSentinel(aIter, 759639429)))) {
606
0
        mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (ScreenOrientation) member of 'ScreenConfiguration'");
607
0
        return false;
608
0
    }
609
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->angle())))))) {
610
0
        (aActor)->FatalError("Error deserializing 'angle' (uint16_t) member of 'ScreenConfiguration'");
611
0
        return false;
612
0
    }
613
0
    // Sentinel = 'angle'
614
0
    if ((!((aMsg)->ReadSentinel(aIter, 3388308388)))) {
615
0
        mozilla::ipc::SentinelReadError("Error deserializing 'angle' (uint16_t) member of 'ScreenConfiguration'");
616
0
        return false;
617
0
    }
618
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->colorDepth())))))) {
619
0
        (aActor)->FatalError("Error deserializing 'colorDepth' (uint32_t) member of 'ScreenConfiguration'");
620
0
        return false;
621
0
    }
622
0
    // Sentinel = 'colorDepth'
623
0
    if ((!((aMsg)->ReadSentinel(aIter, 4107545146)))) {
624
0
        mozilla::ipc::SentinelReadError("Error deserializing 'colorDepth' (uint32_t) member of 'ScreenConfiguration'");
625
0
        return false;
626
0
    }
627
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pixelDepth())))))) {
628
0
        (aActor)->FatalError("Error deserializing 'pixelDepth' (uint32_t) member of 'ScreenConfiguration'");
629
0
        return false;
630
0
    }
631
0
    // Sentinel = 'pixelDepth'
632
0
    if ((!((aMsg)->ReadSentinel(aIter, 4055642053)))) {
633
0
        mozilla::ipc::SentinelReadError("Error deserializing 'pixelDepth' (uint32_t) member of 'ScreenConfiguration'");
634
0
        return false;
635
0
    }
636
0
    return true;
637
0
}
638
639
} // namespace ipc
640
} // namespace mozilla