Stay organized with collections
Save and categorize content based on your preferences.
InstrumentationScope
enum class InstrumentationScope
Summary
Enum values
|
Instrument the classes of the current project and its library dependencies.
|
Instrument the classes of the current project only.
|
Enum values
ALL
enum val ALL : InstrumentationScope
Instrument the classes of the current project and its library dependencies.
This can't be applied to library projects, as instrumenting library dependencies will have no
effect on library consumers.
PROJECT
enum val PROJECT : InstrumentationScope
Instrument the classes of the current project only.
Libraries that this project depends on will not be instrumented.
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,["# InstrumentationScope\n====================\n\n```\nenum class InstrumentationScope\n```\n\n|---|---|-----------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[com.android.build.api.instrumentation.InstrumentationScope](#)\\\u003e ||\n| | ↳ | [com.android.build.api.instrumentation.InstrumentationScope](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [InstrumentationScope.ALL](#ENUM_VALUE:ALL), [InstrumentationScope.PROJECT](#ENUM_VALUE:PROJECT) |-----------------------------------------------------|-----------------------------------------------------------------------------| | [InstrumentationScope.ALL](#ENUM_VALUE:ALL) | Instrument the classes of the current project and its library dependencies. | | [InstrumentationScope.PROJECT](#ENUM_VALUE:PROJECT) | Instrument the classes of the current project only. | |\n\nSummary\n-------\n\n| ### Enum values ||\n|----------------------------------------------------------------------------------------------------|---|\n| [ALL](#ENUM_VALUE:ALL) Instrument the classes of the current project and its library dependencies. |\n| [PROJECT](#ENUM_VALUE:PROJECT) Instrument the classes of the current project only. |\n\nEnum values\n-----------\n\n### ALL\n\n```\nenum val ALL : InstrumentationScope\n```\n\nInstrument the classes of the current project and its library dependencies.\n\nThis can't be applied to library projects, as instrumenting library dependencies will have no\neffect on library consumers. \n\n### PROJECT\n\n```\nenum val PROJECT : InstrumentationScope\n```\n\nInstrument the classes of the current project only.\n\nLibraries that this project depends on will not be instrumented."]]