جهاز Stub

public class StubDevice
extends Object implements IDevice

java.lang.Object
com.android.tradefed.device.StubDevice


تنفيذ عنصر نائب لرمز IDevice

الملخّص

شركة إنشاءات عامة

StubDevice(String serial)
StubDevice(String serial, boolean isEmulator)

الطرق العامة

boolean arePropertiesSet()

void createForward(int localPort, String remoteSocketName, IDevice.DeviceUnixSocketNamespace namespace)

void createForward(int localPort, int remotePort)

void createReverse(int remotePort, int localPort)

void executeShellCommand(String command, IShellOutputReceiver receiver, long maxTimeToOutputResponse, TimeUnit maxTimeUnits)

void executeShellCommand(String command, IShellOutputReceiver receiver)

void executeShellCommand(String command, IShellOutputReceiver receiver, int maxTimeToOutputResponse)

تم إيقاف هذه الطريقة نهائيًا. يمكنك استخدام "executeShellCommand(String, com.android.ddmlib.IShellOutputReceiver, long, TimeUnit)".

void executeShellCommand(String command, IShellOutputReceiver receiver, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits)

getAbis()

String getAvdName()

String getAvdPath()

getBattery(long freshnessTime, TimeUnit timeUnit)

getBattery()

Integer getBatteryLevel(long freshnessMs)

تم إيقاف هذه الطريقة نهائيًا. استخدِم getBattery(long, TimeUnit) بدلاً من ذلك.

Integer getBatteryLevel()

تم إيقاف هذه الطريقة نهائيًا. استخدِم getBattery() بدلاً من ذلك.

Client getClient(String applicationName)

String getClientName(int pid)

Client[] getClients()

int getDensity()

FileListingService getFileListingService()

String getLanguage()

String getMountPoint(String name)

String getName()

getProperties()

تم إيقاف هذه الطريقة نهائيًا. استخدِم getSystemProperty(String) بدلاً من ذلك.

String getProperty(String name)

String getPropertyCacheOrSync(String name)

تم إيقاف هذه الطريقة نهائيًا. استخدِم getProperty(String) بدلاً من ذلك.

int getPropertyCount()

تم إيقاف هذه الطريقة نهائيًا. متوقّفًا نهائيًا في ddmlib مع تحديد "تفاصيل التنفيذ" كسبب.

String getPropertySync(String name)

تم إيقاف هذه الطريقة نهائيًا. استخدِم getProperty(String) بدلاً من ذلك.

String getRegion()

RawImage getScreenshot()

RawImage getScreenshot(long timeout, TimeUnit unit)
String getSerialNumber()

IDevice.DeviceState getState()

SyncService getSyncService()

ListenableFuture<String> getSystemProperty(String name)

AndroidVersion getVersion()

boolean hasClients()

void installPackage(String packageFilePath, boolean reinstall, InstallReceiver receiver, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits, String... extraArgs)

void installPackage(String packageFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs)

void installPackage(String packageFilePath, boolean reinstall, String... extraArgs)

void installPackages( apkFilePaths, boolean reinstall, extraArgs, long timeOutInMs, TimeUnit timeunit)

void installRemotePackage(String remoteFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs)

void installRemotePackage(String remoteFilePath, boolean reinstall, String... extraArgs)

void installRemotePackage(String remoteFilePath, boolean reinstall, InstallReceiver receiver, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits, String... extraArgs)

boolean isBootLoader()

boolean isEmulator()

boolean isOffline()

boolean isOnline()

boolean isRoot()

void pullFile(String remote, String local)

void pushFile(String local, String remote)

void reboot(String into)

void removeForward(int localPort)

void removeForward(int localPort, int remotePort)

void removeForward(int localPort, String remoteSocketName, IDevice.DeviceUnixSocketNamespace namespace)

void removeRemotePackage(String remoteFilePath)

void removeReverse(int remotePort)

boolean root()

void runEventLogService(LogReceiver receiver)

void runLogService(String logname, LogReceiver receiver)

void setSerial(String serial)
void startScreenRecorder(String remoteFilePath, ScreenRecorderOptions options, IShellOutputReceiver receiver)

boolean supportsFeature(IDevice.HardwareFeature arg0)
boolean supportsFeature(IDevice.Feature feature)

String syncPackageToDevice(String localFilePath)

String uninstallApp(String applicationID, String... extraArgs)

String uninstallPackage(String packageName)

شركة إنشاءات عامة

جهاز Stub

public StubDevice (String serial)

المعلّمات
serial String

جهاز Stub

public StubDevice (String serial, 
                boolean isEmulator)

المعلّمات
serial String

isEmulator boolean

الطرق العامة

isPropertiesSet

public boolean arePropertiesSet ()

الركلات المردودة
boolean

إنشاء إعادة توجيه

public void createForward (int localPort, 
                String remoteSocketName, 
                IDevice.DeviceUnixSocketNamespace namespace)

المعلّمات
localPort int

remoteSocketName String

namespace IDevice.DeviceUnixSocketNamespace

الرميات
AdbCommandRejectedException
TimeoutException

إنشاء إعادة توجيه

public void createForward (int localPort, 
                int remotePort)

المعلّمات
localPort int

remotePort int

الرميات
AdbCommandRejectedException
TimeoutException

إنشاء انعكاس

public void createReverse (int remotePort, 
                int localPort)

المعلّمات
remotePort int

localPort int

الرميات
AdbCommandRejectedException
TimeoutException

تنفيذ ShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits)

المعلّمات
command String

receiver IShellOutputReceiver

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

تنفيذ ShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

المعلّمات
command String

receiver IShellOutputReceiver

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

تنفيذ ShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                int maxTimeToOutputResponse)

تم إيقاف هذه الطريقة نهائيًا.
تستخدم executeShellCommand(String, com.android.ddmlib.IShellOutputReceiver, long, TimeUnit).

المعلّمات
command String

receiver IShellOutputReceiver

maxTimeToOutputResponse int

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

تنفيذ ShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeout, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits)

المعلّمات
command String

receiver IShellOutputReceiver

maxTimeout long

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

GetAbis

public  getAbis ()

الركلات المردودة

الحصول على AvdName

public String getAvdName ()

الركلات المردودة
String

الحصول على AvdPath

public String getAvdPath ()

الركلات المردودة
String

الحصول على البطارية

public  getBattery (long freshnessTime, 
                TimeUnit timeUnit)

المعلّمات
freshnessTime long

timeUnit TimeUnit

الركلات المردودة

الحصول على البطارية

public  getBattery ()

الركلات المردودة

الحصول على مستوى شحن البطارية

public Integer getBatteryLevel (long freshnessMs)

تم إيقاف هذه الطريقة نهائيًا.
استخدِم getBattery(long, TimeUnit) بدلاً من ذلك.

المعلّمات
freshnessMs long

الركلات المردودة
Integer

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

الحصول على مستوى شحن البطارية

public Integer getBatteryLevel ()

تم إيقاف هذه الطريقة نهائيًا.
استخدِم getBattery() بدلاً من ذلك.

الركلات المردودة
Integer

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

الحصول على عميل

public Client getClient (String applicationName)

المعلّمات
applicationName String

الركلات المردودة
Client

الحصول على اسم العميل

public String getClientName (int pid)

المعلّمات
pid int

الركلات المردودة
String

الحصول على عملاء

public Client[] getClients ()

الركلات المردودة
Client[]

الحصول على الكثافة

public int getDensity ()

الركلات المردودة
int

خدمة getFileListingService

public FileListingService getFileListingService ()

الركلات المردودة
FileListingService

الطريقة getLanguage

public String getLanguage ()

الركلات المردودة
String

الحصول على ماونت بوينت

public String getMountPoint (String name)

المعلّمات
name String

الركلات المردودة
String

الحصول على اسم

public String getName ()

الركلات المردودة
String

الحصول على خصائص

public  getProperties ()

تم إيقاف هذه الطريقة نهائيًا.
استخدِم getSystemProperty(String) بدلاً من ذلك.

الركلات المردودة

الحصول على الخاصية

public String getProperty (String name)

المعلّمات
name String

الركلات المردودة
String

الحصول على خصائص ذاكرة التخزين المؤقت أو المزامنة

public String getPropertyCacheOrSync (String name)

تم إيقاف هذه الطريقة نهائيًا.
استخدِم getProperty(String) بدلاً من ذلك.

المعلّمات
name String

الركلات المردودة
String

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

الحصول على عدد المواقع

public int getPropertyCount ()

تم إيقاف هذه الطريقة نهائيًا.تم إيقاف
نهائيًا في ddmlib مع تحديد "تفاصيل التنفيذ" كسبب.

الركلات المردودة
int

getPropertySync

public String getPropertySync (String name)

تم إيقاف هذه الطريقة نهائيًا.
استخدِم getProperty(String) بدلاً من ذلك.

المعلّمات
name String

الركلات المردودة
String

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

استرداد المنطقة

public String getRegion ()

الركلات المردودة
String

الحصول على لقطة شاشة

public RawImage getScreenshot ()

الركلات المردودة
RawImage

الرميات
AdbCommandRejectedException
TimeoutException

الحصول على لقطة شاشة

public RawImage getScreenshot (long timeout, 
                TimeUnit unit)

المعلّمات
timeout long

unit TimeUnit

الركلات المردودة
RawImage

الرميات
AdbCommandRejectedException
TimeoutException

الحصول على الرقم التسلسلي

public String getSerialNumber ()

الركلات المردودة
String

الحصول على ولاية

public IDevice.DeviceState getState ()

الركلات المردودة
IDevice.DeviceState

الحصول على خدمة المزامنة

public SyncService getSyncService ()

الركلات المردودة
SyncService

الرميات
AdbCommandRejectedException
TimeoutException

سمة getSystemProperty

public ListenableFuture<String> getSystemProperty (String name)

المعلّمات
name String

الركلات المردودة
ListenableFuture<String>

الحصول على الإصدار

public AndroidVersion getVersion ()

الركلات المردودة
AndroidVersion

لهاعملاء

public boolean hasClients ()

الركلات المردودة
boolean

installPackage

public void installPackage (String packageFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                long maxTimeout, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits, 
                String... extraArgs)

المعلّمات
packageFilePath String

reinstall boolean

receiver InstallReceiver

maxTimeout long

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

extraArgs String

الرميات
InstallException

installPackage

public void installPackage (String packageFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                String... extraArgs)

المعلّمات
packageFilePath String

reinstall boolean

receiver InstallReceiver

extraArgs String

الرميات
InstallException

installPackage

public void installPackage (String packageFilePath, 
                boolean reinstall, 
                String... extraArgs)

المعلّمات
packageFilePath String

reinstall boolean

extraArgs String

الرميات
InstallException

حزم install

public void installPackages ( apkFilePaths, 
                boolean reinstall, 
                 extraArgs, 
                long timeOutInMs, 
                TimeUnit timeunit)

المعلّمات
apkFilePaths

reinstall boolean

extraArgs

timeOutInMs long

timeunit TimeUnit

الرميات
InstallException

installRemotePackage

public void installRemotePackage (String remoteFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                String... extraArgs)

المعلّمات
remoteFilePath String

reinstall boolean

receiver InstallReceiver

extraArgs String

الرميات
InstallException

installRemotePackage

public void installRemotePackage (String remoteFilePath, 
                boolean reinstall, 
                String... extraArgs)

المعلّمات
remoteFilePath String

reinstall boolean

extraArgs String

الرميات
InstallException

installRemotePackage

public void installRemotePackage (String remoteFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                long maxTimeout, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits, 
                String... extraArgs)

المعلّمات
remoteFilePath String

reinstall boolean

receiver InstallReceiver

maxTimeout long

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

extraArgs String

الرميات
InstallException

isBootLoader

public boolean isBootLoader ()

الركلات المردودة
boolean

isEmulator

public boolean isEmulator ()

الركلات المردودة
boolean

بلا إنترنت

public boolean isOffline ()

الركلات المردودة
boolean

على الإنترنت

public boolean isOnline ()

الركلات المردودة
boolean

الجذر

public boolean isRoot ()

الركلات المردودة
boolean

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

ملف سحب

public void pullFile (String remote, 
                String local)

المعلّمات
remote String

local String

الرميات
AdbCommandRejectedException
SyncException
TimeoutException

ملف الدفع

public void pushFile (String local, 
                String remote)

المعلّمات
local String

remote String

الرميات
AdbCommandRejectedException
SyncException
TimeoutException

إعادة تشغيل

public void reboot (String into)

المعلّمات
into String

الرميات
AdbCommandRejectedException
TimeoutException

إزالة إعادة توجيه

public void removeForward (int localPort)

المعلّمات
localPort int

الرميات
AdbCommandRejectedException
TimeoutException

إزالة إعادة توجيه

public void removeForward (int localPort, 
                int remotePort)

المعلّمات
localPort int

remotePort int

الرميات
AdbCommandRejectedException
TimeoutException

إزالة إعادة توجيه

public void removeForward (int localPort, 
                String remoteSocketName, 
                IDevice.DeviceUnixSocketNamespace namespace)

المعلّمات
localPort int

remoteSocketName String

namespace IDevice.DeviceUnixSocketNamespace

الرميات
AdbCommandRejectedException
TimeoutException

removeRemotePackage

public void removeRemotePackage (String remoteFilePath)

المعلّمات
remoteFilePath String

الرميات
InstallException

إزالة عكس

public void removeReverse (int remotePort)

المعلّمات
remotePort int

الرميات
AdbCommandRejectedException
TimeoutException

الجذر

public boolean root ()

الركلات المردودة
boolean

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

RunEventLogService

public void runEventLogService (LogReceiver receiver)

المعلّمات
receiver LogReceiver

الرميات
AdbCommandRejectedException
TimeoutException

خدمة runLogService

public void runLogService (String logname, 
                LogReceiver receiver)

المعلّمات
logname String

receiver LogReceiver

الرميات
AdbCommandRejectedException
TimeoutException

المجموعة التسلسلية

public void setSerial (String serial)

المعلّمات
serial String

startscreenRecorder (مسجّل الشاشة)

public void startScreenRecorder (String remoteFilePath, 
                ScreenRecorderOptions options, 
                IShellOutputReceiver receiver)

المعلّمات
remoteFilePath String

options ScreenRecorderOptions

receiver IShellOutputReceiver

الرميات
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

ميزة

public boolean supportsFeature (IDevice.HardwareFeature arg0)

المعلّمات
arg0 IDevice.HardwareFeature

الركلات المردودة
boolean

ميزة

public boolean supportsFeature (IDevice.Feature feature)

المعلّمات
feature IDevice.Feature

الركلات المردودة
boolean

SyncPackageToDevice

public String syncPackageToDevice (String localFilePath)

المعلّمات
localFilePath String

الركلات المردودة
String

الرميات
AdbCommandRejectedException
SyncException
TimeoutException

إلغاء تثبيت التطبيق

public String uninstallApp (String applicationID, 
                String... extraArgs)

المعلّمات
applicationID String

extraArgs String

الركلات المردودة
String

الرميات
InstallException

إلغاء تثبيت الحزمة

public String uninstallPackage (String packageName)

المعلّمات
packageName String

الركلات المردودة
String

الرميات
InstallException