StubDevice
public class StubDevice
extends Object implements IDevice প্রসারিত করে
| java.lang.অবজেক্ট | |
| ↳ | 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) এই পদ্ধতি অবজ্ঞা করা হয়. |
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) এই পদ্ধতি অবজ্ঞা করা হয়. পরিবর্তে |
Integer | getBatteryLevel () এই পদ্ধতি অবজ্ঞা করা হয়. পরিবর্তে |
Client | getClient (String applicationName) |
String | getClientName (int pid) |
Client[] | getClients () |
int | getDensity () |
FileListingService | getFileListingService () |
String | getLanguage () |
String | getMountPoint (String name) |
String | getName () |
getProperties () এই পদ্ধতি অবজ্ঞা করা হয়. পরিবর্তে | |
String | getProperty (String name) |
String | getPropertyCacheOrSync (String name) এই পদ্ধতি অবজ্ঞা করা হয়. পরিবর্তে |
int | getPropertyCount ()এই পদ্ধতি অবজ্ঞা করা হয়. কারণ হিসাবে "বাস্তবায়ন বিশদ" সহ ddmlib-এ অবচয়। |
String | getPropertySync (String name) এই পদ্ধতি অবজ্ঞা করা হয়. পরিবর্তে |
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)installPackages ( apkFilePaths, boolean reinstall, extraArgs, long timeOutInMs, TimeUnit timeunit)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)
|
পাবলিক কনস্ট্রাক্টর
StubDevice
public StubDevice (String serial)
| পরামিতি | |
|---|---|
serial | String |
StubDevice
public StubDevice (String serial,
boolean isEmulator)| পরামিতি | |
|---|---|
serial | String |
isEmulator | boolean |
পাবলিক পদ্ধতি
প্রপার্টিজ সেট
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
publicgetAbis ()
| রিটার্নস | |
|---|---|
getAvdName
public String getAvdName ()
| রিটার্নস | |
|---|---|
String | |
getAvdPath
public String getAvdPath ()
| রিটার্নস | |
|---|---|
String | |
ব্যাটারি পান
publicgetBattery (long freshnessTime, TimeUnit timeUnit)
| পরামিতি | |
|---|---|
freshnessTime | long |
timeUnit | TimeUnit |
| রিটার্নস | |
|---|---|
ব্যাটারি পান
publicgetBattery ()
| রিটার্নস | |
|---|---|
ব্যাটারি লেভেল পান
public Integer getBatteryLevel (long freshnessMs)
এই পদ্ধতি অবজ্ঞা করা হয়.
পরিবর্তে getBattery(long, TimeUnit) ব্যবহার করুন।
| পরামিতি | |
|---|---|
freshnessMs | long |
| রিটার্নস | |
|---|---|
Integer | |
| নিক্ষেপ করে | |
|---|---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
ব্যাটারি লেভেল পান
public Integer getBatteryLevel ()
এই পদ্ধতি অবজ্ঞা করা হয়.
পরিবর্তে getBattery() ব্যবহার করুন।
| রিটার্নস | |
|---|---|
Integer | |
| নিক্ষেপ করে | |
|---|---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
getClient
public Client getClient (String applicationName)
| পরামিতি | |
|---|---|
applicationName | String |
| রিটার্নস | |
|---|---|
Client | |
getClientName
public String getClientName (int pid)
| পরামিতি | |
|---|---|
pid | int |
| রিটার্নস | |
|---|---|
String | |
ক্লায়েন্ট পান
public Client[] getClients ()
| রিটার্নস | |
|---|---|
Client[] | |
পান ঘনত্ব
public int getDensity ()
| রিটার্নস | |
|---|---|
int | |
getFileListingService
public FileListingService getFileListingService ()
| রিটার্নস | |
|---|---|
FileListingService | |
ভাষা পান
public String getLanguage ()
| রিটার্নস | |
|---|---|
String | |
getMountPoint
public String getMountPoint (String name)
| পরামিতি | |
|---|---|
name | String |
| রিটার্নস | |
|---|---|
String | |
getName
public String getName ()
| রিটার্নস | |
|---|---|
String | |
Get Properties
publicgetProperties ()
এই পদ্ধতি অবজ্ঞা করা হয়.
পরিবর্তে getSystemProperty(String) ব্যবহার করুন।
| রিটার্নস | |
|---|---|
সম্পত্তি পান
public String getProperty (String name)
| পরামিতি | |
|---|---|
name | String |
| রিটার্নস | |
|---|---|
String | |
GetPropertyCacheOrSync
public String getPropertyCacheOrSync (String name)
এই পদ্ধতি অবজ্ঞা করা হয়.
পরিবর্তে getProperty(String) ব্যবহার করুন।
| পরামিতি | |
|---|---|
name | String |
| রিটার্নস | |
|---|---|
String | |
| নিক্ষেপ করে | |
|---|---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
GetPropertyCount
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 | |
getState
public IDevice.DeviceState getState ()
| রিটার্নস | |
|---|---|
IDevice.DeviceState | |
getSyncService
public SyncService getSyncService ()
| রিটার্নস | |
|---|---|
SyncService | |
| নিক্ষেপ করে | |
|---|---|
AdbCommandRejectedException | |
TimeoutException | |
সিস্টেম সম্পত্তি পান
public ListenableFuture<String> getSystemProperty (String name)
| পরামিতি | |
|---|---|
name | String |
| রিটার্নস | |
|---|---|
ListenableFuture<String> | |
getVersion
public AndroidVersion getVersion ()
| রিটার্নস | |
|---|---|
AndroidVersion | |
ক্লায়েন্ট আছে
public boolean hasClients ()
| রিটার্নস | |
|---|---|
boolean | |
প্যাকেজ ইনস্টল করুন
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 | |
প্যাকেজ ইনস্টল করুন
public void installPackage (String packageFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)| পরামিতি | |
|---|---|
packageFilePath | String |
reinstall | boolean |
receiver | InstallReceiver |
extraArgs | String |
| নিক্ষেপ করে | |
|---|---|
InstallException | |
প্যাকেজ ইনস্টল করুন
public void installPackage (String packageFilePath,
boolean reinstall,
String... extraArgs)| পরামিতি | |
|---|---|
packageFilePath | String |
reinstall | boolean |
extraArgs | String |
| নিক্ষেপ করে | |
|---|---|
InstallException | |
প্যাকেজ ইনস্টল করুন
public void installPackages (apkFilePaths, boolean reinstall, extraArgs, long timeOutInMs, TimeUnit timeunit)
| পরামিতি | |
|---|---|
apkFilePaths | |
reinstall | boolean |
extraArgs | |
timeOutInMs | long |
timeunit | TimeUnit |
| নিক্ষেপ করে | |
|---|---|
InstallException | |
রিমোট প্যাকেজ ইনস্টল করুন
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)| পরামিতি | |
|---|---|
remoteFilePath | String |
reinstall | boolean |
receiver | InstallReceiver |
extraArgs | String |
| নিক্ষেপ করে | |
|---|---|
InstallException | |
রিমোট প্যাকেজ ইনস্টল করুন
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
String... extraArgs)| পরামিতি | |
|---|---|
remoteFilePath | String |
reinstall | boolean |
extraArgs | String |
| নিক্ষেপ করে | |
|---|---|
InstallException | |
রিমোট প্যাকেজ ইনস্টল করুন
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 | |
বুটলোডার
public boolean isBootLoader ()
| রিটার্নস | |
|---|---|
boolean | |
ইমুলেটর
public boolean isEmulator ()
| রিটার্নস | |
|---|---|
boolean | |
অফলাইন
public boolean isOffline ()
| রিটার্নস | |
|---|---|
boolean | |
অনলাইন হয়
public boolean isOnline ()
| রিটার্নস | |
|---|---|
boolean | |
isRoot
public boolean isRoot ()
| রিটার্নস | |
|---|---|
boolean | |
| নিক্ষেপ করে | |
|---|---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
pullFile
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 | |
রিমোট প্যাকেজ সরান
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 | |
রানলগসার্ভিস
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 | |