91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.37MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-08
  • 語言: Java
  • 標簽: Android??源碼??

資源簡介

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個文件信息

評論

共有 條評論