INativeDevice
public interface INativeDevice
| com.android.tradefed.device.INativeDevice |
ddmlib IDevice জন্য একটি নির্ভরযোগ্য এবং কিছুটা উন্নত স্তরের API প্রদান করে।
সারসংক্ষেপ
ধ্রুবক | |
|---|---|
int | UNKNOWN_API_LEVELএপিআই লেভেল শনাক্ত করা না গেলে ডিফল্ট মান |
জনসাধারণের পদ্ধতি | |
|---|---|
abstract boolean | checkApiLevelAgainstNextRelease (int strictMinLevel)ন্যূনতম সমর্থিত স্তরের নিরিখে কোনো একটি ফিচার বর্তমানে সমর্থিত আছে কি না, তা যাচাই করুন। |
abstract void | clearLogcat ()জমে থাকা সমস্ত লগক্যাট ডেটা মুছে দেয়। |
abstract void | deleteFile (String deviceFilePath)ডিভাইস থেকে কোনো ফাইল বা ডিরেক্টরি মুছে ফেলার সহায়ক পদ্ধতি। |
abstract void | deleteFile (String deviceFilePath, int userId)ডিভাইস থেকে কোনো ফাইল বা ডিরেক্টরি মুছে ফেলার সহায়ক পদ্ধতি। |
abstract boolean | deviceSoftRestarted ( ProcessInfo prevSystemServerProcess) ডিভাইসটি সফট-রিস্টার্ট হয়েছে কিনা তা পরীক্ষা করার জন্য একটি সহায়ক মেথড, যা বর্তমান system_server-কে পূর্ববর্তী system_server-এর সাথে তুলনা করে |
abstract boolean | deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit) ডিভাইসটি সফট-রিস্টার্ট হয়েছে কিনা, তা ডিভাইসের ইপক থেকে প্রাপ্ত UTC সময় এবং এর |
abstract boolean | disableAdbRoot ()adb root বন্ধ করে দেয়। |
abstract boolean | doesFileExist (String deviceFilePath)ডিভাইসে ফাইলটি আছে কিনা তা নির্ধারণ করার জন্য সহায়ক পদ্ধতি। |
abstract boolean | enableAdbRoot ()adb root চালু করে। |
abstract String | executeAdbCommand (long timeout, String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract String | executeAdbCommand (String... commandArgs)একটি সহায়ক মেথড যা adb কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract String | executeAdbCommand (long timeout, Map<String, String> envMap, String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeAdbV2Command (String... commandArgs)একটি সহায়ক মেথড যা adb কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeAdbV2Command (long timeout, String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeAdbV2Command (long timeout, Map<String, String> envMap, int retryAttempts, String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeAdbV2Command (long timeout, Map<String, String> envMap, String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeFastbootCommand (long timeout, String... commandArgs)সহায়ক মেথড যা একটি ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeFastbootCommand (String... commandArgs)একটি সহায়ক মেথড যা ২ মিনিটের ডিফল্ট টাইমআউট সহ একটি ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeLongFastbootCommand (String... commandArgs)একটি সহায়ক মেথড যা একটি দীর্ঘস্থায়ী ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract CommandResult | executeLongFastbootCommand (Map<String, String> envVarMap, String... commandArgs)একটি সহায়ক মেথড যা একটি দীর্ঘস্থায়ী ফাস্টবুট কমান্ডকে সিস্টেম এনভায়রনমেন্ট ভেরিয়েবলসহ সিস্টেম কমান্ড হিসেবে কার্যকর করে। |
abstract String | executeShellCommand (String command) সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং আউটপুট একটি |
abstract void | executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract void | executeShellCommand (String command, IShellOutputReceiver receiver)প্রদত্ত adb শেল কমান্ডটি কার্যকর করে এবং কমান্ড ব্যর্থ হলে একাধিকবার চেষ্টা করে। |
abstract void | executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract CommandResult | executeShellV2Command (String command) একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট, stdout ও stderr দিয়ে ফলাফলগুলোকে |
abstract CommandResult | executeShellV2Command (String command, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract CommandResult | executeShellV2Command (String command, long maxTimeoutForCommand, TimeUnit timeUnit)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract CommandResult | executeShellV2Command (String command, File pipeAsInput) একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট, stdout ও stderr দিয়ে ফলাফলগুলোকে |
abstract CommandResult | executeShellV2Command (String command, OutputStream pipeToOutput) একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট ও stderr দিয়ে যথাযথভাবে পূরণ করে ফলাফলকে একটি |
abstract CommandResult | executeShellV2Command (String command, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract CommandResult | executeShellV2Command (String command, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract CommandResult | executeShellV2Command (String command, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে। |
abstract CommandResult | executeShellV2Command (String command, IShellOutputReceiver receiver) একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট, stdout ও stderr দিয়ে ফলাফলগুলোকে |
abstract CommandResult | fastbootOemRamdumpNow ()একটি সহায়ক মেথড যা ফাস্টবুট মোড থেকে র্যামডাম্প চালু করে। |
abstract CommandResult | fastbootWipePartition (String partition)সহায়ক মেথড যা ডিভাইসের পার্টিশন মুছে ফেলে। |
abstract int | getApiLevel ()ডিভাইসটির এপিআই লেভেল জানুন। |
abstract int | getApiLevelFull () |
abstract String | getBasebandVersion ()এই ডিভাইসটির বেসব্যান্ড (রেডিও) সংস্করণ পাওয়ার সুবিধাজনক পদ্ধতি। |
abstract Integer | getBattery ()ডিভাইসের বর্তমান ব্যাটারি লেভেল ফেরত দেয়, অথবা ব্যাটারি লেভেল উপলব্ধ না থাকলে Null ফেরত দেয়। |
abstract boolean | getBooleanProperty (String name, boolean defaultValue)প্রদত্ত প্রপার্টির বুলিয়ান মান ফেরত দেয়। |
abstract Map<Long, String> | getBootHistory ()হেল্পার মেথডটি বুট টাইম এবং বুট রিজন সহ বুট হিস্ট্রি ম্যাপ সংগ্রহ করে। |
abstract Map<Long, String> | 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 () ডিভাইসটি বরাদ্দ করা থাকলে একটি ক্যাশ করা |
abstract DeviceDescriptor | getCachedDeviceDescriptor (boolean shortDescriptor) ডিভাইসটি বরাদ্দ করা থাকলে একটি ক্যাশ করা |
abstract String[] | getChildren (String deviceFilePath) |
abstract AbstractConnection | getConnection ()ডিভাইসটির সাথে সংশ্লিষ্ট সংযোগটি ফেরত দেয়। |
abstract String | getDeviceClass ()ডিভাইস ক্লাসটি নিন। |
abstract long | getDeviceDate ()ইপক থেকে মিলিসেকেন্ডে ডিভাইসটির তারিখ ফেরত দিন। |
abstract DeviceDescriptor | getDeviceDescriptor () প্রকৃত ডিভাইস অবজেক্টটি পাস না করেই ডিভাইসটির তথ্য পেতে, ডিভাইস ইনফরমেশন থেকে একটি |
abstract DeviceDescriptor | getDeviceDescriptor (boolean shortDescriptor) প্রকৃত ডিভাইস অবজেক্টটি পাস না করেই ডিভাইসটির তথ্য পেতে, ডিভাইস ইনফরমেশন থেকে একটি |
abstract TestDeviceState | getDeviceState ()ডিভাইসটির অবস্থা জানুন। |
abstract long | getDeviceTimeOffset (Date 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 |
abstract long | getIntProperty (String name, long defaultValue)ডিভাইস থেকে প্রদত্ত প্রপার্টির পূর্ণসংখ্যা মান ফেরত দেয়। |
abstract long | getLastExpectedRebootTimeMillis () |
abstract int | getLaunchApiLevel ()ডিভাইসটির প্রথম চালু হওয়া এপিআই লেভেলটি সংগ্রহ করুন। |
abstract InputStreamSource | getLogcat ()লগক্যাট ডেটার একটি স্ন্যাপশট স্ট্রিম গ্রহণ করে। |
abstract InputStreamSource | getLogcat (int maxBytes) ক্যাপচার করা লগক্যাট ডেটার শেষ |
abstract InputStreamSource | getLogcatDump ()ডিভাইসটির বর্তমান লগক্যাটের একটি ডাম্প নিন। |
abstract InputStreamSource | getLogcatSince (long date)প্রদত্ত তারিখ থেকে শুরু করে সংগৃহীত লগক্যাট ডেটার একটি স্ন্যাপশট স্ট্রিম গ্রহণ করে। |
abstract String | getMountPoint (String mountName)একটি মাউন্ট পয়েন্ট ফেরত দেয়। |
abstract ITestDevice.MountPointInfo | getMountPointInfo (String mountpoint) নির্দিষ্ট মাউন্টপয়েন্ট পাথের সাথে সঙ্গতিপূর্ণ একটি |
abstract List< ITestDevice.MountPointInfo > | getMountPointInfo ()ডিভাইসের /proc/mounts-এ থাকা তথ্যের একটি পার্স করা সংস্করণ ফেরত দেয়। |
abstract long | getPartitionFreeSpace (String partition)ডিভাইস পার্টিশনে খালি জায়গার পরিমাণ নির্ণয় করার সহায়ক পদ্ধতি। |
abstract ProcessInfo | getProcessByName (String processName) হেল্পার মেথডটি 'pidof' এবং 'stat' কমান্ডগুলো চালায় এবং প্রদত্ত প্রসেসটির PID ও শুরুর সময়সহ |
abstract String | getProcessPid (String process)সার্ভিসটির পিআইডি (pid) ফেরত দেয়, অথবা কোনো সমস্যা হলে নাল (null) ফেরত দেয়। |
abstract String | getProductType ()এই ডিভাইসটির পণ্যের ধরন পাওয়ার সুবিধাজনক পদ্ধতি। |
abstract String | getProductVariant ()এই ডিভাইসটির প্রোডাক্ট ভ্যারিয়েন্টটি পাওয়ার সুবিধাজনক পদ্ধতি। |
abstract String | getProperty (String name)ডিভাইস থেকে প্রদত্ত প্রপার্টির মানটি পুনরুদ্ধার করুন। |
abstract ITestDevice.RecoveryMode | getRecoveryMode ()ডিভাইসটির জন্য ব্যবহৃত বর্তমান রিকভারি মোডটি খুঁজে বের করুন। |
abstract String | getSerialNumber ()এই ডিভাইসটির সিরিয়াল নম্বর পাওয়ার সুবিধাজনক পদ্ধতি। |
abstract List<File> | getTombstones ()ডিভাইসগুলো থেকে সমাধিফলকের তালিকা সংগ্রহ করে ফেরত দিন। |
abstract long | getTotalMemory ()মোট ফিজিক্যাল মেমরির আকার বাইটে ফেরত দেয় অথবা অভ্যন্তরীণ ত্রুটির ক্ষেত্রে -১ ফেরত দেয়। |
default String | getTrackingSerial ()ডিভাইস ব্যবস্থাপনার উদ্দেশ্যে ডিভাইসটি ট্র্যাক করতে ব্যবহৃত সিরিয়াল নম্বরটি সংগ্রহ করুন। |
abstract boolean | getUseFastbootErase ()ডিভাইসের পার্টিশন মুছে ফেলার জন্য fastboot erase নাকি fastboot format ব্যবহার করবেন, তা জেনে নিন। |
abstract boolean | isAdbRoot () |
abstract boolean | isAdbTcp () |
abstract boolean | isAppEnumerationSupported ()ডিভাইসের প্ল্যাটফর্মটি অ্যাপ গণনা সমর্থন করে কিনা তা পরীক্ষা করুন |
abstract boolean | isBypassLowTargetSdkBlockSupported ()ডিভাইসের প্ল্যাটফর্মটি অ্যাপ ইনস্টলের ক্ষেত্রে লো টার্গেট এসডিকে ব্লক বাইপাস করতে সমর্থন করে কিনা তা পরীক্ষা করুন। |
abstract boolean | isDebugfsMounted ()debugfs মাউন্ট করা আছে কিনা তা পরীক্ষা করুন। |
abstract boolean | isDeviceEncrypted ()ডিভাইসটি এনক্রিপ্ট করা থাকলে ফেরত দেয়। |
abstract boolean | isDirectory (String deviceFilePath)ডিভাইসের পাথটি একটি ডিরেক্টরি হলে True রিটার্ন করুন, অন্যথায় false। |
abstract boolean | isEncryptionSupported ()ডিভাইসটিতে এনক্রিপশন সমর্থিত হলে ফেরত আসে। |
abstract boolean | isExecutable (String fullPath)ডিভাইসের ফাইল পাথটি একটি এক্সিকিউটেবল ফাইল হলে True রিটার্ন করে, অন্যথায় false। |
abstract boolean | isHeadless ()ডিভাইসটি হেডলেস (স্ক্রিনবিহীন) হলে true, অন্যথায় false রিটার্ন করুন। |
abstract boolean | isRuntimePermissionSupported ()ডিভাইসের প্ল্যাটফর্মটি রানটাইম অনুমতি প্রদান সমর্থন করে কিনা তা পরীক্ষা করুন। |
abstract boolean | isStateBootloaderOrFastbootd () ডিভাইসটি |
abstract boolean | logAnrs ( ITestLogger logger)ডিভাইস থেকে ANR সংগ্রহ ও লগ করে। |
abstract void | logOnDevice (String tag, Log.LogLevel level, String format, Object... args)ডিভাইসটির লগক্যাটে একটি বার্তা লিপিবদ্ধ করুন। |
abstract void | mountDebugfs ()debugfs মাউন্ট করুন। |
abstract void | nonBlockingReboot ()ডিভাইসটি রিবুট করার জন্য একটি কমান্ড জারি করে এবং কমান্ডটি সম্পন্ন হলে ও ডিভাইসটি adb-এর কাছে আর দৃশ্যমান না থাকলে রিটার্ন করে। |
abstract void | postBootSetup ()প্রতি বুটের পরে পরীক্ষার জন্য ডিভাইসটি কনফিগার করতে নির্দেশাবলী অনুসরণ করুন। |
default void | postInvocationTearDown () এই পদ্ধতিটি অপ্রচলিত। এর পরিবর্তে |
abstract void | postInvocationTearDown (Throwable invocationException)আহ্বান সম্পন্ন হওয়ার পর ডিভাইস-নির্দিষ্ট প্রয়োজনীয় পরিষ্করণমূলক অতিরিক্ত পদক্ষেপসমূহ সম্পাদিত হবে। |
default void | preInvocationSetup ( IBuildInfo info, MultiMap <String, String> attributes)ডিভাইস-নির্দিষ্ট প্রয়োজনীয় সেটআপের জন্য অতিরিক্ত পদক্ষেপ, যা ইনভোকেশন ফ্লো-এর আগে ডিভাইসে সম্পন্ন করা হবে। |
abstract boolean | pullDir (String deviceFilePath, File localDir)ডিভাইস থেকে ডিরেক্টরির বিষয়বস্তু পুনরাবৃত্তিমূলকভাবে টেনে আনুন। |
abstract boolean | pullDir (String deviceFilePath, File localDir, int userId, long timeout)ডিভাইস থেকে ডিরেক্টরির বিষয়বস্তু পুনরাবৃত্তিমূলকভাবে টেনে আনুন। |
abstract boolean | pullDir (String deviceFilePath, File localDir, int userId)ডিভাইস থেকে ডিরেক্টরির বিষয়বস্তু পুনরাবৃত্তিমূলকভাবে টেনে আনুন। |
abstract File | pullFile (String remoteFilePath, int userId) ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে, সেটিকে একটি স্থানীয় অস্থায়ী |
abstract boolean | pullFile (String remoteFilePath, File localFile, int userId, long timeout)ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে। |
abstract File | pullFile (String remoteFilePath) ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে, সেটিকে একটি স্থানীয় অস্থায়ী |
abstract boolean | pullFile (String remoteFilePath, File localFile, int userId)ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে। |
abstract boolean | pullFile (String remoteFilePath, File localFile)ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে। |
abstract String | pullFileContents (String remoteFilePath)ডিভাইস থেকে একটি ফাইল পুনরুদ্ধার করে এবং এর বিষয়বস্তু ফেরত দেয়। |
abstract File | pullFileFromExternal (String remoteFilePath) ডিভাইসের এক্সটার্নাল স্টোরেজ থেকে একটি ফাইল পুনরুদ্ধার করে, সেটিকে একটি স্থানীয় অস্থায়ী |
abstract boolean | pushDir (File localDir, String deviceFilePath, int userId)ডিরেক্টরির বিষয়বস্তু পুনরাবৃত্তিমূলকভাবে ডিভাইসে প্রেরণ করুন। |
abstract boolean | pushDir (File localDir, String deviceFilePath, Set<String> excludedDirectories)ফিল্টার করা কিছু ডিরেক্টরি বাদ দিয়ে, ডিরেক্টরির বিষয়বস্তু রিকার্সিভলি ডিভাইসে পুশ করুন। |
abstract boolean | pushDir (File localDir, String deviceFilePath)ডিরেক্টরির বিষয়বস্তু পুনরাবৃত্তিমূলকভাবে ডিভাইসে প্রেরণ করুন। |
abstract boolean | pushFile (File localFile, String deviceFilePath, int userId)ডিভাইসে একটি ফাইল পাঠান। |
abstract boolean | pushFile (File localFile, String deviceFilePath, boolean evaluateContentProviderNeeded) |
abstract boolean | pushFile (File localFile, String deviceFilePath)ডিভাইসে একটি ফাইল পাঠান। |
abstract boolean | pushString (String contents, String deviceFilePath)একটি স্ট্রিং থেকে তৈরি ফাইল ডিভাইসে পুশ করুন। |
abstract void | reboot ()ডিভাইসটিকে adb মোডে রিবুট করে। |
abstract void | reboot (String reason) ডিভাইসটিকে adb মোডে রিবুট করে এবং প্রদত্ত |
default String | reboot (String command, String reason) প্রদত্ত |
abstract void | rebootIntoBootloader ()ডিভাইসটিকে বুটলোডার মোডে রিবুট করে। |
abstract void | rebootIntoFastbootd ()ডিভাইসটিকে ফাস্টবুটডি মোডে রিবুট করে। |
abstract void | rebootIntoRecovery ()ডিভাইসটিকে adb রিকভারি মোডে রিবুট করে। |
abstract void | rebootIntoSideload (boolean autoReboot)ডিভাইসটিকে adb সাইডলোড মোডে রিবুট করে (উল্লেখ্য যে, এটি রিকভারির অধীনে একটি বিশেষ মোড)। ডিভাইসটি সাইডলোড মোডে প্রবেশ না করা পর্যন্ত ব্লক থাকে। |
abstract void | rebootIntoSideload ()ডিভাইসটিকে adb সাইডলোড মোডে রিবুট করে (উল্লেখ্য যে, এটি রিকভারির অধীনে একটি বিশেষ মোড)। ডিভাইসটি সাইডলোড মোডে প্রবেশ না করা পর্যন্ত ব্লক থাকে। |
abstract void | rebootUntilOnline () |
abstract void | rebootUntilOnline (String reason) |
abstract void | rebootUserspace ()ডিভাইসের শুধুমাত্র ইউজারস্পেস অংশটি রিবুট করে। |
abstract void | rebootUserspaceUntilOnline () |
abstract void | remountSystemReadOnly ()ডিভাইসটির সিস্টেম পার্টিশনটিকে রিড-অনলি করুন। |
abstract void | remountSystemWritable ()ডিভাইসের সিস্টেম পার্টিশনটিকে রাইটেবল করুন। |
abstract void | remountVendorReadOnly ()ডিভাইসের ভেন্ডর পার্টিশনটিকে রিড-অনলি করুন। |
abstract void | remountVendorWritable ()ডিভাইসের ভেন্ডর পার্টিশনটিকে রাইটেবল করুন। |
abstract boolean | runInstrumentationTests ( IRemoteAndroidTestRunner runner, Collection< ITestLifeCycleReceiver > listeners)ইনস্ট্রুমেন্টেশন পরীক্ষা চালায় এবং ডিভাইস পুনরুদ্ধারের সুবিধা প্রদান করে। |
abstract boolean | runInstrumentationTests ( IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners) এক বা একাধিক লিসেনারকে প্যারামিটার হিসেবে পাস করে |
abstract boolean | runInstrumentationTestsAsUser ( IRemoteAndroidTestRunner runner, int userId, Collection< ITestLifeCycleReceiver > listeners) |
abstract boolean | runInstrumentationTestsAsUser ( IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) |
abstract void | setDate (Date date)ডিভাইসে তারিখ সেট করে দ্রষ্টব্য: ডিভাইসে তারিখ সেট করতে রুট প্রয়োজন। |
abstract void | setOptions ( TestDeviceOptions options) ডিভাইসের জন্য |
abstract boolean | setProperty (String propKey, String propValue)ডিভাইসে প্রদত্ত প্রপার্টির মান সেট করে। |
abstract void | setRecovery ( IDeviceRecovery recovery) এই ডিভাইসটির জন্য ব্যবহার করার জন্য |
abstract void | setRecoveryMode ( ITestDevice.RecoveryMode mode)ডিভাইসটির জন্য বর্তমান রিকভারি মোডটি সেট করুন। |
abstract void | setTrackingSerial (String trackingSerial)ডিভাইস ব্যবস্থাপনার উদ্দেশ্যে, ডিভাইসটিকে রেফারেন্স করার জন্য আমরা যে সিরিয়ালটি ব্যবহার করি, তা ট্র্যাক করুন। |
abstract void | setUseFastbootErase (boolean useFastbootErase)ডিভাইসের কোনো পার্টিশন মুছে ফেলার জন্য fastboot erase নাকি fastboot format ব্যবহার করা হবে, তা নির্ধারণ করুন। |
abstract void | startLogcat ()ব্যাকগ্রাউন্ডে ডিভাইস থেকে লগক্যাট আউটপুট ক্যাপচার করা শুরু করুন। |
abstract boolean | startTradeInModeTesting (int timeoutMs)টেস্টিং ট্রেড-ইন মোড সক্রিয় করুন। |
abstract void | stopEmulatorOutput ()এমুলেটরের আউটপুট বন্ধ করুন এবং মুছে ফেলুন। |
abstract void | stopLogcat ()ডিভাইস থেকে লগক্যাট আউটপুট সংগ্রহ করা বন্ধ করুন এবং বর্তমানে সংরক্ষিত লগক্যাট ডেটা বাতিল করুন। |
abstract void | stopTradeInModeTesting ()ট্রেড-ইন মোড পরীক্ষা করা বন্ধ করুন। |
abstract String | switchToAdbTcp ()ডিভাইসটিকে adb-over-tcp মোডে পরিবর্তন করুন। |
abstract boolean | switchToAdbUsb ()ডিভাইসটিকে ইউএসবি মোডের মাধ্যমে এডিবি-তে পরিবর্তন করুন। |
abstract boolean | syncFiles (File localFileDir, String deviceFilePath)পর্যায়ক্রমে স্থানীয় ফাইল ডিরেক্টরির বিষয়বস্তু ডিভাইসের সাথে সিঙ্ক করে। |
abstract boolean | unlockDevice ()ডিভাইসটি এনক্রিপ্টেড অবস্থায় থাকলে তা আনলক করে। |
abstract void | unmountDebugfs ()debugfs আনমাউন্ট করুন। |
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 recovery' অবস্থায় থাকার জন্য ব্লক করা হয় (উল্লেখ্য, এটি |
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 শেল কমান্ডে ডিভাইসটির সাড়া দেওয়ার জন্য অপেক্ষা করে। |
ধ্রুবক
অজানা_এপিআই_স্তর
public static final int UNKNOWN_API_LEVEL
এপিআই লেভেল শনাক্ত করা না গেলে ডিফল্ট মান
ধ্রুবক মান: -1 (0xffffffff)
জনসাধারণের পদ্ধতি
CheckApiLevel AgainstNextRelease
public abstract boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
ন্যূনতম সমর্থিত স্তরের ভিত্তিতে কোনো ফিচার বর্তমানে সমর্থিত কিনা তা যাচাই করুন। এপিআই লেভেল বাড়ানোর আগে, এই পদ্ধতিটি এখনও অপ্রকাশিত ফিচারগুলোকেও বিবেচনা করে।
| প্যারামিটার | |
|---|---|
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 void deleteFile (String deviceFilePath,
int userId)ডিভাইস থেকে কোনো ফাইল বা ডিরেক্টরি মুছে ফেলার সহায়ক পদ্ধতি।
| প্যারামিটার | |
|---|---|
deviceFilePath | String : ডিভাইসে ফাইলটির সম্পূর্ণ পাথ। |
userId | int : যে ব্যবহারকারীর আইডি থেকে মুছে ফেলতে হবে |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
ডিভাইসসফটরিস্টার্ট করা হয়েছে
public abstract boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
ডিভাইসটি সফট-রিস্টার্ট হয়েছে কিনা তা পরীক্ষা করার জন্য একটি সহায়ক মেথড, যা বর্তমান system_server-কে পূর্ববর্তী system_server-এর ProcessInfo সাথে তুলনা করে। ProcessInfo পেতে getProcessByName(String) ব্যবহার করুন।
| প্যারামিটার | |
|---|---|
prevSystemServerProcess | ProcessInfo : পূর্ববর্তী system_server প্রসেস ProcessInfo . |
| ফেরত | |
|---|---|
boolean | ডিভাইসটি সফট-রিস্টার্ট করা হলে true |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
RuntimeException | যদি ডিভাইসের বুট হওয়ার কারণ অস্বাভাবিক হয় |
DeviceNotAvailableException | |
ডিভাইসসফটরিস্টার্টেডসিন্স
public abstract boolean deviceSoftRestartedSince (long utcEpochTime,
TimeUnit timeUnit) ডিভাইসের ইপক থেকে প্রাপ্ত UTC সময় এবং এর TimeUnit থেকে ডিভাইসটি সফট-রিস্টার্ট হয়েছে কিনা তা পরীক্ষা করার জন্য একটি সহায়ক মেথড। সফট-রিস্টার্ট বলতে ডিভাইসের হার্ড রিবুট ছাড়া সিস্টেম সার্ভার রিস্টার্ট হওয়াকে বোঝায় (উদাহরণস্বরূপ: অনুরোধকৃত রিবুট)। মিলিসেকেন্ডে ডিভাইসের বর্তমান utcEpochTime, getDeviceDate() মেথডের মাধ্যমে পাওয়া যায়।
| প্যারামিটার | |
|---|---|
utcEpochTime | long : epoch থেকে ডিভাইসের সময় (সেকেন্ডে)। |
timeUnit | TimeUnit : প্রদত্ত utcEpochTime-এর জন্য TimeUnit একক। |
| ফেরত | |
|---|---|
boolean | ডিভাইসটি সফট-রিস্টার্ট করা হলে true |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
RuntimeException | যদি ডিভাইসের বুট হওয়ার কারণ অস্বাভাবিক হয় |
DeviceNotAvailableException | |
disableAdbRoot
public abstract boolean disableAdbRoot ()
adb root বন্ধ করে দেয়।
adb root নিষ্ক্রিয় করলে ডিভাইসটি adb থেকে সংযোগ বিচ্ছিন্ন হয়ে যেতে পারে। ডিভাইসটি উপলব্ধ না হওয়া পর্যন্ত এই পদ্ধতিটি ব্লক হয়ে থাকবে।| ফেরত | |
|---|---|
boolean | সফল হলে true । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
ফাইলটি কি বিদ্যমান?
public abstract boolean doesFileExist (String deviceFilePath)
ডিভাইসে ফাইলটি আছে কিনা তা নির্ধারণ করার জন্য সহায়ক পদ্ধতি।
| প্যারামিটার | |
|---|---|
deviceFilePath | String : ডিভাইসে যাচাই করার জন্য ফাইলের সম্পূর্ণ পাথ |
| ফেরত | |
|---|---|
boolean | ফাইলটি বিদ্যমান থাকলে true , অন্যথায় false । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
enableAdbRoot
public abstract boolean enableAdbRoot ()
adb রুট চালু করে। যদি 'enable-root' সেটিংটি 'false' হয়, তাহলে এটি একটি বার্তা লগ করবে এবং রুট সক্ষম না করেই ফিরে আসবে।
adb root সক্রিয় করলে ডিভাইসটি adb থেকে সংযোগ বিচ্ছিন্ন হয়ে যেতে পারে। ডিভাইসটি উপলব্ধ না হওয়া পর্যন্ত এই পদ্ধতিটি ব্লক হয়ে থাকবে।
| ফেরত | |
|---|---|
boolean | সফল হলে true । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbCommand
public abstract String executeAdbCommand (long timeout,
String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তে executeShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।
| প্যারামিটার | |
|---|---|
timeout | long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে গণ্য করার আগের সময়কাল (মিলিসেকেন্ডে), কোনো টাইমআউট না থাকলে 0L। |
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
String | কমান্ডের stdout। কমান্ডটি কার্যকর হতে ব্যর্থ হলে null । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbCommand
public abstract String executeAdbCommand (String... commandArgs)
একটি সহায়ক মেথড যা adb কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তেexecuteShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।| প্যারামিটার | |
|---|---|
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
String | কমান্ডের stdout। কমান্ডটি কার্যকর হতে ব্যর্থ হলে null । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbCommand
public abstract String executeAdbCommand (long timeout,
Map<String, String> envMap,
String... commandArgs)একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তে executeShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।
| প্যারামিটার | |
|---|---|
timeout | long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে গণ্য করার আগের সময়কাল (মিলিসেকেন্ডে), কোনো টাইমআউট না থাকলে 0L। |
envMap | Map : কমান্ডের জন্য যে পরিবেশ নির্ধারণ করতে হবে |
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
String | কমান্ডের stdout। কমান্ডটি কার্যকর হতে ব্যর্থ হলে null । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbV2Command
public abstract CommandResult executeAdbV2Command (String... commandArgs)
একটি সহায়ক মেথড যা adb কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তে executeShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।
| প্যারামিটার | |
|---|---|
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbV2Command
public abstract CommandResult executeAdbV2Command (long timeout, String... commandArgs)
একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তে executeShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।
| প্যারামিটার | |
|---|---|
timeout | long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে গণ্য করার আগের সময়কাল (মিলিসেকেন্ডে), কোনো টাইমআউট না থাকলে 0L। |
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbV2Command
public abstract CommandResult executeAdbV2Command (long timeout, Map<String, String> envMap, int retryAttempts, String... commandArgs)
একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তে executeShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।
| প্যারামিটার | |
|---|---|
timeout | long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে গণ্য করার আগের সময়কাল (মিলিসেকেন্ডে), কোনো টাইমআউট না থাকলে 0L। |
envMap | Map : কমান্ডের জন্য যে পরিবেশ নির্ধারণ করতে হবে |
retryAttempts | int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeAdbV2Command
public abstract CommandResult executeAdbV2Command (long timeout, Map<String, String> envMap, String... commandArgs)
একটি সহায়ক মেথড যা একটি adb কমান্ডকে নির্দিষ্ট টাইমআউট সহ সিস্টেম কমান্ড হিসেবে কার্যকর করে।
যেখানে সম্ভব, এর পরিবর্তে executeShellCommand(String) ব্যবহার করা উচিত, কারণ এই পদ্ধতিটি আরও ভালো ব্যর্থতা শনাক্তকরণ এবং কর্মক্ষমতা প্রদান করে।
| প্যারামিটার | |
|---|---|
timeout | long : ডিভাইসটিকে প্রতিক্রিয়াহীন বলে গণ্য করার আগের সময়কাল (মিলিসেকেন্ডে), কোনো টাইমআউট না থাকলে 0L। |
envMap | Map : কমান্ডের জন্য যে পরিবেশ নির্ধারণ করতে হবে |
commandArgs | String : adb কমান্ড এবং চালানোর জন্য আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeFastbootCommand
public abstract CommandResult executeFastbootCommand (long timeout, String... commandArgs)
সহায়ক মেথড যা একটি ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে।
ডিভাইসটি আগে থেকেই ফাস্টবুট মোডে থাকলে এটি ব্যবহৃত হবে বলে আশা করা হচ্ছে।| প্যারামিটার | |
|---|---|
timeout | long : কমান্ডের মেয়াদ শেষ হওয়ার আগের সময় (মিলিসেকেন্ডে)। |
commandArgs | String : চালানোর জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeFastbootCommand
public abstract CommandResult executeFastbootCommand (String... commandArgs)
একটি সহায়ক মেথড যা ২ মিনিটের ডিফল্ট টাইমআউট সহ একটি ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে।
ডিভাইসটি আগে থেকেই ফাস্টবুট মোডে থাকলে এটি ব্যবহৃত হবে বলে আশা করা হচ্ছে।
| প্যারামিটার | |
|---|---|
commandArgs | String : চালানোর জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeLongFastbootCommand
public abstract CommandResult executeLongFastbootCommand (String... commandArgs)
একটি সহায়ক মেথড যা একটি দীর্ঘস্থায়ী ফাস্টবুট কমান্ডকে সিস্টেম কমান্ড হিসেবে কার্যকর করে।
executeFastbootCommand(String...) এর অনুরূপ, তবে এটি একটি দীর্ঘতর টাইমআউট ব্যবহার করে।| প্যারামিটার | |
|---|---|
commandArgs | String : চালানোর জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeLongFastbootCommand
public abstract CommandResult executeLongFastbootCommand (Map<String, String> envVarMap, String... commandArgs)
একটি সহায়ক মেথড যা একটি দীর্ঘস্থায়ী ফাস্টবুট কমান্ডকে সিস্টেম এনভায়রনমেন্ট ভেরিয়েবলসহ সিস্টেম কমান্ড হিসেবে কার্যকর করে।
executeFastbootCommand(String...) এর অনুরূপ, তবে এটি একটি দীর্ঘতর টাইমআউট ব্যবহার করে।
| প্যারামিটার | |
|---|---|
envVarMap | Map : সিস্টেম এনভায়রনমেন্ট ভেরিয়েবল যা ফাস্টবুট কমান্ড চালানোর সময় ব্যবহৃত হয় |
commandArgs | String : চালানোর জন্য ফাস্টবুট কমান্ড এবং আর্গুমেন্টসমূহ |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeShellCommand
public abstract String executeShellCommand (String command)
সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং আউটপুট একটি String হিসেবে ফেরত দেয়।
| প্যারামিটার | |
|---|---|
command | String : চালানোর জন্য adb শেল কমান্ড |
| ফেরত | |
|---|---|
String | শেল আউটপুট |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeShellCommand
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 : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeShellCommand
public abstract void executeShellCommand (String command,
IShellOutputReceiver receiver)প্রদত্ত adb শেল কমান্ডটি কার্যকর করে এবং কমান্ড ব্যর্থ হলে একাধিকবার চেষ্টা করে।
executeShellCommand(String,IShellOutputReceiver,long,TimeUnit,int) এর একটি সরলীকৃত রূপ, যেখানে ডিফল্ট মানগুলো ব্যবহৃত হয়।| প্যারামিটার | |
|---|---|
command | String : চালানোর জন্য adb শেল কমান্ড |
receiver | IShellOutputReceiver : যে IShellOutputReceiver শেল আউটপুট পাঠানো হবে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeShellCommand
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 : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeShellV2Command
public abstract CommandResult executeShellV2Command (String command)
একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট, stdout ও stderr দিয়ে ফলাফলগুলোকে CommandResult হিসেবে যথাযথভাবে পূরণ করে ফেরত দেয়।
| প্যারামিটার | |
|---|---|
command | String : যে কমান্ডটি চালানো উচিত। |
| ফেরত | |
|---|---|
CommandResult | 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 : একটি File যা কমান্ডের ইনপুট হিসেবে পাইপ করা হবে, অথবা নাল। |
pipeToOutput | OutputStream : OutputStream যেখানে স্ট্যান্ডার্ড আউটপুট পুনঃনির্দেশিত হবে, অথবা নাল। |
maxTimeoutForCommand | long : কমান্ডটি সম্পন্ন হওয়ার সর্বোচ্চ সময়সীমা; একক timeUnit এ নির্দিষ্ট করা অনুযায়ী। |
timeUnit | TimeUnit : maxTimeToOutputShellResponse এর একক |
retryAttempts | int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
| ফেরত | |
|---|---|
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)
একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট, stdout ও stderr দিয়ে ফলাফলগুলোকে CommandResult হিসেবে যথাযথভাবে পূরণ করে ফেরত দেয়।
| প্যারামিটার | |
|---|---|
command | String : যে কমান্ডটি চালানো উচিত। |
pipeAsInput | File : একটি File যা কমান্ডের ইনপুট হিসেবে পাইপ করা হবে, অথবা নাল। |
| ফেরত | |
|---|---|
CommandResult | CommandResult এ ফলাফলটি রয়েছে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
executeShellV2Command
public abstract CommandResult executeShellV2Command (String command, OutputStream pipeToOutput)
এই সহায়ক মেথডটি একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট ও stderr দিয়ে যথাযথভাবে পূরণ করা CommandResult হিসেবে ফলাফল ফেরত দেয়। stdout নির্দিষ্ট স্ট্রিমে পাঠানো হয়।
| প্যারামিটার | |
|---|---|
command | String : যে কমান্ডটি চালানো উচিত। |
pipeToOutput | OutputStream : OutputStream যেখানে স্ট্যান্ডার্ড আউটপুট পুনঃনির্দেশিত হবে, অথবা নাল। |
| ফেরত | |
|---|---|
CommandResult | 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 : একটি File যা কমান্ডের ইনপুট হিসেবে পাইপ করা হবে, অথবা নাল। |
pipeToOutput | OutputStream : OutputStream যেখানে স্ট্যান্ডার্ড আউটপুট পুনঃনির্দেশিত হবে, অথবা নাল। |
pipeToError | OutputStream : যে OutputStream স্ট্যান্ডার্ড এরর (std error) পাঠানো হবে, অথবা নাল (null)। |
maxTimeoutForCommand | long : কমান্ডটি সম্পন্ন হওয়ার সর্বোচ্চ সময়সীমা; একক timeUnit এ নির্দিষ্ট করা অনুযায়ী। |
timeUnit | TimeUnit : maxTimeToOutputShellResponse এর একক |
retryAttempts | int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
| ফেরত | |
|---|---|
CommandResult | |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
আরও দেখুন:
executeShellV2Command
public abstract CommandResult executeShellV2Command (String command, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
একটি adb শেল কমান্ড কার্যকর করে, যেখানে কমান্ডের আচরণ নিয়ন্ত্রণের জন্য আরও প্যারামিটার থাকে।
| প্যারামিটার | |
|---|---|
command | String : চালানোর জন্য adb শেল কমান্ড |
pipeAsInput | File : একটি File যা কমান্ডের ইনপুট হিসেবে পাইপ করা হবে, অথবা নাল। |
pipeToOutput | OutputStream : OutputStream যেখানে স্ট্যান্ডার্ড আউটপুট পুনঃনির্দেশিত হবে, অথবা নাল। |
pipeToError | OutputStream : যে OutputStream স্ট্যান্ডার্ড এরর (std error) পাঠানো হবে, অথবা নাল (null)। |
maxTimeoutForCommand | long : কমান্ডটি সম্পন্ন হওয়ার সর্বোচ্চ সময়সীমা; একক timeUnit এ নির্দিষ্ট করা অনুযায়ী। |
maxTimeToOutputShellResponse | long : সর্বোচ্চ সময়কাল, যে সময়ে কমান্ডটি কোনো প্রতিক্রিয়া না দিয়ে থাকতে পারবে; একক timeUnit এ নির্দিষ্ট করা থাকবে। |
timeUnit | TimeUnit : maxTimeToOutputShellResponse এর একক |
retryAttempts | int : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
| ফেরত | |
|---|---|
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 : কোনো ব্যতিক্রমের কারণে কমান্ড ব্যর্থ হলে, সর্বোচ্চ কতবার পুনরায় চেষ্টা করা হবে। retryAttempts যদি তা সফল না হয়, তাহলে DeviceNotResponsiveException থ্রো করা হবে। |
| ফেরত | |
|---|---|
CommandResult | |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
আরও দেখুন:
executeShellV2Command
public abstract CommandResult executeShellV2Command (String command, IShellOutputReceiver receiver)
একটি সহায়ক মেথড যা একটি adb শেল কমান্ড কার্যকর করে এবং কমান্ডের স্ট্যাটাস আউটপুট, stdout ও stderr দিয়ে ফলাফলগুলোকে CommandResult হিসেবে যথাযথভাবে পূরণ করে ফেরত দেয়।
| প্যারামিটার | |
|---|---|
command | String : যে কমান্ডটি চালানো উচিত। |
receiver | IShellOutputReceiver : যে IShellOutputReceiver শেল আউটপুট পাঠানো হবে। |
| ফেরত | |
|---|---|
CommandResult | CommandResult এ ফলাফলটি রয়েছে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
fastbootOemRamdumpNow
public abstract CommandResult fastbootOemRamdumpNow ()
একটি সহায়ক মেথড যা ফাস্টবুট মোড থেকে র্যামডাম্প চালু করে।
এই মেথডটি "oem ramdump now" কমান্ডটি এক্সিকিউট করে।ERROR(/#executeFastbootCommand()) এর মতো নয়, এটি কমান্ড ব্যর্থ হলে বা স্ট্যাটাস অবৈধ হলে পুনরায় চেষ্টা বা ডিভাইস পুনরুদ্ধারের চেষ্টা করে না, কারণ এর উদ্দিষ্ট ফলাফল হলো ডিভাইস ক্র্যাশ করানো। ডিভাইসটি যখন ইতিমধ্যে ফাস্টবুট মোডে থাকে, তখন এটি ব্যবহার করার কথা।| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
fastbootWipePartition
public abstract CommandResult fastbootWipePartition (String partition)
সহায়ক মেথড যা ডিভাইসের পার্টিশন মুছে ফেলে।
যদিgetUseFastbootErase() এর true হয়, তাহলে পার্টিশনটি মুছে ফেলার জন্য fastboot erase ব্যবহার করা হবে। এরপর ডিভাইসটি পরবর্তী বুটের সময় একটি ফাইলসিস্টেম তৈরি করবে। অন্যথায়, fastboot format ব্যবহার করা হয়, যা ডিভাইসে একটি নতুন ফাইলসিস্টেম তৈরি করবে। ডিভাইসটি আগে থেকেই ফাস্টবুট মোডে থাকলে এটি ব্যবহৃত হবে বলে আশা করা হচ্ছে।| প্যারামিটার | |
|---|---|
partition | String : যে পার্টিশনটি মুছে ফেলতে হবে |
| ফেরত | |
|---|---|
CommandResult | CommandResult-এ কমান্ডের আউটপুট থাকে |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
getApiLevel
public abstract int getApiLevel ()
ডিভাইসের এপিআই লেভেল জানুন। ডিফল্ট মান হলো UNKNOWN_API_LEVEL ।
| ফেরত | |
|---|---|
int | ডিভাইসের এপিআই লেভেল নির্দেশকারী একটি পূর্ণসংখ্যা |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
getApiLevelFull
public abstract int getApiLevelFull ()
getApiLevel() এর অনুরূপ, কিন্তু এটি পূর্ণ সংস্করণটি ফেরত দেয়।
| ফেরত | |
|---|---|
int | ডিভাইসের সম্পূর্ণ এপিআই লেভেল নির্দেশকারী একটি পূর্ণসংখ্যা |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
বেসব্যান্ড সংস্করণ পান
public abstract String getBasebandVersion ()
এই ডিভাইসটির বেসব্যান্ড (রেডিও) ভার্সন পাওয়ার একটি সুবিধাজনক পদ্ধতি। রেডিও ভার্সন পাওয়াটা ডিভাইস-ভিত্তিক, তাই এটি সব ডিভাইসের জন্য সঠিক তথ্য নাও দিতে পারে। এই পদ্ধতিটি সঠিক ভার্সনের তথ্য দেওয়ার জন্য gsm.version.baseband প্রপার্টির উপর নির্ভর করে। কিছু CDMA ডিভাইসের জন্য এটি নির্ভুল নয় এবং এখানে প্রাপ্ত ভার্সনটি fastboot থেকে রিপোর্ট করা ভার্সনের সাথে নাও মিলতে পারে এবং CDMA রেডিওর জন্য সঠিক ভার্সন নাও দিতে পারে। সংক্ষেপে বলতে গেলে, এই পদ্ধতিটি কেবল তখনই সঠিক ভার্সন রিপোর্ট করে, যখন gsm.version.baseband প্রপার্টিটি fastboot getvar version-baseband দ্বারা প্রাপ্ত ভার্সনের সমান হয়।
| ফেরত | |
|---|---|
String | String বেসব্যান্ড সংস্করণ অথবা null যদি এটি নির্ধারণ করা না যায়) (ডিভাইসে কোনো রেডিও নেই বা সংস্করণ স্ট্রিংটি পড়া যাচ্ছে না)। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসটির সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
ব্যাটারি পান
public abstract Integer getBattery ()
ডিভাইসের বর্তমান ব্যাটারি লেভেল ফেরত দেয়, অথবা ব্যাটারি লেভেল উপলব্ধ না থাকলে Null ফেরত দেয়।
| ফেরত | |
|---|---|
Integer | |
getBooleanProperty
public abstract boolean getBooleanProperty (String name,
boolean defaultValue)প্রদত্ত প্রপার্টির বুলিয়ান মান ফেরত দেয়।
| প্যারামিটার | |
|---|---|
name | String : প্রপার্টির নাম |
defaultValue | boolean : প্রপার্টিটি খালি থাকলে বা এর অস্তিত্ব না থাকলে যে ডিফল্ট মানটি ফেরত দেওয়া হবে। |
| ফেরত | |
|---|---|
boolean | প্রপার্টির মান "1" , "y" , "yes" , "on" বা "true" হলে true ' হবে; অন্যথায় প্রপার্টির মান "0" , "n" , "no" , "off" , "false" বা defaultValue হলে ' false ' হবে। |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
গেটবুটহিস্ট্রি
public abstract Map<Long, String> getBootHistory ()
হেল্পার মেথডটি বুট টাইম এবং বুট রিজন সহ বুট হিস্ট্রি ম্যাপ সংগ্রহ করে।
| ফেরত | |
|---|---|
Map<Long, String> | বুট টাইম (ইপক থেকে সেকেন্ডে ইউটিসি সময়) এবং বুট কারণের ম্যাপ |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
getBootHistorySince
public abstract Map<Long, String> getBootHistorySince (long utcEpochTime,
TimeUnit timeUnit)এই হেল্পার মেথডটি ডিভাইস থেকে নির্দিষ্ট সময় একক এবং প্রদত্ত ইপক সময় থেকে বুট টাইম ও বুট রিজন সহ বুট হিস্ট্রি ম্যাপ সংগ্রহ করে। getDeviceDate() মেথডের মাধ্যমে ডিভাইসের বর্তমান utcEpochTime মিলিসেকেন্ডে পাওয়া যায়।
| প্যারামিটার | |
|---|---|
utcEpochTime | long : Epoch থেকে ডিভাইসের সময়। |
timeUnit | TimeUnit : সময়ের একক TimeUnit . |
| ফেরত | |
|---|---|
Map<Long, String> | বুট টাইম (ইপক থেকে সেকেন্ডে ইউটিসি সময়) এবং বুট কারণের ম্যাপ |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
বুটলোডার সংস্করণ পান
public abstract String getBootloaderVersion ()
এই ডিভাইসটির বুটলোডার সংস্করণ পাওয়ার একটি সুবিধাজনক পদ্ধতি।
ডিভাইসের বর্তমান অবস্থা থেকে বুটলোডার সংস্করণ পুনরুদ্ধার করার চেষ্টা করা হবে। (অর্থাৎ, যদি ডিভাইসটি ফাস্টবুট মোডে থাকে, তবে এটি ফাস্টবুট থেকে সংস্করণটি পুনরুদ্ধার করার চেষ্টা করবে)| ফেরত | |
|---|---|
String | String বুটলোডার সংস্করণ অথবা খুঁজে না পাওয়া গেলে null |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
getBuildAlias
public abstract String getBuildAlias ()
ডিভাইসটিতে বর্তমানে যে বিল্ডটি চলছে, তার অ্যালিয়াসটি পুনরুদ্ধার করুন।
বিল্ড আইডি (যা নেক্সাস বিল্ডের ক্ষেত্রে সাধারণত একটি সংখ্যা) এর চেয়ে বিল্ড অ্যালিয়াস সাধারণত একটি সহজে পাঠযোগ্য স্ট্রিং। উদাহরণস্বরূপ, অ্যান্ড্রয়েড ৪.২ এর চূড়ান্ত রিলিজের বিল্ড অ্যালিয়াস হলো JDQ39 এবং বিল্ড আইডি হলো 573038।
| ফেরত | |
|---|---|
String | বিল্ড অ্যালিয়াস অথবা বিল্ড আইডি পুনরুদ্ধার করা না গেলে সেটি ব্যবহার করা হবে। |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
getBuildFlavor
public abstract String getBuildFlavor ()
ডিভাইসটির জন্য বিল্ড ফ্লেভারটি পুনরুদ্ধার করুন।
| ফেরত | |
|---|---|
String | বিল্ড ফ্লেভার অথবা যদি তা পুনরুদ্ধার করা না যায় তবে null। |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
getBuildId
public abstract String getBuildId ()
ডিভাইসটি বর্তমানে যে বিল্ডটি চালাচ্ছে তা পুনরুদ্ধার করুন।
| ফেরত | |
|---|---|
String | বিল্ড আইডি অথবা IBuildInfo.UNKNOWN_BUILD_ID যদি তা পুনরুদ্ধার করা না যায়। |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
বিল্ড সাইনিং কীগুলি পান
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 ডিভাইস ক্লাস। |
ডিভাইসের তারিখ পান
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 | |
ডিভাইসের অবস্থা পান
public abstract TestDeviceState getDeviceState ()
ডিভাইসটির অবস্থা জানুন।
| ফেরত | |
|---|---|
TestDeviceState | |
getDeviceTimeOffset
public abstract long getDeviceTimeOffset (Date date)
ডিভাইস এবং একটি নির্দিষ্ট Date মধ্যে সময়ের পার্থক্য বের করার সহায়ক। অভ্যন্তরীণভাবে ইপক টাইম ব্যবহার করে।
| প্যারামিটার | |
|---|---|
date | Date |
| ফেরত | |
|---|---|
long | মিলিসেকেন্ডে পার্থক্য |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
getEmulatorOutput
public abstract InputStreamSource getEmulatorOutput ()
এমুলেটরের stdout এবং stderr-এর স্ট্রিমটি নিন।
| ফেরত | |
|---|---|
InputStreamSource | এমুলেটর আউটপুট |
বাহ্যিক স্টোরের খালি জায়গা পান
public abstract long getExternalStoreFreeSpace ()
ডিভাইসের এক্সটার্নাল স্টোরেজে খালি জায়গার পরিমাণ নির্ণয় করার জন্য সহায়ক মেথড।
| ফেরত | |
|---|---|
long | খালি জায়গার পরিমাণ (কেবি-তে) |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
getFastbootProductType
public abstract String getFastbootProductType ()
ডিভাইসটি ফাস্টবুট মোডে থাকা অবস্থায় এর পণ্যের ধরন জানার একটি সুবিধাজনক পদ্ধতি।
This method should only be used if device should be in fastboot. Its a bit safer variant than the genericgetProductType() method in this case, because ITestDevice will know to recover device into fastboot if device is in incorrect state or is unresponsive.| ফেরত | |
|---|---|
String | the String product type name or null if it cannot be determined |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
getFastbootProductVariant
public abstract String getFastbootProductVariant ()
Convenience method to get the product type of this device when its in fastboot mode.
This method should only be used if device should be in fastboot. Its a bit safer variant than the genericgetProductType() method in this case, because ITestDevice will know to recover device into fastboot if device is in incorrect state or is unresponsive.| ফেরত | |
|---|---|
String | the String product type name or null if it cannot be determined |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
getFastbootSerialNumber
public abstract String getFastbootSerialNumber ()
Returns the fastboot mode serial number.
| ফেরত | |
|---|---|
String | |
getFastbootVariable
public abstract String getFastbootVariable (String variableName)
Retrieve the given fastboot variable value from the device.
| প্যারামিটার | |
|---|---|
variableName | String : the variable name |
| ফেরত | |
|---|---|
String | the property value or null if it does not exist |
| নিক্ষেপ | |
|---|---|
| UnsupportedOperationException |
DeviceNotAvailableException | |
UnsupportedOperationException | |
getFileEntry
public abstract IFileEntry getFileEntry (String path)
Retrieve a reference to a remote file on device.
| প্যারামিটার | |
|---|---|
path | String : the file path to retrieve. Can be an absolute path or path relative to '/'. (ie both "/system" and "system" syntax is supported) |
| ফেরত | |
|---|---|
IFileEntry | the IFileEntry or null if file at given path cannot be found |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
getIDevice
public abstract IDevice getIDevice ()
Returns a reference to the associated ddmlib IDevice .
IDevice may be allocated by DDMS each time the device disconnects and reconnects from adb. Thus callers should not keep a reference to the IDevice , because that reference may become stale.| ফেরত | |
|---|---|
IDevice | the IDevice |
getIntProperty
public abstract long getIntProperty (String name,
long defaultValue)Returns integer value of the given property from the device.
| প্যারামিটার | |
|---|---|
name | String : the property name |
defaultValue | long : default value to return if property is empty or doesn't exist. |
| ফেরত | |
|---|---|
long | the property value or defaultValue if the property is empty, doesn't exist, or doesn't have an integer value. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
getLastExpectedRebootTimeMillis
public abstract long getLastExpectedRebootTimeMillis ()
Returns the last time Tradefed APIs triggered a reboot in milliseconds since EPOCH as returned by System.currentTimeMillis() .
| ফেরত | |
|---|---|
long | |
getLaunchApiLevel
public abstract int getLaunchApiLevel ()
Get the device's first launched API Level. Defaults to UNKNOWN_API_LEVEL .
| ফেরত | |
|---|---|
int | an integer indicating the first launched API Level of device |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
getLogcat
public abstract InputStreamSource getLogcat ()
Grabs a snapshot stream of the logcat data.
Works in two modes:
TestDeviceOptions.getMaxLogcatDataSize() bytes of the current contents of the background logcat capture| ফেরত | |
|---|---|
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 inIDevice 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 List of MountPointInfo containing the information in "/proc/mounts" |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
আরও দেখুন:
getMountPointInfo
public abstract List<ITestDevice.MountPointInfo> getMountPointInfo ()
Returns a parsed version of the information in /proc/mounts on the device
| ফেরত | |
|---|---|
List< ITestDevice.MountPointInfo > | A 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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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 |
getTombstones
public abstract List<File> 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.
| ফেরত | |
|---|---|
List<File> | A list of tombstone files, empty if no tombstone. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | |
আরও দেখুন:
getTotalMemory
public abstract long getTotalMemory ()
Returns total physical memory size in bytes or -1 in case of internal error
| ফেরত | |
|---|---|
long | |
getTrackingSerial
public String getTrackingSerial ()
For device management purpose get the serial used to track the device.
| ফেরত | |
|---|---|
String | |
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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 | |
isDebugfsMounted
public abstract boolean isDebugfsMounted ()
Check if debugfs is mounted.
| ফেরত | |
|---|---|
boolean | true if debugfs is mounted |
| নিক্ষেপ | |
|---|---|
| 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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
ডিরেক্টরি
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(). |
mountDebugfs
public abstract void mountDebugfs ()
Mount debugfs.
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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.device.DeviceNotAvailableException |
| com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException | |
TargetSetupError | |
pullDir
public abstract boolean pullDir (String deviceFilePath,
File localDir)Recursively pull directory contents from device.
| প্যারামিটার | |
|---|---|
deviceFilePath | String : রিমোট সোর্সের সম্পূর্ণ ফাইল পাথ |
localDir | File : ফাইলগুলো আনার জন্য স্থানীয় ডিরেক্টরি |
| ফেরত | |
|---|---|
boolean | ফাইলটি সফলভাবে পাওয়া গেলে true , অন্যথায় false । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
pullDir
public abstract boolean pullDir (String deviceFilePath,
File localDir,
int userId,
long timeout)Recursively pull directory contents from device.
| প্যারামিটার | |
|---|---|
deviceFilePath | String : রিমোট সোর্সের সম্পূর্ণ ফাইল পাথ |
localDir | File : ফাইলগুলো আনার জন্য স্থানীয় ডিরেক্টরি |
userId | int : the user id to pull from |
timeout | long : the timeout for pulling command |
| ফেরত | |
|---|---|
boolean | ফাইলটি সফলভাবে পাওয়া গেলে true , অন্যথায় false । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
pullDir
public abstract boolean pullDir (String deviceFilePath,
File localDir,
int userId)Recursively pull directory contents from device.
| প্যারামিটার | |
|---|---|
deviceFilePath | String : রিমোট সোর্সের সম্পূর্ণ ফাইল পাথ |
localDir | File : ফাইলগুলো আনার জন্য স্থানীয় ডিরেক্টরি |
userId | int : the user id to pull from |
| ফেরত | |
|---|---|
boolean | ফাইলটি সফলভাবে পাওয়া গেলে true , অন্যথায় false । |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুলফাইল
public abstract File pullFile (String remoteFilePath,
int userId) Retrieves a file off device, stores it in a local temporary File , and returns that File .
| প্যারামিটার | |
|---|---|
remoteFilePath | String : the absolute path to file on device. |
userId | int : The user id to pull from |
| ফেরত | |
|---|---|
File | A File containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem) |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুলফাইল
public abstract boolean pullFile (String remoteFilePath,
File localFile,
int userId,
long timeout)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 |
timeout | long : pull file command timeout |
| ফেরত | |
|---|---|
boolean | true if file was retrieved successfully. false otherwise. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুলফাইল
public abstract File pullFile (String remoteFilePath)
Retrieves a file off device, stores it in a local temporary File , and returns that File .
| প্যারামিটার | |
|---|---|
remoteFilePath | String : the absolute path to file on device. |
| ফেরত | |
|---|---|
File | A File containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem) |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুলফাইল
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুলফাইল
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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 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 File containing the contents of the device file, or null if the copy failed for any reason (including problems with the host filesystem) |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশডির
public abstract boolean pushDir (File localDir,
String deviceFilePath,
int userId)Recursively push directory contents to device.
| প্যারামিটার | |
|---|---|
localDir | File : the local directory to push |
deviceFilePath | String : the absolute file path of the remote destination |
userId | int : the user id to push to |
| ফেরত | |
|---|---|
boolean | true if file was pushed successfully. false otherwise. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশডির
public abstract boolean pushDir (File localDir,
String deviceFilePath,
Set<String> 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 : Set of excluded directories names that shouldn't be pushed. |
| ফেরত | |
|---|---|
boolean | true if file was pushed successfully. false otherwise. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশডির
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশফাইল
public abstract boolean pushFile (File localFile,
String deviceFilePath,
int userId)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 |
userId | int : the userId to push to |
| ফেরত | |
|---|---|
boolean | true if file was pushed successfully. false otherwise. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশফাইল
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশফাইল
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
পুশস্ট্রিং
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
রিবুট
public abstract void reboot ()
Reboots the device into adb mode.
Blocks until device becomes available.| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | if device is not available after 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 property.
| প্যারামিটার | |
|---|---|
reason | String : a reason for this reboot, or null if no reason is specified. |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | if device is not available after reboot |
রিবুট
public String reboot (String command,
String reason) Reboots the device using the given command .
Blocks until device becomes available.
Last reboot reason can be obtained by querying sys.boot.reason property.
| প্যারামিটার | |
|---|---|
command | String : command passed to `adb`. Notice that it's passed "as-is", so it's up to the caller to provide the proper quotation if needed (especially if it contains multiple parts separated by space). |
reason | String : a reason for this reboot, or null if no reason is specified. |
| ফেরত | |
|---|---|
String | |
| নিক্ষেপ | |
|---|---|
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
rebootIntoFastbootd
public abstract void rebootIntoFastbootd ()
Reboots the device into fastbootd mode.
Blocks until device is in fastbootd mode.
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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, Collection<ITestLifeCycleReceiver> 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 | Collection : 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. |
runInstrumentationTests
public abstract boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)
Convenience method for performing runInstrumentationTests(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. |
runInstrumentationTestsAsUser
public abstract boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, Collection<ITestLifeCycleReceiver> listeners)
Same as ITestDevice.runInstrumentationTests(IRemoteAndroidTestRunner,Collection) but runs the test for the given user.
| প্যারামিটার | |
|---|---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners | Collection |
| ফেরত | |
|---|---|
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. |
setTrackingSerial
public abstract void setTrackingSerial (String trackingSerial)
For device management purpose track the serial we use for referencing the device.
| প্যারামিটার | |
|---|---|
trackingSerial | String |
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. startTradeInModeTesting
public abstract boolean startTradeInModeTesting (int timeoutMs)
Enable testing trade-in mode. The device will be wiped and will reboot.
| প্যারামিটার | |
|---|---|
timeoutMs | int |
| ফেরত | |
|---|---|
boolean | True if we were successful, false otherwise |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
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.stopTradeInModeTesting
public abstract void stopTradeInModeTesting ()
Stop testing trade-in mode. The device will reboot.
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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 callpostBootSetup() . 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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
UnsupportedOperationException | if encryption is not supported on the device. |
unmountDebugfs
public abstract void unmountDebugfs ()
Unmount debugfs.
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException | |
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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 | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
waitForDeviceBootloader
public abstract void waitForDeviceBootloader ()
Blocks until device is visible via fastboot. Use default timeout.
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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. UsewaitForDeviceAvailable() instead.| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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. UsewaitForDeviceAvailable() instead.| প্যারামিটার | |
|---|---|
waitTime | long : the time in ms to wait |
| নিক্ষেপ | |
|---|---|
DeviceNotAvailableException | যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং তা পুনরুদ্ধার করা না যায়। |
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. |