INativeDevice সম্পর্কে

public interface INativeDevice

com.android.tradefed.device.INativeDevice


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

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

সারাংশ

ধ্রুবক

int UNKNOWN_API_LEVEL

API লেভেল সনাক্ত করা না গেলে ডিফল্ট মান

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

abstract boolean checkApiLevelAgainstNextRelease (int strictMinLevel)

ন্যূনতম সমর্থিত স্তরের উপর ভিত্তি করে, কোনও বৈশিষ্ট্য বর্তমানে সমর্থিত কিনা তা পরীক্ষা করুন।

abstract void clearLogcat ()

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

abstract void deleteFile (String deviceFilePath)

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

abstract void deleteFile (String deviceFilePath, int userId)

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

abstract boolean deviceSoftRestarted ( ProcessInfo prevSystemServerProcess)

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

abstract boolean deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit)

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

abstract boolean disableAdbRoot ()

adb রুট বন্ধ করে।

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, envMap, String... commandArgs)

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

abstract CommandResult executeAdbV2Command (long timeout, envMap, String... commandArgs)

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

abstract CommandResult executeAdbV2Command (String... commandArgs)

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

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

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

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

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

abstract CommandResult executeFastbootCommand (String... commandArgs)

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

abstract CommandResult executeLongFastbootCommand (String... commandArgs)

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

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

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

abstract String executeShellCommand (String command)

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

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

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

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

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

abstract void executeShellCommand (String command, IShellOutputReceiver receiver)

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

abstract CommandResult executeShellV2Command (String command)

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

abstract CommandResult executeShellV2Command (String command, OutputStream pipeToOutput)

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

abstract CommandResult executeShellV2Command (String command, File pipeAsInput)

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

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

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

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

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

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

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

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

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

abstract CommandResult fastbootWipePartition (String partition)

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

abstract int getApiLevel ()

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

abstract String getBasebandVersion ()

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

abstract Integer getBattery ()

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

abstract boolean getBooleanProperty (String name, boolean defaultValue)

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

abstract getBootHistory ()

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

abstract getBootHistorySince (long utcEpochTime, TimeUnit timeUnit)

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

abstract String getBootloaderVersion ()

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

abstract String getBuildAlias ()

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

abstract String getBuildFlavor ()

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

abstract String getBuildId ()

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

abstract String getBuildSigningKeys ()

ডিভাইসের ছবিতে সাইন ইন করতে ব্যবহৃত কী টাইপটি ফেরত পাঠায়।

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

abstract DeviceDescriptor getCachedDeviceDescriptor ()

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

abstract DeviceDescriptor getCachedDeviceDescriptor (boolean shortDescriptor)

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

abstract String[] getChildren (String deviceFilePath)

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

abstract AbstractConnection getConnection ()

ডিভাইসের সাথে সম্পর্কিত সংযোগটি ফেরত পাঠায়।

abstract String getDeviceClass ()

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

abstract long getDeviceDate ()

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

abstract DeviceDescriptor getDeviceDescriptor ()

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

abstract DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

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

abstract TestDeviceState getDeviceState ()

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

abstract long getDeviceTimeOffset (Date date)

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

abstract InputStreamSource getEmulatorOutput ()

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

abstract long getExternalStoreFreeSpace ()

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

abstract String getFastbootProductType ()

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

abstract String getFastbootProductVariant ()

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

abstract String getFastbootSerialNumber ()

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

abstract String getFastbootVariable (String variableName)

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

abstract IFileEntry getFileEntry (String path)

ডিভাইসে একটি রিমোট ফাইলের একটি রেফারেন্স পুনরুদ্ধার করুন।

abstract IDevice getIDevice ()

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

abstract long getIntProperty (String name, long defaultValue)

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

abstract long getLastExpectedRebootTimeMillis ()

System.currentTimeMillis() দ্বারা ফেরত দেওয়া EPOCH-এর পর থেকে ট্রেডফেড API গুলি শেষবার কখন রিবুট করেছিল তা মিলিসেকেন্ডে ফেরত পাঠায়।

abstract int getLaunchApiLevel ()

ডিভাইসের প্রথম চালু হওয়া API লেভেলটি পান।

abstract InputStreamSource getLogcat ()

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

abstract InputStreamSource getLogcat (int maxBytes)

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

abstract InputStreamSource getLogcatDump ()

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

abstract InputStreamSource getLogcatSince (long date)

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

abstract String getMountPoint (String mountName)

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

abstract ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)

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

abstract getMountPointInfo ()

ডিভাইসের /proc/mounts-এ তথ্যের একটি পার্সড সংস্করণ ফেরত পাঠায়।

abstract long getPartitionFreeSpace (String partition)

ডিভাইস পার্টিশনে ফাঁকা স্থানের পরিমাণ নির্ধারণের জন্য সহায়ক পদ্ধতি।

abstract ProcessInfo getProcessByName (String processName)

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

abstract String getProcessPid (String process)

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

abstract String getProductType ()

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

abstract String getProductVariant ()

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

abstract String getProperty (String name)

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

abstract ITestDevice.RecoveryMode getRecoveryMode ()

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

abstract String getSerialNumber ()

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

abstract getTombstones ()

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

abstract long getTotalMemory ()

মোট ভৌত মেমোরির আকার বাইটে অথবা অভ্যন্তরীণ ত্রুটির ক্ষেত্রে -1 দেখায়।

default String getTrackingSerial ()

ডিভাইস পরিচালনার উদ্দেশ্যে ডিভাইসটি ট্র্যাক করার জন্য ব্যবহৃত সিরিয়ালটি পান।

abstract boolean getUseFastbootErase ()

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

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

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

abstract boolean isBypassLowTargetSdkBlockSupported ()

অ্যাপ ইনস্টলেশনের সময় ডিভাইসের প্ল্যাটফর্ম লো টার্গেট SDK ব্লক বাইপাস করা সমর্থন করে কিনা তা পরীক্ষা করুন।

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 ()

ডিভাইসটি TestDeviceState.FASTBOOT অথবা TestDeviceState.FASTBOOTD এ থাকলে true ফেরত পাঠায়।

abstract boolean logAnrs ( ITestLogger logger)

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

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

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

abstract void mountDebugfs ()

ডিবাগগুলি মাউন্ট করুন।

abstract void nonBlockingReboot ()

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

abstract void postBootSetup ()

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

default void postInvocationTearDown ()

এই পদ্ধতিটি অবচিত। পরিবর্তে postInvocationTearDown(Throwable) ব্যবহার করুন।

abstract void postInvocationTearDown (Throwable invocationException)

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

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

ডিভাইস নির্দিষ্ট করার জন্য অতিরিক্ত ধাপগুলির সেটআপ প্রয়োজন যা ইনভোকেশন ফ্লো-এর আগে ডিভাইসে কার্যকর করা হবে।

abstract boolean pullDir (String deviceFilePath, File localDir)

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

abstract boolean pullDir (String deviceFilePath, File localDir, int userId)

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

abstract File pullFile (String remoteFilePath, int userId)

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

abstract File pullFile (String remoteFilePath)

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

abstract boolean pullFile (String remoteFilePath, File localFile)

ডিভাইস থেকে একটি ফাইল উদ্ধার করে।

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

ডিভাইস থেকে একটি ফাইল উদ্ধার করে।

abstract String pullFileContents (String remoteFilePath)

ডিভাইস থেকে একটি ফাইল উদ্ধার করে এবং বিষয়বস্তু ফেরত দেয়।

abstract File pullFileFromExternal (String remoteFilePath)

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

abstract boolean pushDir (File localDir, String deviceFilePath, int userId)

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

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

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

abstract boolean pushDir (File localDir, String deviceFilePath)

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

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

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

abstract boolean pushFile (File localFile, String deviceFilePath)

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

abstract boolean pushFile (File localFile, String deviceFilePath, int userId)

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

abstract boolean pushString (String contents, String deviceFilePath)

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

abstract void reboot ()

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

abstract void reboot (String reason)

রিবুট চলাকালীন টিকে থাকার reason উল্লেখ করে ডিভাইসটিকে adb মোডে রিবুট করে।

abstract void rebootIntoBootloader ()

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

abstract void rebootIntoFastbootd ()

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

abstract void rebootIntoRecovery ()

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

abstract void rebootIntoSideload (boolean autoReboot)

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

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

abstract void rebootIntoSideload ()

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

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

abstract void rebootUntilOnline ()

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

abstract void rebootUntilOnline (String reason)

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

abstract void rebootUserspace ()

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

abstract void rebootUserspaceUntilOnline ()

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

abstract void remountSystemReadOnly ()

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

abstract void remountSystemWritable ()

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

abstract void remountVendorReadOnly ()

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

abstract void remountVendorWritable ()

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

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

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

abstract boolean runInstrumentationTests ( IRemoteAndroidTestRunner runner, listeners)

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

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

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

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

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

abstract void setDate (Date date)

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

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

abstract void setOptions ( TestDeviceOptions options)

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

abstract boolean setProperty (String propKey, String propValue)

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

abstract void setRecovery ( IDeviceRecovery recovery)

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

abstract void setRecoveryMode ( ITestDevice.RecoveryMode mode)

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

abstract void setTrackingSerial (String trackingSerial)

ডিভাইস পরিচালনার উদ্দেশ্যে, ডিভাইসটি রেফারেন্স করার জন্য আমরা যে সিরিয়ালটি ব্যবহার করি তা ট্র্যাক করুন।

abstract void setUseFastbootErase (boolean useFastbootErase)

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

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 ()

ডিভাইসটিকে USB মোডের মাধ্যমে adb মোডে স্যুইচ করুন।

abstract boolean syncFiles (File localFileDir, String deviceFilePath)

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

abstract boolean unlockDevice ()

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

abstract void unmountDebugfs ()

ডিবাগ আনমাউন্ট করুন।

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' অবস্থায় রাখতে ব্লক করে (মনে রাখবেন এটি IDeviceRecovery থেকে আলাদা)।

abstract boolean waitForDeviceInSideload (long waitTime)

ডিভাইসটিকে 'adb sideload' অবস্থায় রাখার জন্য ব্লক করা হচ্ছে

abstract boolean waitForDeviceNotAvailable (long waitTime)

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

abstract void waitForDeviceOnline ()

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

abstract void waitForDeviceOnline (long waitTime)

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

abstract boolean waitForDeviceShell (long waitTime)

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

ধ্রুবক

অজানা_API_স্তর

public static final int UNKNOWN_API_LEVEL

API লেভেল সনাক্ত করা না গেলে ডিফল্ট মান

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

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

CheckApiLevel AgainstNextRelease

public abstract boolean checkApiLevelAgainstNextRelease (int strictMinLevel)

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

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

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

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

ক্লিয়ারলগক্যাট

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

থ্রো
RuntimeException যদি ডিভাইসটির অস্বাভাবিক বুট হওয়ার কারণ থাকে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

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

public abstract boolean deviceSoftRestartedSince (long utcEpochTime, 
                TimeUnit timeUnit)

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

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

timeUnit TimeUnit : প্রদত্ত utcEpochTime এর জন্য সময়ের একক TimeUnit

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

থ্রো
RuntimeException যদি ডিভাইসটির অস্বাভাবিক বুট হওয়ার কারণ থাকে
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

AdbRoot নিষ্ক্রিয় করুন

public abstract boolean disableAdbRoot ()

adb রুট বন্ধ করে।

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

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

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

ফাইল বিদ্যমান আছে

public abstract boolean doesFileExist (String deviceFilePath)

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

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

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

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

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

public abstract boolean enableAdbRoot ()

adb root চালু করে। "enable-root" সেটিং "false" হলে, একটি বার্তা লগ করবে এবং root সক্রিয় না করেই ফিরে আসবে।

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

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

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

এক্সিকিউট অ্যাডবিকমান্ড

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

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

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

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

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

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

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

এক্সিকিউট অ্যাডবিকমান্ড

public abstract String executeAdbCommand (String... commandArgs)

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

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

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

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

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

এক্সিকিউট অ্যাডবিকমান্ড

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

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

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

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

envMap : কমান্ডের জন্য পরিবেশ নির্ধারণ করতে হবে

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

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

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

executeAdbV2কমান্ড

public abstract CommandResult executeAdbV2Command (long timeout, 
                 envMap, 
                String... commandArgs)

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

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

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

envMap : কমান্ডের জন্য পরিবেশ নির্ধারণ করতে হবে

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

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

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

executeAdbV2কমান্ড

public abstract CommandResult executeAdbV2Command (String... commandArgs)

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

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

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

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

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

executeAdbV2কমান্ড

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

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

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

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

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

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

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

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

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

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

ডিভাইসটি ইতিমধ্যেই ফাস্টবুট মোডে থাকা অবস্থায় ব্যবহার করা হবে বলে আশা করা হচ্ছে।

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

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

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

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

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

public abstract CommandResult executeFastbootCommand (String... commandArgs)

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

ডিভাইসটি ইতিমধ্যেই ফাস্টবুট মোডে থাকা অবস্থায় ব্যবহার করা হবে বলে আশা করা হচ্ছে।

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

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

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

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

public abstract CommandResult executeLongFastbootCommand (String... commandArgs)

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

executeFastbootCommand(String) মতোই, তবে দীর্ঘ সময়সীমা ব্যবহার করে।

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

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

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

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

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

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

executeFastbootCommand(String) মতোই, তবে দীর্ঘ সময়সীমা ব্যবহার করে।

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

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

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

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

এক্সিকিউটশেলকম্যান্ড

public abstract String executeShellCommand (String command)

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

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

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

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

এক্সিকিউটশেলকম্যান্ড

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 যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং পুনরুদ্ধার করা না যায়।

এক্সিকিউটশেলকম্যান্ড

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 যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং পুনরুদ্ধার করা না যায়।

এক্সিকিউটশেলকম্যান্ড

public abstract void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

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

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

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

receiver IShellOutputReceiver : শেল আউটপুটকে নির্দেশ করার জন্য IShellOutputReceiver

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

এক্সিকিউটশেলভি২কমান্ড

public abstract CommandResult executeShellV2Command (String command)

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

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

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

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

এক্সিকিউটশেলভি২কমান্ড

public abstract CommandResult executeShellV2Command (String command, 
                OutputStream pipeToOutput)

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

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

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

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

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

এক্সিকিউটশেলভি২কমান্ড

public abstract CommandResult executeShellV2Command (String command, 
                File pipeAsInput)

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

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

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

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

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

এক্সিকিউটশেলভি২কমান্ড

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 যদি ডিভাইসের সাথে সংযোগ বিচ্ছিন্ন হয়ে যায় এবং পুনরুদ্ধার করা না যায়।

আরও দেখুন:

এক্সিকিউটশেলভি২কমান্ড

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

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

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

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

timeUnit TimeUnit : maxTimeToOutputShellResponse এর ইউনিট

রিটার্নস
CommandResult

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

আরও দেখুন:

এক্সিকিউটশেলভি২কমান্ড

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

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

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

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

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

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

timeUnit TimeUnit : maxTimeToOutputShellResponse এর ইউনিট

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

রিটার্নস
CommandResult

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

আরও দেখুন:

এক্সিকিউটশেলভি২কমান্ড

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

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

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

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

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

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

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

timeUnit TimeUnit : maxTimeToOutputShellResponse এর ইউনিট

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

রিটার্নস
CommandResult

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

আরও দেখুন:

ফাস্টবুট ওয়াইপ পার্টিশন

public abstract CommandResult fastbootWipePartition (String partition)

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

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

ডিভাইসটি ইতিমধ্যেই ফাস্টবুট মোডে থাকা অবস্থায় ব্যবহার করা হবে বলে আশা করা হচ্ছে।

পরামিতি
partition String : মুছে ফেলার জন্য পার্টিশন

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

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

getApiLevel সম্পর্কে

public abstract int getApiLevel ()

ডিভাইসের API লেভেল পান। ডিফল্ট হিসেবে UNKNOWN_API_LEVEL থাকে।

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

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

বেসব্যান্ড ভার্সন পান

public abstract String getBasebandVersion ()

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

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

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

ব্যাটারি পান

public abstract Integer getBattery ()

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

রিটার্নস
Integer

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

public abstract boolean getBooleanProperty (String name, 
                boolean defaultValue)

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

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

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

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

থ্রো
DeviceNotAvailableException

বুটহিস্ট্রি পান

public abstract  getBootHistory ()

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

রিটার্নস
বুট সময়ের মানচিত্র (যুগের পর থেকে UTC সময় দ্বিতীয় স্থানে) এবং বুট করার কারণ

থ্রো
DeviceNotAvailableException

বুটহিস্ট্রিসিন্স পান

public abstract  getBootHistorySince (long utcEpochTime, 
                TimeUnit timeUnit)

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

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

timeUnit TimeUnit : TimeUnit

রিটার্নস
বুট সময়ের মানচিত্র (যুগের পর থেকে UTC সময় দ্বিতীয় স্থানে) এবং বুট করার কারণ

থ্রো
DeviceNotAvailableException

বুটলোডার ভার্সন পান

public abstract String getBootloaderVersion ()

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

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

রিটার্নস
String String বুটলোডার সংস্করণ অথবা যদি এটি খুঁজে না পাওয়া যায় তাহলে null

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

getBuildAlias ​​সম্পর্কে

public abstract String getBuildAlias ()

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

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

রিটার্নস
String বিল্ড উপনাম অথবা বিল্ড আইডি পুনরুদ্ধার না করা গেলে তা ফিরে পেতে হবে

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

গেটবিল্ডফ্লেভার

public abstract String getBuildFlavor ()

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

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

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getBuildId সম্পর্কে

public abstract String getBuildId ()

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

রিটার্নস
String যদি এটি পুনরুদ্ধার করা না যায়, তাহলে বিল্ড আইডি অথবা IBuildInfo.UNKNOWN_BUILD_ID

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

বিল্ডসাইনিংকিগুলি পান

public abstract String getBuildSigningKeys ()

ডিভাইসের ছবিতে সাইন ইন করতে ব্যবহৃত কী টাইপটি ফেরত পাঠায়।

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

রিটার্নস
String যদি সাইনিং কী পাওয়া যায়, অন্যথায় শূন্য।

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

ক্যাশেডডিভাইসডেস্ক্রিপ্টর পান

public abstract DeviceDescriptor getCachedDeviceDescriptor ()

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

রিটার্নস
DeviceDescriptor

ক্যাশেডডিভাইসডেস্ক্রিপ্টর পান

public abstract DeviceDescriptor getCachedDeviceDescriptor (boolean shortDescriptor)

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

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

রিটার্নস
DeviceDescriptor

getChildren সম্পর্কে

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

ডিভাইস বর্ণনাকারী পান

public abstract DeviceDescriptor getDeviceDescriptor ()

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

রিটার্নস
DeviceDescriptor

ডিভাইস বর্ণনাকারী পান

public abstract DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

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

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

রিটার্নস
DeviceDescriptor

ডিভাইসস্টেট পান

public abstract TestDeviceState getDeviceState ()

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

রিটার্নস
TestDeviceState

ডিভাইসটাইমঅফসেট পান

public abstract long getDeviceTimeOffset (Date date)

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

পরামিতি
date Date

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

থ্রো
DeviceNotAvailableException

এমুলেটরআউটপুট পান

public abstract InputStreamSource getEmulatorOutput ()

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

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

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

public abstract long getExternalStoreFreeSpace ()

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

রিটার্নস
long KB তে খালি স্থানের পরিমাণ

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

getFastbootProductType

public abstract String getFastbootProductType ()

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

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

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

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

getFastbootProductVariant সম্পর্কে

public abstract String getFastbootProductVariant ()

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

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

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

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

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

public abstract String getFastbootSerialNumber ()

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

রিটার্নস
String

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

public abstract String getFastbootVariable (String variableName)

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

পরামিতি
variableName String : ভেরিয়েবলের নাম

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

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

getFileEntry সম্পর্কে

public abstract IFileEntry getFileEntry (String path)

ডিভাইসে একটি রিমোট ফাইলের একটি রেফারেন্স পুনরুদ্ধার করুন।

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

রিটার্নস
IFileEntry প্রদত্ত path ফাইল খুঁজে না পেলে IFileEntry অথবা null

থ্রো
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getIDevice সম্পর্কে

public abstract IDevice getIDevice ()

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

A new 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:

  • If the logcat is currently being captured in the background, will return up to TestDeviceOptions.getMaxLogcatDataSize() bytes of the current contents of the background logcat capture
  • Otherwise, will return a static dump of the logcat data if device is currently responding

    রিটার্নস
    InputStreamSource

  • getLogcat

    public abstract InputStreamSource getLogcat (int maxBytes)

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

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

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

    রিটার্নস
    InputStreamSource

    getLogcatDump

    public abstract InputStreamSource getLogcatDump ()

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

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

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

    getLogcatSince

    public abstract InputStreamSource getLogcatSince (long date)

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

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

    রিটার্নস
    InputStreamSource

    getMountPoint

    public abstract String getMountPoint (String mountName)

    Returns a mount point.

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

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

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

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

    আরও দেখুন:

    getMountPointInfo

    public abstract ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)

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

    পরামিতি
    mountpoint String

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

    থ্রো
    DeviceNotAvailableException

    আরও দেখুন:

    getMountPointInfo

    public abstract  getMountPointInfo ()

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

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

    থ্রো
    DeviceNotAvailableException

    getPartitionFreeSpace

    public abstract long getPartitionFreeSpace (String partition)

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

    পরামিতি
    partition String

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    getProcessByName

    public abstract ProcessInfo getProcessByName (String processName)

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

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

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

    থ্রো
    DeviceNotAvailableException

    getProcessPid

    public abstract String getProcessPid (String process)

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

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

    রিটার্নস
    String

    থ্রো
    DeviceNotAvailableException

    getProductType

    public abstract String getProductType ()

    Convenience method to get the product type of this device.

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered, or if product type can not be determined

    getProductVariant

    public abstract String getProductVariant ()

    Convenience method to get the product variant of this device.

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    getProperty

    public abstract String getProperty (String name)

    Retrieve the given property value from the device.

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

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    getRecoveryMode

    public abstract ITestDevice.RecoveryMode getRecoveryMode ()

    Get the current recovery mode used for the device.

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

    getSerialNumber

    public abstract String getSerialNumber ()

    Convenience method to get serial number of this device.

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

    getTombstones

    public abstract  getTombstones ()

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

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

    রিটার্নস
    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 if connection with device is lost and cannot be recovered.

    isAdbTcp

    public abstract boolean isAdbTcp ()

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

    isAppEnumerationSupported

    public abstract boolean isAppEnumerationSupported ()

    Check whether platform on device supports app enumeration

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    isBypassLowTargetSdkBlockSupported

    public abstract boolean isBypassLowTargetSdkBlockSupported ()

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

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    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 if connection with device is lost and cannot be recovered.

    isDirectory

    public abstract boolean isDirectory (String deviceFilePath)

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

    পরামিতি
    deviceFilePath String

    রিটার্নস
    boolean

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    এনক্রিপশন সমর্থিত

    public abstract boolean isEncryptionSupported ()

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

    রিটার্নস
    boolean যদি ডিভাইসটি এনক্রিপশন সমর্থন করে তবে true

    থ্রো
    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 if connection with device is lost and cannot be recovered.

    postInvocationTearDown

    public void postInvocationTearDown ()

    This method is deprecated.
    Use postInvocationTearDown(Throwable) instead.

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

    postInvocationTearDown

    public abstract void postInvocationTearDown (Throwable invocationException)

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

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

    preInvocationSetup

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

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

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

    attributes MultiMap : The attributes stored in the invocation context

    থ্রো
    com.android.tradefed.targetprep.TargetSetupError
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException
    TargetSetupError

    pullDir

    public abstract boolean pullDir (String deviceFilePath, 
                    File localDir)

    Recursively pull directory contents from device.

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

    localDir File : the local directory to pull files into

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullDir

    public abstract boolean pullDir (String deviceFilePath, 
                    File localDir, 
                    int userId)

    Recursively pull directory contents from device.

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

    localDir File : the local directory to pull files into

    userId int : the user id to pull from

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract File pullFile (String remoteFilePath, 
                    int userId)

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

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

    userId int : The user id to pull from

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract File pullFile (String remoteFilePath)

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

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

    public abstract boolean pullFile (String remoteFilePath, 
                    File localFile)

    Retrieves a file off device.

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

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFile

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

    Retrieves a file off device.

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

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

    userId int : The user id to pull from

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pullFileContents

    public abstract String pullFileContents (String remoteFilePath)

    Retrieves a file off device, and returns the contents.

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

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

    থ্রো
    DeviceNotAvailableException

    pullFileFromExternal

    public abstract File pullFileFromExternal (String remoteFilePath)

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

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushDir

    public abstract boolean pushDir (File localDir, 
                    String deviceFilePath, 
                    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 if connection with device is lost and cannot be recovered.

    pushDir

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

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

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

    deviceFilePath String : the absolute file path of the remote destination

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushDir

    public abstract boolean pushDir (File localDir, 
                    String deviceFilePath)

    Recursively push directory contents to device.

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

    deviceFilePath String : the absolute file path of the remote destination

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushFile

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

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

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

    deviceFilePath String : the remote destination absolute file path

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushFile

    public abstract boolean pushFile (File localFile, 
                    String deviceFilePath)

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

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

    deviceFilePath String : the remote destination absolute file path

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    pushFile

    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 if connection with device is lost and cannot be recovered.

    pushString

    public abstract boolean pushString (String contents, 
                    String deviceFilePath)

    Push file created from a string to device

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

    deviceFilePath String : the remote destination absolute file path

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    reboot

    public abstract void reboot ()

    Reboots the device into adb mode.

    Blocks until device becomes available.

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    reboot

    public abstract void reboot (String reason)

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

    Blocks until device becomes available.

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

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

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    rebootIntoBootloader

    public abstract void rebootIntoBootloader ()

    Reboots the device into bootloader mode.

    Blocks until device is in bootloader mode.

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    rebootIntoFastbootd

    public abstract void rebootIntoFastbootd ()

    Reboots the device into fastbootd mode.

    Blocks until device is in fastbootd mode.

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    rebootIntoRecovery

    public abstract void rebootIntoRecovery ()

    Reboots the device into adb recovery mode.

    Blocks until device enters recovery

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    rebootIntoSideload

    public abstract void rebootIntoSideload (boolean autoReboot)

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

    Blocks until device enters sideload mode

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

    থ্রো
    DeviceNotAvailableException if device is not in sideload after reboot

    rebootIntoSideload

    public abstract void rebootIntoSideload ()

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

    Blocks until device enters sideload mode

    থ্রো
    DeviceNotAvailableException if device is not in sideload after reboot

    rebootUntilOnline

    public abstract void rebootUntilOnline ()

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

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    rebootUntilOnline

    public abstract void rebootUntilOnline (String reason)

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

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

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    আরও দেখুন:

    rebootUserspace

    public abstract void rebootUserspace ()

    Reboots only userspace part of device.

    Blocks until device becomes available.

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

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    rebootUserspaceUntilOnline

    public abstract void rebootUserspaceUntilOnline ()

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

    থ্রো
    DeviceNotAvailableException if device is not available after reboot

    remountSystemReadOnly

    public abstract void remountSystemReadOnly ()

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    remountSystemWritable

    public abstract void remountSystemWritable ()

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    remountVendorReadOnly

    public abstract void remountVendorReadOnly ()

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    remountVendorWritable

    public abstract void remountVendorWritable ()

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    runInstrumentationTests

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

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

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

    listeners ITestLifeCycleReceiver : the test result listener(s)

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered. ie test command failed to complete and recovery failed.

    runInstrumentationTests

    public abstract boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, 
                     listeners)

    Runs instrumentation tests, and provides device recovery.

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

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

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

    listeners : the test result listeners

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered. ie test command failed to complete and recovery failed.

    runInstrumentationTestsAsUser

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

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

    পরামিতি
    runner IRemoteAndroidTestRunner

    userId int

    listeners

    রিটার্নস
    boolean

    থ্রো
    DeviceNotAvailableException

    runInstrumentationTestsAsUser

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

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

    পরামিতি
    runner IRemoteAndroidTestRunner

    userId int

    listeners ITestLifeCycleReceiver

    রিটার্নস
    boolean

    থ্রো
    DeviceNotAvailableException

    setDate

    public abstract void setDate (Date date)

    Sets the date on device

    Note: setting date on device requires root

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    setOptions

    public abstract void setOptions (TestDeviceOptions options)

    Set the TestDeviceOptions for the device

    পরামিতি
    options TestDeviceOptions

    setProperty

    public abstract boolean setProperty (String propKey, 
                    String propValue)

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

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

    propValue String : The property value to be set.

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

    থ্রো
    com.android.tradefed.device.DeviceNotAvailableException
    DeviceNotAvailableException

    setRecovery

    public abstract void setRecovery (IDeviceRecovery recovery)

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

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

    setRecoveryMode

    public abstract void setRecoveryMode (ITestDevice.RecoveryMode mode)

    Set the current recovery mode to use for the device.

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

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

    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 if connection with device is lost and cannot be recovered.

    unlockDevice

    public abstract boolean unlockDevice ()

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

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.
    UnsupportedOperationException if encryption is not supported on the device.

    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 if connection with device is lost and cannot be recovered.

    waitForDeviceAvailable

    public abstract boolean waitForDeviceAvailable (long waitTime)

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

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

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

    থ্রো
    DeviceNotAvailableException if device is still unresponsive after waitTime expires.

    waitForDeviceAvailableInRecoverPath

    public abstract boolean waitForDeviceAvailableInRecoverPath (long waitTime)

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

    পরামিতি
    waitTime long

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceBootloader

    public abstract void waitForDeviceBootloader ()

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceInRecovery

    public abstract boolean waitForDeviceInRecovery (long waitTime)

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

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

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

    waitForDeviceInSideload

    public abstract boolean waitForDeviceInSideload (long waitTime)

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

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

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

    waitForDeviceNotAvailable

    public abstract boolean waitForDeviceNotAvailable (long waitTime)

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

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

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

    waitForDeviceOnline

    public abstract void waitForDeviceOnline ()

    Blocks until device is visible via adb. Uses default timeout

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceOnline

    public abstract void waitForDeviceOnline (long waitTime)

    Blocks until device is visible via adb.

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

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

    থ্রো
    DeviceNotAvailableException if connection with device is lost and cannot be recovered.

    waitForDeviceShell

    public abstract boolean waitForDeviceShell (long waitTime)

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

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

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