稀疏图像工具
public class SparseImageUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SparseImageUtil |
用于解稀疏稀疏图像的实用程序。
这段代码采用自:frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/SparseInputStream.java
概括
嵌套类 | |
---|---|
class | SparseImageUtil.SparseInputStream SparseInputStream 从上游读取并检测数据格式。 |
公共构造函数 | |
---|---|
SparseImageUtil () |
公共方法 | |
---|---|
static boolean | isSparse (File imgFile) 测试文件是否是稀疏图像。 |
static void | unsparse (File imgFile, File destFile) 解解析稀疏图像文件。 |
公共构造函数
稀疏图像工具
public SparseImageUtil ()
公共方法
稀疏
public static boolean isSparse (File imgFile)
测试文件是否是稀疏图像。
参数 | |
---|---|
imgFile | File :要测试的ERROR(/File) 。 |
退货 | |
---|---|
boolean | 如果 imgFile 是稀疏图像,则为 true。 |
不稀疏
public static void unsparse (File imgFile, File destFile)
解解析稀疏图像文件。
参数 | |
---|---|
imgFile | File : ERROR(/File) ,是稀疏图像。 |
destFile | File :将未稀疏图像写入的ERROR(/File) 。 |
投掷 | |
---|---|
| 如果 imgFile 不是稀疏图像。 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]