- 博客(15)
- 资源 (14)
- 收藏
- 关注
原创 find string in file (need to be improved)
maybe it will be useful when we want to find a variable in a directory.target=$1traversal(){ cd "$1" for x in * do if [ -f $x ] then #echo $x grep $target
2011-12-29 23:37:01 636
原创 Plugin create
PluginView creation How is the plugin initialized? it's begin with the PluginView's creation1.PluginView.create()PassRefPtr PluginView::create(Frame* parentFrame, const IntSize& size
2011-12-27 22:33:30 1436
原创 CTS command
1.start one packagestart --plan CTS -p android.webkit2.start one planstart --plan CTS -p android.webkit.cts.WebChromeClientTest3.start one casestart --plan CTS -t android.webkit.cts.Cach
2011-12-27 21:36:54 645
原创 Webkit Download files
1. WebView.loadUrl......2.bool MainResourceLoader::loadNow(ResourceRequest& r)3.m_handle = ResourceHandle::create(m_frame->loader()->networkingContext(), r, this, false, true);....network.
2011-12-27 21:29:28 2002
原创 get processid and threadid
We want to get the linux process id and the thread id from java.Actually there will be no directly way, because we don't know the mechanism that dalvik, at least now.but i'v got a method to get i
2011-12-18 22:33:26 2842 1
转载 get linux thread id
first a thread program sample#include #include #include static int i = 0;void *threadfunc(void* pId){ int j = *(int*)pId; while(1){ printf("thread %d,%d\n", *(int*)pId,j++
2011-12-17 18:03:18 9174 1
原创 backtrace
There is a linux-only solution to print the stack frame the the thread.There are some important thingsa. inline functions have no stack framesb.static functions have no stack framesc.the stac
2011-12-16 00:05:37 1119 1
原创 watchthread
useful if we need to watch the status of a thread.import android.os.Message;import android.os.Handler;import android.os.MessageQueue;import android.os.Looper;import java.util.ArrayList;import
2011-12-15 20:56:25 1772 1
原创 Webkit Timer study notes
Timer Class and Timer start1.TimerBaseBase class for timer . has function "start", "stop" and so forth.2.TimerTimer is subclass of TimerBase, it's also Class template." TimerFiredClass" is
2011-12-15 00:03:27 2444
原创 study notes
1. Browser's threadThere are two threads in Browser's application.One is the UI thread, the activity's thread, and the other is the WebCoreThread.No matter how many tabs you open, there is still
2011-12-11 14:57:16 852
原创 little endian and big endian
There three type of address order in computer1. address order for variablesthere maybe many varaibles in the program, and whose address is higher and whose is lower?general thinking it should in
2011-12-04 16:30:58 1049
转载 adapter proxy facade pattern
fromhttp://apps.hi.baidu.com/share/detail/42263668Decorator Adapter Proxy Bridge Facade设计模式 区别 Decorator模式与Adapter模式,Bridge模式的区别 :有关Adapter模式和Builder模式的介绍,请参考下面2篇文章:设计模式之Adapter -
2011-12-03 20:56:13 1304
原创 ways of getting size to machine size
Sometimes we need to get a structure or something's size in machine's word-length.But there is one key point, that's if there are some extra that less than one word-length, it also need one word-len
2011-12-03 14:17:45 647
原创 Android Hander and Message
I have talk about Handler in an article before. http://blog.csdn.net/elfylin/article/details/6085042.Here mainly i want to discuss something between Hander and Message.1. Message has some fr
2011-12-03 00:26:38 3615
原创 C LOG function
Usually we need log to debug our program, usually in log format.Here is a simple but usful log file for C/C++ function.#include #include #include "string.h"int LOGL(char * filename, const cha
2011-12-02 21:42:54 2016
Android apk 反编译工具 dex2jar-0.0.7-SNAPSHOT
2011-07-05
Mobile.Messaging.Technologies.and.Services.SMS.EMS.and.MMS
2010-12-08
Android 线程
2010-10-01
gcc 和makefile 详解
2010-09-29
c 更改文件修改日期
2010-09-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人