摘要: http://developer.android.com/reference/android/app/ExpandableListActivity.html# public class ExpandableListActivityextends Activityimplements View.OnCreateContextMenuListener ExpandableListView.OnChi... 阅读全文
posted @ 2013-11-10 19:07 sky-zhang 阅读(519) 评论(0) 推荐(0) 编辑
摘要: http://wiki.rootzwiki.com/Google_Apps http://productforums.google.com/forum/#!forum/apps http://www.google.com/enterprise/apps/business/ http://www.hongkiat.com/blog/google-app-mail-for-free/ http://... 阅读全文
posted @ 2013-11-06 10:38 sky-zhang 阅读(3597) 评论(0) 推荐(0) 编辑
摘要: http://source.android.com/devices/tech/power.html Battery usage information is derived from battery usage statistics and power profile values. Battery Usage Statistics Battery usage statistics are... 阅读全文
posted @ 2013-11-04 23:01 sky-zhang 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: http://source.android.com/devices/tech/storage/index.html Android supports devices with external storage, which is defined to be a case-insensitive filesystem with immutable POSIX permission classes ... 阅读全文
posted @ 2013-11-02 14:31 sky-zhang 阅读(4107) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std; const int apple_size = 10;const int banana_size = 20; //********************************fruit interface class fruit{public: virtual void name()=0; virtual i... 阅读全文
posted @ 2012-08-01 19:54 sky-zhang 阅读(452) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> struct st_test{ int a; int b;}; enum{ one, two,}; struct st_test tt[2]={ [two] = { .b=1, .a=0, }, [one] = {2,3,},}; int main(){ printf("%d\n",tt[two].b); return 0;} 如上图红色部... 阅读全文
posted @ 2012-08-01 19:22 sky-zhang 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1、热插拔事件的产生 在编写的总线驱动程序的.uevet处理函数中通过环境变量上报给udevd2、udev信息查看 udevinfo –a –p /sys/devices/XXX3、udev规则的添加 如果想让事件触发自定义的行为,需在/etc/udev/rules.d目录下添加新的规则 例如添加文... 阅读全文
posted @ 2012-07-09 14:33 sky-zhang 阅读(712) 评论(0) 推荐(0) 编辑
摘要: PM notifier机制: 应用场景: There are some operations that subsystems or drivers may want to carry out before hibernation/suspend or after restore/resume, but they require the system to be fully functional,... 阅读全文
posted @ 2012-06-05 15:47 sky-zhang 阅读(5321) 评论(1) 推荐(0) 编辑
摘要: 1、需要的记录的信息 载体是java侧是类MotionEvent,cpp侧是gPointerCoordsClassInfo 记录的信息包括: public float x;public float y;public float pressure;public float size;public float touchMajor;public float touchMinor;public flo... 阅读全文
posted @ 2012-06-01 17:18 sky-zhang 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 动态电源管理(DPM)是很一个广泛的概念,很多系统实际上都采用了动态电源管理(DPM)方式。Linux很早就采用了动态电源管理,在driver目录下有个cpufreq的驱动程序,它就是用来动态调整CPU频率以降低能源消耗的。[1] 注:引文中说的不全对,cpufreq在平板中有采用,并不是不适用与嵌入式系统。 #include <linux/kernel.h> #include <linux/m... 阅读全文
posted @ 2012-06-01 17:13 sky-zhang 阅读(3699) 评论(0) 推荐(0) 编辑