8种机械键盘轴体对比
本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?
在 Android O 中NFC 主要有两个进程 :
com.android.nfc 向上层app 提供 NFC 接口,另外负责分发各种 event , [email protected] 是 vendor 的 hidl service 。
先来看一下 [email protected] 这个进程 , service 的code 位置在 vendor/nxp/interfaces , service 定义在 rc 文件中 :
service nqnfc_hal_service /vendor/bin/hw/vendor.nxp.hardware.nfc@1.0-service
class hal
user nfc
group nfc
class 为 hal 的service 会在 on boot 时启动
int main() {
......
status = registerPassthroughServiceImplementation();
status = registerPassthroughServiceImplementation();
......
}
这里注册了两个接口 INfc (AOSP)和 INqNfc(Vendor), 可以找到其 HIDL_FETCH_Ixxx 函数可以看到都是去打开 ID 为 NFC_NCI_HARDWARE_MODULE_ID 这个 moudle ,这两个接口的定义分别是 :
/* path: hardware/interfaces/nfc/1.0/INfc.hal */
interface INfc {
open(INfcClientCallback clientCallback) generates (NfcStatus status);
write(NfcData data) generates (uint32_t retval);
coreInitialized(NfcData data) generates (NfcStatus status);
prediscover() generates (NfcStatus status);
close() generates (NfcStatus status);
controlGranted() generates (NfcStatus status);
powerCycle() generates (NfcStatus status);
};
/* path: vendor/nxp/interfaces/opensource/nfc/1.0/INqNfc.hal */
interface INqNfc {
ioctl(uint64_t ioctlType, NfcData inputData)