Home
last modified time | relevance | path

Searched refs:privacyItems (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitorTest.kt150 val privacyItems = appOpsPrivacyItemMonitor.getActivePrivacyItems() in testVoiceActivationPrivacyItems() constant
151 assertEquals(1, privacyItems.size) in testVoiceActivationPrivacyItems()
152 assertEquals(PrivacyType.TYPE_MICROPHONE, privacyItems[0].privacyType) in testVoiceActivationPrivacyItems()
243 val privacyItems = appOpsPrivacyItemMonitor.getActivePrivacyItems() in testNotSendingLocationWhenLocationDisabled() constant
244 assertEquals(1, privacyItems.size) in testNotSendingLocationWhenLocationDisabled()
245 assertEquals(PrivacyType.TYPE_CAMERA, privacyItems[0].privacyType) in testNotSendingLocationWhenLocationDisabled()
303 val privacyItems = appOpsPrivacyItemMonitor.getActivePrivacyItems() in testListFilterCurrentUser() constant
305 assertEquals(1, privacyItems.size) in testListFilterCurrentUser()
306 assertEquals(PrivacyType.TYPE_CAMERA, privacyItems[0].privacyType) in testListFilterCurrentUser()
307 assertEquals(otherUserUid, privacyItems[0].application.uid) in testListFilterCurrentUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DStatusEvent.kt121 var privacyItems: List<PrivacyItem> = listOf() variable in PrivacyEvent
126 v.privacyList = privacyItems in context()
133 return "${javaClass.simpleName}(forceVisible=$forceVisible, privacyItems=$privacyItems)" in toString()
137 return other is PrivacyEvent && (other.privacyItems != privacyItems || in shouldUpdateFromEvent()
147 privacyItems = other.privacyItems in updateFromEvent()
151 privacyChip?.privacyList = other.privacyItems in updateFromEvent()
DSystemEventCoordinator.kt86 event.privacyItems = privacyStateListener.currentPrivacyItems in notifyPrivacyItemsChanged()
88 val items = PrivacyChipBuilder(context, event.privacyItems).joinTypes() in notifyPrivacyItemsChanged()
133 override fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) { in onPrivacyItemsChanged()
134 if (uniqueItemsMatch(privacyItems, currentPrivacyItems)) { in onPrivacyItemsChanged()
136 } else if (privacyItems.isEmpty()) { in onPrivacyItemsChanged()
141 currentPrivacyItems = privacyItems in onPrivacyItemsChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DMediaProjectionPrivacyItemMonitor.kt64 private val privacyItems = mutableListOf<PrivacyItem>() constant in com.android.systemui.privacy.MediaProjectionPrivacyItemMonitor
112 privacyItems.add(item) in onMediaProjectionStartedLocked()
121 privacyItems.removeAt(privacyItems.indexOfFirst { it.application == item.application }) in onMediaProjectionStoppedLocked()
166 privacyItems.forEach { logItemActive(it, false) } in setListeningStateLocked()
167 privacyItems.clear() in setListeningStateLocked()
174 if (DEBUG) Log.d(TAG, "getActivePrivacyItems: privacyItems=$privacyItems") in getActivePrivacyItems()
175 return privacyItems.toList() in getActivePrivacyItems()
197 ipw.println("Privacy Items: $privacyItems") in dump()
DPrivacyItemController.kt217 fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) in onPrivacyItemsChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepository.kt45 val privacyItems: StateFlow<List<PrivacyItem>> in <lambda>() constant
83 override val privacyItems: StateFlow<List<PrivacyItem>> = constant
87 override fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) { in <lambda>()
88 trySend(privacyItems) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractor.kt46 val privacyItems: StateFlow<List<PrivacyItem>> = repository.privacyItems in <lambda>() constant
56 privacyItems in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepositoryTest.kt114 val actual by collectLastValue(underTest.privacyItems) in privacyItems_updates()
125 val privacyItems = in privacyItems_updates() constant
132 callback.onPrivacyItemsChanged(privacyItems) in privacyItems_updates()
133 assertThat(actual).isEqualTo(privacyItems) in privacyItems_updates()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DHeaderPrivacyIconsController.kt117 override fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) { in onChipVisibilityRefreshed()
118 privacyChip.privacyList = privacyItems in onChipVisibilityRefreshed()
119 setChipVisibility(privacyItems.isNotEmpty()) in onChipVisibilityRefreshed()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractorTest.kt76 val privacyItems = in isChipVisible_updates() constant
83 privacyChipRepository.setPrivacyItems(privacyItems) in isChipVisible_updates()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/data/repository/
DFakePrivacyChipRepository.kt32 override val privacyItems = _privacyItems constant in com.android.systemui.shade.data.repository.FakePrivacyChipRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/
DShadeHeaderViewModel.kt81 val privacyItems: StateFlow<List<PrivacyItem>> = privacyChipInteractor.privacyItems in <lambda>() constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java704 public void onPrivacyItemsChanged(List<PrivacyItem> privacyItems) { in onPrivacyItemsChanged() argument
705 updatePrivacyItems(privacyItems); in onPrivacyItemsChanged()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeHeader.kt580 val privacyList by viewModel.privacyItems.collectAsStateWithLifecycle() in PrivacyChip()