摘要: 1. interrupt flowHardware->Interrupt Controller->Processor2.Interrupt Handlera. DefinitionThe function that the kernel runs, in response to a specific interrupt.b.Difference between other kernel function.Kernel invoke them.the run in a special context.c.Interrupt handle's jobAcknowledge th 阅读全文
posted @ 2012-04-05 22:02 cascais 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1.awk common format and exampleawk '{cmd}' inputfileor awk 'condition {cmd}'or awk '{if(condition) cmd}for example, b.txt[plain] view plaincopyabcdef>>awk '{printf $1}' b.txtad>>awk '$1=="a" {print $2,$3}' b.txtb c>>awk '{if($1==&qu 阅读全文
posted @ 2012-04-05 22:01 cascais 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Set, Data structure which does not allow duplicate elements. Map.Entry, is a key/value mapping contained in a Map. Map, is a data structure consisting of a set of keys and values in which each key is mapped to a single value. Collection, is the root of the collection hierarchy. It defines operations 阅读全文
posted @ 2012-04-05 22:00 cascais 阅读(167) 评论(0) 推荐(0) 编辑
摘要: steps 1.FrameLoader.cpp didFirstLayout 3.FrameLoaderClientAndroid.cpp dispatchDidFirstLayout 3.WebViewCore.cpp didFirstLayout(); 4.WebViewCore.java// will also callsetupViewport() didFirstLayout(); 5.BrowserFrame.java didFirstLayout(); 6.WebViewCore.java contentDraw(); 7.WebViewCore.java webkitDrawL 阅读全文
posted @ 2012-04-05 22:00 cascais 阅读(269) 评论(0) 推荐(0) 编辑
摘要: [java] view plaincopyprivateBitmapcreateScreenshot(intwidth,intheight){//Werendertoabitmap2xthedesiredsizesothatwecanthen//re-scaleitwithfilteringsincecanvas.scaledoesn'tfilter//Thishelpsreducealiasingatthecostofbeingslightlyblurryfinalintfilter_scale=2;Picturethumbnail=capturePicture();if(thumb 阅读全文
posted @ 2012-04-05 21:59 cascais 阅读(675) 评论(0) 推荐(0) 编辑
摘要: for code copy in the futuresimple server and clientmay be useful for copy in the futureserver:[cpp] view plaincopy#include<errno.h>#include"sys/types.h"#include"sys/socket.h"#include"sys/stat.h"#include"unistd.h"#include<netinet/in.h>//#include< 阅读全文
posted @ 2012-04-05 21:52 cascais 阅读(370) 评论(0) 推荐(0) 编辑
摘要: Classes:from parent to child1.junitpackage junit.framework;public interface Test { public abstract int countTestCases(); public abstract void run(TestResult result);}Assertpackage junit.framework;public class Assert {...assertTrue()assertFalse()fail()assertEquals()assertNotNull()assertNull()...}fail 阅读全文
posted @ 2012-04-03 22:01 cascais 阅读(463) 评论(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-02 20:26 cascais 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Plugin files 1. Npapi.hdeclaration of NPP_XXX and NPN_XXX, also NPP and NPStreamin external/webkit/webcore/bridge/Npapi.h2.Npfunctions.hdeclaration function pointer of NPP_XXX and NPN_XXX, like NPP_XXXProcPtr and NPN_XXXProcPtr,also define structor holding these pointersin external/webkit/webcore/pl 阅读全文
posted @ 2012-04-02 20:22 cascais 阅读(147) 评论(0) 推荐(0) 编辑
摘要: PluginView creationHow is the plugin initialized?it's begin with the PluginView's creation1.PluginView.create()[cpp] view plaincopyPassRefPtr<PluginView>PluginView::create(Frame*parentFrame,constIntSize&size,Element*element,constKURL&url,constVector<String>&paramNames 阅读全文
posted @ 2012-04-02 20:16 cascais 阅读(380) 评论(0) 推荐(0) 编辑