# FaceTester

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

*** ** * ** ***


```
public final class FaceTester
```

<br />

*** ** * ** ***

Controls a simulated `https://developer.android.com/reference/androidx/xr/arcore/Face` in unit tests. If `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#isValid()` is `false`, the `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#blendShapeValues()` will be ignored and tracking will be .

## Summary

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#getBlendShapeValues()()` a list of normalized blend shape values of facial features |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Float.html>` | `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#getConfidenceValues()()` a list of normalized values describing the confidence of blend shape values in a specific region of the face |
| `final boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#isValid()()` whether the `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#blendShapeValues()` are valid |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#setBlendShapeValues(kotlin.collections.List)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Float.html> value)` a list of normalized blend shape values of facial features |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#setConfidenceValues(kotlin.collections.List)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Float.html> value)` a list of normalized values describing the confidence of blend shape values in a specific region of the face |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#setValid(kotlin.Boolean)(boolean value)` whether the `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#blendShapeValues()` are valid |

## Public methods

### getBlendShapeValues

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

```
public final @NonNull List<@NonNull Float> getBlendShapeValues()
```

a list of normalized blend shape values of facial features

### getConfidenceValues

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

```
public final @NonNull List<@NonNull Float> getConfidenceValues()
```

a list of normalized values describing the confidence of blend shape values in a specific region of the face

### isValid

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

```
public final boolean isValid()
```

whether the `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#blendShapeValues()` are valid

### setBlendShapeValues

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

```
public final void setBlendShapeValues(@NonNull List<@NonNull Float> value)
```

a list of normalized blend shape values of facial features

### setConfidenceValues

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

```
public final void setConfidenceValues(@NonNull List<@NonNull Float> value)
```

a list of normalized values describing the confidence of blend shape values in a specific region of the face

### setValid

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

```
public final void setValid(boolean value)
```

whether the `https://developer.android.com/reference/androidx/xr/arcore/testing/FaceTester#blendShapeValues()` are valid