自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Haibin Yu

android | Linux

  • 博客(9)
  • 收藏
  • 关注

原创 PC端操控android phone

可以PC端操控Android,鼠标模拟touch(特别如果touch panel不太好的时候比较有用),pc键模拟phone key,包括字母数字缺点:回显较慢location:http://code.google.com/p/androidscreencast/  

2010-03-03 10:27:00 592

原创 adb 的使用

记录一下在工作中用到的一些adb的使用。 1. getevent -S     打印所有的事件及对应的输入设备的name 2. adb input keyevent     可以使phone响应按键的事件,在调试phone时,如果touch不好用可以使用这个命令。其中是对应的keycode。  

2010-03-03 10:20:00 934

转载 __builtin开头的宏

1) int __builtin_ffs (unsigned int x)         返回x的最后一位1的是从后向前第几位,比如7368(1110011001000)返回4。  2) int __builtin_clz (unsigned int x)             返回前导的0的个数。  3) int __builtin_ctz (unsign

2010-01-14 15:21:00 1142

转载 Linux中的工作队列(work queue)

工作队列(work queue)是Linux kernel中将工作推后执行的一种机制。这种机制和BH(bottom half)或Tasklets不同之处在于工作队列是把推后的工作交由一个内核线程去执行,因此工作队列的优势就在于它允许重新调度甚至睡眠。 linux 2.6.20以后,工作队列机制和之前的版本有一点不同,在网上找了一点资料,也相应的看了一些code,现在自己总结一下:原文参

2009-11-26 10:00:00 3064

转载 Poll系统调用

Normal 0 false false false MicrosoftInternetExplorer4 <!-- /* Style Definitions */ table.MsoNormalTable {mso-sty

2009-11-25 10:49:00 1832

转载 使用 getopt() 进行命令行处理

getopt() 函数位于 unistd.h 系统头文件中int getopt( int argc, char *const argv[], const char *optstring ); 给定了命令参数的数量 (argc)、指向这些参数的数组 (argv) 和选项字符串 (optstring) 后,

2009-11-25 10:41:00 328

转载 kobjects and sysfs

 转载自:http://lwn.net/Articles/54651/In The Zen of Kobjects, thisseries looked at the kobject abstraction and the various interfaces that gowith it. That article, however, glossed over

2009-11-19 12:04:00 523

转载 Driver porting: Devices and attributes

 转载自:http://lwn.net/Articles/31220/Whendriver authors want to work with the kernel device model, they areprobably wanting to (1) ensure that their devices are represented inthe system hier

2009-11-19 11:24:00 768

转载 Linux设备模型之input子系统详解

一:前言最近在研究android的sensor driver,主要是E-compass,其中用到了Linux input子系统.在网上也看了很多这方面的资料,感觉还是这篇分析的比较细致透彻,因此转载一下以便自己学习,同时和大家分享!(这篇博客主要是以键盘驱动为例的,不过讲解的是Linux Input Subsystem,可以仔细的研究一下!) 键盘驱动将检测到的所有按键都上

2009-11-17 10:44:00 1947

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除