جهاز Stub
public
class
StubDevice
extends Object
implements
IDevice
java.lang.Object
|
↳ |
com.android.tradefed.device.StubDevice
|
الفئات الفرعية المباشرة المعروفة
|
تنفيذ عنصر نائب لرمز IDevice
الملخّص
الطرق العامة |
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)
جهاز Stub
public StubDevice (String serial,
boolean isEmulator)
المعلّمات |
serial |
String |
isEmulator |
boolean |
الطرق العامة
isPropertiesSet
public boolean arePropertiesSet ()
إنشاء إعادة توجيه
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 ()
الحصول على AvdPath
public String getAvdPath ()
الحصول على البطارية
public getBattery (long freshnessTime,
TimeUnit timeUnit)
المعلّمات |
freshnessTime |
long |
timeUnit |
TimeUnit |
الحصول على البطارية
public getBattery ()
الحصول على مستوى شحن البطارية
public Integer getBatteryLevel (long freshnessMs)
تم إيقاف هذه الطريقة نهائيًا.
استخدِم getBattery(long, TimeUnit)
بدلاً من ذلك.
المعلّمات |
freshnessMs |
long |
الرميات |
AdbCommandRejectedException |
|
ShellCommandUnresponsiveException |
|
TimeoutException |
|
الحصول على مستوى شحن البطارية
public Integer getBatteryLevel ()
تم إيقاف هذه الطريقة نهائيًا.
استخدِم getBattery()
بدلاً من ذلك.
الرميات |
AdbCommandRejectedException |
|
ShellCommandUnresponsiveException |
|
TimeoutException |
|
الحصول على عميل
public Client getClient (String applicationName)
المعلّمات |
applicationName |
String |
الحصول على اسم العميل
public String getClientName (int pid)
الحصول على عملاء
public Client[] getClients ()
الركلات المردودة |
Client[] |
|
الحصول على الكثافة
public int getDensity ()
خدمة getFileListingService
public FileListingService getFileListingService ()
الركلات المردودة |
FileListingService |
|
الطريقة getLanguage
public String getLanguage ()
الحصول على ماونت بوينت
public String getMountPoint (String name)
الحصول على اسم
public String getName ()
الحصول على الخاصية
public String getProperty (String name)
الحصول على خصائص ذاكرة التخزين المؤقت أو المزامنة
public String getPropertyCacheOrSync (String name)
تم إيقاف هذه الطريقة نهائيًا.
استخدِم getProperty(String)
بدلاً من ذلك.
الرميات |
AdbCommandRejectedException |
|
ShellCommandUnresponsiveException |
|
TimeoutException |
|
الحصول على عدد المواقع
public int getPropertyCount ()
تم إيقاف هذه الطريقة نهائيًا.تم إيقاف
نهائيًا في ddmlib مع تحديد "تفاصيل التنفيذ" كسبب.
getPropertySync
public String getPropertySync (String name)
تم إيقاف هذه الطريقة نهائيًا.
استخدِم getProperty(String)
بدلاً من ذلك.
الرميات |
AdbCommandRejectedException |
|
ShellCommandUnresponsiveException |
|
TimeoutException |
|
استرداد المنطقة
public String getRegion ()
الحصول على لقطة شاشة
public RawImage getScreenshot ()
الركلات المردودة |
RawImage |
|
الرميات |
AdbCommandRejectedException |
|
TimeoutException |
|
الحصول على لقطة شاشة
public RawImage getScreenshot (long timeout,
TimeUnit unit)
المعلّمات |
timeout |
long |
unit |
TimeUnit |
الركلات المردودة |
RawImage |
|
الرميات |
AdbCommandRejectedException |
|
TimeoutException |
|
الحصول على الرقم التسلسلي
public String getSerialNumber ()
الحصول على ولاية
public IDevice.DeviceState getState ()
الركلات المردودة |
IDevice.DeviceState |
|
الحصول على خدمة المزامنة
public SyncService getSyncService ()
الركلات المردودة |
SyncService |
|
الرميات |
AdbCommandRejectedException |
|
TimeoutException |
|
سمة getSystemProperty
public ListenableFuture<String> getSystemProperty (String name)
الركلات المردودة |
ListenableFuture<String> |
|
الحصول على الإصدار
public AndroidVersion getVersion ()
الركلات المردودة |
AndroidVersion |
|
لهاعملاء
public boolean hasClients ()
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 |
installPackage
public void installPackage (String packageFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)
المعلّمات |
packageFilePath |
String |
reinstall |
boolean |
receiver |
InstallReceiver |
extraArgs |
String |
installPackage
public void installPackage (String packageFilePath,
boolean reinstall,
String... extraArgs)
المعلّمات |
packageFilePath |
String |
reinstall |
boolean |
extraArgs |
String |
حزم install
public void installPackages ( apkFilePaths,
boolean reinstall,
extraArgs,
long timeOutInMs,
TimeUnit timeunit)
المعلّمات |
apkFilePaths |
|
reinstall |
boolean |
extraArgs |
|
timeOutInMs |
long |
timeunit |
TimeUnit |
installRemotePackage
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)
المعلّمات |
remoteFilePath |
String |
reinstall |
boolean |
receiver |
InstallReceiver |
extraArgs |
String |
installRemotePackage
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
String... extraArgs)
المعلّمات |
remoteFilePath |
String |
reinstall |
boolean |
extraArgs |
String |
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 |
isBootLoader
public boolean isBootLoader ()
isEmulator
public boolean isEmulator ()
بلا إنترنت
public boolean isOffline ()
على الإنترنت
public boolean isOnline ()
الجذر
public boolean isRoot ()
الرميات |
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)
الرميات |
AdbCommandRejectedException |
|
TimeoutException |
|
إزالة إعادة توجيه
public void removeForward (int localPort)
الرميات |
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 |
إزالة عكس
public void removeReverse (int remotePort)
الرميات |
AdbCommandRejectedException |
|
TimeoutException |
|
الجذر
public boolean root ()
الرميات |
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)
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 |
ميزة
public boolean supportsFeature (IDevice.Feature feature)
المعلّمات |
feature |
IDevice.Feature |
SyncPackageToDevice
public String syncPackageToDevice (String localFilePath)
المعلّمات |
localFilePath |
String |
الرميات |
AdbCommandRejectedException |
|
SyncException |
|
TimeoutException |
|
إلغاء تثبيت التطبيق
public String uninstallApp (String applicationID,
String... extraArgs)
المعلّمات |
applicationID |
String |
extraArgs |
String |
إلغاء تثبيت الحزمة
public String uninstallPackage (String packageName)
المعلّمات |
packageName |
String |