The HAL of Android Automotive OS
1. Audio HAL
1.1 Android audio HAL
1.2 Automotive Audio HAL
???to be understood
- Automotive Audio HAL relies on the standard Android audio HAL.
IDevice
(hardware/interfaces/audio/2.0/IDevice.hal
)IStream
(hardware/interfaces/audio/2.0/IStream.hal
)
- 2.1 configuring Audio Devices including following key components:
- Specify devicePorts
- Specify Module Name
- mixPort
- routes
referring to
device/generic/car/emulator/audio/overlay/packages/services/Car/service/res/values/config.xml
.
- 2.2
2. HIDL Overview
HAL interface definition language, HIDL (pronounced "hide-l")2.1、Pass through mode
2.1.1 Binderizing passthrough HALs
2.3 HIDL grammar
2.3.1
代码如下(示例):
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
2.3.2
代码如下(示例):
data = pd.read_csv(
'https://labfile.oss.aliyuncs.com/courses/1283/adult.data.csv')
print(data.head())
该处使用的url网络请求的数据。