This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.androidpro; | |
import java.util.ArrayList; | |
import java.util.List; | |
import android.os.Bundle; | |
import android.annotation.SuppressLint; | |
import android.app.Activity; | |
import android.util.Log; | |
import android.view.Menu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PrintJob { | |
/** total job pages */ | |
static long mTotalPageNum; | |
/** finally Done job pages */ | |
static long mDonePages; | |
/** Current page number */ | |
static long mCurrentPageNum; | |
/** job start time */ | |
static long mStartTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <asm/types.h> | |
//该头文件需要放在netlink.h前面防止编译出现__kernel_sa_family未定义 | |
#include <sys/socket.h> | |
#include <linux/netlink.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
/** | |
* @author [email protected] | |
* @data 2014-12-17 | |
* @param dst name num | |
* @return boolean | |
* such as:[{"name1":1, "name2":2}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <dirent.h> | |
#include <signal.h> | |
#include <time.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
static void do_coldboot(DIR *d, int lvl) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c | |
index 9338d11..96a1b01 100644 | |
--- a/sound/soc/samsung/dma.c | |
+++ b/sound/soc/samsung/dma.c | |
@@ -34,7 +34,9 @@ static const struct snd_pcm_hardware dma_hardware = { | |
.info = SNDRV_PCM_INFO_INTERLEAVED | | |
SNDRV_PCM_INFO_BLOCK_TRANSFER | | |
SNDRV_PCM_INFO_MMAP | | |
- SNDRV_PCM_INFO_MMAP_VALID, | |
+ SNDRV_PCM_INFO_MMAP_VALID| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# 1.判断busybox是否存在 如果存在获致其路径 | |
echo "Determining If 'busybox' Exist..." | |
BUSYBOX_PATH=`busybox find / -name busybox -type f` | |
if [ $? != 0 ] ; then | |
echo "Sorry, 'busybox' NOT exist" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7ab79f39748021f34c886c8d8ed3834c26319930 Mon Sep 17 00:00:00 2001 | |
From: kangear <[email protected]> | |
Date: Tue, 3 Sep 2013 15:02:32 +0800 | |
Subject: Update installation.md | |
--- | |
doc/install/installation.md | 8 ++++++-- | |
1 file changed, 6 insertions(+), 2 deletions(-) | |
diff --git a/doc/install/installation.md b/doc/install/installation.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.wizhong.os.printimage.service; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.net.MalformedURLException; | |
import android.util.Log; | |
import com.itextpdf.text.BadElementException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <sys/wait.h> | |
#include <malloc.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#ifdef __ANDROID__ |