code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
//
// ParserTestMacAppDelegate.h
// ParserTestMac
//
// Created by Robbie Hanson on 11/22/09.
// Copyright 2009 Deusty Designs, LLC.. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface ParserTestMacAppDelegate : NSObject <NSApplicationDelegate>
{
NSWindow *window;
}
@property (assign) IBOutlet NSWind... | 04081337-xmpp | Xcode/Testing/ParserTestMac/ParserTestMacAppDelegate.h | Objective-C | bsd | 338 |
//
// main.m
// ParserTestMac
//
// Created by Robbie Hanson on 11/22/09.
// Copyright 2009 Deusty Designs, LLC.. All rights reserved.
//
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}
| 04081337-xmpp | Xcode/Testing/ParserTestMac/main.m | Objective-C | bsd | 264 |
#import <Cocoa/Cocoa.h>
@class XMPPIDTracker;
@interface TestIDTrackerAppDelegate : NSObject <NSApplicationDelegate>
{
XMPPIDTracker *idTracker;
NSString *fetch1;
NSString *fetch2;
NSString *fetch3;
NSString *fetch4;
NSString *fetch5;
NSString *fetch6;
NSString *fetch7;
NSString *fetch8;
NSWindow *wind... | 04081337-xmpp | Xcode/Testing/TestIDTracker/TestIDTracker/TestIDTrackerAppDelegate.h | Objective-C | bsd | 379 |
{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
{\colortbl;\red255\green255\blue255;}
\paperw9840\paperh8400
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
\f0\b\fs24 \cf0 Engineering:
\b0 \
Some people\
\
\b Human Interface Design:
\b0 \
Some other people\
\
\b Tes... | 04081337-xmpp | Xcode/Testing/TestIDTracker/TestIDTracker/en.lproj/Credits.rtf | Rich Text Format | bsd | 436 |
//
// main.m
// TestIDTracker
//
// Created by Robbie Hanson on 8/1/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **)argv);
}
| 04081337-xmpp | Xcode/Testing/TestIDTracker/TestIDTracker/main.m | Objective-C | bsd | 254 |
#import "TestIDTrackerAppDelegate.h"
#import "XMPPIDTracker.h"
#import "DDLog.h"
#import "DDTTYLogger.h"
// Log levels: off, error, warn, info, verbose
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
@interface ExtendedTrackingInfo : XMPPBasicTrackingInfo
{
NSDate *timeSent;
}
@property (nonatomic, readonly) NSDat... | 04081337-xmpp | Xcode/Testing/TestIDTracker/TestIDTracker/TestIDTrackerAppDelegate.m | Objective-C | bsd | 5,323 |
//
// main.m
// ParserTestPhone
//
// Created by Robbie Hanson on 11/22/09.
// Copyright Deusty Designs, LLC. 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv... | 04081337-xmpp | Xcode/Testing/ParserTestPhone/main.m | Objective-C | bsd | 374 |
#import <UIKit/UIKit.h>
@interface ParserTestPhoneAppDelegate : NSObject <UIApplicationDelegate>
{
UIWindow *window;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@end
| 04081337-xmpp | Xcode/Testing/ParserTestPhone/Classes/ParserTestPhoneAppDelegate.h | Objective-C | bsd | 186 |
#import "ParserTestPhoneAppDelegate.h"
#import "XMPPParser.h"
#import "DDXML.h"
#define PRINT_ELEMENTS NO
@interface ParserTestPhoneAppDelegate (PrivateAPI)
- (void)nonParserTest;
- (void)parserTest;
@end
//////////////////////////////////////////////////////////////////////////////////////////////////////////////... | 04081337-xmpp | Xcode/Testing/ParserTestPhone/Classes/ParserTestPhoneAppDelegate.m | Objective-C | bsd | 6,206 |
//
// TestElementReceiptAppDelegate.h
// TestElementReceipt
//
// Created by Robbie Hanson on 8/5/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface TestElementReceiptAppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *window;
}
@property (assign) IBOutlet... | 04081337-xmpp | Xcode/Testing/TestElementReceipt/TestElementReceipt/TestElementReceiptAppDelegate.h | Objective-C | bsd | 345 |
{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
{\colortbl;\red255\green255\blue255;}
\paperw9840\paperh8400
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
\f0\b\fs24 \cf0 Engineering:
\b0 \
Some people\
\
\b Human Interface Design:
\b0 \
Some other people\
\
\b Tes... | 04081337-xmpp | Xcode/Testing/TestElementReceipt/TestElementReceipt/en.lproj/Credits.rtf | Rich Text Format | bsd | 436 |
#import "TestElementReceiptAppDelegate.h"
#import "XMPPStream.h"
@interface XMPPElementReceipt (PrivateAPI) // Stolen from XMPPStream.m
- (void)signalSuccess;
- (void)signalFailure;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma ... | 04081337-xmpp | Xcode/Testing/TestElementReceipt/TestElementReceipt/TestElementReceiptAppDelegate.m | Objective-C | bsd | 3,347 |
//
// main.m
// TestElementReceipt
//
// Created by Robbie Hanson on 8/5/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **)argv);
}
| 04081337-xmpp | Xcode/Testing/TestElementReceipt/TestElementReceipt/main.m | Objective-C | bsd | 259 |
#import "XMPPStream.h"
#import "XMPPInternal.h"
#import "XMPPParser.h"
#import "XMPPJID.h"
#import "XMPPIQ.h"
#import "XMPPMessage.h"
#import "XMPPPresence.h"
#import "XMPPModule.h"
#import "XMPPLogging.h"
#import "NSData+XMPP.h"
#import "NSXMLElement+XMPP.h"
#import "XMPPSRVResolver.h"
#import "DDList.h"
#import <lib... | 04081337-xmpp | Core/XMPPStream.m | Objective-C | bsd | 117,106 |
//
// The following is for XMPPStream,
// and any classes that extend XMPPStream such as XMPPFacebookStream.
//
// Define the various timeouts (in seconds) for retreiving various parts of the XML stream
#define TIMEOUT_XMPP_WRITE -1
#define TIMEOUT_XMPP_READ_START 10
#define TIMEOUT_XMPP_READ_STREAM -1
... | 04081337-xmpp | Core/XMPPInternal.h | C | bsd | 1,654 |
#import <Foundation/Foundation.h>
#import "GCDMulticastDelegate.h"
@class XMPPStream;
/**
* XMPPModule is the base class that all extensions/modules inherit.
* They automatically get:
*
* - A dispatch queue.
* - A multicast delegate that automatically invokes added delegates.
*
* The module also automaticall... | 04081337-xmpp | Core/XMPPModule.h | Objective-C | bsd | 996 |
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPJID;
/**
* The XMPPElement provides the base class for XMPPIQ, XMPPMessage & XMPPPresence.
*
* This class extends NSXMLElement.
* The NSXML classes (NSXMLElement & NSXMLNode) provide a full-featured library for working ... | 04081337-xmpp | Core/XMPPElement.h | Objective-C | bsd | 607 |
#import <Foundation/Foundation.h>
#import "XMPPElement.h"
/**
* The XMPPPresence class represents a <presence> element.
* It extends XMPPElement, which in turn extends NSXMLElement.
* All <presence> elements that go in and out of the
* xmpp stream will automatically be converted to XMPPPresence objects.
*
* Thi... | 04081337-xmpp | Core/XMPPPresence.h | Objective-C | bsd | 1,098 |
#import "XMPPJID.h"
#import "LibIDN.h"
@implementation XMPPJID
+ (BOOL)validateDomain:(NSString *)domain
{
// Domain is the only required part of a JID
if ((domain == nil) || ([domain length] == 0))
return NO;
// If there's an @ symbol in the domain it probably means user put @ in their username
NSRange inval... | 04081337-xmpp | Core/XMPPJID.m | Objective-C | bsd | 9,165 |
#import "XMPPPresence.h"
#import "NSXMLElement+XMPP.h"
#import <objc/runtime.h>
@implementation XMPPPresence
+ (void)initialize
{
// We use the object_setClass method below to dynamically change the class from a standard NSXMLElement.
// The size of the two classes is expected to be the same.
//
// If a develo... | 04081337-xmpp | Core/XMPPPresence.m | Objective-C | bsd | 2,696 |
#import <Foundation/Foundation.h>
#import <libxml2/libxml/parser.h>
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@interface XMPPParser : NSObject
{
id delegate;
BOOL hasReportedRoot;
unsigned depth;
xmlParserCtxt *parserCtxt;
}
- (id)initWithDelegate:(id)delegate;
- (id)delegate;
- (void)setDelegate:(id... | 04081337-xmpp | Core/XMPPParser.h | Objective-C | bsd | 1,074 |
#import <Foundation/Foundation.h>
#import "XMPPElement.h"
/**
* The XMPPMessage class represents a <message> element.
* It extends XMPPElement, which in turn extends NSXMLElement.
* All <message> elements that go in and out of the
* xmpp stream will automatically be converted to XMPPMessage objects.
*
* This cl... | 04081337-xmpp | Core/XMPPMessage.h | Objective-C | bsd | 1,019 |
#import "XMPPModule.h"
#import "XMPPStream.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#else
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#endif
@implementation XMPPModule
/**
* Standard init method.
**/
- (id)... | 04081337-xmpp | Core/XMPPModule.m | Objective-C | bsd | 6,019 |
#import "XMPPMessage.h"
#import "XMPPJID.h"
#import "NSXMLElement+XMPP.h"
#import <objc/runtime.h>
@implementation XMPPMessage
+ (void)initialize
{
// We use the object_setClass method below to dynamically change the class from a standard NSXMLElement.
// The size of the two classes is expected to be the same.
/... | 04081337-xmpp | Core/XMPPMessage.m | Objective-C | bsd | 3,709 |
#import "XMPPJID.h"
#import "XMPPStream.h"
#import "XMPPElement.h"
#import "XMPPIQ.h"
#import "XMPPMessage.h"
#import "XMPPPresence.h"
#import "XMPPModule.h"
#import "NSXMLElement+XMPP.h"
| 04081337-xmpp | Core/XMPP.h | Objective-C | bsd | 189 |
#import <Foundation/Foundation.h>
@interface XMPPJID : NSObject <NSCoding, NSCopying>
{
NSString *user;
NSString *domain;
NSString *resource;
}
+ (XMPPJID *)jidWithString:(NSString *)jidStr;
+ (XMPPJID *)jidWithString:(NSString *)jidStr resource:(NSString *)resource;
+ (XMPPJID *)jidWithUser:(NSString *)user doma... | 04081337-xmpp | Core/XMPPJID.h | Objective-C | bsd | 835 |
#import "XMPPElement.h"
#import "XMPPJID.h"
#import "NSXMLElement+XMPP.h"
@implementation XMPPElement
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Encoding, Decoding
//////////////////////////////////////////////////////////////... | 04081337-xmpp | Core/XMPPElement.m | Objective-C | bsd | 1,814 |
#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
#import "GCDMulticastDelegate.h"
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPSRVResolver;
@class DDList;
@class XMPPParser;
@class XMPPJID;
@class XMPPIQ;
@class XMPPMessage;
@class XMPPPresence;
@class XMPPModule;
@class XMPPElementReceipt;
@... | 04081337-xmpp | Core/XMPPStream.h | Objective-C | bsd | 34,629 |
/**
* In order to provide fast and flexible logging, this project uses Cocoa Lumberjack.
*
* The Google Code page has a wealth of documentation if you have any questions.
* http://code.google.com/p/cocoalumberjack/
*
* Here's what you need to know concerning how logging is setup for XMPPFramework:
*
* There ... | 04081337-xmpp | Core/XMPPLogging.h | Objective-C | bsd | 8,224 |
#import <Foundation/Foundation.h>
#import "XMPPElement.h"
/**
* The XMPPIQ class represents an <iq> element.
* It extends XMPPElement, which in turn extends NSXMLElement.
* All <iq> elements that go in and out of the
* xmpp stream will automatically be converted to XMPPIQ objects.
*
* This class exists to provi... | 04081337-xmpp | Core/XMPPIQ.h | Objective-C | bsd | 2,695 |
#import "XMPPParser.h"
#import <libxml/parserInternals.h>
#if TARGET_OS_IPHONE
#import "DDXMLPrivate.h"
#endif
// When the xmpp parser invokes a delegate method, such as xmppParser:didReadElement:,
// it exposes itself to the possibility of exceptions mid-parse.
// This aborts the current run loop,
// and thus caus... | 04081337-xmpp | Core/XMPPParser.m | Objective-C | bsd | 21,826 |
#import "XMPPIQ.h"
#import "XMPPJID.h"
#import "NSXMLElement+XMPP.h"
#import <objc/runtime.h>
@implementation XMPPIQ
+ (void)initialize
{
// We use the object_setClass method below to dynamically change the class from a standard NSXMLElement.
// The size of the two classes is expected to be the same.
//
// If ... | 04081337-xmpp | Core/XMPPIQ.m | Objective-C | bsd | 3,713 |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.Arrays;
import java.util.Comparator;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
i... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/ChooseFileActivity.java | Java | gpl3 | 4,483 |
/*
* Copyright 2010 Ludovic Drolez
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/Bookmark.java | Java | gpl3 | 4,596 |
package cx.hell.android.pdfview;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
/**
* Displays "About..." info.
*/
public class AboutPDFViewActivity extends Activity {
... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/AboutPDFViewActivity.java | Java | gpl3 | 1,012 |
package cx.hell.android.pdfview;
import java.io.IOException;
import java.io.InputStream;
import android.util.Log;
import android.widget.ProgressBar;
public class StreamUtils {
public static byte[] readBytesFully(InputStream i) throws IOException {
return StreamUtils.readBytesFully(i, 0, null);
}
... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/StreamUtils.java | Java | gpl3 | 1,470 |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileDescriptor;
import java.util.List;
import cx.hell.android.lib.pagesview.FindResult;
/**
* Native PDF - interface to native code.
*/
public class PDF {
static {
System.loadLibrary("pdfview2");
}
/**
* Simple s... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/PDF.java | Java | gpl3 | 3,160 |
package cx.hell.android.pdfview;
/**
* High level user-visible application exception.
*/
public class ApplicationException extends Exception {
private static final long serialVersionUID = 3168318522532680977L;
public ApplicationException(String message) {
super(message);
}
}
| 0605tonton-test | pdfview/src/cx/hell/android/pdfview/ApplicationException.java | Java | gpl3 | 299 |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ContentResolver;
import android.content.DialogInterface;
impo... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/OpenFileActivity.java | Java | gpl3 | 21,073 |
package cx.hell.android.pdfview;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import android.graphics.Bitmap;
import android.util.Log;
import cx.hell.android.lib.pag... | 0605tonton-test | pdfview/src/cx/hell/android/pdfview/PDFPagesProvider.java | Java | gpl3 | 12,569 |
package cx.hell.android.lib.pagesview;
/**
* Tile definition.
* Can be used as a key in maps (hashable, comparable).
*/
public class Tile {
/**
* X position of tile in pixels.
*/
private int x;
/**
* Y position of tile in pixels.
*/
private int y;
private int zoom;
private in... | 0605tonton-test | pdfview/src/cx/hell/android/lib/pagesview/Tile.java | Java | gpl3 | 1,338 |
package cx.hell.android.lib.pagesview;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import android.graphics.Rect;
import android.util.Log;
/**
* Find result.
*/
public class FindResult {
/**
* Logging tag.
*/
public static final String TAG = "cx.hell.andr... | 0605tonton-test | pdfview/src/cx/hell/android/lib/pagesview/FindResult.java | Java | gpl3 | 1,538 |
package cx.hell.android.lib.pagesview;
public class RenderingException extends Exception {
private static final long serialVersionUID = 1010978161527539002L;
public RenderingException(String message) {
super(message);
}
}
| 0605tonton-test | pdfview/src/cx/hell/android/lib/pagesview/RenderingException.java | Java | gpl3 | 239 |
package cx.hell.android.lib.pagesview;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.graphics.Canvas;
i... | 0605tonton-test | pdfview/src/cx/hell/android/lib/pagesview/PagesView.java | Java | gpl3 | 21,553 |
package cx.hell.android.lib.pagesview;
import java.util.Collection;
import android.graphics.Bitmap;
/**
* Provide content of pages rendered by PagesView.
*/
public abstract class PagesProvider {
/**
* Get page image tile for drawing.
*/
public abstract Bitmap getPageBitmap(Tile tile);
/... | 0605tonton-test | pdfview/src/cx/hell/android/lib/pagesview/PagesProvider.java | Java | gpl3 | 1,268 |
package cx.hell.android.lib.pagesview;
import java.util.Map;
import android.graphics.Bitmap;
/**
* Allow renderer to notify view that new bitmaps are ready.
* Implemented by PagesView.
*/
public interface OnImageRenderedListener {
void onImagesRendered(Map<Tile,Bitmap> renderedImages);
void onRender... | 0605tonton-test | pdfview/src/cx/hell/android/lib/pagesview/OnImageRenderedListener.java | Java | gpl3 | 365 |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Android PDF Viewer</title>
<style type="text/css">
body {
font-family: sans-serif;
font-size: 11pt;
}
</style>
</head>
<body>
<h1>About APV</h1>
<h2>Ove... | 0605tonton-test | pdfview/res/raw/about.html | HTML | gpl3 | 3,552 |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Android PDF Viewer</title>
<style type="text/css">
body {
font-family: sans-serif;
font-size: 11pt;
}
</style>
... | 0605tonton-test | pdfview/res/raw-pl/about.html | HTML | gpl3 | 4,121 |
# adjust paths below and then run
# . ./android-gcc-setup.sh
# to setup build environment
export NDK=/cygdrive/d/Code/android/android-ndk-r3
HOST_TYPE=windows
ANDROID_VERSION=3
LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib
export CFLAGS="-march=armv5te -mtune=xscale"
export CC=$NDK/build/preb... | 0605tonton-test | pdfview/scripts/android-gcc-setup.sh | Shell | gpl3 | 531 |
#!/bin/sh
SCRIPTDIR=`dirname $0`
. $SCRIPTDIR/android-gcc-setup.sh
cd $SCRIPTDIR/..
if [ ! -d "deps" ]
then
mkdir -p deps
fi
cd deps
DEPSDIR=$PWD
JNIDIR=$DEPSDIR/../jni
if [ ! -d "$JNIDIR/pdfview2/lib" ]
then
mkdir -p $JNIDIR/pdfview2/lib
fi
if [ ! -d "$JNIDIR/pdfview2/include" ]
then
mkdir -p $JNIDIR/pd... | 0605tonton-test | pdfview/scripts/build-native.sh | Shell | gpl3 | 2,006 |
/*
* This is a modified version of pdf_debug.c file which is part of MuPDF
* by Artifex Software, Inc.
*/
#include "fitz.h"
#include "mupdf.h"
static void (*pdf_loghandler)(const char *s) = NULL;
static int reinit_pdflog = 0;
/*
* Enable logging by setting environment variable MULOG to:
* (a)ll or a combin... | 0605tonton-test | pdfview/jni/mupdf/mupdf/apv_pdf_debug.c | C | gpl3 | 2,748 |
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../fitz $(LOCAL_PATH)/../../pdfview2/include
LOCAL_MODULE := mupdf
LOCAL_CFLAGS := -DNOCJK
LOCAL_SRC_FILES := \
pdf_crypt.c \
apv_pdf_debug.c \
pdf_lex.c \
pdf_nametree.c \
pdf_parse.c \
pdf_repair.c \
pdf_stream.c \
pdf_xr... | 0605tonton-test | pdfview/jni/mupdf/mupdf/Android.mk | Makefile | gpl3 | 961 |
font_files: font_misc.c font_mono.c font_serif.c font_sans.c font_cjk.c cmap_tounicode.c cmap_cns.c cmap_gb.c cmap_japan.c cmap_korea.c
clean:
@rm -v font_misc.c font_mono.c font_serif.c font_sans.c font_cjk.c cmap_tounicode.c cmap_cns.c cmap_gb.c cmap_japan.c cmap_korea.c \
fontdump cmapdump
cmapdump: cmapdump... | 0605tonton-test | pdfview/jni/mupdf/mupdf/APV.mk | Makefile | gpl3 | 4,661 |
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../mupdf $(LOCAL_PATH)/../fitz
LOCAL_MODULE := fitzdraw
LOCAL_SRC_FILES := \
archport.c \
archarm.c \
blendmodes.c \
glyphcache.c \
imagedraw.c \
imagescale.c \
imageunpack.c \
mesh... | 0605tonton-test | pdfview/jni/mupdf/draw/Android.mk | Makefile | gpl3 | 465 |
#include "fitz.h"
#include <libgen.h>
#include "android/log.h"
char fz_errorbuf[150*20] = {0};
static int fz_errorlen = 0;
static int fz_errorclear = 1;
static void
fz_printerror(int type, const char *file, int line, const char *func, char *msg)
{
char buf[150];
int len;
char *s;
s = strrchr(file, '\\');
if (s... | 0605tonton-test | pdfview/jni/mupdf/fitz/apv_base_error.c | C | gpl3 | 1,899 |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../mupdf $(LOCAL_PATH)/../../jpeg $(LOCAL_PATH)/../../pdfview2/include \
$(LOCAL_PATH)/../../jbig2dec $(LOCAL_PATH)/../../openjpeg
LOCAL_MODULE := fitz
LOCAL_SRC_FILES := \
apv_base_error.c \
base_hash.c \
base_memory.c \
base_s... | 0605tonton-test | pdfview/jni/mupdf/fitz/Android.mk | Makefile | gpl3 | 877 |
include $(call all-subdir-makefiles)
| 0605tonton-test | pdfview/jni/mupdf/Android.mk | Makefile | gpl3 | 37 |
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := openjpeg
LOCAL_SRC_FILES := \
bio.c \
cio.c \
dwt.c \
event.c \
image.c \
j2k.c \
j2k_lib.c \
jp2.c \
jpt.c \
mct.c \
mqc.c \
openjpeg.c \
pi.c \
raw.c \
t1.c \
t1_generate_luts.c \
t2.c \
tcd.c \
tgt.c
include $(BUILD_STATIC_LI... | 0605tonton-test | pdfview/jni/openjpeg/Android.mk | Makefile | gpl3 | 362 |
APP_MODULES := mupdf fitz fitzdraw jpeg pdfview2 jbig2dec openjpeg | 0605tonton-test | pdfview/jni/Application.mk | Makefile | gpl3 | 66 |
#ifdef PDFVIEW2_H__
#error PDFVIEW2_H__ can be included only once
#endif
#define PDFVIEW2_H__
#include "fitz.h"
#include "mupdf.h"
/**
* Holds pdf info.
*/
typedef struct {
pdf_xref *xref;
pdf_outline *outline;
int fileno; /* used only when opening by file descriptor */
pdf_page **pages; /* lazy-load... | 0605tonton-test | pdfview/jni/pdfview2/pdfview2.h | C | gpl3 | 1,507 |
#include <string.h>
#include <jni.h>
#include "android/log.h"
#include "pdfview2.h"
#define PDFVIEW_LOG_TAG "cx.hell.android.pdfview"
#define PDFVIEW_MAX_PAGES_LOADED 16
extern char fz_errorbuf[150*20]; /* defined in fitz/apv_base_error.c */
JNIEXPORT jint JNICALL
JNI_OnLoad(JavaVM *jvm, void *reserved) {
... | 0605tonton-test | pdfview/jni/pdfview2/pdfview2.c | C | gpl3 | 36,144 |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../mupdf/fitz $(LOCAL_PATH)/../mupdf/mupdf $(LOCAL_PATH)/include
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -lz -llog -L$(LOCAL_PATH)/lib -lfreetype
#out/apps/pdfview2/libpng.a
LOCAL_STATIC_LIBRARIES := mupdf fitz mupdf fitzdraw jpeg jbig2... | 0605tonton-test | pdfview/jni/pdfview2/Android.mk | Makefile | gpl3 | 425 |
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := jpeg
LOCAL_SRC_FILES := jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
jdapist... | 0605tonton-test | pdfview/jni/jpeg/Android.mk | Makefile | gpl3 | 684 |
#
# Makefile
#
# Author: Lasse Collin <lasse.collin@tukaani.org>
#
# This file has been put into the public domain.
# You can do whatever you want with this file.
#
CC = gcc -std=gnu89
BCJ_CPPFLAGS = -DXZ_DEC_X86 -DXZ_DEC_POWERPC -DXZ_DEC_IA64 \
-DXZ_DEC_ARM -DXZ_DEC_ARMTHUMB -DXZ_DEC_SPARC
CFLAGS = -ggdb3 -O2 -peda... | 0605tonton-test | pdfview/jni/xzx/Makefile | Makefile | gpl3 | 1,286 |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog
LOCAL_MODULE := xzx
LOCAL_SRC_FILES := jnixz.c xz_crc32.c xz_dec_stream.c xz_dec_lzma2.c xz_dec_bcj.c
LOCAL_CFLAGS := -DXZ_DEC_X86 -DXZ_DEC_POWERPC -DXZ_DEC_IA64 -DXZ_DEC_ARM -DXZ_DEC_ARMTHUMB -DXZ_DEC_SPARC
include $(BUILD_SHARED_LIBRARY)
| 0605tonton-test | pdfview/jni/xzx/Android.mk | Makefile | gpl3 | 317 |
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H
/* Define if the local libc includes getopt_long() */
#define HAVE_GETOPT_LONG
/* D... | 0605tonton-test | pdfview/jni/jbig2dec/config.h | C | gpl3 | 3,143 |
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := jbig2dec
LOCAL_CFLAGS := -DHAVE_CONFIG_H
LOCAL_SRC_FILES := \
jbig2.c \
jbig2_arith.c \
jbig2_arith_iaid.c \
jbig2_arith_int.c \
jbig2_generic.c \
jbig2_halftone.c \
jbig2_huffman.c \
jbig2_image.c \
jbig2_image_pbm.c \
jbig2_metadata.c \
jb... | 0605tonton-test | pdfview/jni/jbig2dec/Android.mk | Makefile | gpl3 | 555 |
include $(call all-subdir-makefiles)
| 0605tonton-test | pdfview/jni/Android.mk | Makefile | gpl3 | 38 |
package com.jason.recognition;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Canvas;
import android.graphics.Color;
... | 01-project-jason | trunk/recognition/src/com/jason/recognition/DrawLineActivity.java | Java | asf20 | 17,156 |
package com.jason.recognition;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import com.jason.recognition.*;
/*
* public class MainActivity extends Activity {
*
* @Override protected void onCreate(Bundle savedInstanceS... | 01-project-jason | trunk/recognition/src/com/jason/recognition/MainActivity.java | Java | asf20 | 512 |
/*
* (C) Copyright 2007 Semihalf
*
* Written by: Rafal Jaworowski <raj@semihalf.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the ... | 1001-study-uboot | api/api.c | C | gpl3 | 15,037 |
/*
* (C) Copyright 2007 Semihalf
*
* Written by: Rafal Jaworowski <raj@semihalf.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the ... | 1001-study-uboot | api/api_net.c | C | gpl3 | 2,401 |
/*
* Copyright (c) 2011 The Chromium OS Authors.
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version ... | 1001-study-uboot | api/api_display.c | C | gpl3 | 1,879 |
/*
* (C) Copyright 2007 Semihalf
*
* Written by: Rafal Jaworowski <raj@semihalf.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the ... | 1001-study-uboot | api/api_platform-arm.c | C | gpl3 | 1,605 |
#
# (C) Copyright 2007 Semihalf
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundatio; either version 2 of
# the License, or ... | 1001-study-uboot | api/Makefile | Makefile | gpl3 | 1,195 |
/*
* (C) Copyright 2007 Semihalf
*
* Written by: Rafal Jaworowski <raj@semihalf.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the ... | 1001-study-uboot | api/api_platform-powerpc.c | C | gpl3 | 2,184 |
/*
* (C) Copyright 2007-2008 Semihalf
*
* Written by: Rafal Jaworowski <raj@semihalf.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by... | 1001-study-uboot | api/api_storage.c | C | gpl3 | 8,996 |
/*
* (C) Copyright 2007 Semihalf
*
* Written by: Rafal Jaworowski <raj@semihalf.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the ... | 1001-study-uboot | api/api_private.h | C | gpl3 | 1,640 |
#!/bin/bash
# Tool mainly for U-Boot Quality Assurance: build one or more board
# configurations with minimal verbosity, showing only warnings and
# errors.
usage()
{
# if exiting with 0, write to stdout, else write to stderr
local ret=${1:-0}
[ "${ret}" -eq 1 ] && exec 1>&2
cat <<-EOF
Usage: MAKEALL [options] [-... | 1001-study-uboot | MAKEALL | Shell | gpl3 | 14,499 |
#!/bin/sh
usage() {
(
echo "Usage: $0 [board IP] [board port]"
echo ""
echo "If IP is not specified, 'localhost' will be used"
echo "If port is not specified, '2001' will be used"
[ -z "$*" ] && exit 0
echo ""
echo "ERROR: $*"
exit 1
) 1>&2
exit $?
}
while [ -n "$1" ] ; do
case $1 in
-h|--help) usage;;
... | 1001-study-uboot | tools/jtagconsole | Shell | gpl3 | 725 |
/*
* (C) Copyright 2008 Semihalf
*
* (C) Copyright 2000-2009
* DENX Software Engineering
* Wolfgang Denk, wd@denx.de
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 o... | 1001-study-uboot | tools/mkimage.c | C | gpl3 | 15,043 |
/*
* (C) Copyright 2001
* Murray Jensen <Murray.Jensen@cmst.csiro.au>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Fo... | 1001-study-uboot | tools/gen_eth_addr.c | C | gpl3 | 1,495 |
/*
* (C) Copyright 2009
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
*
* (C) Copyright 2008
* Marvell Semiconductor <www.marvell.com>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free softw... | 1001-study-uboot | tools/imximage.c | C | gpl3 | 15,663 |
/*
* (C) Copyright 2008
* Marvell Semiconductor <www.marvell.com>
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Pu... | 1001-study-uboot | tools/kwbimage.h | C | gpl3 | 2,635 |
/*
* (C) Copyright 2000-2004
* DENX Software Engineering
* Wolfgang Denk, wd@denx.de
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your opti... | 1001-study-uboot | tools/mkimage.h | C | gpl3 | 4,757 |
/*
* (C) Copyright 2007
* Heiko Schocher, DENX Software Engineering, <hs@denx.de>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free... | 1001-study-uboot | tools/ubsha1.c | C | gpl3 | 2,726 |
/* bin2header.c - program to convert binary file into a C structure
* definition to be included in a header file.
*
* (C) Copyright 2008 by Harald Welte <laforge@openmoko.org>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it an... | 1001-study-uboot | tools/bin2header.c | C | gpl3 | 1,547 |
/*
* Copyright 2008 Extreme Engineering Solutions, Inc.
*
* mmap/munmap implementation derived from:
* Clamav Native Windows Port : mmap win32 compatibility layer
* Copyright (c) 2005-2006 Gianluigi Tiesi <sherpya@netfarm.it>
* Parts by Kees Zeelenberg <kzlg@users.sourceforge.net> (LibGW32C)
*
* This program is... | 1001-study-uboot | tools/mingw_support.c | C | gpl3 | 3,924 |
#include "compiler.h"
enum {
MODE_GEN_INFO,
MODE_GEN_DATA
};
typedef struct bitmap_s { /* bitmap description */
uint16_t width;
uint16_t height;
uint8_t palette[256*3];
uint8_t *data;
} bitmap_t;
#define DEFAULT_CMAP_SIZE 16 /* size of default color map */
void usage(const char *prog)
{
fprintf(stderr, "Usa... | 1001-study-uboot | tools/bmp_logo.c | C | gpl3 | 4,486 |
/*
* (C) Copyright 2009 Marco Stornelli
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is di... | 1001-study-uboot | tools/imls/imls.c | C | gpl3 | 6,160 |
#
# (C) Copyright 2009 Marco Stornelli <marco.stornelli@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
#... | 1001-study-uboot | tools/imls/Makefile | Makefile | gpl3 | 2,990 |
/*************************************************************************
| COPYRIGHT (c) 2000 BY ABATRON AG
|*************************************************************************
|
| PROJECT NAME: Linux Image to S-record Conversion Utility
| FILENAME : img2srec.c
|
| COMPILER : GCC
|
| TARGET OS : LI... | 1001-study-uboot | tools/img2srec.c | C | gpl3 | 9,959 |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main (int argc, char *argv[])
{
int s, len, o, port = 6666;
char buf[512];
struct sockaddr_in addr;
socklen_t addr_len = sizeof addr;
if (argc > 1)
port = atoi (argv[1]);
s = socket (PF_INET, SOCK_D... | 1001-study-uboot | tools/ncb.c | C | gpl3 | 813 |
/*
* (C) Copyright 2011
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Fr... | 1001-study-uboot | tools/aisimage.c | C | gpl3 | 11,455 |
#!/usr/bin/perl -w
# (c) 2001, Dave Jones. (the file handling bit)
# (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit)
# (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
# (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
# Licensed under the terms of the GNU GPL License version 2
... | 1001-study-uboot | tools/checkpatch.pl | Prolog | gpl3 | 90,324 |
#!/bin/sh
# This script converts binary files (u-boot.bin) into so called
# bootstrap records that are accepted by Motorola's MC9328MX1/L
# (a.k.a. DragaonBall i.MX) in "Bootstrap Mode"
#
# The code for the SynchFlash programming routines is taken from
# Bootloader\Bin\SyncFlash\programBoot_b.txt contained in
# Motor... | 1001-study-uboot | tools/img2brec.sh | Shell | gpl3 | 14,720 |
/*
** Easylogo TGA->header converter
** ==============================
** (C) 2000 by Paolo Scaffardi (arsenio@tin.it)
** AIRVENT SAM s.p.a - RIMINI(ITALY)
** (C) 2007-2008 Mike Frysinger <vapier@gentoo.org>
**
** This is still under construction!
*/
#include <errno.h>
#include <getopt.h>
#include <stdbool.h>
#include... | 1001-study-uboot | tools/easylogo/easylogo.c | C | gpl3 | 13,265 |
include $(TOPDIR)/config.mk
all: $(obj)easylogo
$(obj)easylogo: $(SRCTREE)/tools/easylogo/easylogo.c
$(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $^
clean:
rm -f $(obj)easylogo
.PHONY: all clean
| 1001-study-uboot | tools/easylogo/Makefile | Makefile | gpl3 | 207 |
#!/bin/sh
make
./easylogo linux_logo.tga u_boot_logo video_logo.h
mv video_logo.h ../../include
| 1001-study-uboot | tools/easylogo/runme.sh | Shell | gpl3 | 96 |
/*
* (C) Copyright 2011 Free Electrons
* David Wagner <david.wagner@free-electrons.com>
*
* Inspired from envcrc.c:
* (C) Copyright 2001
* Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free sof... | 1001-study-uboot | tools/mkenvimage.c | C | gpl3 | 7,340 |