GceAvdInfo
public class GceAvdInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.cloud.GceAvdInfo |
প্রদত্ত GCE AVD ইনস্ট্যান্সের জন্য প্রাসঙ্গিক ডেটা ধারণ করার কাঠামো।
সারসংক্ষেপ
নেস্টেড ক্লাস | |
|---|---|
class | GceAvdInfo.LogFileEntry |
ক্ষেত্র | |
|---|---|
public static final List<String> | BUILD_VARS |
সরকারি নির্মাণকারী | |
|---|---|
GceAvdInfo (String instanceName, HostAndPort hostAndPort) | |
GceAvdInfo (String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status) | |
জনসাধারণের পদ্ধতি | |
|---|---|
HashMap<String, String> | getBuildVars ()GCE AVD ডিভাইসের বিল্ড ভেরিয়েবল ইনফরমেশন হ্যাশ ফেরত দিন। |
Integer | getDeviceOffset () |
ErrorIdentifier | getErrorType () |
String | getErrors () |
String | getInstanceUser () |
List< GceAvdInfo.LogFileEntry > | getLogs ()স্থানীয় বা দূরবর্তী লগ পাথ থেকে টাইপগুলোর ম্যাপ ফেরত দিন। |
String | getOxygenationDeviceId () |
boolean | getSkipDeviceLogCollection () |
GceAvdInfo.GceStatus | getStatus () |
HostAndPort | hostAndPort () |
String | instanceName () |
boolean | isIpPreconfigured () |
static GceAvdInfo | parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)GCE AVD ডিভাইসের তথ্য পাওয়ার জন্য প্রদত্ত ফাইলটি পার্স করুন। |
static List< GceAvdInfo > | parseGceInfoFromOxygenClientOutput ( CommandResult oxygenRes, TestDeviceOptions deviceOptions)লিজকৃত AVD তথ্য পাওয়ার জন্য Oxygen ক্লায়েন্ট বাইনারি থেকে প্রাপ্ত কমান্ড লাইন আউটপুট পার্স করুন। |
static GceAvdInfo | parseGceInfoFromString (String data, DeviceDescriptor descriptor, int remoteAdbPort)GCE AVD ডিভাইসের তথ্য পেতে প্রদত্ত স্ট্রিংটি পার্স করুন। |
void | setDeviceOffset (Integer deviceOffset) |
void | setErrorType ( ErrorIdentifier errorType) |
void | setErrors (String errors) |
void | setInstanceUser (String instanceUser) |
void | setIpPreconfigured (boolean isIpPreconfigured) |
void | setOxygenationDeviceId (String deviceId) |
void | setSkipBugreportCollection (boolean skipDeviceLogCollection) |
void | setSkipDeviceLogCollection (boolean skipDeviceLogCollection) |
void | setStatus ( GceAvdInfo.GceStatus status) |
String | toString () |
ক্ষেত্র
বিল্ড_ভার্স
public static final List<String> BUILD_VARS
সরকারি নির্মাণকারী
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)| প্যারামিটার | |
|---|---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)| প্যারামিটার | |
|---|---|
instanceName | String |
hostAndPort | HostAndPort |
errorType | ErrorIdentifier |
errors | String |
status | GceAvdInfo.GceStatus |
জনসাধারণের পদ্ধতি
getBuildVars
public HashMap<String, String> getBuildVars ()
GCE AVD ডিভাইসের বিল্ড ভেরিয়েবল ইনফরমেশন হ্যাশ ফেরত দিন।
সম্ভাব্য বিল্ড ভেরিয়েবল কী-গুলো BUILD_VARS-এ বর্ণনা করা হয়েছে, যেমন: build_id, build_target, branch, kernel_build_id, kernel_build_target, kernel_branch, system_build_id, system_build_target, system_branch, emulator_build_id, emulator_build_target, emulator_branch।
| ফেরত | |
|---|---|
HashMap<String, String> | |
ডিভাইস অফসেট পান
public Integer getDeviceOffset ()
| ফেরত | |
|---|---|
Integer | |
ত্রুটিগুলি পান
public String getErrors ()
| ফেরত | |
|---|---|
String | |
getInstanceUser
public String getInstanceUser ()
| ফেরত | |
|---|---|
String | |
লগ পান
public List<GceAvdInfo.LogFileEntry> getLogs ()
স্থানীয় বা দূরবর্তী লগ পাথ থেকে টাইপগুলোর ম্যাপ ফেরত দিন।
| ফেরত | |
|---|---|
List< GceAvdInfo.LogFileEntry > | |
getOxygenationDeviceId
public String getOxygenationDeviceId ()
| ফেরত | |
|---|---|
String | |
getSkipDeviceLogCollection
public boolean getSkipDeviceLogCollection ()
| ফেরত | |
|---|---|
boolean | |
হোস্টঅ্যান্ডপোর্ট
public HostAndPort hostAndPort ()
| ফেরত | |
|---|---|
HostAndPort | |
ইনস্ট্যান্সের নাম
public String instanceName ()
| ফেরত | |
|---|---|
String | |
isIpPreconfigured
public boolean isIpPreconfigured ()
| ফেরত | |
|---|---|
boolean | |
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)
GCE AVD ডিভাইসের তথ্য পাওয়ার জন্য প্রদত্ত ফাইলটি পার্স করুন।
| প্যারামিটার | |
|---|---|
f | File : GCE ড্রাইভার থেকে JSON আউটপুট পড়ার জন্য File । |
descriptor | DeviceDescriptor : যে ডিভাইসটির তথ্য প্রয়োজন, তার ডেসক্রিপ্টর। |
remoteAdbPort | int : adb সংযোগের জন্য ব্যবহৃত রিমোট পোর্ট |
| ফেরত | |
|---|---|
GceAvdInfo | ডিভাইসটি পাওয়া গেলে তার GceAvdInfo , অথবা ত্রুটি থাকলে null। |
| নিক্ষেপ | |
|---|---|
TargetSetupError | |
parseGceInfoFromOxygenClientOutput
public static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, TestDeviceOptions deviceOptions)
লিজকৃত AVD তথ্য পাওয়ার জন্য Oxygen ক্লায়েন্ট বাইনারি থেকে প্রাপ্ত কমান্ড লাইন আউটপুট পার্স করুন।
| প্যারামিটার | |
|---|---|
oxygenRes | CommandResult : অক্সিজেন ক্লায়েন্ট কমান্ড নির্বাহের CommandResult । |
deviceOptions | TestDeviceOptions : ডিভাইস অপশনগুলো বর্ণনা করে এমন TestDeviceOptions |
| ফেরত | |
|---|---|
List< GceAvdInfo > | সফলভাবে লিজ দেওয়া ডিভাইসগুলোর List । কোনো ডিভাইস লিজ দিতে ব্যর্থ হলে TargetSetupError দেখানো হবে। |
| নিক্ষেপ | |
|---|---|
TargetSetupError | |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data, DeviceDescriptor descriptor, int remoteAdbPort)
GCE AVD ডিভাইসের তথ্য পেতে প্রদত্ত স্ট্রিংটি পার্স করুন।
| প্যারামিটার | |
|---|---|
data | String : JSON স্ট্রিং। |
descriptor | DeviceDescriptor : যে ডিভাইসটির তথ্য প্রয়োজন, তার ডেসক্রিপ্টর। |
remoteAdbPort | int : adb সংযোগের জন্য ব্যবহৃত রিমোট পোর্ট |
| ফেরত | |
|---|---|
GceAvdInfo | ডিভাইসটি পাওয়া গেলে তার GceAvdInfo , অথবা ত্রুটি থাকলে null। |
| নিক্ষেপ | |
|---|---|
TargetSetupError | |
সেটডিভাইসঅফসেট
public void setDeviceOffset (Integer deviceOffset)
| প্যারামিটার | |
|---|---|
deviceOffset | Integer |
ত্রুটির ধরণ সেট করুন
public void setErrorType (ErrorIdentifier errorType)
| প্যারামিটার | |
|---|---|
errorType | ErrorIdentifier |
ত্রুটিগুলি সেট করুন
public void setErrors (String errors)
| প্যারামিটার | |
|---|---|
errors | String |
setInstanceUser
public void setInstanceUser (String instanceUser)
| প্যারামিটার | |
|---|---|
instanceUser | String |
setIpPreconfigured
public void setIpPreconfigured (boolean isIpPreconfigured)
| প্যারামিটার | |
|---|---|
isIpPreconfigured | boolean |
অক্সিজেনেশন ডিভাইস আইডি সেট করুন
public void setOxygenationDeviceId (String deviceId)
| প্যারামিটার | |
|---|---|
deviceId | String |
setSkipBugreportCollection
public void setSkipBugreportCollection (boolean skipDeviceLogCollection)
| প্যারামিটার | |
|---|---|
skipDeviceLogCollection | boolean |
setSkipDeviceLogCollection
public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)
| প্যারামিটার | |
|---|---|
skipDeviceLogCollection | boolean |
সেটস্ট্যাটাস
public void setStatus (GceAvdInfo.GceStatus status)
| প্যারামিটার | |
|---|---|
status | GceAvdInfo.GceStatus |
স্ট্রিং-এ
public String toString ()
| ফেরত | |
|---|---|
String | |
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2026-06-22 UTC-তে শেষবার আপডেট করা হয়েছে।