# FakeDevicePerformance

# FakeDevicePerformance

Artifact:[androidx.core:core-performance-testing](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/performance/testing/FakeDevicePerformance.kt+class:androidx.core.performance.testing.FakeDevicePerformance)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/performance/testing/FakeDevicePerformance "View this page in Java")

<br />

```
class FakeDevicePerformance : DevicePerformance
```

<br />

*** ** * ** ***

A DevicePerformance that immediately returns the`mediaPerformanceClass`.

## Summary

|                                                                                                                          ### Public constructors                                                                                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [FakeDevicePerformance](https://developer.android.com/reference/kotlin/androidx/core/performance/testing/FakeDevicePerformance#FakeDevicePerformance(kotlin.Int))`(mediaPerformanceClass: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                               ### Public properties                                |
|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [mediaPerformanceClass](https://developer.android.com/reference/kotlin/androidx/core/performance/testing/FakeDevicePerformance#mediaPerformanceClass()) The media performance class value to return. |

## Public constructors

### FakeDevicePerformance

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)  

```
FakeDevicePerformance(mediaPerformanceClass: Int)
```  

|                                              Parameters                                              |
|------------------------------------------------------------------------------------------------------|----------------------------------------------|
| `mediaPerformanceClass: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The media performance class value to return. |

## Public properties

### mediaPerformanceClass

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)  

```
open val mediaPerformanceClass: Int
```

The media performance class value to return.