摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
[java] view plaincopyprivateBitmapcreateScreenshot(intwidth,intheight){//Werendertoabitmap2xthedesiredsizesothatwecanthen//re-scaleitwithfilteringsincecanvas.scaledoesn'tfilter//Thishelpsreducealiasingatthecostofbeingslightlyblurryfinalintfilter_scale=2;Picturethumbnail=capturePicture();if(thumb 阅读全文
摘要:
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< 阅读全文