资源简介
Android电脑源码通过adb实现实时屏幕演示源码,是一个很不错的Android代码,有兴趣的伙伴们抽时间可以看一下把。

代码片段和文件信息
/*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.chimpchat;
import com.android.chimpchat.adb.AdbBackend;
import com.android.chimpchat.core.IChimpBackend;
import com.android.chimpchat.core.IChimpDevice;
import java.util.Map;
import java.util.TreeMap;
/**
* ChimpChat is a host-side library that provides an API for communication with
* an instance of Monkey on a device. This class provides an entry point to
* setting up communication with a device. Currently it only supports communciation
* over ADB however.
*/
public class ChimpChat {
private final IChimpBackend mBackend;
private static String sAdbLocation;
private ChimpChat(IChimpBackend backend) {
this.mBackend = backend;
}
/**
* Generates a new instance of ChimpChat based on the options passed.
* @param options a map of settings for the new ChimpChat instance
* @return a new instance of ChimpChat or null if errors occur during creation
*/
public static ChimpChat getInstance(Map options) {
sAdbLocation = options.get(“adbLocation“);
IChimpBackend backend = createBackendByName(options.get(“backend“));
if (backend == null) {
return null;
}
ChimpChat chimpchat = new ChimpChat(backend);
return chimpchat;
}
/** Generates a new instance of ChimpChat using default settings
* @return a new instance of ChimpChat or null if errors occur during creation
*/
public static ChimpChat getInstance() {
Map options = new TreeMap();
options.put(“backend“ “adb“);
return ChimpChat.getInstance(options);
}
/**
* Creates a specific backend by name.
*
* @param backendName the name of the backend to create
* @return the new backend or null if none were found.
*/
private static IChimpBackend createBackendByName(String backendName) {
if (“adb“.equals(backendName)) {
if (sAdbLocation == null) {
return new AdbBackend();
} else {
return new AdbBackend(sAdbLocation);
}
} else {
return null;
}
}
/**
* Retrieves an instance of the device from the backend
* @param timeoutMs length of time to wait before timing out
* @param deviceId the id of the device you want to connec
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-13 18:36 bin\
目录 0 2014-03-13 18:36 bin\com\
目录 0 2014-03-13 18:36 bin\com\android\
目录 0 2014-03-13 18:36 bin\com\android\chimpchat\
文件 2222 2014-03-13 18:10 bin\com\android\chimpchat\ChimpChat.class
文件 6534 2014-03-13 18:10 bin\com\android\chimpchat\ChimpManager.class
目录 0 2014-03-13 18:36 bin\com\lenovo\
目录 0 2014-03-13 18:36 bin\com\lenovo\ScreenCapture\
文件 1985 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$1.class
文件 1240 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$10.class
文件 1097 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$11.class
文件 1708 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$12.class
文件 941 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$2.class
文件 941 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$3.class
文件 941 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$4.class
文件 964 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$5.class
文件 975 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$6.class
文件 975 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$7.class
文件 1297 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$8.class
文件 1750 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow$9.class
文件 6344 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MainWindow.class
文件 998 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MyChimpChat$1.class
文件 2142 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\MyChimpChat.class
文件 3388 2014-03-13 18:10 bin\com\lenovo\ScreenCapture\OperateAndroid.class
目录 0 2014-03-13 18:36 bin\com\lenovo\test\
文件 1520 2014-03-13 18:10 bin\com\lenovo\test\ServerThread.class
文件 1770 2014-03-13 18:10 bin\com\lenovo\test\SocketClient.class
文件 922 2014-03-13 18:10 bin\com\lenovo\test\SocketTest.class
文件 1422 2014-03-13 18:10 bin\com\lenovo\test\TestClient.class
文件 1061 2014-03-13 18:10 bin\com\lenovo\test\TestServer.class
目录 0 2014-03-13 18:36 lib\
............此处省略31个文件信息
相关资源
- android毕业设计
- 百度地图自定义Markerandroid
- Android分区工具包
- android-support-v4.jar已打包进去源代码
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- 基于JSP的学生宿舍管理系统(源码 数
- mysql jsp网站源码下载
- android 视频播放器 项目和原码
- java access 仓库管理系统 源码
- Android【动画】【特效】 17种动画特效
- 基于Android智能家居详细设计(经典)
- java实现的svn统计修改代码行数完整源
- android通过JDBC连接Mysql数据库
- 即时通讯系统JAVA源码
- Java记事本【源代码 实验报告】
- java简单的购物车实例程序
- Android通讯录的源代码
- Java版航空订票系统源码
- android 瀑布流Demo
- 指纹传感器FPC1080在android下的驱动
- delphi xe5 android 调用照相机摄像头拍照
- java GUI版汉诺塔源码
- Android手机连连看游戏源码
- android-sdk-windows v2.3离线完整版
- android 底部弹出菜单(带透明背景)
- 搜索引擎的研究与实现Java附源码
- java 原创 坦克大战 源码 带有详细注释
- jsp与SQL Server数据库实现的客户注册登
- java实现POS系统源码
评论
共有 条评论