Stay organized with collections
Save and categorize content based on your preferences.
OptimizationInfo
class OptimizationInfo
Encapsulates information about the optimizations performed on a dex file. Note that the info is only meant for debugging and is not guaranteed to be stable across releases and/or devices.
Summary
Public methods |
Boolean |
Returns whether the dex file is fully ahead-of-time compiled.
|
Boolean |
Returns whether the dex file is in an optimal state.
|
Boolean |
Returns whether the dex file is verified.
|
Public methods
isFullyCompiled
fun isFullyCompiled(): Boolean
Returns whether the dex file is fully ahead-of-time compiled.
isOptimized
fun isOptimized(): Boolean
Returns whether the dex file is in an optimal state. Currently, this means the dex file is either ahead-of-time compiled with a profile or fully ahead-of-time compiled.
isVerified
fun isVerified(): Boolean
Returns whether the dex file is verified.
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DexFile.OptimizationInfo\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOptimizationInfo\n================\n\n```\nclass OptimizationInfo\n```\n\n|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [dalvik.system.DexFile.OptimizationInfo](#) |\n\nEncapsulates information about the optimizations performed on a dex file. Note that the info is only meant for debugging and is not guaranteed to be stable across releases and/or devices.\n\nSummary\n-------\n\n| Public methods ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isFullyCompiled](#isFullyCompiled())`()` Returns whether the dex file is fully ahead-of-time compiled. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isOptimized](#isOptimized())`()` Returns whether the dex file is in an optimal state. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isVerified](#isVerified())`()` Returns whether the dex file is verified. |\n\nPublic methods\n--------------\n\n### isFullyCompiled\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isFullyCompiled(): Boolean\n```\n\nReturns whether the dex file is fully ahead-of-time compiled. \n\n### isOptimized\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isOptimized(): Boolean\n```\n\nReturns whether the dex file is in an optimal state. Currently, this means the dex file is either ahead-of-time compiled with a profile or fully ahead-of-time compiled. \n\n### isVerified\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isVerified(): Boolean\n```\n\nReturns whether the dex file is verified."]]