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 |
|---|---|---|---|---|---|
package com.zysoft.common.entity;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.zysoft.common.dao.ICommonDao;
import com.zysoft.common.util.ContextUtil;
public abstract class AbstractEntity implements java.io.Serializable {
private static final long serialVersionUID = 203501301... | zy-web-oa | src/Common/com/zysoft/common/entity/AbstractEntity.java | Java | asf20 | 1,590 |
package com.zysoft.common.dao.hibernate4Impl;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
import java.util.Map.Entry;
import javax.persistence.Id;
import org.hibernate.Query;
import org.hibernate.Session;
import o... | zy-web-oa | src/Common/com/zysoft/common/dao/hibernate4Impl/CommonHibernate4DaoImpl.java | Java | asf20 | 4,182 |
package com.zysoft.common.dao;
import java.io.Serializable;
import com.zysoft.common.entity.AbstractEntity;
public interface ICommonDao {
public <T extends AbstractEntity> T save(T model);
public <T extends AbstractEntity> void saveOrUpdate(T model);
public <T extends AbstractEntit... | zy-web-oa | src/Common/com/zysoft/common/dao/ICommonDao.java | Java | asf20 | 788 |
package com.zysoft.common;
public class Constants {
public static final int DEFAULT_PAGE_SIZE = 10;
public static final String COMMAND = "command";
}
| zy-web-oa | src/Common/com/zysoft/common/Constants.java | Java | asf20 | 177 |
package com.zysoft.common.util;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContext;
import org.springframework.co... | zy-web-oa | src/Common/com/zysoft/common/util/ContextUtil.java | Java | asf20 | 4,358 |
package com.zysoft.common.util;
import java.util.WeakHashMap;
/**
* 同步器
*
*/
public class KeySynchronizer {
private static final WeakHashMap<Object, Locker> LOCK_MAP = new WeakHashMap<Object, Locker>();
private static class Locker {
private Locker() {
}
}
... | zy-web-oa | src/Common/com/zysoft/common/util/KeySynchronizer.java | Java | asf20 | 575 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="inc/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<ti... | zy-web-oa | WebContent/WEB-INF/jsp/index.jsp | Java Server Pages | asf20 | 383 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="inc/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢... | zy-web-oa | WebContent/WEB-INF/jsp/login.jsp | Java Server Pages | asf20 | 728 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="inc/header.jsp"%><%
Integer statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code");
String message = (String) request.getAttribute("javax.servlet.error.message");
String servlet... | zy-web-oa | WebContent/WEB-INF/jsp/error_all.jsp | Java Server Pages | asf20 | 2,382 |
<link href="<c:url value='/css/css.css'/>" rel="stylesheet" type="text/css" media="all"></link>
<script type="text/javascript" src="<c:url value='/js/jquery-1.3.2.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/application.js'/>"></script>
| zy-web-oa | WebContent/WEB-INF/jsp/inc/import.jsp | Java Server Pages | asf20 | 266 |
<%request.setAttribute("ctx", request.getContextPath());%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"><%@include file="taglib.jsp" %><%@include file="import.jsp" %> | zy-web-oa | WebContent/WEB-INF/jsp/inc/header.jsp | Java Server Pages | asf20 | 223 |
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %><%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%@ taglib prefix="fn" uri="http://java.sun.co... | zy-web-oa | WebContent/WEB-INF/jsp/inc/taglib.jsp | Java Server Pages | asf20 | 405 |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/ApplicationVariantConfig.java | Java | asf20 | 1,503 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/TouchHandler.java | Java | asf20 | 13,326 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/DeviceFinder.java | Java | asf20 | 23,407 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/TutorialActivity.java | Java | asf20 | 1,205 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/KeyboardActivity.java | Java | asf20 | 2,868 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/BroadcastDiscoveryClient.java | Java | asf20 | 5,810 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/KeyStoreManager.java | Java | asf20 | 7,424 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/BroadcastAdvertisement.java | Java | asf20 | 1,414 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/ProtocolConstants.java | Java | asf20 | 1,154 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/DummySender.java | Java | asf20 | 1,163 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/Commands.java | Java | asf20 | 2,947 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/QueuingSender.java | Java | asf20 | 4,476 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/ICommandSender.java | Java | asf20 | 2,021 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/Command.java | Java | asf20 | 893 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/AckManager.java | Java | asf20 | 4,969 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/protocol/AnymoteSender.java | Java | asf20 | 6,319 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/CoreServiceActivity.java | Java | asf20 | 3,836 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/RemoteDevice.java | Java | asf20 | 3,021 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/TextInputHandler.java | Java | asf20 | 3,433 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/util/LimitedLinkedHashMap.java | Java | asf20 | 1,288 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/util/Action.java | Java | asf20 | 6,986 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/util/Debug.java | Java | asf20 | 1,419 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/CoreService.java | Java | asf20 | 23,736 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/backport/ScaleGestureDetector.java | Java | asf20 | 7,082 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/backport/ScaleGestureDetectorFactory.java | Java | asf20 | 2,578 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/backport/ScaleGestureDetectorImpl.java | Java | asf20 | 13,146 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/Shortcut.java | Java | asf20 | 2,040 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/StartupActivity.java | Java | asf20 | 3,171 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/BaseActivity.java | Java | asf20 | 15,100 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/AboutActivity.java | Java | asf20 | 2,560 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/widget/KeyCodeButton.java | Java | asf20 | 3,754 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/widget/FadingTextView.java | Java | asf20 | 2,425 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/widget/ImeInterceptView.java | Java | asf20 | 4,374 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/widget/SoftDpad.java | Java | asf20 | 11,934 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/widget/HighlightView.java | Java | asf20 | 3,048 |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/MenuInitializer.java | Java | asf20 | 842 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/ShortcutsActivity.java | Java | asf20 | 4,356 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/PairingActivity.java | Java | asf20 | 12,900 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/TrackballHandler.java | Java | asf20 | 4,819 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/ConnectionManager.java | Java | asf20 | 2,806 |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | zzbe0103-ji | src/com/google/android/apps/tvremote/MainActivity.java | Java | asf20 | 10,322 |
<?php
require dirname(__FILE__) . '/framework/Moon.php';
MoonBird::singleton()->start();
?> | zyp-frame-yframe | trunk/web/server/index.php | PHP | oos | 94 |
<?php
function p($output){
$outputStr = '<pre>';
$output = var_export($output, true);
$outputStr .= $output . '</pre>';
echo $outputStr;
}
function import($requireFile){
$file = MOON_ROOT_DIR . __DS__ . str_replace('.', __DS__, $requireFile) . '.php';
if(!file_exists($file)){
throw new MException("t... | zyp-frame-yframe | trunk/web/server/framework/plugin/functions/functions.php | PHP | oos | 454 |
<?php
class MException extends Exception {
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/exception/MException.php | PHP | oos | 53 |
<?php
interface IProtocol{
public function setRoute($route);
public function getRoute();
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/protocol/IProtocol.php | PHP | oos | 100 |
<?php
import('framework.module.protocol.IProtocol');
class MAmfProtocol implements IProtocol {
private $_route;
public function setRoute($route){
$this->_route = $route;
}
public function getRoute(){
return $this->_route;
}
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/protocol/MAmfProtocol.php | PHP | oos | 248 |
<?php
/**
* This is a factory class of protocol
*
*/
class MProtocolFactory{
static $_factory;
private function __construct(){}
static function singleton(){
if(!self::$_factory instanceof self){
self::$_factory = new self;
}
return self::$_factory;
}
public function getProtocol(){
$... | zyp-frame-yframe | trunk/web/server/framework/module/protocol/MProtocolFactory.php | PHP | oos | 760 |
<?php
import('framework.module.protocol.IProtocol');
class MRestProtocol implements IProtocol {
private $_route;
public function setRoute($route){
$this->_route = $route;
}
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/protocol/MRestProtocol.php | PHP | oos | 190 |
<?php
class MServiceResponse{
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/service/MServiceResponse.php | PHP | oos | 40 |
<?php
interface IService{
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/service/IService.php | PHP | oos | 36 |
<?php
class MServiceRequest{
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/service/MServiceRequest.php | PHP | oos | 39 |
<?php
class MService implements IService {
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/service/MService.php | PHP | oos | 53 |
<?php
class MActiveRecord extends MObject {
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/dao/MActiveRecord.php | PHP | oos | 54 |
<?php
class MActiveRecord implements IActiveRecordDao {
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/dao/MActiveRecordDao.php | PHP | oos | 66 |
<?php
interface IActiveRecordDao{
function save();
function remove();
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/dao/IActiveRecordDao.php | PHP | oos | 81 |
<?php
class MObject{
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/dao/MObject.php | PHP | oos | 31 |
<?php
interface IRouteParse{
public function parse($dir, $route, $params);
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/router/IRouteParse.php | PHP | oos | 84 |
<?php
class MDbDriver {
}
?> | zyp-frame-yframe | trunk/web/server/framework/module/db/MDbDriver.php | PHP | oos | 34 |
<?php
/**
* define constant
*
*/
define("__DS__", DIRECTORY_SEPARATOR);
define("MOON_FRAMEWORK_DIR", dirname(__FILE__));
define("MOON_ROOT_DIR", substr(dirname(__FILE__), 0, strrpos(dirname(__FILE__), __DS__)));
define("MOON_MVC_DIR", MOON_ROOT_DIR . __DS__ . 'mvc');
define("MOON_SERVICE_DIR", MOON_ROOT_DIR... | zyp-frame-yframe | trunk/web/server/framework/Moon.php | PHP | oos | 1,191 |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | zzyangming-szyangming | pdfview/scripts/colorize-images.sh | Shell | gpl3 | 636 |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF=mupdf-0.8.165
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../deps
tar xvf $FREETYPE.tar.bz2
tar xvf $JPEGSRC
tar xvf $MUPDF-source.tar.gz
tar xvf $OPE... | zzyangming-szyangming | pdfview/scripts/build-native.sh | Shell | gpl3 | 948 |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| zzyangming-szyangming | pdfview/scripts/scale-images.sh | Shell | gpl3 | 287 |
<?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>
... | zzyangming-szyangming | pdfview/res/raw-pl/about.html | HTML | gpl3 | 38,640 |
<?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... | zzyangming-szyangming | pdfview/res/raw/about.html | HTML | gpl3 | 38,716 |
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;
imp... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/OpenFileActivity.java | Java | gpl3 | 30,125 |
package cx.hell.android.pdfview;
import java.io.File;
import java.util.ArrayList;
import android.content.Context;
import android.content.SharedPreferences;
public class Recent extends ArrayList<String> {
/**
* Default serial version identifier because base class is serializable.
*/
private stati... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/Recent.java | Java | gpl3 | 1,536 |
package cx.hell.android.pdfview;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
public class Opt... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/Options.java | Java | gpl3 | 4,826 |
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 {
... | zzyangming-szyangming | 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);
}
... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/StreamUtils.java | Java | gpl3 | 1,470 |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import androi... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/ChooseFileActivity.java | Java | gpl3 | 11,215 |
package cx.hell.android.pdfview;
import android.graphics.Bitmap;
public class BitmapCacheValue {
public Bitmap bitmap;
/* public long millisAdded; */
public long millisAccessed;
public long priority;
public BitmapCacheValue(Bitmap bitmap, long millisAdded, long priority) {
this.bitmap = bitmap;
... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/BitmapCacheValue.java | Java | gpl3 | 434 |
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... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/PDF.java | Java | gpl3 | 3,432 |
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);
}
}
| zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/ApplicationException.java | Java | gpl3 | 299 |
package cx.hell.android.pdfview;
public class BookmarkEntry {
public int numberOfPages;
public int page;
public float absoluteZoomLevel;
public int rotation;
public int offsetX;
public BookmarkEntry(int numberOfPages, int page, float absoluteZoomLevel,
int rotation, int offsetX) {
this.numberOf... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/BookmarkEntry.java | Java | gpl3 | 1,291 |
package cx.hell.android.pdfview;
import java.io.File;
public class FileListEntry {
private String label = null;
private File file = null;
private boolean isDirectory = false;
private int type = NORMAL;
private int recentNumber = -1;
static final int NORMAL = 0;
static final int HOME = 1;
stati... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/FileListEntry.java | Java | gpl3 | 1,637 |
/*
* 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... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/Bookmark.java | Java | gpl3 | 4,514 |
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.app.Activity;
import android.graphics.Bitmap;
import android.os.SystemCl... | zzyangming-szyangming | pdfview/src/cx/hell/android/pdfview/PDFPagesProvider.java | Java | gpl3 | 15,785 |
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... | zzyangming-szyangming | pdfview/src/cx/hell/android/lib/pagesview/FindResult.java | Java | gpl3 | 1,538 |
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... | zzyangming-szyangming | pdfview/src/cx/hell/android/lib/pagesview/Tile.java | Java | gpl3 | 1,632 |
package cx.hell.android.lib.pagesview;
public class RenderingException extends Exception {
private static final long serialVersionUID = 1010978161527539002L;
public RenderingException(String message) {
super(message);
}
}
| zzyangming-szyangming | 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 cx.hell.android.pdfview.Bookmark;
import cx.hell.android.pdfview.BookmarkEntry;
import cx.hell.android.pdfview.Options;
import android.app.Activity;
import an... | zzyangming-szyangming | pdfview/src/cx/hell/android/lib/pagesview/PagesView.java | Java | gpl3 | 36,892 |
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... | zzyangming-szyangming | pdfview/src/cx/hell/android/lib/pagesview/OnImageRenderedListener.java | Java | gpl3 | 365 |
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);
/... | zzyangming-szyangming | pdfview/src/cx/hell/android/lib/pagesview/PagesProvider.java | Java | gpl3 | 1,310 |
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CFLAGS := -O3
LOCAL_ARM_MODE := arm
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 \
... | zzyangming-szyangming | pdfview/jni/openjpeg/Android.mk | Makefile | gpl3 | 405 |
/*
* This file registers the FreeType modules compiled into the library.
*
* If you use GNU make, this file IS NOT USED! Instead, it is created in
* the objects directory (normally `<topdir>/objs/') based on information
* from `<topdir>/modules.cfg'.
*
* Please read `docs/INSTALL.ANY' and `docs/CUSTOMIZE' ... | zzyangming-szyangming | pdfview/jni/freetype-overlay/include/freetype/config/ftmodule.h | C | gpl3 | 1,429 |
#ifdef PDFVIEW2_H__
#error PDFVIEW2_H__ can be included only once
#endif
#define PDFVIEW2_H__
#include "fitz.h"
#include "mupdf.h"
#define MAX_BOX_NAME 8
/**
* Holds pdf info.
*/
typedef struct {
int last_pageno;
pdf_xref *xref;
pdf_outline *outline;
int fileno; /* used only when opening by file desc... | zzyangming-szyangming | pdfview/jni/pdfview2/pdfview2.h | C | gpl3 | 1,521 |
#include <string.h>
#include <wctype.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
#define BITMAP_STORE_MAX_AGE 1
#define FIND_STORE_MAX_AGE 4
#define TEXT_STORE_MAX_AGE 4
static jintArray get_page_im... | zzyangming-szyangming | pdfview/jni/pdfview2/pdfview2.c | C | gpl3 | 41,387 |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CFLAGS := -O3
LOCAL_ARM_MODE := arm
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../mupdf/fitz $(LOCAL_PATH)/../mupdf/pdf $(LOCAL_PATH)/../freetype-overlay/include $(LOCAL_PATH)/../freetype/include $(LOCAL_PATH)/pdfview2/include
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -lz -... | zzyangming-szyangming | pdfview/jni/pdfview2/Android.mk | Makefile | gpl3 | 492 |