原创 抓取uevent事件

//從system/core/init/devices.c中抽取的#include <stdio.h> #include <string.h> #include <sys/socket.h> #include <linux/netlink

原创 模板類簡單示例

// test1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include

原创 android打開網站

一.你要打開一個網頁你可以自己寫一個webview,在自己的程序中就可以打開. wv = (WebView) findViewById(R.id.webView1); wv.getSettings().setJavaScr

原创 移植ubux、libubox

https://cmake.org/cmake/help/v3.12/manual/cmake-toolchains.7.html   //cmake官方學習網站   1. download git clone https://gith

原创 kernel 中鏈表的簡單應用

直接上代碼: 我這是從list.h中摘出來的,編譯測試通過! #ifndef _LIST_H_ #define _LIST_H_ #define POISON_POINTER_DELTA 0 #define LIST_POISON1

原创 android系統開發(六)-HAL層開發基礎

Android HAL層,即硬件抽象層,是Google響應廠家“希望不公開源碼”的要求推出的新概念 1,源代碼和目標位置 源代碼: /hardware/libhardware目錄,該目錄的目錄結構如下: /hardware/l

原创 [轉載]yuv和yCbCr的差異

[轉載]yuv和yCbCr的差異 今天在看intel ipp tutorial的時候,看到了講色彩模型的部分。以前,一直沒明白yuv和YcbCr之間的差異,想必有些朋友也會有同樣的疑惑。所以,我看完之後就記載下來了。一、和rgb之

原创 java接口簡單例子

/* 接口不是共性的功能,用於擴展功能 裏面全是 public static final public abstract 接口可以被類多實現,接口之間可以多繼承 */ interface Smoking { public a

原创 va_start、va_arg、va_end分析

acenv.h中有: #ifndef va_arg #ifndef _VALIST #define _VALIST typedef char *va_list; #endif /* _VALIST */ /* * Stora

原创 java模板方法設計

模板方法: 在定義功能時,功能的一部分是確定的,但是有另一部分是不確定的,而確定的部分在使用不確定的部分 那麼這時就將不確定的部分暴露出去,由該類的子類完成。 作用: 提高擴展性 提高複用性 abstract class GetTi

原创 shell命令簡單學習

1、本地變量to環境變量: $ VARNAME=value $ export VARNAME $ unset VARNAME 注:shell變量不需

原创 java抽象類簡單示例

abstract class Employee { private String name; private String id; private double pay; Employee(String name, Strin

原创 android 鍵盤快捷指令

ANDROID 鍵盤快捷指令   2011-06-01 22:35:59|  分類: ANDROID|字號 訂閱 基本代碼 *#*#4636#*#* — 顯示手機信息、電池信息、電池記錄、使用統計數據

原创 Android System Services 環境淺析

http://blog.csdn.net/rickleaf/article/details/6369720

原创 android Processes and Threads的注意事項

Every application runs in its own process and all components of the application run in that process, by defaultAny slow