资源简介
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个文件信息
相关资源
- 网狐棋牌6603安卓Android手机版本游戏说
- Android高仿微信的聊天界面
- Android动画之仿美团加载数据等待时小
- 使用android手机陀螺仪传感器获得手机
- Android利用ZBar实现二维码、条形码扫码
- 捕鱼达人源码Java
- jspjsp图书管理系统源码.rar
- JAVA网上商城源码,Java购物系统,商品
- JNI的全部中英文资料,包括Android ND
- Android6.0新权限管理详解Demo
- 手机定位app com.android.safeserver.apk
- Android自定义圆形图片
- Android实现二维码扫描功能-ZXing插件接
- android拼图游戏源码29901
- Android安卓车牌识别超高识别率SDK DE
- Android实现Wifi数据传输
- Android游戏源码简单2048小游戏源码
- Android 图片浏览功能简单实现画廊效果
- Android 建立文件夹和文件并向文件写入
- Android备忘录55617
- Android 酒店预订系统源码.rar
- android Calender 日历记事软件代码
- MyMQTT.apk
- Android 旋转的地球源码
- AnimationViewPager删除动画
- Android计算器完整版源代码
- Android 用户登录界面
- android动态折线图
- jsp+servlet+eclipse+mysql(包含源码和数据
- android.wifidirect.zip
评论
共有 条评论