Home
last modified time | relevance | path

Searched refs:TelemetryCallback (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/cpp/telemetry/cartelemetryd/src/
DTelemetryServer.h45 struct TelemetryCallback { struct
49 TelemetryCallback() {} in TelemetryCallback() argument
50 explicit TelemetryCallback(const std::shared_ptr<ICarTelemetryCallback>& cb) : callback(cb) {} in TelemetryCallback() function
51 explicit TelemetryCallback(const CallbackConfig& cfg, in TelemetryCallback() function
55 TelemetryCallback(const TelemetryCallback& other) = default;
56 TelemetryCallback& operator=(const TelemetryCallback& other) = default; argument
58 TelemetryCallback(TelemetryCallback&& other) = default;
59 TelemetryCallback& operator=(TelemetryCallback&& other) = default; argument
62 bool operator==(const TelemetryCallback& other) const {
68 size_t operator()(const TelemetryCallback& tc) const { in operator() argument
[all …]
DTelemetryServer.cpp87 std::unordered_set<TelemetryCallback, TelemetryCallback::HashFunction> invokedCallbacks; in addCarDataIds()
96 for (const TelemetryCallback& tc : callbacksForId) { in addCarDataIds()
118 std::unordered_set<TelemetryCallback, TelemetryCallback::HashFunction> invokedCallbacks; in removeCarDataIds()
127 for (const TelemetryCallback& tc : callbacksForId) { in removeCarDataIds()
158 TelemetryCallback cb(config, callback); in addCallback()
172 std::unordered_set<TelemetryCallback, TelemetryCallback::HashFunction>{cb}; in addCallback()
198 auto it = mCallbacks.find(TelemetryCallback(callback)); in removeCallback()
205 const TelemetryCallback& tc = *it; in removeCallback()