自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ABI
public
class
Abi
extends Object
implements
IAbi
java.lang.Object
|
↳ |
com.android.tradefed.testtype.Abi
|
表示 ABI 的类。
摘要
公共构造函数 |
Abi(String name, String bitness)
|
公共构造函数
ABI
public Abi (String name,
String bitness)
参数 |
name |
String |
bitness |
String |
公共方法
equals
public boolean equals (Object obj)
fromProto
public static IAbi fromProto (ConfigurationDescription.Abi protoAbi)
从 toProto()
执行反向操作以恢复对象。
参数 |
protoAbi |
ConfigurationDescription.Abi |
getBitness
public String getBitness ()
getName
public String getName ()
hashCode
public int hashCode ()
toProto
public ConfigurationDescription.Abi toProto ()
返回当前 Abi 实例的 proto 表示法。
返回 |
ConfigurationDescription.Abi |
|
toString
public String toString ()
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Abi\n===\n\n\n`\npublic\n\n\nclass\nAbi\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\n`[IAbi](../../../../../../reference/tradefed/com/android/tradefed/testtype/IAbi.html)`\n\n\n`\n\n|---|-----------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.testtype.Abi |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class representing an ABI.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Abi](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#Abi(java.lang.String,%20java.lang.String))`(String name, String bitness) ` |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` boolean` | ` `[equals](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#equals(java.lang.Object))`(Object obj) ` |\n| ` static `[IAbi](../../../../../../reference/tradefed/com/android/tradefed/testtype/IAbi.html) | ` `[fromProto](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#fromProto(com.android.tradefed.config.proto.ConfigurationDescription.Abi))`(ConfigurationDescription.Abi protoAbi) ` Inverse operation from [toProto()](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#toProto()) to get the object back. |\n| ` String` | ` `[getBitness](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#getBitness())`() ` |\n| ` String` | ` `[getName](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#getName())`() ` |\n| ` int` | ` `[hashCode](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#hashCode())`() ` |\n| ` ConfigurationDescription.Abi` | ` `[toProto](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#toProto())`() ` Returns the proto representation of the current Abi instance. |\n| ` String` | ` `[toString](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#toString())`() ` |\n\nPublic constructors\n-------------------\n\n### Abi\n\n```\npublic Abi (String name, \n String bitness)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `name` | `String` \u003cbr /\u003e |\n| `bitness` | `String` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### equals\n\n```\npublic boolean equals (Object obj)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------|-----------------|\n| `obj` | `Object` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### fromProto\n\n```\npublic static IAbi fromProto (ConfigurationDescription.Abi protoAbi)\n```\n\nInverse operation from [toProto()](../../../../../../reference/tradefed/com/android/tradefed/testtype/Abi.html#toProto()) to get the object back.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|---------------------------------------|\n| `protoAbi` | `ConfigurationDescription.Abi` \u003cbr /\u003e |\n\n| Returns ||\n|--------------------------------------------------------------------------------------|--------|\n| [IAbi](../../../../../../reference/tradefed/com/android/tradefed/testtype/IAbi.html) | \u003cbr /\u003e |\n\n### getBitness\n\n```\npublic String getBitness ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getName\n\n```\npublic String getName ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### hashCode\n\n```\npublic int hashCode ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### toProto\n\n```\npublic ConfigurationDescription.Abi toProto ()\n```\n\nReturns the proto representation of the current Abi instance.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------|--------|\n| `ConfigurationDescription.Abi` | \u003cbr /\u003e |\n\n### toString\n\n```\npublic String toString ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]