Home
last modified time | relevance | path

Searched refs:lifecycleOwner (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/
DRepeatWhenAttached.kt80 var lifecycleOwner: ViewLifecycleOwner? = null in <lambda>() variable
85 lifecycleOwner?.onDestroy() in <lambda>()
86 lifecycleOwner = in <lambda>()
96 lifecycleOwner?.onDestroy() in <lambda>()
97 lifecycleOwner = null in <lambda>()
103 lifecycleOwner = in <lambda>()
115 lifecycleOwner?.onDestroy() in <lambda>()
116 lifecycleOwner = null in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DLifecycleEffect.kt30 val lifecycleOwner = LocalLifecycleOwner.current constant
31 DisposableEffect(lifecycleOwner) { in <lambda>()
40 lifecycleOwner.lifecycle.addObserver(observer) in <lambda>()
43 lifecycleOwner.lifecycle.removeObserver(observer) in <lambda>()
DOnBackEffect.kt56 val lifecycleOwner = LocalLifecycleOwner.current in OnBackEffect() constant
57 DisposableEffect(lifecycleOwner, backDispatcher) { in OnBackEffect()
59 backDispatcher.addCallback(lifecycleOwner, backCallback) in OnBackEffect()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DDreamUniverse.kt36 private val lifecycleOwner = constant in com.android.egg.landroid.DreamUniverse
100 composeView.setViewTreeLifecycleOwner(lifecycleOwner) in onAttachedToWindow()
101 composeView.setViewTreeSavedStateRegistryOwner(lifecycleOwner) in onAttachedToWindow()
108 lifecycleOwner.onCreate() in onCreate()
113 lifecycleOwner.onStart() in onDreamingStarted()
118 lifecycleOwner.onStop() in onDreamingStopped()
/frameworks/base/packages/SystemUI/src/com/android/systemui/compose/
DComposeInitializer.kt67 val lifecycleOwner = ViewLifecycleOwner(root) in onAttachedToWindow() constant
80 get() = lifecycleOwner.lifecycle in onAttachedToWindow()
86 lifecycleOwner.onCreate() in onAttachedToWindow()
90 root.setViewTreeLifecycleOwner(lifecycleOwner) in onAttachedToWindow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DTileJavaAdapter.kt37 lifecycleOwner: LifecycleOwner, in bind()
41 lifecycleOwner.lifecycleScope.launch { in bind()
42 lifecycleOwner.repeatOnLifecycle(Lifecycle.State.RESUMED) { in bind()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
DFlows.kt62 lifecycleOwner: LifecycleOwner, in collectLatestWithLifecycle()
65 ): Job = lifecycleOwner.lifecycleScope.launch { in collectLatestWithLifecycle()
66 lifecycleOwner.repeatOnLifecycle(minActiveState) { in collectLatestWithLifecycle()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DTaskPreviewSizeProviderTest.kt45 private val lifecycleOwner = mock<LifecycleOwner>() constant in com.android.systemui.mediaprojection.appselector.view.TaskPreviewSizeProviderTest
82 createSizeProvider().also { it.onCreate(lifecycleOwner) } in size_phoneDisplayAndRotate_emitsSizeUpdate()
93 val sizeProvider = createSizeProvider().also { it.onCreate(lifecycleOwner) } in size_phoneDisplayAndRotateConfigurationChange_returnsUpdatedSize()
107 sizeProvider.onCreate(lifecycleOwner) in size_phoneDisplayAndRotateConfigurationChange_afterChooserDestroyed_doesNotUpdate()
108 sizeProvider.onDestroy(lifecycleOwner) in size_phoneDisplayAndRotateConfigurationChange_afterChooserDestroyed_doesNotUpdate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/dagger/
DAmbientTouchModule.kt32 fun providesLifecycle(lifecycleOwner: LifecycleOwner): Lifecycle { in providesLifecycle()
33 return lifecycleOwner.lifecycle in providesLifecycle()
DAmbientTouchComponent.kt36 @BindsInstance lifecycleOwner: LifecycleOwner,
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/presenter/
DDemo.kt32 val lifecycleOwner = LocalLifecycleOwner.current in <lambda>() constant
45 update = { view -> sliceData.observe(lifecycleOwner, view) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanelSlicesAdapter.java52 public VolumePanelSlicesAdapter(LifecycleOwner lifecycleOwner, in VolumePanelSlicesAdapter() argument
54 mLifecycleOwner = lifecycleOwner; in VolumePanelSlicesAdapter()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/satellite/
DSatelliteDialogUtils.kt51 lifecycleOwner: LifecycleOwner, in <lambda>()
56 context, lifecycleOwner.lifecycleScope, type, allowClick) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayService.java245 DreamOverlayLifecycleOwner lifecycleOwner, in DreamOverlayService() argument
287 mComplicationComponent = complicationComponentFactory.create(lifecycleOwner, host, in DreamOverlayService()
291 mDreamOverlayComponent = dreamOverlayComponentFactory.create(lifecycleOwner, in DreamOverlayService()
293 mAmbientTouchComponent = ambientTouchComponentFactory.create(lifecycleOwner, in DreamOverlayService()
297 mLifecycleRegistry = lifecycleOwner.getRegistry(); in DreamOverlayService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/
DRepeatWhenAttachedTest.kt307 val lifecycleOwner: LifecycleOwner, constant in com.android.systemui.lifecycle.Invocation
310 get() = lifecycleOwner.lifecycle.currentState
320 override suspend fun invoke(lifecycleOwner: LifecycleOwner, view: View) { in invoke()
321 _invocations.add(Invocation(lifecycleOwner)) in invoke()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/ui/composable/
DQuickSettingsScene.kt219 val lifecycleOwner = LocalLifecycleOwner.current in QuickSettingsScene() constant
221 remember(lifecycleOwner, viewModel) { in QuickSettingsScene()
222 viewModel.getFooterActionsViewModel(lifecycleOwner) in QuickSettingsScene()
392 lifecycleOwner = lifecycleOwner, in QuickSettingsScene()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ui/viewmodel/
DQuickSettingsSceneViewModel.kt116 fun getFooterActionsViewModel(lifecycleOwner: LifecycleOwner): FooterActionsViewModel { in getFooterActionsViewModel()
120 return footerActionsViewModelFactory.create(lifecycleOwner) in getFooterActionsViewModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/dagger/
DDreamOverlayModule.java188 static Lifecycle providesLifecycle(LifecycleOwner lifecycleOwner) { in providesLifecycle() argument
189 return lifecycleOwner.getLifecycle(); in providesLifecycle()
DDreamOverlayComponent.java50 @BindsInstance LifecycleOwner lifecycleOwner, in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/dagger/
DComplicationComponent.kt19 @BindsInstance lifecycleOwner: LifecycleOwner,
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/
DCallbackController.java50 lifecycle.addObserver((LifecycleEventObserver) (lifecycleOwner, event) -> { in observe()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/footer/ui/viewmodel/
DFooterActionsViewModel.kt117 fun create(lifecycleOwner: LifecycleOwner): FooterActionsViewModel { in <lambda>()
119 if (lifecycleOwner.lifecycle.currentState == Lifecycle.State.DESTROYED) { in <lambda>()
125 lifecycleOwner.lifecycle.addObserver( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationHostViewController.java69 LifecycleOwner lifecycleOwner, in ComplicationHostViewController() argument
74 mLifecycleOwner = lifecycleOwner; in ComplicationHostViewController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/
DShadeSceneViewModel.kt131 fun getFooterActionsViewModel(lifecycleOwner: LifecycleOwner): FooterActionsViewModel { in <lambda>()
135 return footerActionsViewModelFactory.create(lifecycleOwner) in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeScene.kt375 val lifecycleOwner = LocalLifecycleOwner.current in SplitShade() constant
377 remember(lifecycleOwner, viewModel) { viewModel.getFooterActionsViewModel(lifecycleOwner) } in SplitShade()
517 lifecycleOwner = lifecycleOwner, in SplitShade()

12