নেটিভ ডিভাইস
public class NativeDevice
extends Object
implements IManagedTestDevice, IConfigurationReceiver
java.lang.অবজেক্ট | |
↳ | com.android.tradefed.device.NativeDevice |
একটি ITestDevice
নন-ফুল স্ট্যাক অ্যান্ড্রয়েড ডিভাইসের ডিফল্ট বাস্তবায়ন।
সারাংশ
নেস্টেড ক্লাস | |
---|---|
class | NativeDevice.AdbAction একটি OS 'adb....' কমান্ড চালানোর জন্য একটি |
class | NativeDevice.AdbShellAction |
class | NativeDevice.RebootDeviceAction ডিভাইস রিবুট করার জন্য |
enum | NativeDevice.RebootMode রিবুটের একটি মোড। |
ধ্রুবক | |
---|---|
int | INVALID_USER_ID যেকোন অবৈধ/পাওয়া যায়নি ব্যবহারকারী আইডির জন্য মান ফেরত: UserHandle -10000 মানকে সংজ্ঞায়িত করেছে |
long | MAX_HOST_DEVICE_TIME_OFFSET |
int | MAX_RETRY_ATTEMPTS কমান্ড পুনঃপ্রচেষ্টার ডিফল্ট সংখ্যা সঞ্চালনের জন্য |
ক্ষেত্র | |
---|---|
protected static final String | SD_CARD |
protected static final String | STORAGE_EMULATED |
protected TestDeviceOptions | mOptions |
protected final IDeviceStateMonitor | mStateMonitor
|
পাবলিক কনস্ট্রাক্টর | |
---|---|
NativeDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor) একটি |
পাবলিক পদ্ধতি | |
---|---|
boolean | checkApiLevelAgainstNextRelease (int strictMinLevel) |
boolean | checkConnectivity () |
boolean | clearErrorDialogs () |
void | clearLastConnectedWifiNetwork () |
void | clearLogcat () |
boolean | connectToWifiNetwork (String wifiSsid, String wifiPsk) |
boolean | connectToWifiNetwork (String wifiSsid, String wifiPsk, boolean scanSsid) |
boolean | connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk, boolean scanSsid) |
boolean | connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk) |
int | createUser (String name, boolean guest, boolean ephemeral) |
int | createUser (String name) |
int | createUserNoThrow (String name) |
void | deleteFile (String deviceFilePath) |
boolean | deviceSoftRestarted (ProcessInfo prevSystemServerProcess) |
boolean | deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit) |
boolean | disableAdbRoot () |
void | disableKeyguard () |
boolean | disableNetworkMonitor () |
boolean | disconnectFromWifi () |
boolean | doesFileExist (String deviceFilePath) |
File | dumpHeap (String process, String devicePath) |
boolean | enableAdbRoot () |
boolean | enableNetworkMonitor () |
boolean | encryptDevice (boolean inplace) |
String | executeAdbCommand (long timeout, String... cmdArgs) |
String | executeAdbCommand (String... cmdArgs) |
CommandResult | executeFastbootCommand (String... cmdArgs) |
CommandResult | executeFastbootCommand (long timeout, String... cmdArgs) |
CommandResult | executeLongFastbootCommand (String... cmdArgs) |
String | executeShellCommand (String command) |
void | executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts) |
void | executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts) |
void | executeShellCommand (String command, IShellOutputReceiver receiver) |
CommandResult | executeShellV2Command (String cmd) |
CommandResult | executeShellV2Command (String cmd, OutputStream pipeToOutput) |
CommandResult | executeShellV2Command (String cmd, File pipeAsInput) |
CommandResult | executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts) |
CommandResult | executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit) |
CommandResult | executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts) |
CommandResult | executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts) |
CommandResult | fastbootWipePartition (String partition) |
getActiveApexes () | |
getAllSettings (String namespace) | |
DeviceAllocationState | getAllocationState () |
String | getAndroidId (int userId) |
getAndroidIds () | |
int | getApiLevel () |
PackageInfo | getAppPackageInfo (String packageName) |
getAppPackageInfos () | |
String | getBasebandVersion () |
Integer | getBattery () |
boolean | getBooleanProperty (String name, boolean defaultValue) |
getBootHistory () | |
getBootHistorySince (long utcEpochTime, TimeUnit timeUnit) | |
String | getBootloaderVersion () |
InputStreamSource | getBugreport () |
InputStreamSource | getBugreportz () |
String | getBuildAlias () |
String | getBuildFlavor () |
String | getBuildId () |
String | getBuildSigningKeys () |
DeviceDescriptor | getCachedDeviceDescriptor () |
String[] | getChildren (String path) |
DeviceFoldableState | getCurrentFoldableState () |
int | getCurrentUser () |
String | getDeviceClass () |
long | getDeviceDate () |
DeviceDescriptor | getDeviceDescriptor () |
TestDeviceState | getDeviceState () |
long | getDeviceTimeOffset (Date date) |
InputStreamSource | getEmulatorOutput () |
Process | getEmulatorProcess () |
final File | getExecuteShellCommandLog () যে লগটিতে সমস্ত |
long | getExternalStoreFreeSpace () |
String | getFastbootPath () |
String | getFastbootProductType () |
String | getFastbootProductVariant () |
String | getFastbootSerialNumber () |
String | getFastbootVariable (String variableName) |
String | getFastbootVersion () |
IFileEntry | getFileEntry (String path) |
IFileEntry | getFileEntry (FileListingService.FileEntry entry) একটি নন-রুট পাথ থেকে |
getFoldableStates () | |
IDevice | getIDevice () |
getInstalledPackageNames () | |
long | getIntProperty (String name, long defaultValue) |
String | getIpAddress () |
KeyguardControllerState | getKeyguardState () |
long | getLastExpectedRebootTimeMillis () |
int | getLaunchApiLevel () |
InputStreamSource | getLogcat () |
InputStreamSource | getLogcat (int maxBytes) |
InputStreamSource | getLogcatDump () |
InputStreamSource | getLogcatSince (long date) |
String | getMacAddress () |
getMainlineModuleInfo () | |
int | getMaxNumberOfRunningUsersSupported () |
int | getMaxNumberOfUsersSupported () |
IDeviceStateMonitor | getMonitor () |
String | getMountPoint (String mountName) |
ITestDevice.MountPointInfo | getMountPointInfo (String mountpoint) |
getMountPointInfo () | |
TestDeviceOptions | getOptions () |
long | getPartitionFreeSpace (String partition) |
Integer | getPrimaryUserId () |
ProcessInfo | getProcessByName (String processName) |
String | getProcessPid (String process) |
String | getProductType () |
String | getProductVariant () |
String | getProperty (String name) |
ITestDevice.RecoveryMode | getRecoveryMode () |
InputStreamSource | getScreenshot (String format) |
InputStreamSource | getScreenshot (long displayId) |
InputStreamSource | getScreenshot (String format, boolean rescale) |
InputStreamSource | getScreenshot () |
String | getSerialNumber () |
String | getSetting (int userId, String namespace, String key) |
String | getSetting (String namespace, String key) |
String | getSimOperator () |
String | getSimState () |
getTombstones () | |
long | getTotalMemory () |
getUninstallablePackageNames () | |
boolean | getUseFastbootErase () |
int | getUserFlags (int userId) |
getUserInfos () | |
int | getUserSerialNumber (int userId) |
IManagedTestDevice.DeviceEventResponse | handleAllocationEvent (DeviceEvent event) ডিভাইস ইভেন্ট প্রক্রিয়া করুন, যা এই ডিভাইসটিকে একটি নতুন বরাদ্দ অবস্থায় স্থানান্তর করতে পারে বা নাও করতে পারে। |
boolean | hasFeature (String feature) |
String | installPackage (File packageFile, boolean reinstall, String... extraArgs) |
String | installPackage (File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs) |
String | installPackageForUser (File packageFile, boolean reinstall, int userId, String... extraArgs) |
String | installPackageForUser (File packageFile, boolean reinstall, boolean grantPermissions, int userId, String... extraArgs) |
boolean | isAdbRoot () |
boolean | isAdbTcp () |
boolean | isAppEnumerationSupported () |
boolean | isDeviceEncrypted () |
boolean | isDirectory (String path) |
boolean | isEnableAdbRoot () |
boolean | isEncryptionSupported () |
boolean | isExecutable (String fullPath) |
boolean | isFastbootEnabled () |
boolean | isHeadless () |
boolean | isMultiUserSupported () |
boolean | isPackageInstalled (String packageName, String userId) |
boolean | isPackageInstalled (String packageName) |
boolean | isRuntimePermissionSupported () |
boolean | isStateBootloaderOrFastbootd () |
boolean | isUserRunning (int userId) |
boolean | isUserSecondary (int userId) |
boolean | isWifiEnabled () |
listDisplayIds () | |
listUsers () | |
boolean | logBugreport (String dataName, ITestLogger listener) |
void | logOnDevice (String tag, Log.LogLevel level, String format, Object... args) |
void | nonBlockingReboot () |
void | postAdbRootAction () অ্যাডবি রুটের পরে এবং ডিভাইসটি অনলাইনে ফিরে আসার আগে ডিভাইসটির কিছু নির্দিষ্ট পদক্ষেপ নেওয়ার প্রয়োজন হলে ওভাররাইড করুন। |
void | postAdbUnrootAction () অ্যাডবি আনরুট করার পরে এবং ডিভাইসটি অনলাইনে ফিরে আসার আগে ডিভাইসটির কিছু নির্দিষ্ট পদক্ষেপ নেওয়ার প্রয়োজন হলে ওভাররাইড করুন। |
void | postBootSetup () |
void | postInvocationTearDown (Throwable exception) |
void | preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes) |
boolean | pullDir (String deviceFilePath, File localDir) |
boolean | pullFile (String remoteFilePath, File localFile) |
File | pullFile (String remoteFilePath) |
String | pullFileContents (String remoteFilePath) |
File | pullFileFromExternal (String remoteFilePath) |
boolean | pushDir (File localFileDir, String deviceFilePath, excludedDirectories) pushDir (File localFileDir, String deviceFilePath, excludedDirectories) |
boolean | pushDir (File localFileDir, String deviceFilePath) |
boolean | pushFile (File localFile, String remoteFilePath) |
boolean | pushString (String contents, String remoteFilePath) |
void | reboot (String reason) |
void | reboot () |
void | rebootIntoBootloader () |
void | rebootIntoFastbootd () |
void | rebootIntoRecovery () |
void | rebootIntoSideload () |
void | rebootIntoSideload (boolean autoReboot) |
void | rebootUntilOnline () |
void | rebootUntilOnline (String reason) |
void | rebootUserspace () |
void | rebootUserspaceUntilOnline () |
void | recoverDevice () ডিভাইস যোগাযোগ পুনরুদ্ধার করার প্রচেষ্টা. |
void | remountSystemWritable () |
void | remountVendorWritable () |
boolean | removeAdmin (String componentName, int userId) |
void | removeOwners () |
boolean | removeUser (int userId) |
void | resetContentProviderSetup () এটিকে আবার ট্রিগার করার জন্য সামগ্রী প্রদানকারী সেটআপের জন্য পতাকাটি পুনরায় সেট করুন৷ |
boolean | runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners) |
boolean | runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners) runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners) |
boolean | runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) |
boolean | runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners) runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners) |
void | setConfiguration ( IConfiguration configuration) ব্যবহৃত |
void | setDate (Date date) |
boolean | setDeviceOwner (String componentName, int userId) |
void | setDeviceState (TestDeviceState deviceState) |
void | setEmulatorOutputStream ( SizeLimitedOutputStream output) এমুলেটরের জন্য আউটপুট লগ করার জন্য |
void | setEmulatorProcess (Process p) |
void | setFastbootEnabled (boolean fastbootEnabled) |
void | setFastbootPath (String fastbootPath) |
void | setIDevice (IDevice newDevice) |
void | setOptions (TestDeviceOptions options) |
boolean | setProperty (String propKey, String propValue) |
void | setRecovery (IDeviceRecovery recovery) |
void | setRecoveryMode (ITestDevice.RecoveryMode mode) |
void | setSetting (String namespace, String key, String value) |
void | setSetting (int userId, String namespace, String key, String value) |
void | setUseFastbootErase (boolean useFastbootErase) |
void | startLogcat () |
boolean | startUser (int userId) |
boolean | startUser (int userId, boolean waitFlag) |
void | stopEmulatorOutput () |
void | stopLogcat () |
boolean | stopUser (int userId) |
boolean | stopUser (int userId, boolean waitFlag, boolean forceFlag) |
String | switchToAdbTcp () |
boolean | switchToAdbUsb () |
boolean | switchUser (int userId) |
boolean | switchUser (int userId, long timeout) |
boolean | syncFiles (File localFileDir, String deviceFilePath) |
Bugreport | takeBugreport () |
boolean | unencryptDevice () |
String | uninstallPackage (String packageName) |
String | uninstallPackageForUser (String packageName, int userId) |
boolean | unlockDevice () |
boolean | waitForBootComplete (long timeOut) |
void | waitForDeviceAvailable () |
void | waitForDeviceAvailable (long waitTime) |
boolean | waitForDeviceInRecovery (long waitTime) |
boolean | waitForDeviceInSideload (long waitTime) |
boolean | waitForDeviceNotAvailable (long waitTime) |
void | waitForDeviceOnline () |
void | waitForDeviceOnline (long waitTime) |
boolean | waitForDeviceShell (long waitTime)
|
সুরক্ষিত পদ্ধতি | |
---|---|
void | checkApiLevelAgainst (String feature, int strictMinLevel) |
NativeDevice.RebootDeviceAction | createRebootDeviceAction ( NativeDevice.RebootMode rebootMode, String reason) একটি রিবুট ক্রিয়া সম্পাদন করার সময় ব্যবহার করার জন্য একটি |
void | doAdbReboot ( NativeDevice.RebootMode rebootMode, String reason) একটি অ্যাডবি রিবুট করুন। |
void | ensureRuntimePermissionSupported () রানটাইম অনুমতি সমর্থিত না হলে ব্যতিক্রম নিক্ষেপ করার জন্য সহায়ক পদ্ধতি |
InputStreamSource | getBugreportInternal () |
File | getBugreportzInternal () একটি |
IRunUtil | getRunUtil () ব্যবহার করার জন্য |
String | internalGetProperty (String propName, String fastbootVar, String description) ডিফল্টরূপে ddmlib ক্যাশে থেকে একটি ডিভাইস প্রপার্টি আনুন এবং ডিভাইসটি Fastboot-এ আছে কি না তার উপর নির্ভর করে `adb shell getprop` অথবা `fastboot getvar`-এ ফিরে যান। |
boolean | isNewer (File localFile, IFileEntry entry) স্থানীয় ফাইল রিমোট ফাইলের চেয়ে নতুন হলে |
boolean | performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts) এই ডিভাইসে একটি ক্রিয়া সম্পাদন করে৷ |
void | postAdbReboot () রিবুট করার পরে সম্ভাব্য অতিরিক্ত পদক্ষেপ নেওয়া যেতে পারে। |
void | prePostBootSetup () প্রতিটি ডিভাইস প্রকার (AndroidNativeDevice, TestDevice) নির্দিষ্ট পোস্ট বুট সেটআপের জন্য এই পদ্ধতিটিকে ওভাররাইড করার অনুমতি দেয়৷ |
void | setClock (Clock clock) ব্যবহার করার জন্য ঘড়ির উদাহরণ সেট করুন। |
void | setLogStartDelay (int delay) একটি অনলাইন ডিভাইসের জন্য লগক্যাট ক্যাপচার শুরু করার আগে অপেক্ষা করার জন্য ms-এ সময় সেট করে। |
void | waitForDeviceNotAvailable (String operationDesc, long time) |
ধ্রুবক
INVALID_USER_ID
public static final int INVALID_USER_ID
যেকোন অবৈধ/পাওয়া যায়নি ব্যবহারকারী আইডির জন্য মান ফেরত: UserHandle -10000 মানকে সংজ্ঞায়িত করেছে
ধ্রুবক মান: -10000 (0xffffd8f0)
MAX_HOST_DEVICE_TIME_OFFSET
protected static final long MAX_HOST_DEVICE_TIME_OFFSET
ধ্রুবক মান: 5000 (0x0000000000001388)
MAX_RETRY_ATTEMPTS
protected static final int MAX_RETRY_ATTEMPTS
কমান্ড পুনঃপ্রচেষ্টার ডিফল্ট সংখ্যা সঞ্চালনের জন্য
ধ্রুবক মান: 2 (0x00000002)
ক্ষেত্র
SD_CARD
protected static final String SD_CARD
STORAGE_EMULATED
protected static final String STORAGE_EMULATED
বিকল্প
protected TestDeviceOptions mOptions
mStateMonitor
protected final IDeviceStateMonitor mStateMonitor
পাবলিক কনস্ট্রাক্টর
নেটিভ ডিভাইস
public NativeDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
একটি TestDevice
তৈরি করে।
পরামিতি | |
---|---|
device | IDevice : সংশ্লিষ্ট IDevice |
stateMonitor | IDeviceStateMonitor : ব্যবহার করার জন্য IDeviceStateMonitor প্রক্রিয়া |
allocationMonitor | IDeviceMonitor : IDeviceMonitor বরাদ্দের অবস্থার পরিবর্তন সম্পর্কে জানাতে। শূন্য হতে পারে |
পাবলিক পদ্ধতি
CheckApiLevel AgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
পরামিতি | |
---|---|
strictMinLevel | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সংযোগ পরীক্ষা করুন
public boolean checkConnectivity ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সাফ ত্রুটি ডায়ালগ
public boolean clearErrorDialogs ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সাফ লাস্টকানেক্টেডওয়াইফাই নেটওয়ার্ক
public void clearLastConnectedWifiNetwork ()
clearLogcat
public void clearLogcat ()
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid, String wifiPsk)
পরামিতি | |
---|---|
wifiSsid | String |
wifiPsk | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid, String wifiPsk, boolean scanSsid)
পরামিতি | |
---|---|
wifiSsid | String |
wifiPsk | String |
scanSsid | boolean |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
connectToWifiNetworkIfNeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk, boolean scanSsid)
পরামিতি | |
---|---|
wifiSsid | String |
wifiPsk | String |
scanSsid | boolean |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
connectToWifiNetworkIfNeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk)
পরামিতি | |
---|---|
wifiSsid | String |
wifiPsk | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ব্যবহারকারী তৈরি করুন
public int createUser (String name, boolean guest, boolean ephemeral)
পরামিতি | |
---|---|
name | String |
guest | boolean |
ephemeral | boolean |
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ব্যবহারকারী তৈরি করুন
public int createUser (String name)
পরামিতি | |
---|---|
name | String |
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
createUserNoThrow
public int createUserNoThrow (String name)
পরামিতি | |
---|---|
name | String |
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডিলিট ফাইল
public void deleteFile (String deviceFilePath)
পরামিতি | |
---|---|
deviceFilePath | String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডিভাইস সফট রিস্টার্ট হয়েছে
public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
পরামিতি | |
---|---|
prevSystemServerProcess | ProcessInfo |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডিভাইস সফট রিস্টার্ট হয়েছে
public boolean deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit)
পরামিতি | |
---|---|
utcEpochTime | long |
timeUnit | TimeUnit |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
অক্ষমAdbRoot
public boolean disableAdbRoot ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
নিষ্ক্রিয় কীগার্ড
public void disableKeyguard ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
নিষ্ক্রিয় নেটওয়ার্ক মনিটর
public boolean disableNetworkMonitor ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
Wifi থেকে সংযোগ বিচ্ছিন্ন করুন
public boolean disconnectFromWifi ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ফাইলের অস্তিত্ব নেই
public boolean doesFileExist (String deviceFilePath)
পরামিতি | |
---|---|
deviceFilePath | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডাম্পহিপ
public File dumpHeap (String process, String devicePath)
পরামিতি | |
---|---|
process | String |
devicePath | String |
রিটার্নস | |
---|---|
File |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
অ্যাডবিরুট সক্ষম করুন
public boolean enableAdbRoot ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
নেটওয়ার্ক মনিটর সক্ষম করুন
public boolean enableNetworkMonitor ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
এনক্রিপ্ট ডিভাইস
public boolean encryptDevice (boolean inplace)
পরামিতি | |
---|---|
inplace | boolean |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানAdbCommand
public String executeAdbCommand (long timeout, String... cmdArgs)
পরামিতি | |
---|---|
timeout | long |
cmdArgs | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানAdbCommand
public String executeAdbCommand (String... cmdArgs)
পরামিতি | |
---|---|
cmdArgs | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ফাস্টবুটকমান্ড চালান
public CommandResult executeFastbootCommand (String... cmdArgs)
পরামিতি | |
---|---|
cmdArgs | String |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ফাস্টবুটকমান্ড চালান
public CommandResult executeFastbootCommand (long timeout, String... cmdArgs)
পরামিতি | |
---|---|
timeout | long |
cmdArgs | String |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
লংফাস্টবুটকমান্ড চালান
public CommandResult executeLongFastbootCommand (String... cmdArgs)
পরামিতি | |
---|---|
cmdArgs | String |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellCommand
public String executeShellCommand (String command)
পরামিতি | |
---|---|
command | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellCommand
public void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
পরামিতি | |
---|---|
command | String |
receiver | IShellOutputReceiver |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellCommand
public void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
পরামিতি | |
---|---|
command | String |
receiver | IShellOutputReceiver |
maxTimeoutForCommand | long |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellCommand
public void executeShellCommand (String command, IShellOutputReceiver receiver)
পরামিতি | |
---|---|
command | String |
receiver | IShellOutputReceiver |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd)
পরামিতি | |
---|---|
cmd | String |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd, OutputStream pipeToOutput)
পরামিতি | |
---|---|
cmd | String |
pipeToOutput | OutputStream |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput)
পরামিতি | |
---|---|
cmd | String |
pipeAsInput | File |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
পরামিতি | |
---|---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit)
পরামিতি | |
---|---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
পরামিতি | |
---|---|
cmd | String |
pipeAsInput | File |
pipeToOutput | OutputStream |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
চালানShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
পরামিতি | |
---|---|
cmd | String |
pipeAsInput | File |
pipeToOutput | OutputStream |
pipeToError | OutputStream |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
fastbootWipePartition
public CommandResult fastbootWipePartition (String partition)
পরামিতি | |
---|---|
partition | String |
রিটার্নস | |
---|---|
CommandResult |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetActiveApexes
publicgetActiveApexes ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সমস্ত সেটিংস পান
publicgetAllSettings (String namespace)
পরামিতি | |
---|---|
namespace | String |
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
বরাদ্দ রাজ্য পান
public DeviceAllocationState getAllocationState ()
রিটার্নস | |
---|---|
DeviceAllocationState |
অ্যান্ড্রয়েডআইডি পান
public String getAndroidId (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
অ্যান্ড্রয়েড আইডি পান
publicgetAndroidIds ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getApiLevel
public int getApiLevel ()
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getAppPackageInfo
public PackageInfo getAppPackageInfo (String packageName)
পরামিতি | |
---|---|
packageName | String |
রিটার্নস | |
---|---|
PackageInfo |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getAppPackageInfos
publicgetAppPackageInfos ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBaseband Version
public String getBasebandVersion ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ব্যাটারি পান
public Integer getBattery ()
রিটার্নস | |
---|---|
Integer |
GetBoolanProperty
public boolean getBooleanProperty (String name, boolean defaultValue)
পরামিতি | |
---|---|
name | String |
defaultValue | boolean |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBootHistory
publicgetBootHistory ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBootHistory থেকে
publicgetBootHistorySince (long utcEpochTime, TimeUnit timeUnit)
পরামিতি | |
---|---|
utcEpochTime | long |
timeUnit | TimeUnit |
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
বুটলোডার সংস্করণ পান
public String getBootloaderVersion ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBugreport
public InputStreamSource getBugreport ()
রিটার্নস | |
---|---|
InputStreamSource |
getBugreportz
public InputStreamSource getBugreportz ()
রিটার্নস | |
---|---|
InputStreamSource |
getBuildAlias
public String getBuildAlias ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
বিল্ডফ্লেভার পান
public String getBuildFlavor ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBuildId
public String getBuildId ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBuildSigningKeys
public String getBuildSigningKeys ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getCachedDeviceDescriptor
public DeviceDescriptor getCachedDeviceDescriptor ()
রিটার্নস | |
---|---|
DeviceDescriptor |
বাচ্চাদের পান
public String[] getChildren (String path)
পরামিতি | |
---|---|
path | String |
রিটার্নস | |
---|---|
String[] |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getCurrentFoldableState
public DeviceFoldableState getCurrentFoldableState ()
রিটার্নস | |
---|---|
DeviceFoldableState |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getCurrentUser
public int getCurrentUser ()
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডিভাইসক্লাস পান
public String getDeviceClass ()
রিটার্নস | |
---|---|
String |
GetDeviceDate
public long getDeviceDate ()
রিটার্নস | |
---|---|
long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
রিটার্নস | |
---|---|
DeviceDescriptor |
getDeviceState
public TestDeviceState getDeviceState ()
রিটার্নস | |
---|---|
TestDeviceState |
getDeviceTimeOffset
public long getDeviceTimeOffset (Date date)
পরামিতি | |
---|---|
date | Date |
রিটার্নস | |
---|---|
long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getEmulatorOutput
public InputStreamSource getEmulatorOutput ()
রিটার্নস | |
---|---|
InputStreamSource |
getEmulatorProcess
public Process getEmulatorProcess ()
রিটার্নস | |
---|---|
Process |
getExecuteShellCommandLog
public final File getExecuteShellCommandLog ()
যে লগটিতে সমস্ত executeShellCommand(String)
লগ রয়েছে।
রিটার্নস | |
---|---|
File |
এক্সটার্নালস্টোরফ্রিস্পেস পান
public long getExternalStoreFreeSpace ()
রিটার্নস | |
---|---|
long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetFastbootPath
public String getFastbootPath ()
রিটার্নস | |
---|---|
String |
GetFastbootProductType
public String getFastbootProductType ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetFastbootProduct ভেরিয়েন্ট
public String getFastbootProductVariant ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ফাস্টবুট সিরিয়াল নম্বর পান
public String getFastbootSerialNumber ()
রিটার্নস | |
---|---|
String |
getFastbootVariable
public String getFastbootVariable (String variableName)
পরামিতি | |
---|---|
variableName | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ফাস্টবুট সংস্করণ পান
public String getFastbootVersion ()
রিটার্নস | |
---|---|
String |
getFileEntry
public IFileEntry getFileEntry (String path)
পরামিতি | |
---|---|
path | String |
রিটার্নস | |
---|---|
IFileEntry |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getFileEntry
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
একটি নন-রুট পাথ থেকে FileEntry
পেতে অনানুষ্ঠানিক সাহায্যকারী। FIXME: FileEntry সিস্টেমটিকে যেকোন পথ থেকে উপলব্ধ করার জন্য রিফ্যাক্টর করুন। (এমনকি অ-মূল)।
পরামিতি | |
---|---|
entry | FileListingService.FileEntry : Ddmlib এর প্রয়োজন অনুযায়ী একটি FileEntry রুট করা আবশ্যক নয়। |
রিটার্নস | |
---|---|
IFileEntry | ফাইল এন্ট্রির প্রতিনিধিত্বকারী একটি FileEntryWrapper । |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetFoldableStates
publicgetFoldableStates ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getIDevice
public IDevice getIDevice ()
রিটার্নস | |
---|---|
IDevice |
getInstalledPackageNames
publicgetInstalledPackageNames ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getIntProperty
public long getIntProperty (String name, long defaultValue)
পরামিতি | |
---|---|
name | String |
defaultValue | long |
রিটার্নস | |
---|---|
long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getIpAddress
public String getIpAddress ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getKeyguardState
public KeyguardControllerState getKeyguardState ()
রিটার্নস | |
---|---|
KeyguardControllerState |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetLastExpectedRebootTimeMillis
public long getLastExpectedRebootTimeMillis ()
রিটার্নস | |
---|---|
long |
getLaunchApiLevel
public int getLaunchApiLevel ()
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getLogcat
public InputStreamSource getLogcat ()
রিটার্নস | |
---|---|
InputStreamSource |
getLogcat
public InputStreamSource getLogcat (int maxBytes)
পরামিতি | |
---|---|
maxBytes | int |
রিটার্নস | |
---|---|
InputStreamSource |
getLogcatDump
public InputStreamSource getLogcatDump ()
রিটার্নস | |
---|---|
InputStreamSource |
getLogcatSince
public InputStreamSource getLogcatSince (long date)
পরামিতি | |
---|---|
date | long |
রিটার্নস | |
---|---|
InputStreamSource |
getMacAddress
public String getMacAddress ()
রিটার্নস | |
---|---|
String |
getMainlineModuleInfo
publicgetMainlineModuleInfo ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getMaxNumberOfRunningUsersসমর্থিত
public int getMaxNumberOfRunningUsersSupported ()
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getMaxNumberOfUsersসমর্থিত
public int getMaxNumberOfUsersSupported ()
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getMonitor
public IDeviceStateMonitor getMonitor ()
রিটার্নস | |
---|---|
IDeviceStateMonitor |
getMountPoint
public String getMountPoint (String mountName)
পরামিতি | |
---|---|
mountName | String |
রিটার্নস | |
---|---|
String |
getMountPointInfo
public ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)
পরামিতি | |
---|---|
mountpoint | String |
রিটার্নস | |
---|---|
ITestDevice.MountPointInfo |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getMountPointInfo
publicgetMountPointInfo ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getOptions
public TestDeviceOptions getOptions ()
রিটার্নস | |
---|---|
TestDeviceOptions |
পার্টিশনফ্রিস্পেস পান
public long getPartitionFreeSpace (String partition)
পরামিতি | |
---|---|
partition | String |
রিটার্নস | |
---|---|
long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
প্রাইমারি ইউজারআইডি পান
public Integer getPrimaryUserId ()
রিটার্নস | |
---|---|
Integer |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getProcessByName
public ProcessInfo getProcessByName (String processName)
পরামিতি | |
---|---|
processName | String |
রিটার্নস | |
---|---|
ProcessInfo |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getProcessPid
public String getProcessPid (String process)
পরামিতি | |
---|---|
process | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetProductType
public String getProductType ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
GetProduct ভেরিয়েন্ট
public String getProductVariant ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সম্পত্তি পান
public String getProperty (String name)
পরামিতি | |
---|---|
name | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getRecoveryMode
public ITestDevice.RecoveryMode getRecoveryMode ()
রিটার্নস | |
---|---|
ITestDevice.RecoveryMode |
স্ক্রিনশট পান
public InputStreamSource getScreenshot (String format)
পরামিতি | |
---|---|
format | String |
রিটার্নস | |
---|---|
InputStreamSource |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
স্ক্রিনশট পান
public InputStreamSource getScreenshot (long displayId)
পরামিতি | |
---|---|
displayId | long |
রিটার্নস | |
---|---|
InputStreamSource |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
স্ক্রিনশট পান
public InputStreamSource getScreenshot (String format, boolean rescale)
পরামিতি | |
---|---|
format | String |
rescale | boolean |
রিটার্নস | |
---|---|
InputStreamSource |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
স্ক্রিনশট পান
public InputStreamSource getScreenshot ()
রিটার্নস | |
---|---|
InputStreamSource |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সিরিয়াল নম্বর পান
public String getSerialNumber ()
রিটার্নস | |
---|---|
String |
getSetting
public String getSetting (int userId, String namespace, String key)
পরামিতি | |
---|---|
userId | int |
namespace | String |
key | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getSetting
public String getSetting (String namespace, String key)
পরামিতি | |
---|---|
namespace | String |
key | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getSimOperator
public String getSimOperator ()
রিটার্নস | |
---|---|
String |
getSimState
public String getSimState ()
রিটার্নস | |
---|---|
String |
সমাধি পাথর পেতে
publicgetTombstones ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
টোটালমেমোরি পান
public long getTotalMemory ()
রিটার্নস | |
---|---|
long |
আনইনস্টলযোগ্য প্যাকেজনাম পান
publicgetUninstallablePackageNames ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getUseFastbootErase
public boolean getUseFastbootErase ()
রিটার্নস | |
---|---|
boolean |
getUserFlags
public int getUserFlags (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ব্যবহারকারীর তথ্য পান
publicgetUserInfos ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getUserSerialNumber
public int getUserSerialNumber (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
int |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
হ্যান্ডেল বরাদ্দ ইভেন্ট
public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
ডিভাইস ইভেন্ট প্রক্রিয়া করুন, যা এই ডিভাইসটিকে একটি নতুন বরাদ্দ অবস্থায় স্থানান্তর করতে পারে বা নাও করতে পারে।
পরামিতি | |
---|---|
event | DeviceEvent |
রিটার্নস | |
---|---|
IManagedTestDevice.DeviceEventResponse |
বৈশিষ্ট্য আছে
public boolean hasFeature (String feature)
পরামিতি | |
---|---|
feature | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
প্যাকেজ ইনস্টল করুন
public String installPackage (File packageFile, boolean reinstall, String... extraArgs)
পরামিতি | |
---|---|
packageFile | File |
reinstall | boolean |
extraArgs | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
প্যাকেজ ইনস্টল করুন
public String installPackage (File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs)
পরামিতি | |
---|---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
extraArgs | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
InstallPackageForUser
public String installPackageForUser (File packageFile, boolean reinstall, int userId, String... extraArgs)
পরামিতি | |
---|---|
packageFile | File |
reinstall | boolean |
userId | int |
extraArgs | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
InstallPackageForUser
public String installPackageForUser (File packageFile, boolean reinstall, boolean grantPermissions, int userId, String... extraArgs)
পরামিতি | |
---|---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
userId | int |
extraArgs | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isAdbRoot
public boolean isAdbRoot ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isAdbTcp
public boolean isAdbTcp ()
রিটার্নস | |
---|---|
boolean |
isAppEnumerationSupported
public boolean isAppEnumerationSupported ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isDeviceEncrypted
public boolean isDeviceEncrypted ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isDirectory
public boolean isDirectory (String path)
পরামিতি | |
---|---|
path | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
এনাবল অ্যাডবিরুট
public boolean isEnableAdbRoot ()
রিটার্নস | |
---|---|
boolean | true যদি ডিভাইসে adb রুট সক্রিয় করা উচিত |
এনক্রিপশন সমর্থিত
public boolean isEncryptionSupported ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
নির্বাহযোগ্য
public boolean isExecutable (String fullPath)
পরামিতি | |
---|---|
fullPath | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ফাস্টবুট সক্ষম
public boolean isFastbootEnabled ()
রিটার্নস | |
---|---|
boolean |
মাথাবিহীন
public boolean isHeadless ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
মাল্টি ইউজার সমর্থিত
public boolean isMultiUserSupported ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isPackage ইনস্টল করা হয়েছে
public boolean isPackageInstalled (String packageName, String userId)
পরামিতি | |
---|---|
packageName | String |
userId | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isPackage ইনস্টল করা হয়েছে
public boolean isPackageInstalled (String packageName)
পরামিতি | |
---|---|
packageName | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isRuntimePermissionSupported
public boolean isRuntimePermissionSupported ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
রিটার্নস | |
---|---|
boolean |
isUserRunning
public boolean isUserRunning (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
isUser সেকেন্ডারি
public boolean isUserSecondary (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ওয়াইফাই সক্ষম
public boolean isWifiEnabled ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
listDisplayIds
publiclistDisplayIds ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ব্যবহারকারীদের তালিকা
publiclistUsers ()
রিটার্নস | |
---|---|
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
logBugreport
public boolean logBugreport (String dataName, ITestLogger listener)
পরামিতি | |
---|---|
dataName | String |
listener | ITestLogger |
রিটার্নস | |
---|---|
boolean |
logOnDevice
public void logOnDevice (String tag, Log.LogLevel level, String format, Object... args)
পরামিতি | |
---|---|
tag | String |
level | Log.LogLevel |
format | String |
args | Object |
nonBlockingReboot
public void nonBlockingReboot ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
postAdbRootAction
public void postAdbRootAction ()
অ্যাডবি রুটের পরে এবং ডিভাইসটি অনলাইনে ফিরে আসার আগে ডিভাইসটির কিছু নির্দিষ্ট পদক্ষেপ নেওয়ার প্রয়োজন হলে ওভাররাইড করুন। ডিফল্ট বাস্তবায়ন কোনো অতিরিক্ত কর্ম অন্তর্ভুক্ত করে না. এডিবি রুট এই পর্যায়ে সক্ষম হওয়ার নিশ্চয়তা নেই।
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
postAdbUnrootAction
public void postAdbUnrootAction ()
অ্যাডবি আনরুট করার পরে এবং ডিভাইসটি অনলাইনে ফিরে আসার আগে ডিভাইসটির কিছু নির্দিষ্ট পদক্ষেপ নেওয়ার প্রয়োজন হলে ওভাররাইড করুন। ডিফল্ট বাস্তবায়ন কোনো অতিরিক্ত ক্রিয়া অন্তর্ভুক্ত করে না। অ্যাডবি রুট এই পর্যায়ে নিষ্ক্রিয় হওয়ার নিশ্চয়তা নেই।
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
পোস্টবুটসেটআপ
public void postBootSetup ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
পোস্ট ইনভোকেশন টিয়ারডাউন
public void postInvocationTearDown (Throwable exception)
পরামিতি | |
---|---|
exception | Throwable |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
পরামিতি | |
---|---|
info | IBuildInfo |
attributes | MultiMap |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
pullDir
public boolean pullDir (String deviceFilePath, File localDir)
পরামিতি | |
---|---|
deviceFilePath | String |
localDir | File |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pullFile
public boolean pullFile (String remoteFilePath, File localFile)
পরামিতি | |
---|---|
remoteFilePath | String |
localFile | File |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pullFile
public File pullFile (String remoteFilePath)
পরামিতি | |
---|---|
remoteFilePath | String |
রিটার্নস | |
---|---|
File |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pullFileContents
public String pullFileContents (String remoteFilePath)
পরামিতি | |
---|---|
remoteFilePath | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pullFileFromExternal
public File pullFileFromExternal (String remoteFilePath)
পরামিতি | |
---|---|
remoteFilePath | String |
রিটার্নস | |
---|---|
File |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pushDir
public boolean pushDir (File localFileDir, String deviceFilePath,excludedDirectories)
পরামিতি | |
---|---|
localFileDir | File |
deviceFilePath | String |
excludedDirectories |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pushDir
public boolean pushDir (File localFileDir, String deviceFilePath)
পরামিতি | |
---|---|
localFileDir | File |
deviceFilePath | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
পুশফাইল
public boolean pushFile (File localFile, String remoteFilePath)
পরামিতি | |
---|---|
localFile | File |
remoteFilePath | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
pushString
public boolean pushString (String contents, String remoteFilePath)
পরামিতি | |
---|---|
contents | String |
remoteFilePath | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট
public void reboot (String reason)
পরামিতি | |
---|---|
reason | String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট
public void reboot ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট ইনটোবুটলোডার
public void rebootIntoBootloader ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
rebootIntoFastbootd
public void rebootIntoFastbootd ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট ইনটো রিকভারি
public void rebootIntoRecovery ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট ইনটোসাইডলোড
public void rebootIntoSideload ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট ইনটোসাইডলোড
public void rebootIntoSideload (boolean autoReboot)
পরামিতি | |
---|---|
autoReboot | boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
অনলাইনে রিবুট করুন
public void rebootUntilOnline ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
অনলাইনে রিবুট করুন
public void rebootUntilOnline (String reason)
পরামিতি | |
---|---|
reason | String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
রিবুট ইউজারস্পেস
public void rebootUserspace ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
rebootUserspaceUntilOnline
public void rebootUserspaceUntilOnline ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডিভাইস পুনরুদ্ধার করুন
public void recoverDevice ()
ডিভাইস যোগাযোগ পুনরুদ্ধার করার প্রচেষ্টা.
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException | যদি ডিভাইস আর উপলব্ধ না হয় |
remountSystemWritable
public void remountSystemWritable ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
remountVendorWritable
public void remountVendorWritable ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
অ্যাডমিনকে সরিয়ে দিন
public boolean removeAdmin (String componentName, int userId)
পরামিতি | |
---|---|
componentName | String |
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
মালিকদের সরান
public void removeOwners ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ব্যবহারকারীকে সরিয়ে দিন
public boolean removeUser (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
resetContentProviderSetup
public void resetContentProviderSetup ()
এটিকে আবার ট্রিগার করার জন্য সামগ্রী প্রদানকারী সেটআপের জন্য পতাকাটি পুনরায় সেট করুন৷
ইন্সট্রুমেন্টেশন টেস্ট চালান
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)
পরামিতি | |
---|---|
runner | IRemoteAndroidTestRunner |
listeners | ITestLifeCycleReceiver |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ইন্সট্রুমেন্টেশন টেস্ট চালান
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,listeners)
পরামিতি | |
---|---|
runner | IRemoteAndroidTestRunner |
listeners |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
RunInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)
পরামিতি | |
---|---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners | ITestLifeCycleReceiver |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
RunInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId,listeners)
পরামিতি | |
---|---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সেট কনফিগারেশন
public void setConfiguration (IConfiguration configuration)
ব্যবহৃত IConfiguration
ইনজেক্ট করে।
পরামিতি | |
---|---|
configuration | IConfiguration |
সেট তারিখ
public void setDate (Date date)
পরামিতি | |
---|---|
date | Date |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সেটডিভাইস মালিক
public boolean setDeviceOwner (String componentName, int userId)
পরামিতি | |
---|---|
componentName | String |
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
setDeviceState
public void setDeviceState (TestDeviceState deviceState)
পরামিতি | |
---|---|
deviceState | TestDeviceState |
সেট ইমুলেটরআউটপুট স্ট্রিম
public void setEmulatorOutputStream (SizeLimitedOutputStream output)
এমুলেটরের জন্য আউটপুট লগ করার জন্য SizeLimitedOutputStream
সেট করুন
পরামিতি | |
---|---|
output | SizeLimitedOutputStream : আউটপুট লগ করতে |
সেট ইমুলেটরপ্রসেস
public void setEmulatorProcess (Process p)
পরামিতি | |
---|---|
p | Process |
setFastbootEnabled
public void setFastbootEnabled (boolean fastbootEnabled)
পরামিতি | |
---|---|
fastbootEnabled | boolean |
সেট ফাস্টবুটপাথ
public void setFastbootPath (String fastbootPath)
পরামিতি | |
---|---|
fastbootPath | String |
সেটআইডিভাইস
public void setIDevice (IDevice newDevice)
পরামিতি | |
---|---|
newDevice | IDevice |
সেট অপশন
public void setOptions (TestDeviceOptions options)
পরামিতি | |
---|---|
options | TestDeviceOptions |
সেট প্রপার্টি
public boolean setProperty (String propKey, String propValue)
পরামিতি | |
---|---|
propKey | String |
propValue | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সেট পুনরুদ্ধার
public void setRecovery (IDeviceRecovery recovery)
পরামিতি | |
---|---|
recovery | IDeviceRecovery |
সেট রিকভারিমোড
public void setRecoveryMode (ITestDevice.RecoveryMode mode)
পরামিতি | |
---|---|
mode | ITestDevice.RecoveryMode |
সেট সেটিং
public void setSetting (String namespace, String key, String value)
পরামিতি | |
---|---|
namespace | String |
key | String |
value | String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সেট সেটিং
public void setSetting (int userId, String namespace, String key, String value)
পরামিতি | |
---|---|
userId | int |
namespace | String |
key | String |
value | String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সেটUseFastbootErase
public void setUseFastbootErase (boolean useFastbootErase)
পরামিতি | |
---|---|
useFastbootErase | boolean |
startLogcat
public void startLogcat ()
শুরু ব্যবহারকারী
public boolean startUser (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
শুরু ব্যবহারকারী
public boolean startUser (int userId, boolean waitFlag)
পরামিতি | |
---|---|
userId | int |
waitFlag | boolean |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
stopEmulatorOutput
public void stopEmulatorOutput ()
stopLogcat
public void stopLogcat ()
স্টপ ইউজার
public boolean stopUser (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
স্টপ ইউজার
public boolean stopUser (int userId, boolean waitFlag, boolean forceFlag)
পরামিতি | |
---|---|
userId | int |
waitFlag | boolean |
forceFlag | boolean |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
switchToAdbTcp
public String switchToAdbTcp ()
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
switchToAdbUsb
public boolean switchToAdbUsb ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সুইচ ব্যবহারকারী
public boolean switchUser (int userId)
পরামিতি | |
---|---|
userId | int |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সুইচ ব্যবহারকারী
public boolean switchUser (int userId, long timeout)
পরামিতি | |
---|---|
userId | int |
timeout | long |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সিঙ্ক ফাইল
public boolean syncFiles (File localFileDir, String deviceFilePath)
পরামিতি | |
---|---|
localFileDir | File |
deviceFilePath | String |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
Bugreport নিন
public Bugreport takeBugreport ()
রিটার্নস | |
---|---|
Bugreport |
এনক্রিপ্ট ডিভাইস
public boolean unencryptDevice ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
প্যাকেজ আনইনস্টল করুন
public String uninstallPackage (String packageName)
পরামিতি | |
---|---|
packageName | String |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
আনইনস্টল প্যাকেজফোর ইউজার
public String uninstallPackageForUser (String packageName, int userId)
পরামিতি | |
---|---|
packageName | String |
userId | int |
রিটার্নস | |
---|---|
String |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
ডিভাইস আনলক করুন
public boolean unlockDevice ()
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
waitForBootComplete
public boolean waitForBootComplete (long timeOut)
পরামিতি | |
---|---|
timeOut | long |
রিটার্নস | |
---|---|
boolean |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
waitForDeviceAvailable
public void waitForDeviceAvailable ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
waitForDeviceAvailable
public void waitForDeviceAvailable (long waitTime)
পরামিতি | |
---|---|
waitTime | long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
waitForDeviceInRecovery
public boolean waitForDeviceInRecovery (long waitTime)
পরামিতি | |
---|---|
waitTime | long |
রিটার্নস | |
---|---|
boolean |
waitForDeviceInSideload
public boolean waitForDeviceInSideload (long waitTime)
পরামিতি | |
---|---|
waitTime | long |
রিটার্নস | |
---|---|
boolean |
waitForDeviceNotAvailable
public boolean waitForDeviceNotAvailable (long waitTime)
পরামিতি | |
---|---|
waitTime | long |
রিটার্নস | |
---|---|
boolean |
waitForDeviceOnline
public void waitForDeviceOnline ()
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
waitForDeviceOnline
public void waitForDeviceOnline (long waitTime)
পরামিতি | |
---|---|
waitTime | long |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
waitForDeviceShell
public boolean waitForDeviceShell (long waitTime)
পরামিতি | |
---|---|
waitTime | long |
রিটার্নস | |
---|---|
boolean |
সুরক্ষিত পদ্ধতি
চেকঅ্যাপিলেভেল এগেইনস্ট
protected void checkApiLevelAgainst (String feature, int strictMinLevel)
পরামিতি | |
---|---|
feature | String |
strictMinLevel | int |
RebootDeviceAction তৈরি করুন
protected NativeDevice.RebootDeviceAction createRebootDeviceAction (NativeDevice.RebootMode rebootMode, String reason)
একটি রিবুট ক্রিয়া সম্পাদন করার সময় ব্যবহার করার জন্য একটি RebootDeviceAction
তৈরি করুন৷
পরামিতি | |
---|---|
rebootMode | NativeDevice.RebootMode : এই রিবুটের একটি মোড। |
reason | String : এই রিবুটের জন্য। |
রিটার্নস | |
---|---|
NativeDevice.RebootDeviceAction | তৈরি করা RebootDeviceAction । |
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode, String reason)
একটি অ্যাডবি রিবুট করুন।
পরামিতি | |
---|---|
rebootMode | NativeDevice.RebootMode : এই রিবুটের একটি মোড। |
reason | String : এই রিবুটের জন্য। |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
sureRuntimePermissionSupported
protected void ensureRuntimePermissionSupported ()
রানটাইম অনুমতি সমর্থিত না হলে ব্যতিক্রম নিক্ষেপ করার জন্য সহায়ক পদ্ধতি
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
getBugreportInternal
protected InputStreamSource getBugreportInternal ()
রিটার্নস | |
---|---|
InputStreamSource |
getBugreportzInternal
protected File getBugreportzInternal ()
একটি ERROR(/File)
হিসাবে bugreportz জিপ ফাইল পেতে অভ্যন্তরীণ সাহায্যকারী পদ্ধতি।
রিটার্নস | |
---|---|
File |
অভ্যন্তরীণ গেটপ্রপার্টি
protected String internalGetProperty (String propName, String fastbootVar, String description)
ডিফল্টরূপে ddmlib ক্যাশে থেকে একটি ডিভাইস প্রপার্টি আনুন এবং ডিভাইসটি Fastboot-এ আছে কি না তার উপর নির্ভর করে `adb shell getprop` অথবা `fastboot getvar`-এ ফিরে যান।
পরামিতি | |
---|---|
propName | String : ডিভাইস প্রপার্টির নাম যেটি `adb shell getprop` দ্বারা প্রত্যাবর্তিত হয়েছে |
fastbootVar | String : কোয়েরির জন্য সমতুল্য ফাস্টবুট ভেরিয়েবলের নাম। null হলে, fastboot ক্যোয়ারী করার চেষ্টা করা হবে না |
description | String : ভেরিয়েবলের একটি সহজ বর্ণনা। প্রথম অক্ষর বড় করা উচিত। |
রিটার্নস | |
---|---|
String | প্রদত্ত সম্পত্তির মান ধারণকারী একটি স্ট্রিং, সম্ভবত null বা খালি |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
নতুন
protected boolean isNewer (File localFile, IFileEntry entry)
স্থানীয় ফাইল রিমোট ফাইলের চেয়ে নতুন হলে true
ফেরত দিন। IFileEntry
মিনিটে নির্ভুল, সমান সময়ের ক্ষেত্রে, ফাইলটি নতুন বলে বিবেচিত হবে।
পরামিতি | |
---|---|
localFile | File |
entry | IFileEntry |
রিটার্নস | |
---|---|
boolean |
ডিভাইস অ্যাকশন সম্পাদন করুন
protected boolean performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts)
এই ডিভাইসে একটি ক্রিয়া সম্পাদন করে৷ ডিভাইস পুনরুদ্ধার করার প্রচেষ্টা এবং ঐচ্ছিকভাবে কমান্ড পুনরায় চেষ্টা যদি কর্ম ব্যর্থ হয়।
পরামিতি | |
---|---|
actionDescription | String : সম্পাদিত কর্মের একটি সংক্ষিপ্ত বিবরণ। শুধুমাত্র লগিং উদ্দেশ্যে ব্যবহৃত. |
action | com.android.tradefed.device.NativeDevice.DeviceAction : যে কাজটি করতে হবে |
retryAttempts | int : পুনরায় চেষ্টা ব্যর্থ হলে কর্মের জন্য চেষ্টা করে কিন্তু পুনরুদ্ধার সফল হয় |
রিটার্নস | |
---|---|
boolean | কাজ সফলভাবে সঞ্চালিত হলে true |
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException | পুনরুদ্ধারের প্রচেষ্টা ব্যর্থ হলে বা সর্বাধিক প্রচেষ্টা সফল না হলে |
postAdbReboot
protected void postAdbReboot ()
রিবুট করার পরে সম্ভাব্য অতিরিক্ত পদক্ষেপ নেওয়া যেতে পারে।
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
prePostBootSetup
protected void prePostBootSetup ()
প্রতিটি ডিভাইস প্রকার (AndroidNativeDevice, TestDevice) নির্দিষ্ট পোস্ট বুট সেটআপের জন্য এই পদ্ধতিটিকে ওভাররাইড করার অনুমতি দেয়৷
নিক্ষেপ করে | |
---|---|
DeviceNotAvailableException |
সেট ঘড়ি
protected void setClock (Clock clock)
ব্যবহার করার জন্য ঘড়ির উদাহরণ সেট করুন।
পরামিতি | |
---|---|
clock | Clock |
setLogStartDelay
protected void setLogStartDelay (int delay)
একটি অনলাইন ডিভাইসের জন্য লগক্যাট ক্যাপচার শুরু করার আগে অপেক্ষা করার জন্য ms-এ সময় সেট করে।
পরামিতি | |
---|---|
delay | int : ms-এ বিলম্ব |
waitForDeviceNotAvailable
protected void waitForDeviceNotAvailable (String operationDesc, long time)
পরামিতি | |
---|---|
operationDesc | String |
time | long |
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-03-26 UTC-তে শেষবার আপডেট করা হয়েছে।