INative ডিভাইস

public interface INativeDevice

com.android.tradefed.device.INativeDevice


একটি ddmlib IDevice এ একটি নির্ভরযোগ্য এবং সামান্য উচ্চ স্তরের API প্রদান করে।

কনফিগারযোগ্য পরিমাণের জন্য ডিভাইস কমান্ড পুনরায় চেষ্টা করে, এবং অপ্রতিক্রিয়াশীল ডিভাইসগুলির জন্য একটি ডিভাইস পুনরুদ্ধার ইন্টারফেস প্রদান করে।

সারসংক্ষেপ

ধ্রুবক

int UNKNOWN_API_LEVEL

ডিফল্ট মান যখন API স্তর সনাক্ত করা যাবে না

পাবলিক পদ্ধতি

abstract boolean checkApiLevelAgainstNextRelease (int strictMinLevel)

একটি ন্যূনতম সমর্থিত স্তরে একটি বৈশিষ্ট্য বর্তমানে সমর্থিত কিনা তা পরীক্ষা করুন।

abstract void clearLogcat ()

কোনো জমে থাকা লগক্যাট ডেটা মুছে দেয়।

abstract void deleteFile (String deviceFilePath)

ডিভাইসে একটি ফাইল বা ডিরেক্টরি মুছে ফেলার জন্য সহায়ক পদ্ধতি।

abstract boolean deviceSoftRestarted ( ProcessInfo prevSystemServerProcess)

পূর্ববর্তী system_server ProcessInfo এর সাথে বর্তমান system_server তুলনা করে ডিভাইস সফট-রিস্টার্ট হয়েছে কিনা তা পরীক্ষা করার জন্য সহায়ক পদ্ধতি।

abstract boolean deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit)

ডিভাইস থেকে ইউটিসি সময় থেকে যুগ থেকে ডিভাইস সফ্ট-রিস্টার্ট হয়েছে কিনা এবং এর ERROR(/TimeUnit) পরীক্ষা করার জন্য সহায়ক পদ্ধতি।

abstract boolean disableAdbRoot ()

অ্যাডবি রুট বন্ধ করে।

abstract boolean doesFileExist (String deviceFilePath)

ডিভাইসে ফাইল আছে কিনা তা নির্ধারণ করতে সহায়ক পদ্ধতি।

abstract boolean enableAdbRoot ()

অ্যাডবি রুট চালু করে।

abstract String executeAdbCommand (long timeout, String... commandArgs)

সহায়ক পদ্ধতি যা একটি নির্দিষ্ট সময়সীমার সাথে একটি সিস্টেম কমান্ড হিসাবে একটি adb কমান্ড কার্যকর করে।

abstract String executeAdbCommand (String... commandArgs)

সহায়ক পদ্ধতি যা একটি adb কমান্ডকে সিস্টেম কমান্ড হিসাবে কার্যকর করে।

abstract String executeAdbCommand (long timeout, envMap, String... commandArgs) executeAdbCommand (long timeout, envMap, String... commandArgs)

সহায়ক পদ্ধতি যা একটি নির্দিষ্ট সময়সীমার সাথে একটি সিস্টেম কমান্ড হিসাবে একটি adb কমান্ড কার্যকর করে।

abstract CommandResult executeFastbootCommand (long timeout, String... commandArgs)

সহায়ক পদ্ধতি যা একটি সিস্টেম কমান্ড হিসাবে একটি ফাস্টবুট কমান্ড কার্যকর করে।

abstract CommandResult executeFastbootCommand (String... commandArgs)

হেল্পার পদ্ধতি যা 2 মিনিটের ডিফল্ট টাইমআউট সহ একটি সিস্টেম কমান্ড হিসাবে একটি ফাস্টবুট কমান্ড কার্যকর করে।

abstract CommandResult executeLongFastbootCommand (String... commandArgs)

হেল্পার পদ্ধতি যা একটি দীর্ঘ চলমান ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসাবে কার্যকর করে।

abstract CommandResult executeLongFastbootCommand ( envVarMap, String... commandArgs) executeLongFastbootCommand ( envVarMap, String... commandArgs)

হেল্পার পদ্ধতি যা সিস্টেম এনভায়রনমেন্ট ভেরিয়েবল সহ একটি সিস্টেম কমান্ড হিসাবে একটি দীর্ঘ চলমান ফাস্টবুট কমান্ড কার্যকর করে।

abstract String executeShellCommand (String command)

সাহায্যকারী পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং String হিসাবে আউটপুট প্রদান করে।

abstract void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

abstract void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

abstract void executeShellCommand (String command, IShellOutputReceiver receiver)

প্রদত্ত adb শেল কমান্ড কার্যকর করে, কমান্ড ব্যর্থ হলে একাধিকবার পুনরায় চেষ্টা করে।

abstract CommandResult executeShellV2Command (String command)

হেল্পার পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ড স্ট্যাটাস আউটপুট, stdout এবং stderr সহ সঠিকভাবে CommandResult হিসাবে ফলাফল প্রদান করে।

abstract CommandResult executeShellV2Command (String command, OutputStream pipeToOutput)

হেল্পার পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ড স্ট্যাটাস আউটপুট এবং stderr এর সাথে সঠিকভাবে CommandResult হিসাবে ফলাফল প্রদান করে।

abstract CommandResult executeShellV2Command (String command, File pipeAsInput)

হেল্পার পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ড স্ট্যাটাস আউটপুট, stdout এবং stderr সহ সঠিকভাবে CommandResult হিসাবে ফলাফল প্রদান করে।

abstract CommandResult executeShellV2Command (String command, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

abstract CommandResult executeShellV2Command (String command, long maxTimeoutForCommand, TimeUnit timeUnit)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

abstract CommandResult executeShellV2Command (String command, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

abstract CommandResult executeShellV2Command (String command, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

abstract CommandResult fastbootWipePartition (String partition)

সাহায্যকারী পদ্ধতি যা ডিভাইসের জন্য একটি পার্টিশন মুছে দেয়।

abstract int getApiLevel ()

ডিভাইস API লেভেল পান।

abstract String getBasebandVersion ()

এই ডিভাইসের বেসব্যান্ড (রেডিও) সংস্করণ পেতে সুবিধার পদ্ধতি।

abstract Integer getBattery ()

একটি ডিভাইসের বর্তমান ব্যাটারি স্তর বা ব্যাটারি স্তর অনুপলব্ধ হলে শূন্য প্রদান করে৷

abstract boolean getBooleanProperty (String name, boolean defaultValue)

প্রদত্ত সম্পত্তির বুলিয়ান মান প্রদান করে।

abstract getBootHistory ()

হেল্পার পদ্ধতি বুট সময় এবং বুট কারণ সহ বুট ইতিহাস মানচিত্র সংগ্রহ করে।

abstract getBootHistorySince (long utcEpochTime, TimeUnit timeUnit)

হেল্পার মেথড বুট টাইম এবং বুট কারণ সহ বুট হিস্ট্রি ম্যাপ সংগ্রহ করে ডিভাইস থেকে epoch থেকে প্রদত্ত সময় এবং নির্দিষ্ট সময় ইউনিট।

abstract String getBootloaderVersion ()

এই ডিভাইসের বুটলোডার সংস্করণ পেতে সুবিধার পদ্ধতি।

abstract String getBuildAlias ()

ডিভাইসটি বর্তমানে চলমান বিল্ডের উপনাম পুনরুদ্ধার করুন।

abstract String getBuildFlavor ()

ডিভাইসের জন্য বিল্ড ফ্লেভার পুনরুদ্ধার করুন।

abstract String getBuildId ()

ডিভাইসটি বর্তমানে চলমান বিল্ডটি পুনরুদ্ধার করুন।

abstract String getBuildSigningKeys ()

ডিভাইস ইমেজ সাইন ইন করতে ব্যবহৃত কী টাইপ প্রদান করে

সাধারণত অ্যান্ড্রয়েড ডিভাইসগুলি টেস্ট-কি (যেমন AOSP-তে) বা রিলিজ-কি (ব্যক্তিগত ডিভাইস নির্মাতাদের দ্বারা নিয়ন্ত্রিত) দিয়ে স্বাক্ষরিত হতে পারে

abstract DeviceDescriptor getCachedDeviceDescriptor ()

ডিভাইসটি বরাদ্দ করা হলে একটি ক্যাশ করা DeviceDescriptor ফেরত দেয়, অন্যথায় বর্তমান DeviceDescriptor ফেরত দেয়।

abstract DeviceDescriptor getCachedDeviceDescriptor (boolean shortDescriptor)

ডিভাইসটি বরাদ্দ করা হলে একটি ক্যাশ করা DeviceDescriptor ফেরত দেয়, অন্যথায় বর্তমান DeviceDescriptor ফেরত দেয়।

abstract String[] getChildren (String deviceFilePath)

IFileEntry ব্যবহার করার বিকল্প যা কখনও কখনও অনুমতির কারণে কাজ করবে না।

abstract AbstractConnection getConnection ()

ডিভাইসের সাথে যুক্ত সংযোগ ফেরত দেয়।

abstract String getDeviceClass ()

ডিভাইস ক্লাস পান।

abstract long getDeviceDate ()

যুগ থেকে মিলিসেকেন্ডে ডিভাইসের তারিখ ফেরত দিন।

abstract DeviceDescriptor getDeviceDescriptor ()

প্রকৃত ডিভাইস অবজেক্টটি পাস না করে এটিতে তথ্য পেতে ডিভাইসের তথ্য থেকে একটি DeviceDescriptor ফেরত দিন।

abstract DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

প্রকৃত ডিভাইস অবজেক্টটি পাস না করে এটিতে তথ্য পেতে ডিভাইসের তথ্য থেকে একটি DeviceDescriptor ফেরত দিন।

abstract TestDeviceState getDeviceState ()

ডিভাইসের অবস্থা পান।

abstract long getDeviceTimeOffset (Date date)

ডিভাইস এবং একটি প্রদত্ত ERROR(/Date) এর মধ্যে সময়ের পার্থক্য পেতে সাহায্যকারী।

abstract InputStreamSource getEmulatorOutput ()

এমুলেটর stdout এবং stderr এর স্ট্রীম পান

abstract long getExternalStoreFreeSpace ()

ডিভাইসের বাহ্যিক সঞ্চয়স্থানে খালি স্থানের পরিমাণ নির্ধারণ করতে সহায়ক পদ্ধতি।

abstract String getFastbootProductType ()

ফাস্টবুট মোডে থাকা অবস্থায় এই ডিভাইসটির পণ্যের ধরন পেতে সুবিধার পদ্ধতি।

abstract String getFastbootProductVariant ()

ফাস্টবুট মোডে থাকা অবস্থায় এই ডিভাইসটির পণ্যের ধরন পেতে সুবিধার পদ্ধতি।

abstract String getFastbootSerialNumber ()

ফাস্টবুট মোড সিরিয়াল নম্বর প্রদান করে।

abstract String getFastbootVariable (String variableName)

ডিভাইস থেকে প্রদত্ত ফাস্টবুট পরিবর্তনশীল মান পুনরুদ্ধার করুন।

abstract IFileEntry getFileEntry (String path)

ডিভাইসে একটি দূরবর্তী ফাইলের একটি রেফারেন্স পুনরুদ্ধার করুন।

abstract IDevice getIDevice ()

সংশ্লিষ্ট ddmlib IDevice এর একটি রেফারেন্স প্রদান করে।

abstract long getIntProperty (String name, long defaultValue)

ডিভাইস থেকে প্রদত্ত সম্পত্তির পূর্ণসংখ্যা মান প্রদান করে।

abstract long getLastExpectedRebootTimeMillis ()

System.currentTimeMillis() দ্বারা প্রত্যাবর্তিত EPOCH থেকে ট্রেডফেড এপিআই মিলিসেকেন্ডে রিবুট করা শেষ বার রিটার্ন করে।

abstract int getLaunchApiLevel ()

ডিভাইসের প্রথম চালু API স্তর পান.

abstract InputStreamSource getLogcat ()

লগক্যাট ডেটার একটি স্ন্যাপশট স্ট্রীম ধরে।

abstract InputStreamSource getLogcat (int maxBytes)

ক্যাপচার করা লগক্যাট ডেটার শেষ maxBytes একটি স্ন্যাপশট স্ট্রীম ধরে।

abstract InputStreamSource getLogcatDump ()

ডিভাইসের জন্য বর্তমান লগক্যাটের একটি ডাম্প পান।

abstract InputStreamSource getLogcatSince (long date)

প্রদত্ত তারিখ থেকে ক্যাপচার করা লগক্যাট ডেটার একটি স্ন্যাপশট স্ট্রীম ধরে।

abstract String getMountPoint (String mountName)

একটি মাউন্ট পয়েন্ট প্রদান করে।

abstract ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)

নির্দিষ্ট মাউন্টপয়েন্ট পাথের সাথে সম্পর্কিত একটি MountPointInfo প্রদান করে, অথবা যদি সেই পাথটিতে কিছু মাউন্ট করা না থাকে বা অন্যথায় /proc/mounts-এ মাউন্টপয়েন্ট হিসাবে উপস্থিত না হয় তবে null

abstract getMountPointInfo ()

ডিভাইসে /proc/mounts-এ তথ্যের পার্স করা সংস্করণ প্রদান করে

abstract long getPartitionFreeSpace (String partition)

ডিভাইস পার্টিশনে খালি জায়গার পরিমাণ নির্ধারণ করতে সাহায্যকারী পদ্ধতি।

abstract ProcessInfo getProcessByName (String processName)

হেল্পার পদ্ধতি "pidof" এবং "stat" কমান্ড চালায় এবং প্রদত্ত প্রক্রিয়ার PID এবং প্রক্রিয়া শুরুর সময় সহ ProcessInfo অবজেক্ট প্রদান করে।

abstract String getProcessPid (String process)

কিছু ভুল হয়ে গেলে পরিষেবার পিড বা নাল ফেরত দেয়।

abstract String getProductType ()

এই ডিভাইসের পণ্যের ধরন পেতে সুবিধার পদ্ধতি।

abstract String getProductVariant ()

এই ডিভাইসের পণ্য বৈকল্পিক পেতে সুবিধার পদ্ধতি.

abstract String getProperty (String name)

ডিভাইস থেকে প্রদত্ত সম্পত্তি মান পুনরুদ্ধার করুন.

abstract ITestDevice.RecoveryMode getRecoveryMode ()

ডিভাইসের জন্য ব্যবহৃত বর্তমান পুনরুদ্ধার মোড পান।

abstract String getSerialNumber ()

এই ডিভাইসের সিরিয়াল নম্বর পেতে সুবিধার পদ্ধতি।

abstract getTombstones ()

ডিভাইস থেকে সমাধির পাথরের তালিকা আনুন এবং ফেরত দিন।

abstract long getTotalMemory ()

অভ্যন্তরীণ ত্রুটির ক্ষেত্রে বাইটে মোট শারীরিক মেমরির আকার বা -1 প্রদান করে

abstract boolean getUseFastbootErase ()

ডিভাইসে একটি পার্টিশন মুছতে ফাস্টবুট ইরেজ বা ফাস্টবুট ফর্ম্যাট ব্যবহার করবেন কিনা তা পান।

abstract boolean isAdbRoot ()
abstract boolean isAdbTcp ()
abstract boolean isAppEnumerationSupported ()

ডিভাইসের প্ল্যাটফর্ম অ্যাপ গণনা সমর্থন করে কিনা তা পরীক্ষা করুন

abstract boolean isBypassLowTargetSdkBlockSupported ()

ডিভাইসের প্ল্যাটফর্ম অ্যাপ ইনস্টলে কম লক্ষ্য sdk ব্লক বাইপাস সমর্থন করে কিনা তা পরীক্ষা করুন

abstract boolean isDeviceEncrypted ()

ডিভাইসটি এনক্রিপ্ট করা থাকলে ফেরত দেয়।

abstract boolean isDirectory (String deviceFilePath)

ডিভাইসের পাথ একটি ডিরেক্টরি হলে True রিটার্ন করুন, অন্যথায় মিথ্যা।

abstract boolean isEncryptionSupported ()

ডিভাইসে এনক্রিপশন সমর্থিত হলে ফেরত দেয়।

abstract boolean isExecutable (String fullPath)

ডিভাইসে ফাইল পাথ একটি এক্সিকিউটেবল ফাইল হলে True ফেরত দেয়, অন্যথায় মিথ্যা।

abstract boolean isHeadless ()

ডিভাইসটি হেডলেস হলে (স্ক্রিন নেই), অন্যথায় মিথ্যা হলে সত্য ফেরত দিন।

abstract boolean isRuntimePermissionSupported ()

ডিভাইসের প্ল্যাটফর্ম রানটাইম অনুমতি প্রদান সমর্থন করে কিনা তা পরীক্ষা করুন

abstract boolean isStateBootloaderOrFastbootd ()

ডিভাইসটি TestDeviceState#FASTBOOT বা TestDeviceState.FASTBOOTD এ থাকলে সত্য দেখায়।

abstract boolean logAnrs ( ITestLogger logger)

ডিভাইস থেকে ANR সংগ্রহ করে এবং লগ করে।

abstract void logOnDevice (String tag, Log.LogLevel level, String format, Object... args)

ডিভাইসের লগক্যাটে একটি বার্তা লগ করুন।

abstract void nonBlockingReboot ()

ডিভাইস রিবুট করার জন্য একটি কমান্ড ইস্যু করে এবং কমান্ড সম্পূর্ণ হলে এবং যখন ডিভাইসটি আর adb-এর কাছে দৃশ্যমান হয় না তখন ফিরে আসে।

abstract void postBootSetup ()

প্রতিটি বুটের পরে পরীক্ষা করার জন্য ডিভাইস কনফিগার করার নির্দেশাবলী সম্পাদন করুন।

default void postInvocationTearDown ()

এই পদ্ধতি অবজ্ঞা করা হয়. পরিবর্তে postInvocationTearDown(Throwable) ব্যবহার করুন।

abstract void postInvocationTearDown (Throwable invocationException)

ডিভাইসের নির্দিষ্ট পরিচ্ছন্নতার জন্য অতিরিক্ত পদক্ষেপ যা আহ্বান সম্পন্ন হওয়ার পরে কার্যকর করা হবে।

default void preInvocationSetup ( IBuildInfo info, MultiMap <String, String> attributes)

ডিভাইস নির্দিষ্ট প্রয়োজনীয় সেটআপের জন্য অতিরিক্ত পদক্ষেপ যা আমন্ত্রণ প্রবাহের আগে ডিভাইসে কার্যকর করা হবে।

abstract boolean pullDir (String deviceFilePath, File localDir)

বারবার ডিভাইস থেকে ডিরেক্টরি বিষয়বস্তু টানুন।

abstract File pullFile (String remoteFilePath, int userId)

ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে, এটি একটি স্থানীয় অস্থায়ী ERROR(/File) এ সঞ্চয় করে এবং সেই File ফেরত দেয়।

abstract File pullFile (String remoteFilePath)

ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে, এটি একটি স্থানীয় অস্থায়ী ERROR(/File) এ সঞ্চয় করে এবং সেই File ফেরত দেয়।

abstract boolean pullFile (String remoteFilePath, File localFile)

ডিভাইস বন্ধ একটি ফাইল পুনরুদ্ধার করে.

abstract boolean pullFile (String remoteFilePath, File localFile, int userId)

ডিভাইস বন্ধ একটি ফাইল পুনরুদ্ধার করে.

abstract String pullFileContents (String remoteFilePath)

ডিভাইস বন্ধ একটি ফাইল পুনরুদ্ধার করে, এবং বিষয়বস্তু ফেরত.

abstract File pullFileFromExternal (String remoteFilePath)

ডিভাইসের বাহ্যিক সঞ্চয়স্থান থেকে একটি ফাইল পুনরুদ্ধার করার একটি সুবিধাজনক পদ্ধতি, এটি একটি স্থানীয় অস্থায়ী ERROR(/File) এ সংরক্ষণ করে এবং সেই File একটি রেফারেন্স ফেরত দেয়।

abstract boolean pushDir (File localDir, String deviceFilePath, excludedDirectories) pushDir (File localDir, String deviceFilePath, excludedDirectories)

ফিল্টার করা কিছু ডিরেক্টরি বাদ দিয়ে বারবার ডিরেক্টরির বিষয়বস্তু ডিভাইসে পুশ করুন।

abstract boolean pushDir (File localDir, String deviceFilePath)

বারবার ডিভাইসে ডিরেক্টরি বিষয়বস্তু পুশ করুন।

abstract boolean pushFile (File localFile, String deviceFilePath, boolean evaluateContentProviderNeeded)

pushFile(File, String) এর বৈকল্পিক যা ঐচ্ছিকভাবে বিষয়বস্তু প্রদানকারীর প্রয়োজনীয়তার মূল্যায়ন বিবেচনা করতে পারে।

abstract boolean pushFile (File localFile, String deviceFilePath)

ডিভাইসে একটি ফাইল পুশ করুন।

abstract boolean pushString (String contents, String deviceFilePath)

একটি স্ট্রিং থেকে ডিভাইসে তৈরি করা ফাইল পুশ করুন

abstract void reboot ()

ডিভাইসটিকে অ্যাডবি মোডে রিবুট করুন।

abstract void reboot (String reason)

রিবুট জুড়ে প্রদত্ত reason সহ ডিভাইসটিকে adb মোডে রিবুট করুন।

abstract void rebootIntoBootloader ()

ডিভাইসটিকে বুটলোডার মোডে রিবুট করুন।

abstract void rebootIntoFastbootd ()

ডিভাইসটিকে ফাস্টবুট মোডে রিবুট করুন।

abstract void rebootIntoRecovery ()

ডিভাইসটিকে অ্যাডবি রিকভারি মোডে রিবুট করুন।

abstract void rebootIntoSideload (boolean autoReboot)

ডিভাইসটিকে অ্যাডবি সাইডলোড মোডে রিবুট করুন (মনে রাখবেন যে এটি পুনরুদ্ধারের অধীনে একটি বিশেষ মোড)

ডিভাইস সাইডলোড মোডে প্রবেশ না করা পর্যন্ত ব্লক করে

abstract void rebootIntoSideload ()

ডিভাইসটিকে অ্যাডবি সাইডলোড মোডে রিবুট করুন (মনে রাখবেন যে এটি পুনরুদ্ধারের অধীনে একটি বিশেষ মোড)

ডিভাইস সাইডলোড মোডে প্রবেশ না করা পর্যন্ত ব্লক করে

abstract void rebootUntilOnline ()

reboot() এর বিকল্প যা ডিভাইস অনলাইন না হওয়া পর্যন্ত ব্লক করে যেমন adb-এর কাছে দৃশ্যমান।

abstract void rebootUntilOnline (String reason)

reboot() এর বিকল্প যা ডিভাইস অনলাইন না হওয়া পর্যন্ত ব্লক করে যেমন adb-এর কাছে দৃশ্যমান।

abstract void rebootUserspace ()

ডিভাইসের শুধুমাত্র ইউজারস্পেস অংশ রিবুট করে।

abstract void rebootUserspaceUntilOnline ()

rebootUserspace() ()} এর একটি বিকল্প যা ডিভাইস অনলাইন না হওয়া পর্যন্ত ব্লক করে যেমন adb-এর কাছে দৃশ্যমান।

abstract void remountSystemReadOnly ()

ডিভাইসে সিস্টেম পার্টিশনটি শুধুমাত্র পড়ার জন্য তৈরি করুন।

abstract void remountSystemWritable ()

ডিভাইসে সিস্টেম পার্টিশন লেখার যোগ্য করুন।

abstract void remountVendorReadOnly ()

শুধুমাত্র পঠনযোগ্য ডিভাইসে বিক্রেতা পার্টিশন করুন।

abstract void remountVendorWritable ()

ডিভাইসে বিক্রেতা পার্টিশন লেখার যোগ্য করুন।

abstract boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)

প্যারামিটার হিসাবে পাস করা এক বা একাধিক শ্রোতাদের সাথে ERROR(/#runInstrumentationTests(com.android.ddmlib.testrunner.IRemoteAndroidTestRunner,Collection)) সম্পাদন করার সুবিধার পদ্ধতি৷

abstract boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners) runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners)

ইন্সট্রুমেন্টেশন পরীক্ষা চালায়, এবং ডিভাইস পুনরুদ্ধার প্রদান করে।

abstract boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners) runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners)

ERROR(ITestDevice#runInstrumentationTests(IRemoteAndroidTestRunner, Collection)/com.android.tradefed.device.ITestDevice#runInstrumentationTests(com.android.ddmlib.testrunner.IRemoteAndroidTestRunner,Collection) ITestDevice#runInstrumentationTests(IRemoteAndroidTestRunner, Collection)) কিন্তু পরীক্ষা চালায় প্রদত্ত ব্যবহারকারীর জন্য।

abstract boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)

ITestDevice#runInstrumentationTests(IRemoteAndroidTestRunner, ITestLifeCycleReceiver...) এর মতই কিন্তু একটি প্রদত্ত ব্যবহারকারীর জন্য পরীক্ষা চালায়।

abstract void setDate (Date date)

ডিভাইসে তারিখ সেট করে

দ্রষ্টব্য: ডিভাইসে তারিখ সেট করার জন্য রুট প্রয়োজন

abstract void setOptions ( TestDeviceOptions options)

ডিভাইসের জন্য TestDeviceOptions সেট করুন

abstract boolean setProperty (String propKey, String propValue)

ডিভাইসে প্রদত্ত সম্পত্তি মান সেট করে।

abstract void setRecovery ( IDeviceRecovery recovery)

এই ডিভাইসের জন্য ব্যবহার করার জন্য IDeviceRecovery সেট করুন।

abstract void setRecoveryMode ( ITestDevice.RecoveryMode mode)

ডিভাইসের জন্য ব্যবহার করার জন্য বর্তমান পুনরুদ্ধার মোড সেট করুন।

abstract void setUseFastbootErase (boolean useFastbootErase)

ডিভাইসে একটি পার্টিশন মুছে ফেলার জন্য fastboot ইরেজ বা fastboot বিন্যাস ব্যবহার করবেন কিনা তা সেট করুন।

abstract void startLogcat ()

ব্যাকগ্রাউন্ডে ডিভাইস থেকে লগক্যাট আউটপুট ক্যাপচার করা শুরু করুন।

abstract void stopEmulatorOutput ()

এমুলেটর আউটপুট বন্ধ করুন এবং মুছুন।

abstract void stopLogcat ()

ডিভাইস থেকে logcat আউটপুট ক্যাপচার করা বন্ধ করুন, এবং বর্তমানে সংরক্ষিত logcat ডেটা বাতিল করুন৷

abstract String switchToAdbTcp ()

ডিভাইসটিকে adb-over-tcp মোডে পরিবর্তন করুন।

abstract boolean switchToAdbUsb ()

ইউএসবি মোডে ডিভাইসটি অ্যাডবি-তে স্যুইচ করুন।

abstract boolean syncFiles (File localFileDir, String deviceFilePath)

ডিভাইসে স্থানীয় ফাইল ডিরেক্টরির বিষয়বস্তু ক্রমবর্ধমানভাবে সিঙ্ক করে।

abstract boolean unlockDevice ()

ডিভাইসটি এনক্রিপ্ট করা অবস্থায় থাকলে ডিভাইসটিকে আনলক করে।

abstract boolean waitForBootComplete (long timeOut)

ডিভাইসের বুট সম্পূর্ণ পতাকা সেট না হওয়া পর্যন্ত ব্লক করে।

abstract boolean waitForDeviceAvailable ()

ডিভাইসটি প্রতিক্রিয়াশীল এবং পরীক্ষার জন্য উপলব্ধ হওয়ার জন্য অপেক্ষা করে।

abstract boolean waitForDeviceAvailable (long waitTime)

ডিভাইসটি প্রতিক্রিয়াশীল এবং পরীক্ষার জন্য উপলব্ধ হওয়ার জন্য অপেক্ষা করে।

abstract boolean waitForDeviceAvailableInRecoverPath (long waitTime)

রিকভারি পাথ বিবেচনা না করে ডিভাইসটি প্রতিক্রিয়াশীল এবং উপলব্ধ হওয়ার জন্য অপেক্ষা করে।

abstract void waitForDeviceBootloader ()

ফাস্টবুটের মাধ্যমে ডিভাইসটি দৃশ্যমান না হওয়া পর্যন্ত ব্লক করে।

abstract boolean waitForDeviceInRecovery (long waitTime)

ডিভাইসটিকে 'adb রিকভারি' অবস্থায় থাকার জন্য ব্লক করে (মনে রাখবেন এটি IDeviceRecovery থেকে আলাদা)।

abstract boolean waitForDeviceInSideload (long waitTime)

ডিভাইসটিকে 'adb sideload' অবস্থায় থাকতে ব্লক করে

abstract boolean waitForDeviceNotAvailable (long waitTime)

ডিভাইসটি উপলব্ধ না হওয়ার জন্য ব্লকগুলি যেমন adb থেকে অনুপস্থিত

abstract void waitForDeviceOnline ()

ডিভাইসটি adb এর মাধ্যমে দৃশ্যমান না হওয়া পর্যন্ত ব্লক করে।

abstract void waitForDeviceOnline (long waitTime)

ডিভাইসটি adb এর মাধ্যমে দৃশ্যমান না হওয়া পর্যন্ত ব্লক করে।

abstract boolean waitForDeviceShell (long waitTime)

একটি মৌলিক adb শেল কমান্ডের জন্য ডিভাইস প্রতিক্রিয়াশীল হওয়ার জন্য অপেক্ষা করে।

ধ্রুবক

UNKNOWN_API_LEVEL

public static final int UNKNOWN_API_LEVEL

ডিফল্ট মান যখন API স্তর সনাক্ত করা যাবে না

ধ্রুবক মান: -1 (0xffffffff)

পাবলিক পদ্ধতি

CheckApiLevel AgainstNextRelease

public abstract boolean checkApiLevelAgainstNextRelease (int strictMinLevel)

একটি ন্যূনতম সমর্থিত স্তরে একটি বৈশিষ্ট্য বর্তমানে সমর্থিত কিনা তা পরীক্ষা করুন। API স্তর উত্থাপিত হওয়ার আগে এই পদ্ধতিটি এখনও অপ্রকাশিত বৈশিষ্ট্যগুলিকে বিবেচনা করে।

পরামিতি
strictMinLevel int : বৈশিষ্ট্যটিকে সমর্থন করে এমন কঠোর ন্যূনতম সম্ভাব্য স্তর।

রিটার্নস
boolean সত্য যদি স্তর সমর্থিত হয়. অন্যথায় মিথ্যা।

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

clearLogcat

public abstract void clearLogcat ()

কোনো জমে থাকা লগক্যাট ডেটা মুছে দেয়।

এটি সেই ক্ষেত্রে উপযোগী যখন আপনি নিশ্চিত করতে চান যে ITestDevice#getLogcat() শুধুমাত্র একটি নির্দিষ্ট বিন্দুর পরে উত্পাদিত লগ ডেটা ফেরত দেয় (যেমন একটি নতুন ডিভাইস বিল্ড ফ্ল্যাশ করার পরে, ইত্যাদি)।

নথিপত্র মুছে দাও

public abstract void deleteFile (String deviceFilePath)

ডিভাইসে একটি ফাইল বা ডিরেক্টরি মুছে ফেলার জন্য সহায়ক পদ্ধতি।

পরামিতি
deviceFilePath String : ডিভাইসে ফাইলের পরম পথ।

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

ডিভাইস সফট রিস্টার্ট হয়েছে

public abstract boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)

পূর্ববর্তী system_server ProcessInfo এর সাথে বর্তমান system_server তুলনা করে ডিভাইস সফট-রিস্টার্ট হয়েছে কিনা তা পরীক্ষা করার জন্য সহায়ক পদ্ধতি। ProcessInfo পেতে getProcessByName(String) ব্যবহার করুন।

পরামিতি
prevSystemServerProcess ProcessInfo : পূর্ববর্তী system_server প্রক্রিয়া ProcessInfo

রিটার্নস
boolean ডিভাইস সফট-রিস্টার্ট হলে true

নিক্ষেপ করে
RuntimeException যদি ডিভাইসে অস্বাভাবিক বুট কারণ থাকে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

ডিভাইস সফট রিস্টার্ট হয়েছে

public abstract boolean deviceSoftRestartedSince (long utcEpochTime, 
                TimeUnit timeUnit)

ডিভাইস থেকে ইউটিসি সময় থেকে যুগ থেকে ডিভাইস সফ্ট-রিস্টার্ট হয়েছে কিনা এবং এর ERROR(/TimeUnit) পরীক্ষা করার জন্য সহায়ক পদ্ধতি। সফ্ট-রিস্টার্ট বলতে একটি ডিভাইস হার্ড রিবুটের বাইরে সিস্টেম_সার্ভার পুনরায় চালু করাকে বোঝায় (উদাহরণস্বরূপ: রিবুট অনুরোধ করা হয়েছে)। মিলিসেকেন্ডে বর্তমান ডিভাইস utcEpochTime getDeviceDate() পদ্ধতি দ্বারা প্রাপ্ত করা যেতে পারে।

পরামিতি
utcEpochTime long : যুগের পর থেকে ডিভাইসের সময় দ্বিতীয়।

timeUnit TimeUnit : প্রদত্ত utcEpochTime এর জন্য সময় ইউনিট TimeUnit

রিটার্নস
boolean ডিভাইস সফট-রিস্টার্ট হলে true

নিক্ষেপ করে
RuntimeException যদি ডিভাইসে অস্বাভাবিক বুট কারণ থাকে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

অক্ষমAdbRoot

public abstract boolean disableAdbRoot ()

অ্যাডবি রুট বন্ধ করে।

অ্যাডবি রুট অক্ষম করলে ডিভাইসটি অ্যাডবি থেকে সংযোগ বিচ্ছিন্ন হতে পারে। ডিভাইসটি উপলব্ধ না হওয়া পর্যন্ত এই পদ্ধতিটি ব্লক করা হবে।

রিটার্নস
boolean সফল হলে true

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ফাইলের অস্তিত্ব নেই

public abstract boolean doesFileExist (String deviceFilePath)

ডিভাইসে ফাইল আছে কিনা তা নির্ধারণ করতে সহায়ক পদ্ধতি।

পরামিতি
deviceFilePath String : পরীক্ষা করার জন্য ডিভাইসে ফাইলের পরম পথ

রিটার্নস
boolean ফাইল বিদ্যমান থাকলে true , অন্যথায় false

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

অ্যাডবিরুট সক্ষম করুন

public abstract boolean enableAdbRoot ()

অ্যাডবি রুট চালু করে। যদি "সক্ষম-রুট" সেটিং "মিথ্যা" হয়, তাহলে একটি বার্তা লগ করবে এবং রুট সক্রিয় না করেই ফিরে আসবে৷

অ্যাডবি রুট সক্রিয় করার ফলে ডিভাইসটি অ্যাডবি থেকে সংযোগ বিচ্ছিন্ন হতে পারে। ডিভাইসটি উপলব্ধ না হওয়া পর্যন্ত এই পদ্ধতিটি ব্লক করা হবে।

রিটার্নস
boolean সফল হলে true

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানAdbCommand

public abstract String executeAdbCommand (long timeout, 
                String... commandArgs)

সহায়ক পদ্ধতি যা একটি নির্দিষ্ট সময়সীমার সাথে একটি সিস্টেম কমান্ড হিসাবে একটি adb কমান্ড কার্যকর করে।

executeShellCommand(String) যেখানে সম্ভব সেখানে ব্যবহার করা উচিত, কারণ সেই পদ্ধতিটি আরও ভাল ব্যর্থতা সনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।

পরামিতি
timeout long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে বিবেচিত হওয়ার আগে মিলিসেকেন্ডে সময়, টাইমআউটের জন্য 0L

commandArgs String : চালানোর জন্য adb কমান্ড এবং আর্গুমেন্ট

রিটার্নস
String কমান্ড থেকে stdout. null যদি কমান্ড কার্যকর করতে ব্যর্থ হয়।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানAdbCommand

public abstract String executeAdbCommand (String... commandArgs)

সহায়ক পদ্ধতি যা একটি adb কমান্ডকে সিস্টেম কমান্ড হিসাবে কার্যকর করে।

executeShellCommand(String) যেখানে সম্ভব সেখানে ব্যবহার করা উচিত, কারণ সেই পদ্ধতিটি আরও ভাল ব্যর্থতা সনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।

পরামিতি
commandArgs String : চালানোর জন্য adb কমান্ড এবং আর্গুমেন্ট

রিটার্নস
String কমান্ড থেকে stdout. null যদি কমান্ড কার্যকর করতে ব্যর্থ হয়।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানAdbCommand

public abstract String executeAdbCommand (long timeout, 
                 envMap, 
                String... commandArgs)

সহায়ক পদ্ধতি যা একটি নির্দিষ্ট সময়সীমার সাথে একটি সিস্টেম কমান্ড হিসাবে একটি adb কমান্ড কার্যকর করে।

executeShellCommand(String) যেখানে সম্ভব সেখানে ব্যবহার করা উচিত, কারণ সেই পদ্ধতিটি আরও ভাল ব্যর্থতা সনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।

পরামিতি
timeout long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে বিবেচিত হওয়ার আগে মিলিসেকেন্ডে সময়, টাইমআউটের জন্য 0L

envMap : কমান্ডের জন্য সেট করার পরিবেশ

commandArgs String : চালানোর জন্য adb কমান্ড এবং আর্গুমেন্ট

রিটার্নস
String কমান্ড থেকে stdout. null যদি কমান্ড কার্যকর করতে ব্যর্থ হয়।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ফাস্টবুটকমান্ড চালান

public abstract CommandResult executeFastbootCommand (long timeout, 
                String... commandArgs)

সহায়ক পদ্ধতি যা একটি সিস্টেম কমান্ড হিসাবে একটি ফাস্টবুট কমান্ড কার্যকর করে।

ডিভাইসটি ইতিমধ্যেই ফাস্টবুট মোডে থাকা অবস্থায় ব্যবহার করা প্রত্যাশিত৷

পরামিতি
timeout long : কমান্ডের মেয়াদ শেষ হওয়ার আগে মিলিসেকেন্ডে সময়

commandArgs String : রান করার জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্ট

রিটার্নস
CommandResult কমান্ডের আউটপুট ধারণকারী CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ফাস্টবুটকমান্ড চালান

public abstract CommandResult executeFastbootCommand (String... commandArgs)

হেল্পার পদ্ধতি যা 2 মিনিটের ডিফল্ট টাইমআউট সহ একটি সিস্টেম কমান্ড হিসাবে একটি ফাস্টবুট কমান্ড কার্যকর করে।

ডিভাইসটি ইতিমধ্যেই ফাস্টবুট মোডে থাকা অবস্থায় ব্যবহার করা প্রত্যাশিত৷

পরামিতি
commandArgs String : রান করার জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্ট

রিটার্নস
CommandResult কমান্ডের আউটপুট ধারণকারী CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

লংফাস্টবুটকমান্ড চালান

public abstract CommandResult executeLongFastbootCommand (String... commandArgs)

হেল্পার পদ্ধতি যা একটি দীর্ঘ চলমান ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসাবে কার্যকর করে।

executeFastbootCommand(String) জন্য অভিন্ন একটি দীর্ঘ সময়সীমা ব্যবহার করা ছাড়া।

পরামিতি
commandArgs String : রান করার জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্ট

রিটার্নস
CommandResult কমান্ডের আউটপুট ধারণকারী CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

লংফাস্টবুটকমান্ড চালান

public abstract CommandResult executeLongFastbootCommand ( envVarMap, 
                String... commandArgs)

হেল্পার পদ্ধতি যা সিস্টেম এনভায়রনমেন্ট ভেরিয়েবল সহ একটি সিস্টেম কমান্ড হিসাবে একটি দীর্ঘ চলমান ফাস্টবুট কমান্ড কার্যকর করে।

executeFastbootCommand(String) জন্য অভিন্ন একটি দীর্ঘ সময়সীমা ব্যবহার করা ছাড়া।

পরামিতি
envVarMap : সিস্টেম এনভায়রনমেন্ট ভেরিয়েবল যা fastboot কমান্ড দিয়ে চালানো হয়

commandArgs String : রান করার জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্ট

রিটার্নস
CommandResult কমান্ডের আউটপুট ধারণকারী CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানShellCommand

public abstract String executeShellCommand (String command)

সাহায্যকারী পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং String হিসাবে আউটপুট প্রদান করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

রিটার্নস
String শেল আউটপুট

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানShellCommand

public abstract void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeToOutputShellResponse, 
                TimeUnit timeUnit, 
                int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

receiver IShellOutputReceiver : IShellOutputReceiver যাতে সরাসরি শেল আউটপুট থাকে।

maxTimeToOutputShellResponse long : সর্বোচ্চ সময় যে সময়ে কমান্ডটিকে কোনো প্রতিক্রিয়া আউটপুট না করার অনুমতি দেওয়া হয়; timeUnit উল্লিখিত ইউনিট

timeUnit TimeUnit : maxTimeToOutputShellResponse এর জন্য ইউনিট

retryAttempts int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে সর্বোচ্চ কতবার পুনরায় চেষ্টা করতে হবে। DeviceNotResponsiveException নিক্ষেপ করা হবে যদি retryAttempts সফল না হয়ে সঞ্চালিত হয়।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানShellCommand

public abstract void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeoutForCommand, 
                long maxTimeToOutputShellResponse, 
                TimeUnit timeUnit, 
                int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

receiver IShellOutputReceiver : IShellOutputReceiver যাতে সরাসরি শেল আউটপুট থাকে।

maxTimeoutForCommand long : কমান্ড সম্পূর্ণ করার জন্য সর্বাধিক সময়সীমা; timeUnit উল্লিখিত ইউনিট

maxTimeToOutputShellResponse long : সর্বোচ্চ সময় যে সময়ে কমান্ডটিকে কোনো প্রতিক্রিয়া আউটপুট না করার অনুমতি দেওয়া হয়; timeUnit উল্লিখিত ইউনিট

timeUnit TimeUnit : maxTimeToOutputShellResponse এর জন্য ইউনিট

retryAttempts int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে সর্বোচ্চ কতবার পুনরায় চেষ্টা করতে হবে। DeviceNotResponsiveException নিক্ষেপ করা হবে যদি retryAttempts সফল না হয়ে সঞ্চালিত হয়।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

চালানShellCommand

public abstract void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

প্রদত্ত adb শেল কমান্ড কার্যকর করে, কমান্ড ব্যর্থ হলে একাধিকবার পুনরায় চেষ্টা করে।

ডিফল্ট মান সহ executeShellCommand(String, com.android.ddmlib.IShellOutputReceiver, long, TimeUnit, int) এর একটি সহজ রূপ।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

receiver IShellOutputReceiver : IShellOutputReceiver যাতে সরাসরি শেল আউটপুট থাকে।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command)

হেল্পার পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ড স্ট্যাটাস আউটপুট, stdout এবং stderr সহ সঠিকভাবে CommandResult হিসাবে ফলাফল প্রদান করে।

পরামিতি
command String : কমান্ড যা চালানো উচিত।

রিটার্নস
CommandResult CommandResult এ ফলাফল।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command, 
                OutputStream pipeToOutput)

হেল্পার পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ড স্ট্যাটাস আউটপুট এবং stderr এর সাথে সঠিকভাবে CommandResult হিসাবে ফলাফল প্রদান করে। stdout নির্দিষ্ট স্ট্রিমে নির্দেশিত হয়।

পরামিতি
command String : কমান্ড যা চালানো উচিত।

pipeToOutput OutputStream : ERROR(/OutputStream) যেখানে std আউটপুট পুনঃনির্দেশিত হবে, বা নাল।

রিটার্নস
CommandResult CommandResult এ ফলাফল।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command, 
                File pipeAsInput)

হেল্পার পদ্ধতি যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ড স্ট্যাটাস আউটপুট, stdout এবং stderr সহ সঠিকভাবে CommandResult হিসাবে ফলাফল প্রদান করে।

পরামিতি
command String : কমান্ড যা চালানো উচিত।

pipeAsInput File : একটি ERROR(/File) যা কমান্ডে ইনপুট হিসাবে পাইপ করা হবে, বা নাল।

রিটার্নস
CommandResult CommandResult এ ফলাফল।

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit, 
                int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

maxTimeoutForCommand long : কমান্ড সম্পূর্ণ করার জন্য সর্বাধিক সময়সীমা; timeUnit উল্লিখিত ইউনিট

timeUnit TimeUnit : maxTimeToOutputShellResponse এর জন্য ইউনিট

retryAttempts int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে সর্বোচ্চ কতবার পুনরায় চেষ্টা করতে হবে। DeviceNotResponsiveException নিক্ষেপ করা হবে যদি retryAttempts সফল না হয়ে সঞ্চালিত হয়।

রিটার্নস
CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

আরো দেখুন:

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

maxTimeoutForCommand long : কমান্ড সম্পূর্ণ করার জন্য সর্বাধিক সময়সীমা; timeUnit উল্লিখিত ইউনিট

timeUnit TimeUnit : maxTimeToOutputShellResponse এর জন্য ইউনিট

রিটার্নস
CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

আরো দেখুন:

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command, 
                File pipeAsInput, 
                OutputStream pipeToOutput, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit, 
                int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

pipeAsInput File : একটি ERROR(/File) যা কমান্ডে ইনপুট হিসাবে পাইপ করা হবে, বা নাল।

pipeToOutput OutputStream : ERROR(/OutputStream) যেখানে std আউটপুট পুনঃনির্দেশিত হবে, বা নাল।

maxTimeoutForCommand long : কমান্ড সম্পূর্ণ করার জন্য সর্বাধিক সময়সীমা; timeUnit উল্লিখিত ইউনিট

timeUnit TimeUnit : maxTimeToOutputShellResponse এর জন্য ইউনিট

retryAttempts int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে সর্বোচ্চ কতবার পুনরায় চেষ্টা করতে হবে। DeviceNotResponsiveException নিক্ষেপ করা হবে যদি retryAttempts সফল না হয়ে সঞ্চালিত হয়।

রিটার্নস
CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

আরো দেখুন:

ExecuteShellV2Command

public abstract CommandResult executeShellV2Command (String command, 
                File pipeAsInput, 
                OutputStream pipeToOutput, 
                OutputStream pipeToError, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit, 
                int retryAttempts)

কমান্ড আচরণ নিয়ন্ত্রণ করতে আরো পরামিতি সহ একটি adb শেল কমান্ড কার্যকর করে।

পরামিতি
command String : চালানোর জন্য adb শেল কমান্ড

pipeAsInput File : একটি ERROR(/File) যা কমান্ডে ইনপুট হিসাবে পাইপ করা হবে, বা নাল।

pipeToOutput OutputStream : ERROR(/OutputStream) যেখানে std আউটপুট পুনঃনির্দেশিত হবে, বা নাল।

pipeToError OutputStream : ERROR(/OutputStream) যেখানে std ত্রুটি পুনঃনির্দেশিত হবে, বা শূন্য।

maxTimeoutForCommand long : কমান্ড সম্পূর্ণ করার জন্য সর্বাধিক সময়সীমা; timeUnit উল্লিখিত ইউনিট

timeUnit TimeUnit : maxTimeToOutputShellResponse এর জন্য ইউনিট

retryAttempts int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে সর্বোচ্চ কতবার পুনরায় চেষ্টা করতে হবে। DeviceNotResponsiveException নিক্ষেপ করা হবে যদি retryAttempts সফল না হয়ে সঞ্চালিত হয়।

রিটার্নস
CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

আরো দেখুন:

fastbootWipePartition

public abstract CommandResult fastbootWipePartition (String partition)

সাহায্যকারী পদ্ধতি যা ডিভাইসের জন্য একটি পার্টিশন মুছে দেয়।

getUseFastbootErase() true হলে, ফাস্টবুট ইরেজ পার্টিশনটি মুছে ফেলার জন্য ব্যবহার করা হবে। পরের বার যখন ডিভাইস বুট হবে তখন ডিভাইসটিকে অবশ্যই একটি ফাইল সিস্টেম তৈরি করতে হবে। অন্যথায়, ফাস্টবুট ফর্ম্যাট ব্যবহার করা হয় যা ডিভাইসে একটি নতুন ফাইল সিস্টেম তৈরি করবে।

ডিভাইসটি ইতিমধ্যেই ফাস্টবুট মোডে থাকা অবস্থায় ব্যবহার করা প্রত্যাশিত৷

পরামিতি
partition String : মোছার পার্টিশন

রিটার্নস
CommandResult কমান্ডের আউটপুট ধারণকারী CommandResult

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

getApiLevel

public abstract int getApiLevel ()

ডিভাইস API লেভেল পান। UNKNOWN_API_LEVEL এ ডিফল্ট।

রিটার্নস
int ডিভাইসের API স্তর নির্দেশ করে একটি পূর্ণসংখ্যা

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getBaseband Version

public abstract String getBasebandVersion ()

এই ডিভাইসের বেসব্যান্ড (রেডিও) সংস্করণ পেতে সুবিধার পদ্ধতি। রেডিও সংস্করণ পাওয়া ডিভাইস নির্দিষ্ট, তাই এটি সমস্ত ডিভাইসের জন্য সঠিক তথ্য নাও দিতে পারে। এই পদ্ধতিটি সঠিক সংস্করণের তথ্য ফেরত দিতে gsm.version.baseband প্রপারটির উপর নির্ভর করে। এটি কিছু CDMA ডিভাইসের জন্য সঠিক নয় এবং এখানে প্রত্যাবর্তন করা সংস্করণটি fastboot থেকে রিপোর্ট করা সংস্করণের সাথে নাও মিলতে পারে এবং CDMA রেডিওর সংস্করণটি নাও পেতে পারে৷ TL;DR এই পদ্ধতিটি শুধুমাত্র সঠিক সংস্করণের রিপোর্ট করে যদি gsm.version.baseband বৈশিষ্ট্যটি fastboot getvar version-baseband দ্বারা প্রত্যাবর্তিত সংস্করণের মতই হয়।

রিটার্নস
String String বেসব্যান্ড সংস্করণ বা null যদি এটি নির্ধারণ করা না যায় (ডিভাইসটিতে কোনও রেডিও নেই বা সংস্করণ স্ট্রিং পড়া যাবে না)

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ব্যাটারি পান

public abstract Integer getBattery ()

একটি ডিভাইসের বর্তমান ব্যাটারি স্তর বা ব্যাটারি স্তর অনুপলব্ধ হলে শূন্য প্রদান করে৷

রিটার্নস
Integer

GetBoolanProperty

public abstract boolean getBooleanProperty (String name, 
                boolean defaultValue)

প্রদত্ত সম্পত্তির বুলিয়ান মান প্রদান করে।

পরামিতি
name String : সম্পত্তির নাম

defaultValue boolean : প্রপার্টি খালি থাকলে বা বিদ্যমান না থাকলে ফেরত দিতে ডিফল্ট মান।

রিটার্নস
boolean প্রপার্টির মান "1" , "y" , "yes" , "on" বা "true" থাকলে true , যদি প্রপার্টির মান false "0" , "n" , "no" , "off" , "false" , অথবা defaultValue অন্যথায়।

নিক্ষেপ করে
DeviceNotAvailableException

getBootHistory

public abstract  getBootHistory ()

হেল্পার পদ্ধতি বুট সময় এবং বুট কারণ সহ বুট ইতিহাস মানচিত্র সংগ্রহ করে।

রিটার্নস
বুট সময়ের মানচিত্র (ইপোচের পর থেকে সেকেন্ডে ইউটিসি সময়) এবং বুটের কারণ

নিক্ষেপ করে
DeviceNotAvailableException

getBootHistory থেকে

public abstract  getBootHistorySince (long utcEpochTime, 
                TimeUnit timeUnit)

হেল্পার মেথড বুট টাইম এবং বুট কারণ সহ বুট হিস্ট্রি ম্যাপ সংগ্রহ করে ডিভাইস থেকে epoch থেকে প্রদত্ত সময় এবং নির্দিষ্ট সময় ইউনিট। মিলিসেকেন্ডে বর্তমান ডিভাইস utcEpochTime getDeviceDate() পদ্ধতি দ্বারা প্রাপ্ত করা যেতে পারে।

পরামিতি
utcEpochTime long : যুগ থেকে ডিভাইসের সময়।

timeUnit TimeUnit : সময়ের একক TimeUnit

রিটার্নস
বুট সময়ের মানচিত্র (ইপোচের পর থেকে সেকেন্ডে ইউটিসি সময়) এবং বুটের কারণ

নিক্ষেপ করে
DeviceNotAvailableException

বুটলোডার সংস্করণ পান

public abstract String getBootloaderVersion ()

এই ডিভাইসের বুটলোডার সংস্করণ পেতে সুবিধার পদ্ধতি।

ডিভাইসের বর্তমান অবস্থা থেকে বুটলোডার সংস্করণ পুনরুদ্ধার করার চেষ্টা করবে। (অর্থাৎ ডিভাইসটি যদি ফাস্টবুট মোডে থাকে তবে এটি ফাস্টবুট থেকে সংস্করণ পুনরুদ্ধার করার চেষ্টা করবে)

রিটার্নস
String String বুটলোডার সংস্করণ বা null যদি এটি পাওয়া না যায়

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

getBuildAlias

public abstract String getBuildAlias ()

ডিভাইসটি বর্তমানে চলমান বিল্ডের উপনাম পুনরুদ্ধার করুন।

বিল্ড উপনাম সাধারণত বিল্ড আইডি (সাধারণত নেক্সাস বিল্ডের জন্য একটি সংখ্যা) এর চেয়ে বেশি পঠনযোগ্য স্ট্রিং। উদাহরণস্বরূপ, চূড়ান্ত অ্যান্ড্রয়েড 4.2 রিলিজে বিল্ড ওরফে JDQ39 এবং বিল্ড আইডি 573038 রয়েছে

রিটার্নস
String বিল্ড উপনাম বা বিল্ড আইডিতে ফিরে যান যদি এটি পুনরুদ্ধার করা না যায়

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

বিল্ডফ্লেভার পান

public abstract String getBuildFlavor ()

ডিভাইসের জন্য বিল্ড ফ্লেভার পুনরুদ্ধার করুন।

রিটার্নস
String বিল্ড ফ্লেভার বা নাল যদি এটি পুনরুদ্ধার করা যায় না

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getBuildId

public abstract String getBuildId ()

ডিভাইসটি বর্তমানে চলমান বিল্ডটি পুনরুদ্ধার করুন।

রিটার্নস
String বিল্ড আইডি বা IBuildInfo#UNKNOWN_BUILD_ID যদি এটি পুনরুদ্ধার করা না যায়

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getBuildSigningKeys

public abstract String getBuildSigningKeys ()

ডিভাইস ইমেজ সাইন ইন করতে ব্যবহৃত কী টাইপ প্রদান করে

সাধারণত অ্যান্ড্রয়েড ডিভাইসগুলি টেস্ট-কি (যেমন AOSP-তে) বা রিলিজ-কি (ব্যক্তিগত ডিভাইস নির্মাতাদের দ্বারা নিয়ন্ত্রিত) দিয়ে স্বাক্ষরিত হতে পারে

রিটার্নস
String সাইনিং কী পাওয়া গেলে, অন্যথায় নাল।

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getCachedDeviceDescriptor

public abstract DeviceDescriptor getCachedDeviceDescriptor ()

ডিভাইসটি বরাদ্দ করা হলে একটি ক্যাশ করা DeviceDescriptor ফেরত দেয়, অন্যথায় বর্তমান DeviceDescriptor ফেরত দেয়।

রিটার্নস
DeviceDescriptor

getCachedDeviceDescriptor

public abstract DeviceDescriptor getCachedDeviceDescriptor (boolean shortDescriptor)

ডিভাইসটি বরাদ্দ করা হলে একটি ক্যাশ করা DeviceDescriptor ফেরত দেয়, অন্যথায় বর্তমান DeviceDescriptor ফেরত দেয়।

পরামিতি
shortDescriptor boolean : বর্ণনাকারীকে সর্বনিম্ন তথ্যের মধ্যে সীমাবদ্ধ করতে হবে কিনা

রিটার্নস
DeviceDescriptor

বাচ্চাদের পান

public abstract String[] getChildren (String deviceFilePath)

IFileEntry ব্যবহার করার বিকল্প যা কখনও কখনও অনুমতির কারণে কাজ করবে না।

পরামিতি
deviceFilePath String : ডিভাইসের পাথ যেখানে অনুসন্ধান করতে হবে

রিটার্নস
String[] ডিভাইসের একটি পাথে সমস্ত ফাইল ধারণকারী স্ট্রিং এর অ্যারে।

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

সংযোগ পান

public abstract AbstractConnection getConnection ()

ডিভাইসের সাথে যুক্ত সংযোগ ফেরত দেয়।

রিটার্নস
AbstractConnection

ডিভাইসক্লাস পান

public abstract String getDeviceClass ()

ডিভাইস ক্লাস পান।

রিটার্নস
String String ডিভাইস ক্লাস।

GetDeviceDate

public abstract long getDeviceDate ()

যুগ থেকে মিলিসেকেন্ডে ডিভাইসের তারিখ ফেরত দিন।

রিটার্নস
long যুগের বিন্যাসে ডিভাইসের তারিখ।

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDeviceDescriptor

public abstract DeviceDescriptor getDeviceDescriptor ()

প্রকৃত ডিভাইস অবজেক্টটি পাস না করে এটিতে তথ্য পেতে ডিভাইসের তথ্য থেকে একটি DeviceDescriptor ফেরত দিন।

রিটার্নস
DeviceDescriptor

getDeviceDescriptor

public abstract DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

প্রকৃত ডিভাইস অবজেক্টটি পাস না করে এটিতে তথ্য পেতে ডিভাইসের তথ্য থেকে একটি DeviceDescriptor ফেরত দিন।

পরামিতি
shortDescriptor boolean : বর্ণনাকারীকে সর্বনিম্ন তথ্যের মধ্যে সীমাবদ্ধ করতে হবে কিনা

রিটার্নস
DeviceDescriptor

getDeviceState

public abstract TestDeviceState getDeviceState ()

ডিভাইসের অবস্থা পান।

রিটার্নস
TestDeviceState

getDeviceTimeOffset

public abstract long getDeviceTimeOffset (Date date)

ডিভাইস এবং একটি প্রদত্ত ERROR(/Date) এর মধ্যে সময়ের পার্থক্য পেতে সাহায্যকারী। অভ্যন্তরীণভাবে Epoch সময় ব্যবহার করুন।

পরামিতি
date Date

রিটার্নস
long মিলিসেকেন্ডে পার্থক্য

নিক্ষেপ করে
DeviceNotAvailableException

getEmulatorOutput

public abstract InputStreamSource getEmulatorOutput ()

এমুলেটর stdout এবং stderr এর স্ট্রীম পান

রিটার্নস
InputStreamSource এমুলেটর আউটপুট

এক্সটার্নালস্টোরফ্রিস্পেস পান

public abstract long getExternalStoreFreeSpace ()

ডিভাইসের বাহ্যিক সঞ্চয়স্থানে খালি স্থানের পরিমাণ নির্ধারণ করতে সহায়ক পদ্ধতি।

রিটার্নস
long KB-তে খালি জায়গার পরিমাণ

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

GetFastbootProductType

public abstract String getFastbootProductType ()

ফাস্টবুট মোডে থাকা অবস্থায় এই ডিভাইসটির পণ্যের ধরন পেতে সুবিধার পদ্ধতি।

এই পদ্ধতিটি শুধুমাত্র তখনই ব্যবহার করা উচিত যদি ডিভাইসটি ফাস্টবুটে থাকা উচিত। এই ক্ষেত্রে জেনেরিক getProductType() পদ্ধতির তুলনায় এটি কিছুটা নিরাপদ, কারণ ডিভাইসটি ভুল অবস্থায় থাকলে বা প্রতিক্রিয়াহীন হলে ITestDevice ডিভাইসটিকে ফাস্টবুটে পুনরুদ্ধার করতে জানবে।

রিটার্নস
String String পণ্য প্রকারের নাম বা null যদি এটি নির্ধারণ করা না যায়

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

GetFastbootProduct ভেরিয়েন্ট

public abstract String getFastbootProductVariant ()

ফাস্টবুট মোডে থাকা অবস্থায় এই ডিভাইসটির পণ্যের ধরন পেতে সুবিধার পদ্ধতি।

এই পদ্ধতিটি শুধুমাত্র তখনই ব্যবহার করা উচিত যদি ডিভাইসটি ফাস্টবুটে থাকা উচিত। এই ক্ষেত্রে জেনেরিক getProductType() পদ্ধতির তুলনায় এটি কিছুটা নিরাপদ, কারণ ডিভাইসটি ভুল অবস্থায় থাকলে বা প্রতিক্রিয়াহীন হলে ITestDevice ডিভাইসটিকে ফাস্টবুটে পুনরুদ্ধার করতে জানবে।

রিটার্নস
String String পণ্য প্রকারের নাম বা null যদি এটি নির্ধারণ করা না যায়

নিক্ষেপ করে
DeviceNotAvailableException যদি ডিভাইসের সাথে সংযোগ হারিয়ে যায় এবং পুনরুদ্ধার করা যায় না।

ফাস্টবুট সিরিয়াল নম্বর পান

public abstract String getFastbootSerialNumber ()

ফাস্টবুট মোড সিরিয়াল নম্বর প্রদান করে।

রিটার্নস
String

getFastbootVariable

public abstract String getFastbootVariable (String variableName)

ডিভাইস থেকে প্রদত্ত ফাস্টবুট পরিবর্তনশীল মান পুনরুদ্ধার করুন।

পরামিতি
variableName String : পরিবর্তনশীল নাম

রিটার্নস
String সম্পত্তি মান বা null যদি এটি বিদ্যমান না থাকে

নিক্ষেপ করে
অসমর্থিত অপারেশন ব্যতিক্রম
DeviceNotAvailableException

getFileEntry

public abstract IFileEntry getFileEntry (String path)

ডিভাইসে একটি দূরবর্তী ফাইলের একটি রেফারেন্স পুনরুদ্ধার করুন।

পরামিতি
path String : পুনরুদ্ধার করার জন্য ফাইল পাথ। '/' এর সাপেক্ষে একটি পরম পথ বা পথ হতে পারে। (অর্থাৎ "/ সিস্টেম" এবং "সিস্টেম" সিনট্যাক্স উভয়ই সমর্থিত)

রিটার্নস
IFileEntry IFileEntry বা null যদি প্রদত্ত path ফাইল পাওয়া যায় না

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getIDevice

public abstract IDevice getIDevice ()

সংশ্লিষ্ট ddmlib IDevice এর একটি রেফারেন্স প্রদান করে।

প্রতিবার ডিভাইসটি adb থেকে সংযোগ বিচ্ছিন্ন এবং পুনরায় সংযোগ করলে DDMS দ্বারা একটি নতুন IDevice বরাদ্দ করা হতে পারে। তাই কলারদের IDevice এর রেফারেন্স রাখা উচিত নয়, কারণ সেই রেফারেন্সটি বাসি হয়ে যেতে পারে।

রিটার্নস
IDevice IDevice

getIntProperty

public abstract long getIntProperty (String name, 
                long defaultValue)

ডিভাইস থেকে প্রদত্ত সম্পত্তির পূর্ণসংখ্যা মান প্রদান করে।

পরামিতি
name String : সম্পত্তির নাম

defaultValue long : সম্পত্তি খালি বা বিদ্যমান না থাকলে ফেরত দিতে ডিফল্ট মান।

রিটার্নস
long প্রপার্টি ভ্যালু বা defaultValue যদি প্রপার্টিটি খালি থাকে, বিদ্যমান না থাকে বা পূর্ণসংখ্যার মান না থাকে।

নিক্ষেপ করে
DeviceNotAvailableException

GetLastExpectedRebootTimeMillis

public abstract long getLastExpectedRebootTimeMillis ()

System.currentTimeMillis() দ্বারা প্রত্যাবর্তিত EPOCH থেকে ট্রেডফেড এপিআই মিলিসেকেন্ডে রিবুট করা শেষ বার রিটার্ন করে।

রিটার্নস
long

getLaunchApiLevel

public abstract int getLaunchApiLevel ()

ডিভাইসের প্রথম চালু API স্তর পান. UNKNOWN_API_LEVEL এ ডিফল্ট।

রিটার্নস
int ডিভাইসের প্রথম চালু হওয়া API স্তর নির্দেশ করে একটি পূর্ণসংখ্যা

নিক্ষেপ করে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getLogcat

public abstract InputStreamSource getLogcat ()

লগক্যাট ডেটার একটি স্ন্যাপশট স্ট্রীম ধরে।

দুটি মোডে কাজ করে:

  • logcat বর্তমানে ব্যাকগ্রাউন্ডে ক্যাপচার করা হলে, পটভূমি logcat ক্যাপচারের বর্তমান বিষয়বস্তুর TestDeviceOptions.getMaxLogcatDataSize() বাইটে ফিরে আসবে
  • অন্যথায়, ডিভাইসটি বর্তমানে সাড়া দিলে লগক্যাট ডেটার একটি স্ট্যাটিক ডাম্প ফেরত দেবে

    রিটার্নস
    InputStreamSource

  • getLogcat

    public abstract InputStreamSource getLogcat (int maxBytes)

    Grabs a snapshot stream of the last maxBytes of captured logcat data.

    Useful for cases when you want to capture frequent snapshots of the captured logcat data without incurring the potentially big disk space penalty of getting the entire getLogcat() snapshot.

    পরামিতি
    maxBytes int : the maximum amount of data to return. Should be an amount that can comfortably fit in memory

    রিটার্নস
    InputStreamSource

    getLogcatDump

    public abstract InputStreamSource getLogcatDump ()

    Get a dump of the current logcat for device. Unlike getLogcat() , this method will always return a static dump of the logcat.

    Has the disadvantage that nothing will be returned if device is not reachable.

    রিটার্নস
    InputStreamSource a InputStreamSource of the logcat data. An empty stream is returned if fail to capture logcat data.

    getLogcatSince

    public abstract InputStreamSource getLogcatSince (long date)

    Grabs a snapshot stream of captured logcat data starting the date provided. The time on the device should be used getDeviceDate() .

    পরামিতি
    date long : in millisecond since epoch format of when to start the snapshot until present. (can be be obtained using 'date +%s')

    রিটার্নস
    InputStreamSource

    getMountPoint

    public abstract String getMountPoint (String mountName)

    Returns a mount point.

    Queries the device directly if the cached info in IDevice is not available.

    TODO: move this behavior to IDevice#getMountPoint(String)

    পরামিতি
    mountName String : the name of the mount point

    রিটার্নস
    String the mount point or null

    আরো দেখুন:

    getMountPointInfo

    public abstract ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)

    Returns a MountPointInfo corresponding to the specified mountpoint path, or null if that path has nothing mounted or otherwise does not appear in /proc/mounts as a mountpoint.

    পরামিতি
    mountpoint String

    রিটার্নস
    ITestDevice.MountPointInfo A ERROR(/List) of MountPointInfo containing the information in "/proc/mounts"

    নিক্ষেপ করে
    DeviceNotAvailableException

    আরো দেখুন:

    getMountPointInfo

    public abstract  getMountPointInfo ()

    Returns a parsed version of the information in /proc/mounts on the device

    রিটার্নস
    A ERROR(/List) of MountPointInfo containing the information in "/proc/mounts"

    নিক্ষেপ করে
    DeviceNotAvailableException

    getPartitionFreeSpace

    public abstract long getPartitionFreeSpace (String partition)

    Helper method to determine amount of free space on device partition.

    পরামিতি
    partition String

    রিটার্নস
    long the amount of free space in KB

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    getProcessByName

    public abstract ProcessInfo getProcessByName (String processName)

    Helper method runs the "pidof" and "stat" command and returns ProcessInfo object with PID and process start time of the given process.

    পরামিতি
    processName String : the proces name String.

    রিটার্নস
    ProcessInfo ProcessInfo of given processName

    নিক্ষেপ করে
    DeviceNotAvailableException

    getProcessPid

    public abstract String getProcessPid (String process)

    Returns the pid of the service or null if something went wrong.

    পরামিতি
    process String : The proces name String.

    রিটার্নস
    String

    নিক্ষেপ করে
    DeviceNotAvailableException

    getProductType

    public abstract String getProductType ()

    Convenience method to get the product type of this device.

    This method will work if device is in either adb or fastboot mode.

    রিটার্নস
    String the String product type name. Will not be null

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered, or if product type can not be determined

    getProductVariant

    public abstract String getProductVariant ()

    Convenience method to get the product variant of this device.

    This method will work if device is in either adb or fastboot mode.

    রিটার্নস
    String the String product variant name or null if it cannot be determined

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    getProperty

    public abstract String getProperty (String name)

    Retrieve the given property value from the device.

    পরামিতি
    name String : the property name

    রিটার্নস
    String the property value or null if it does not exist

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    getRecoveryMode

    public abstract ITestDevice.RecoveryMode getRecoveryMode ()

    Get the current recovery mode used for the device.

    রিটার্নস
    ITestDevice.RecoveryMode the current recovery mode used for the device.

    getSerialNumber

    public abstract String getSerialNumber ()

    Convenience method to get serial number of this device.

    রিটার্নস
    String the String serial number

    সমাধি পাথর পেতে

    public abstract  getTombstones ()

    Fetch and return the list of tombstones from the devices. Requires root.

    method is best-effort so if one tombstone fails to be pulled for any reason it will be missing from the list. Only a DeviceNotAvailableException will terminate the method early.

    রিটার্নস
    সমাধির পাথর ফাইলের একটি তালিকা, যদি সমাধিস্তম্ভ না থাকে তাহলে খালি।

    নিক্ষেপ করে
    DeviceNotAvailableException

    আরো দেখুন:

    getTotalMemory

    public abstract long getTotalMemory ()

    Returns total physical memory size in bytes or -1 in case of internal error

    রিটার্নস
    long

    getUseFastbootErase

    public abstract boolean getUseFastbootErase ()

    Get whether to use fastboot erase or fastboot format to wipe a partition on the device.

    রিটার্নস
    boolean true if fastboot erase will be used or false if fastboot format will be used.

    আরো দেখুন:

    isAdbRoot

    public abstract boolean isAdbRoot ()

    রিটার্নস
    boolean true if device currently has adb root, false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    isAdbTcp

    public abstract boolean isAdbTcp ()

    রিটার্নস
    boolean true if device is connected to adb-over-tcp, false otherwise.

    isAppEnumerationSupported

    public abstract boolean isAppEnumerationSupported ()

    Check whether platform on device supports app enumeration

    রিটার্নস
    boolean True if app enumeration is supported, false otherwise

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isBypassLowTargetSdkBlockSupported

    public abstract boolean isBypassLowTargetSdkBlockSupported ()

    Check whether platform on device supports bypassing low target sdk block on app installs

    রিটার্নস
    boolean True if bypass low target sdk block is supported, false otherwise

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isDeviceEncrypted

    public abstract boolean isDeviceEncrypted ()

    Returns if the device is encrypted.

    রিটার্নস
    boolean true if the device is encrypted.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    isDirectory

    public abstract boolean isDirectory (String deviceFilePath)

    Return True if the path on the device is a directory, false otherwise.

    পরামিতি
    deviceFilePath String

    রিটার্নস
    boolean

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isEncryptionSupported

    public abstract boolean isEncryptionSupported ()

    Returns if encryption is supported on the device.

    রিটার্নস
    boolean true if the device supports encryption.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isExecutable

    public abstract boolean isExecutable (String fullPath)

    Returns True if the file path on the device is an executable file, false otherwise.

    পরামিতি
    fullPath String

    রিটার্নস
    boolean

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isHeadless

    public abstract boolean isHeadless ()

    Return true if the device is headless (no screen), false otherwise.

    রিটার্নস
    boolean

    নিক্ষেপ করে
    DeviceNotAvailableException

    isRuntimePermissionSupported

    public abstract boolean isRuntimePermissionSupported ()

    Check whether platform on device supports runtime permission granting

    রিটার্নস
    boolean True if runtime permission are supported, false otherwise.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isStateBootloaderOrFastbootd

    public abstract boolean isStateBootloaderOrFastbootd ()

    Returns true if device is in TestDeviceState#FASTBOOT or TestDeviceState.FASTBOOTD .

    রিটার্নস
    boolean

    logAnrs

    public abstract boolean logAnrs (ITestLogger logger)

    Collects and log ANRs from the device.

    পরামিতি
    logger ITestLogger : an ITestLogger to log the ANRs.

    রিটার্নস
    boolean True if the logging was successful, false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException

    logOnDevice

    public abstract void logOnDevice (String tag, 
                    Log.LogLevel level, 
                    String format, 
                    Object... args)

    Log a message in the logcat of the device. This is a safe call that will not throw even if the logging fails.

    পরামিতি
    tag String : The tag under which we log our message in the logcat.

    level Log.LogLevel : The debug level of the message in the logcat.

    format String : The message format.

    args Object : the args to be replaced via String.format().

    nonBlockingReboot

    public abstract void nonBlockingReboot ()

    Issues a command to reboot device and returns on command complete and when device is no longer visible to adb.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    postBootSetup

    public abstract void postBootSetup ()

    Perform instructions to configure device for testing that after every boot.

    Should be called after device is fully booted/available

    In normal circumstances this method doesn't need to be called explicitly, as implementations should perform these steps automatically when performing a reboot.

    Where it may need to be called is when device reboots due to other events (eg when a fastboot update command has completed)

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    postInvocationTearDown

    public void postInvocationTearDown ()

    এই পদ্ধতি অবজ্ঞা করা হয়.
    Use postInvocationTearDown(Throwable) instead.

    Extra steps for device specific required clean up that will be executed after the invocation is done.

    postInvocationTearDown

    public abstract void postInvocationTearDown (Throwable invocationException)

    Extra steps for device specific required clean up that will be executed after the invocation is done.

    পরামিতি
    invocationException Throwable : if any, the final exception raised by the invocation failure.

    preInvocationSetup

    public void preInvocationSetup (IBuildInfo info, 
                    MultiMap<String, String> attributes)

    Extra steps for device specific required setup that will be executed on the device prior to the invocation flow.

    পরামিতি
    info IBuildInfo : The IBuildInfo of the device.

    attributes MultiMap : The attributes stored in the invocation context

    নিক্ষেপ করে
    com.android.tradefed.targetprep.TargetSetupError
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException
    TargetSetupError

    pullDir

    public abstract boolean pullDir (String deviceFilePath, 
                    File localDir)

    Recursively pull directory contents from device.

    পরামিতি
    deviceFilePath String : the absolute file path of the remote source

    localDir File : the local directory to pull files into

    রিটার্নস
    boolean true if file was pulled successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract File pullFile (String remoteFilePath, 
                    int userId)

    Retrieves a file off device, stores it in a local temporary ERROR(/File) , and returns that File .

    পরামিতি
    remoteFilePath String : the absolute path to file on device.

    userId int : The user id to pull from

    রিটার্নস
    File A ERROR(/File) containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem)

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract File pullFile (String remoteFilePath)

    Retrieves a file off device, stores it in a local temporary ERROR(/File) , and returns that File .

    পরামিতি
    remoteFilePath String : the absolute path to file on device.

    রিটার্নস
    File A ERROR(/File) containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem)

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract boolean pullFile (String remoteFilePath, 
                    File localFile)

    Retrieves a file off device.

    পরামিতি
    remoteFilePath String : the absolute path to file on device.

    localFile File : the local file to store contents in. If non-empty, contents will be replaced.

    রিটার্নস
    boolean true if file was retrieved successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract boolean pullFile (String remoteFilePath, 
                    File localFile, 
                    int userId)

    Retrieves a file off device.

    পরামিতি
    remoteFilePath String : the absolute path to file on device.

    localFile File : the local file to store contents in. If non-empty, contents will be replaced.

    userId int : The user id to pull from

    রিটার্নস
    boolean true if file was retrieved successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFileContents

    public abstract String pullFileContents (String remoteFilePath)

    Retrieves a file off device, and returns the contents.

    পরামিতি
    remoteFilePath String : the absolute path to file on device.

    রিটার্নস
    String A String containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem)

    নিক্ষেপ করে
    DeviceNotAvailableException

    pullFileFromExternal

    public abstract File pullFileFromExternal (String remoteFilePath)

    A convenience method to retrieve a file from the device's external storage, stores it in a local temporary ERROR(/File) , and return a reference to that File .

    পরামিতি
    remoteFilePath String : the path to file on device, relative to the device's external storage mountpoint

    রিটার্নস
    File A ERROR(/File) containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem)

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushDir

    public abstract boolean pushDir (File localDir, 
                    String deviceFilePath, 
                     excludedDirectories)

    Recursively push directory contents to device while excluding some directories that are filtered.

    পরামিতি
    localDir File : the local directory to push

    deviceFilePath String : the absolute file path of the remote destination

    excludedDirectories : Set of excluded directories names that shouldn't be pushed.

    রিটার্নস
    boolean true if file was pushed successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushDir

    public abstract boolean pushDir (File localDir, 
                    String deviceFilePath)

    Recursively push directory contents to device.

    পরামিতি
    localDir File : the local directory to push

    deviceFilePath String : the absolute file path of the remote destination

    রিটার্নস
    boolean true if file was pushed successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushFile

    public abstract boolean pushFile (File localFile, 
                    String deviceFilePath, 
                    boolean evaluateContentProviderNeeded)

    Variant of pushFile(File, String) which can optionally consider evaluating the need for the content provider.

    পরামিতি
    localFile File : the local file to push

    deviceFilePath String : the remote destination absolute file path

    evaluateContentProviderNeeded boolean : whether to check if we need the content provider

    রিটার্নস
    boolean true if file was pushed successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushFile

    public abstract boolean pushFile (File localFile, 
                    String deviceFilePath)

    Push a file to device. By default using a content provider.

    পরামিতি
    localFile File : the local file to push

    deviceFilePath String : the remote destination absolute file path

    রিটার্নস
    boolean true if file was pushed successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushString

    public abstract boolean pushString (String contents, 
                    String deviceFilePath)

    Push file created from a string to device

    পরামিতি
    contents String : the contents of the file to push

    deviceFilePath String : the remote destination absolute file path

    রিটার্নস
    boolean true if string was pushed successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    reboot

    public abstract void reboot ()

    Reboots the device into adb mode.

    Blocks until device becomes available.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    reboot

    public abstract void reboot (String reason)

    Reboots the device into adb mode with given reason to be persisted across reboot.

    Blocks until device becomes available.

    Last reboot reason can be obtained by querying sys.boot.reason propety.

    পরামিতি
    reason String : a reason for this reboot, or null if no reason is specified.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    rebootIntoBootloader

    public abstract void rebootIntoBootloader ()

    Reboots the device into bootloader mode.

    Blocks until device is in bootloader mode.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    rebootIntoFastbootd

    public abstract void rebootIntoFastbootd ()

    Reboots the device into fastbootd mode.

    Blocks until device is in fastbootd mode.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    rebootIntoRecovery

    public abstract void rebootIntoRecovery ()

    Reboots the device into adb recovery mode.

    Blocks until device enters recovery

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    rebootIntoSideload

    public abstract void rebootIntoSideload (boolean autoReboot)

    Reboots the device into adb sideload mode (note that this is a special mode under recovery)

    Blocks until device enters sideload mode

    পরামিতি
    autoReboot boolean : whether to automatically reboot the device after sideload

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not in sideload after reboot

    rebootIntoSideload

    public abstract void rebootIntoSideload ()

    Reboots the device into adb sideload mode (note that this is a special mode under recovery)

    Blocks until device enters sideload mode

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not in sideload after reboot

    rebootUntilOnline

    public abstract void rebootUntilOnline ()

    An alternate to reboot() that only blocks until device is online ie visible to adb.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    rebootUntilOnline

    public abstract void rebootUntilOnline (String reason)

    An alternate to reboot() that only blocks until device is online ie visible to adb.

    পরামিতি
    reason String : a reason for this reboot, or null if no reason is specified.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    আরো দেখুন:

    rebootUserspace

    public abstract void rebootUserspace ()

    Reboots only userspace part of device.

    Blocks until device becomes available.

    WARNING. Userspace reboot is currently under active development, use it on your own risk.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    rebootUserspaceUntilOnline

    public abstract void rebootUserspaceUntilOnline ()

    An alternate to rebootUserspace() ()} that only blocks until device is online ie visible to adb.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is not available after reboot

    remountSystemReadOnly

    public abstract void remountSystemReadOnly ()

    Make the system partition on the device read-only. May reboot the device.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    remountSystemWritable

    public abstract void remountSystemWritable ()

    Make the system partition on the device writable. May reboot the device.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    remountVendorReadOnly

    public abstract void remountVendorReadOnly ()

    Make the vendor partition on the device read-only. May reboot the device.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    remountVendorWritable

    public abstract void remountVendorWritable ()

    Make the vendor partition on the device writable. May reboot the device.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    runInstrumentationTests

    public abstract boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, 
                    ITestLifeCycleReceiver... listeners)

    Convenience method for performing ERROR(/#runInstrumentationTests(com.android.ddmlib.testrunner.IRemoteAndroidTestRunner,Collection)) with one or more listeners passed as parameters.

    পরামিতি
    runner IRemoteAndroidTestRunner : the IRemoteAndroidTestRunner which runs the tests

    listeners ITestLifeCycleReceiver : the test result listener(s)

    রিটার্নস
    boolean true if test command completed. false if it failed to complete, but recovery succeeded

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered. ie test command failed to complete and recovery failed.

    runInstrumentationTests

    public abstract boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, 
                     listeners)

    Runs instrumentation tests, and provides device recovery.

    If connection with device is lost before test run completes, and recovery succeeds, all listeners will be informed of testRunFailed and "false" will be returned. The test command will not be rerun. It is left to callers to retry if necessary.

    If connection with device is lost before test run completes, and recovery fails, all listeners will be informed of testRunFailed and DeviceNotAvailableException will be thrown.

    পরামিতি
    runner IRemoteAndroidTestRunner : the IRemoteAndroidTestRunner which runs the tests

    listeners : the test result listeners

    রিটার্নস
    boolean true if test command completed. false if it failed to complete due to device communication exception, but recovery succeeded

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered. ie test command failed to complete and recovery failed.

    runInstrumentationTestsAsUser

    public abstract boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, 
                    int userId, 
                     listeners)

    Same as ERROR(ITestDevice#runInstrumentationTests(IRemoteAndroidTestRunner, Collection)/com.android.tradefed.device.ITestDevice#runInstrumentationTests(com.android.ddmlib.testrunner.IRemoteAndroidTestRunner,Collection) ITestDevice#runInstrumentationTests(IRemoteAndroidTestRunner, Collection)) but runs the test for the given user.

    পরামিতি
    runner IRemoteAndroidTestRunner

    userId int

    listeners

    রিটার্নস
    boolean

    নিক্ষেপ করে
    DeviceNotAvailableException

    runInstrumentationTestsAsUser

    public abstract boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, 
                    int userId, 
                    ITestLifeCycleReceiver... listeners)

    Same as ITestDevice#runInstrumentationTests(IRemoteAndroidTestRunner, ITestLifeCycleReceiver...) but runs the test for a given user.

    পরামিতি
    runner IRemoteAndroidTestRunner

    userId int

    listeners ITestLifeCycleReceiver

    রিটার্নস
    boolean

    নিক্ষেপ করে
    DeviceNotAvailableException

    setDate

    public abstract void setDate (Date date)

    Sets the date on device

    Note: setting date on device requires root

    পরামিতি
    date Date : specify a particular date; will use host date if null

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    setOptions

    public abstract void setOptions (TestDeviceOptions options)

    Set the TestDeviceOptions for the device

    পরামিতি
    options TestDeviceOptions

    setProperty

    public abstract boolean setProperty (String propKey, 
                    String propValue)

    Sets the given property value on the device. Requires adb root is true.

    পরামিতি
    propKey String : The key targeted to be set.

    propValue String : The property value to be set.

    রিটার্নস
    boolean returns True if the setprop command was successful, False otherwise.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    setRecovery

    public abstract void setRecovery (IDeviceRecovery recovery)

    Set the IDeviceRecovery to use for this device. Should be set when device is first allocated.

    পরামিতি
    recovery IDeviceRecovery : the IDeviceRecovery

    setRecoveryMode

    public abstract void setRecoveryMode (ITestDevice.RecoveryMode mode)

    Set the current recovery mode to use for the device.

    Used to control what recovery method to use when a device communication problem is encountered. Its recommended to only use this method sparingly when needed (for example, when framework is down, etc

    পরামিতি
    mode ITestDevice.RecoveryMode : whether 'recover till online only' mode should be on or not.

    setUseFastbootErase

    public abstract void setUseFastbootErase (boolean useFastbootErase)

    Set whether to use fastboot erase or fastboot format to wipe a partition on the device.

    পরামিতি
    useFastbootErase boolean : true if fastboot erase should be used or false if fastboot format should be used.

    আরো দেখুন:

    startLogcat

    public abstract void startLogcat ()

    Start capturing logcat output from device in the background.

    Will have no effect if logcat output is already being captured. Data can be later retrieved via getLogcat.

    When the device is no longer in use, stopLogcat() must be called.

    startLogcat() and stopLogcat() do not normally need to be called when within a TF invocation context, as the TF framework will start and stop logcat.

    stopEmulatorOutput

    public abstract void stopEmulatorOutput ()

    Close and delete the emulator output.

    stopLogcat

    public abstract void stopLogcat ()

    Stop capturing logcat output from device, and discard currently saved logcat data.

    Will have no effect if logcat output is not being captured.

    switchToAdbTcp

    public abstract String switchToAdbTcp ()

    Switch device to adb-over-tcp mode.

    রিটার্নস
    String the tcp serial number or null if device could not be switched

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    switchToAdbUsb

    public abstract boolean switchToAdbUsb ()

    Switch device to adb over usb mode.

    রিটার্নস
    boolean true if switch was successful, false otherwise.

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    syncFiles

    public abstract boolean syncFiles (File localFileDir, 
                    String deviceFilePath)

    Incrementally syncs the contents of a local file directory to device.

    Decides which files to push by comparing timestamps of local files with their remote equivalents. Only 'newer' or non-existent files will be pushed to device. Thus overhead should be relatively small if file set on device is already up to date.

    Hidden files (with names starting with ".") will be ignored.

    Example usage: syncFiles("/tmp/files", "/sdcard") will created a /sdcard/files directory if it doesn't already exist, and recursively push the /tmp/files contents to /sdcard/files.

    পরামিতি
    localFileDir File : the local file directory containing files to recursively push.

    deviceFilePath String : the remote destination absolute file path root. All directories in thos file path must be readable. ie pushing to /data/local/tmp when adb is not root will fail

    রিটার্নস
    boolean true if files were synced successfully. false otherwise.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    unlockDevice

    public abstract boolean unlockDevice ()

    Unlocks the device if the device is in an encrypted state.

    This method may restart the framework but will not call postBootSetup() . Therefore, the device might not be fully ready to be tested when this method returns.

    রিটার্নস
    boolean true if successful or if the device is unencrypted.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.
    UnsupportedOperationException if encryption is not supported on the device.

    waitForBootComplete

    public abstract boolean waitForBootComplete (long timeOut)

    Blocks until the device's boot complete flag is set.

    পরামিতি
    timeOut long : time in msecs to wait for the flag to be set

    রিটার্নস
    boolean true if device's boot complete flag is set within the timeout

    নিক্ষেপ করে
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    waitForDeviceAvailable

    public abstract boolean waitForDeviceAvailable ()

    Waits for the device to be responsive and available for testing. Uses default timeout.

    রিটার্নস
    boolean True if device is available, False if recovery is disabled and unavailable.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceAvailable

    public abstract boolean waitForDeviceAvailable (long waitTime)

    Waits for the device to be responsive and available for testing.

    পরামিতি
    waitTime long : the time in ms to wait

    রিটার্নস
    boolean True if device is available, False if recovery is disabled and unavailable.

    নিক্ষেপ করে
    DeviceNotAvailableException if device is still unresponsive after waitTime expires.

    waitForDeviceAvailableInRecoverPath

    public abstract boolean waitForDeviceAvailableInRecoverPath (long waitTime)

    Waits for the device to be responsive and available without considering recovery path.

    পরামিতি
    waitTime long

    রিটার্নস
    boolean True if device is available, False if unavailable.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceBootloader

    public abstract void waitForDeviceBootloader ()

    Blocks until device is visible via fastboot. Use default timeout.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceInRecovery

    public abstract boolean waitForDeviceInRecovery (long waitTime)

    Blocks for the device to be in the 'adb recovery' state (note this is distinct from IDeviceRecovery ).

    পরামিতি
    waitTime long : the time in ms to wait

    রিটার্নস
    boolean true if device boots into recovery before time expires. false otherwise

    waitForDeviceInSideload

    public abstract boolean waitForDeviceInSideload (long waitTime)

    Blocks for the device to be in the 'adb sideload' state

    পরামিতি
    waitTime long : the time in ms to wait

    রিটার্নস
    boolean true if device boots into sideload before time expires. false otherwise

    waitForDeviceNotAvailable

    public abstract boolean waitForDeviceNotAvailable (long waitTime)

    Blocks for the device to be not available ie missing from adb

    পরামিতি
    waitTime long : the time in ms to wait

    রিটার্নস
    boolean true if device becomes not available before time expires. false otherwise

    waitForDeviceOnline

    public abstract void waitForDeviceOnline ()

    Blocks until device is visible via adb. Uses default timeout

    Note the device may not necessarily be responsive to commands on completion. Use waitForDeviceAvailable() instead.

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceOnline

    public abstract void waitForDeviceOnline (long waitTime)

    Blocks until device is visible via adb.

    Note the device may not necessarily be responsive to commands on completion. Use waitForDeviceAvailable() instead.

    পরামিতি
    waitTime long : the time in ms to wait

    নিক্ষেপ করে
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceShell

    public abstract boolean waitForDeviceShell (long waitTime)

    Waits for device to be responsive to a basic adb shell command.

    পরামিতি
    waitTime long : the time in ms to wait

    রিটার্নস
    boolean true if device becomes responsive before waitTime elapses.