IsolationActivity

class IsolationActivity : Activity
kotlin.Any
   ↳ android.content.Context
   ↳ android.content.ContextWrapper
   ↳ android.view.ContextThemeWrapper
   ↳ android.app.Activity
   ↳ androidx.benchmark.IsolationActivity

Simple opaque activity used to reduce benchmark interference from other windows.

For example, sources of potential interference:

  • live wallpaper rendering
  • homescreen widget updates
  • hotword detection
  • status bar repaints
  • running in background (some cores may be foreground-app only)

Summary

Public constructors

Simple opaque activity used to reduce benchmark interference from other windows.

Public methods

Unit

Unit

finish is ignored! we defer until actuallyFinish is called.

Protected methods

Unit
onCreate(savedInstanceState: Bundle?)

Unit

Unit

Unit

Companion functions

Unit

Unit

Inherited extension functions

From androidx.navigation.android.app.Activity
NavController
Activity.findNavController(@IdRes viewId: Int)

Find a NavController given the id of a View and its containing Activity.

NavArgsLazy<Args>

Returns a Lazy delegate to access the Activity's extras as an Args instance.

From androidx.core.content.android.content.Context
T?

Return the handle to a system-level service by class.

Unit
Context.withStyledAttributes(set: AttributeSet? = null, attrs: IntArray, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0, block: TypedArray.() -> Unit)

Executes block on a TypedArray receiver.

Unit
Context.withStyledAttributes(@StyleRes resourceId: Int, attrs: IntArray, block: TypedArray.() -> Unit)

Executes block on a TypedArray receiver.

Companion properties

Boolean

Public constructors

<init>

IsolationActivity()

Simple opaque activity used to reduce benchmark interference from other windows.

For example, sources of potential interference:

  • live wallpaper rendering
  • homescreen widget updates
  • hotword detection
  • status bar repaints
  • running in background (some cores may be foreground-app only)

Public methods

actuallyFinish

fun actuallyFinish(): Unit

finish

fun finish(): Unit

finish is ignored! we defer until actuallyFinish is called.

Protected methods

onCreate

protected fun onCreate(savedInstanceState: Bundle?): Unit

onDestroy

protected fun onDestroy(): Unit

onPause

protected fun onPause(): Unit

onResume

protected fun onResume(): Unit

Companion functions

finishSingleton

@AnyThread fun finishSingleton(): Unit

launchSingleton

@WorkerThread fun launchSingleton(): Unit

Companion properties

resumed

var resumed: Boolean