Resource Tuner
Loading...
Searching...
No Matches
Message.h
1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
2// SPDX-License-Identifier: BSD-3-Clause-Clear
3
4#ifndef RESOURCE_TUNER_MESSAGE_H
5#define RESOURCE_TUNER_MESSAGE_H
6
7#include <cstdint>
8
12class Message {
13protected:
14 int8_t mReqType;
15 int64_t mHandle;
16 int64_t mDuration;
17 int32_t mProperties;
18 int32_t mClientPID;
19 int32_t mClientTID;
20
21public:
22 Message() : mProperties(0) {}
23
24 int8_t getRequestType() const;
25 int64_t getDuration() const;
26 int32_t getClientPID() const;
27 int32_t getClientTID() const;
28 int64_t getHandle() const;
29 int8_t getPriority() const;
30 int8_t getProcessingModes() const;
31 int32_t getProperties() const;
32
33 void setRequestType(int8_t reqType);
34 void setDuration(int64_t duration);
35 void setClientPID(int32_t clientPID);
36 void setClientTID(int32_t clientTID);
37 void setProperties(int32_t properties);
38 void setPriority(int8_t priority);
39 void addProcessingMode(int8_t processingMode);
40 void setUntuneProcessingOrder(int8_t untuneProcessingOrder);
41 void setHandle(int64_t handle);
42 void setBackgroundProcessing(int8_t backgroundProcessing);
43
44 virtual ~Message() {}
45};
46
47#endif
Base-Type for Request and Signal classes.
Definition Message.h:12
int32_t mProperties
Request Properties, includes Priority and Background Processing Status.
Definition Message.h:17
int32_t mClientTID
Thread ID of the client making the request.
Definition Message.h:19
int64_t mHandle
The unique generated handle for the request.
Definition Message.h:15
int32_t mClientPID
Process ID of the client making the request.
Definition Message.h:18
int64_t mDuration
Duration. -1 means infinite duration.
Definition Message.h:16
int8_t mReqType
Type of the request. Possible values: TUNE, UNTUNE, RETUNE, TUNESIGNAL, FREESIGNAL.
Definition Message.h:14