SparseImageUtil
public class SparseImageUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SparseImageUtil |
Dienstprogramm zum Unsparse von Bildern mit geringer Dichte.
Dieser Code wird übernommen von: frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/SparseInputStream.java
Zusammenfassung
Verschachtelte Klassen | |
---|---|
class | SparseImageUtil.SparseInputStream SparseInputStream liest vom Upstream und erkennt das Datenformat. |
Öffentliche Konstrukteure | |
---|---|
SparseImageUtil () |
Öffentliche Methoden | |
---|---|
static boolean | isSparse (File imgFile) Testet, ob es sich bei der Datei um ein Sparse-Image handelt. |
static void | unsparse (File imgFile, File destFile) Entpackt eine Sparse-Bilddatei. |
Öffentliche Konstrukteure
SparseImageUtil
public SparseImageUtil ()
Öffentliche Methoden
istSparse
public static boolean isSparse (File imgFile)
Testet, ob es sich bei der Datei um ein Sparse-Image handelt.
Parameter | |
---|---|
imgFile | File : ein ERROR(/File) der getestet werden soll. |
Kehrt zurück | |
---|---|
boolean | true, wenn imgFile ein Sparse-Image ist. |
unsauber
public static void unsparse (File imgFile, File destFile)
Entpackt eine Sparse-Bilddatei.
Parameter | |
---|---|
imgFile | File : ein ERROR(/File) , das ein Sparse-Image ist. |
destFile | File : ein ERROR(/File) zum Schreiben des unsparsed Bildes. |
Wirft | |
---|---|
| wenn imgFile kein Sparse-Image ist. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Benötigte Informationen nicht gefunden"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zu umständlich/zu viele Schritte"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nicht mehr aktuell"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem mit der Übersetzung"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem mit Beispielen/Code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Sonstiges"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Leicht verständlich"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Mein Problem wurde gelöst"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Sonstiges"
}]