Home
last modified time | relevance | path

Searched refs:privacyChip (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DHeaderPrivacyIconsController.kt53 @Named(SHADE_HEADER) private val privacyChip: OngoingPrivacyChip, in onChipVisibilityRefreshed() constant in com.android.systemui.qs.HeaderPrivacyIconsController
75 private val cameraSlot = privacyChip.resources.getString(R.string.status_bar_camera) in onChipVisibilityRefreshed()
76 private val micSlot = privacyChip.resources.getString(R.string.status_bar_microphone) in onChipVisibilityRefreshed()
77 private val locationSlot = privacyChip.resources.getString(R.string.status_bar_location) in onChipVisibilityRefreshed()
104 if (privacyChip.isAttachedToWindow()) { in onChipVisibilityRefreshed()
112 privacyChip.addOnAttachStateChangeListener(attachStateChangeListener) in onChipVisibilityRefreshed()
118 privacyChip.privacyList = privacyItems in onChipVisibilityRefreshed()
138 setChipVisibility(privacyChip.privacyList.isNotEmpty()) in onChipVisibilityRefreshed()
145 privacyChip.setOnClickListener { in onChipVisibilityRefreshed()
152 privacyDialogControllerV2.showDialog(privacyChip.context, privacyChip) in onChipVisibilityRefreshed()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DHeaderPrivacyIconsControllerTest.kt57 private lateinit var privacyChip: OngoingPrivacyChip in eq() variable in com.android.systemui.qs.HeaderPrivacyIconsControllerTest
91 whenever(privacyChip.context).thenReturn(context) in eq()
92 whenever(privacyChip.resources).thenReturn(context.resources) in eq()
93 whenever(privacyChip.isAttachedToWindow).thenReturn(true) in eq()
103 privacyChip, in eq()
172 verify(privacyChip).setOnClickListener(capture(captor)) in eq()
173 captor.value.onClick(privacyChip) in eq()
185 verify(privacyChip).setOnClickListener(capture(captor)) in eq()
186 captor.value.onClick(privacyChip) in eq()
206 verify(privacyChip).setOnClickListener(capture(captor)) in eq()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/events/
DSystemStatusAnimationSchedulerImplTest.kt177 val privacyChip = createAndScheduleFakePrivacyEvent() in <lambda>() constant
186 assertEquals(0f, privacyChip.view.alpha) in <lambda>()
194 assertEquals(1f, privacyChip.view.alpha) in <lambda>()
200 assertEquals(1f, privacyChip.view.alpha) in <lambda>()
209 assertEquals(1f, privacyChip.view.alpha) in <lambda>()
231 val privacyChip = createAndScheduleFakePrivacyEvent() in <lambda>() constant
241 assertEquals(1f, privacyChip.view.alpha) in <lambda>()
261 val privacyChip = createAndScheduleFakePrivacyEvent() in <lambda>() constant
281 assertEquals(1f, privacyChip.view.alpha) in <lambda>()
300 val privacyChip = createAndScheduleFakePrivacyEvent() in <lambda>() constant
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractor.kt79 fun onPrivacyChipClicked(privacyChip: OngoingPrivacyChip) { in <lambda>()
83 privacyDialogControllerV2.showDialog(privacyChip.context, privacyChip) in <lambda>()
85 privacyDialogController.showDialog(privacyChip.context) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DStatusEvent.kt122 private var privacyChip: OngoingPrivacyChip? = null variable in PrivacyEvent
128 privacyChip = v in context()
150 privacyChip?.contentDescription = other.contentDescription in updateFromEvent()
151 privacyChip?.privacyList = other.privacyItems in updateFromEvent()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractorTest.kt56 @Mock private lateinit var privacyChip: OngoingPrivacyChip variable in com.android.systemui.shade.domain.interactor.PrivacyChipInteractorTest
63 whenever(privacyChip.context).thenReturn(this.context) in setUp()
138 underTest.onPrivacyChipClicked(privacyChip) in onPrivacyChipClicked_safetyCenterEnabled()
149 underTest.onPrivacyChipClicked(privacyChip) in onPrivacyChipClicked_safetyCenterDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyDialogControllerV2.kt227 fun showDialog(context: Context, privacyChip: OngoingPrivacyChip? = null) { in showDialog()
291 if (privacyChip != null) { in showDialog()
292 val controller = getPrivacyDialogController(privacyChip) in showDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/
DShadeHeaderViewModel.kt137 fun onPrivacyChipClicked(privacyChip: OngoingPrivacyChip) { in <lambda>()
138 privacyChipInteractor.onPrivacyChipClicked(privacyChip) in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeHeader.kt585 OngoingPrivacyChip(context, null).also { privacyChip -> in PrivacyChip() method
586 privacyChip.privacyList = privacyList in PrivacyChip()
587 privacyChip.setOnClickListener { viewModel.onPrivacyChipClicked(privacyChip) } in PrivacyChip()