• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef android_hardware_automotive_vehicle_V2_0_impl_FakeObd2Frame_H_
17 #define android_hardware_automotive_vehicle_V2_0_impl_FakeObd2Frame_H_
18 
19 #include <android/hardware/automotive/vehicle/2.0/types.h>
20 #include <vhal_v2_0/VehiclePropertyStore.h>
21 
22 namespace android {
23 namespace hardware {
24 namespace automotive {
25 namespace vehicle {
26 namespace V2_0 {
27 
28 namespace impl {
29 
30 void initObd2LiveFrame(VehiclePropertyStore* propStore, const VehiclePropConfig& propConfig);
31 void initObd2FreezeFrame(VehiclePropertyStore* propStore, const VehiclePropConfig& propConfig);
32 StatusCode fillObd2FreezeFrame(VehiclePropertyStore* propStore,
33                                const VehiclePropValue& requestedPropValue,
34                                VehiclePropValue* outValue);
35 StatusCode fillObd2DtcInfo(VehiclePropertyStore* propStore, VehiclePropValue* outValue);
36 StatusCode clearObd2FreezeFrames(VehiclePropertyStore* propStore,
37                                  const VehiclePropValue& propValue);
38 bool isDiagnosticProperty(const VehiclePropConfig& propConfig);
39 
40 }  // namespace impl
41 
42 }  // namespace V2_0
43 }  // namespace vehicle
44 }  // namespace automotive
45 }  // namespace hardware
46 }  // namespace android
47 
48 #endif  // android_hardware_automotive_vehicle_V2_0_impl_FakeObd2Frame_H_
49