该文被密码保护。 阅读全文
posted @ 2012-04-06 21:53 cascais 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-04-06 21:53 cascais 阅读(0) 评论(0) 推荐(0) 编辑
摘要: FontSet1.FontCache.cpp[cpp] view plaincopyFontPlatformData*FontCache::getCachedFontPlatformData(constFontDescription&fontDescription,constAtomicString&familyName,boolcheckingAlternateName){...result=createFontPlatformData(fontDescription,familyName);....}2.FontCacheAndroid.cpp[cpp] view plai 阅读全文
posted @ 2012-04-06 21:52 cascais 阅读(958) 评论(0) 推荐(0) 编辑
摘要: How can adapter display the content of the listview.1.AbsListView.java[cpp] view plaincopyprotectedvoidonMeasure(intwidthMeasureSpec,intheightMeasureSpec){.......finalViewchild=obtainView(0,mIsScrap);.....}//one item, called one time.2.AbsListView.java[java] view plaincopyViewobtainView(intposition, 阅读全文
posted @ 2012-04-06 21:47 cascais 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.const as "const variable" 2.function parameters together with "&" int add(int &a);//can be modified int add(const int &a);//can't be modified //but more efficient than int add(int a); no value copy 3.override function int add(); int add() const; //different func 阅读全文
posted @ 2012-04-06 21:44 cascais 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1. receive data to parsea .for chromium stackWebUrlLoaderClient::didReceiveDataResourceLoader::didReceiveDataMainResourceLoader::didReceiveDataResourceLoader::didReceiveDataMainResourceLoader::addDataDocumentLoader::receivedDataDocumentLoader::commitLoadFrameLoaderClient::committedLoad (FrameLoaderC 阅读全文
posted @ 2012-04-06 21:41 cascais 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1.sensor type TYPE_ACCELEROMETER=1 TYPE_MAGNETIC_FIELD=2 (what's value mean at x and z axis) TYPE_ORIENTATION=3 TYPE_GYROSCOPE=4 TYPE_LIGHT=5(in ) TYPE_PRESSURE=6 TYPE_TEMPERATURE=7 TYPE_PROXIMITY=8 TYPE_GRAVITY=9TYPE_LINEAR_ACCELERATION=10TYPE_ROTATION_VECTOR=11some function of the sensor may b 阅读全文
posted @ 2012-04-06 21:41 cascais 阅读(232) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-04-06 21:38 cascais 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1 scpsudo scp abc root@192.168.1.1:/home/sudo mount -s smbfs -o username=root //192.168.1.1/share /homesudo mount -t ntfs UUID="966A4B803710F028" -w /media/D2ftpcd dir //enter dir of the serverlcd dir //enter the dir of local hostget Path/file //get fileput Path/file //put file 3.shell par 阅读全文
posted @ 2012-04-05 22:04 cascais 阅读(454) 评论(0) 推荐(0) 编辑
摘要: a.webkit to chromium to webkitResourceLoaderAndroid to chromium// for file 1.ResourceLoaderAndroid::start 2.WebUrlLoader::start (convert "ResourceRequest" to "WebRequest") 3.WebUrlLoaderClient::start 4.WebRequest::start 5.URLRequest::start()//chromium 6.URLRequest::StartJob(URLRe 阅读全文
posted @ 2012-04-05 22:03 cascais 阅读(248) 评论(0) 推荐(0) 编辑