A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
MergedZipEntryCollection
public
class
MergedZipEntryCollection
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.zip.MergedZipEntryCollection
|
Unisci le singole voci ZIP in un file ZIP di grandi dimensioni in blocchi per ridurre al minimo i tentativi di download.
Riepilogo
Costanti
public static final int HEADER_SIZE
Valore costante:
2078
(0x0000081e)
MAX_GAP
public static final int MAX_GAP
Valore costante:
4096
(0x00001000)
MAX_GAP_PERCENTAGE
public static final double MAX_GAP_PERCENTAGE
Valore costante:
0,15
Costruttori pubblici
MergedZipEntryCollection
public MergedZipEntryCollection ( zipEntries)
Metodi pubblici
createCollections
public static createCollections ( zipEntries)
getEndOffset
public long getEndOffset ()
getStartOffset
public long getStartOffset ()
getZipEntries
public getZipEntries ()
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# MergedZipEntryCollection\n========================\n\n\n`\npublic\n\n\nclass\nMergedZipEntryCollection\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.zip.MergedZipEntryCollection |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nMerge individual zip entries in a large zip file into blocks to minimize the download attempts.\n\nSummary\n-------\n\n| ### Constants ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [HEADER_SIZE](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#HEADER_SIZE) |\n| `int` | [MAX_GAP](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#MAX_GAP) |\n| `double` | [MAX_GAP_PERCENTAGE](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#MAX_GAP_PERCENTAGE) |\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[MergedZipEntryCollection](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#MergedZipEntryCollection(\u003cany\u003e))`(` zipEntries) |\n\n| ### Public methods ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static ` | ` `[createCollections](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#createCollections(\u003cany\u003e))`(` zipEntries) |\n| ` long` | ` `[getEndOffset](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#getEndOffset())`() ` |\n| ` long` | ` `[getStartOffset](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#getStartOffset())`() ` |\n| ` ` | ` `[getZipEntries](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/MergedZipEntryCollection.html#getZipEntries())`() ` |\n\nConstants\n---------\n\n### HEADER_SIZE\n\n```\npublic static final int HEADER_SIZE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2078\n(0x0000081e)\n\n\n### MAX_GAP\n\n```\npublic static final int MAX_GAP\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4096\n(0x00001000)\n\n\n### MAX_GAP_PERCENTAGE\n\n```\npublic static final double MAX_GAP_PERCENTAGE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0.15\n\n\nPublic constructors\n-------------------\n\n### MergedZipEntryCollection\n\n```\npublic MergedZipEntryCollection ( zipEntries)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------|\n| `zipEntries` | \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### createCollections\n\n```\npublic static createCollections ( zipEntries)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------|\n| `zipEntries` | \u003cbr /\u003e |\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### getEndOffset\n\n```\npublic long getEndOffset ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |\n\n### getStartOffset\n\n```\npublic long getStartOffset ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |\n\n### getZipEntries\n\n```\npublic getZipEntries ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |"]]