Home
last modified time | relevance | path

Searched refs:PrivacyItem (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DPrivacyChipBuilderTest.kt36 val bar2 = PrivacyItem(Privacy.TYPE_CAMERA, PrivacyApplication( in testGenerateAppsList()
38 val bar3 = PrivacyItem(Privacy.TYPE_LOCATION, PrivacyApplication( in testGenerateAppsList()
40 val foo0 = PrivacyItem(Privacy.TYPE_MICROPHONE, PrivacyApplication( in testGenerateAppsList()
42 val baz1 = PrivacyItem(Privacy.TYPE_CAMERA, PrivacyApplication( in testGenerateAppsList()
63 val appCamera = PrivacyItem(PrivacyType.TYPE_CAMERA, in testOrder()
66 PrivacyItem(PrivacyType.TYPE_MICROPHONE, in testOrder()
69 PrivacyItem(PrivacyType.TYPE_LOCATION, in testOrder()
DPrivacyItemControllerTest.kt79 private lateinit var argCaptor: ArgumentCaptor<List<PrivacyItem>> in capture()
133 val item1 = PrivacyItem(PrivacyType.TYPE_CAMERA, in testPrivacyItemsAggregated()
135 val item2 = PrivacyItem(PrivacyType.TYPE_MICROPHONE, in testPrivacyItemsAggregated()
153 PrivacyItem(PrivacyType.TYPE_CAMERA, in testDistinctItems()
155 PrivacyItem(PrivacyType.TYPE_CAMERA, in testDistinctItems()
159 PrivacyItem(PrivacyType.TYPE_CAMERA, in testDistinctItems()
172 PrivacyItem(PrivacyType.TYPE_CAMERA, in testSimilarItemsDifferentTimeStamp()
174 PrivacyItem(PrivacyType.TYPE_CAMERA, in testSimilarItemsDifferentTimeStamp()
200 doReturn(emptyList<PrivacyItem>()).`when`(privacyItemMonitor).getActivePrivacyItems() in testMultipleCallbacksAreUpdated()
218 doReturn(emptyList<PrivacyItem>()).`when`(privacyItemMonitor).getActivePrivacyItems() in testRemoveCallback()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/data/repository/
DFakePrivacyChipRepository.kt21 import com.android.systemui.privacy.PrivacyItem
31 private val _privacyItems: MutableStateFlow<List<PrivacyItem>> = MutableStateFlow(emptyList())
44 fun setPrivacyItems(value: List<PrivacyItem>) { in setPrivacyItems()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DSystemEventCoordinator.kt29 import com.android.systemui.privacy.PrivacyItem
129 var currentPrivacyItems = listOf<PrivacyItem>()
130 var previousPrivacyItems = listOf<PrivacyItem>()
133 override fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) { in onPrivacyItemsChanged()
157 private fun uniqueItemsMatch(one: List<PrivacyItem>, two: List<PrivacyItem>): Boolean { in uniqueItemsMatch()
DStatusEvent.kt25 import com.android.systemui.privacy.PrivacyItem in <lambda>()
121 var privacyItems: List<PrivacyItem> = listOf()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyItemController.kt54 internal var privacyList = emptyList<PrivacyItem>()
183 private fun processNewList(list: List<PrivacyItem>): List<PrivacyItem> { in processNewList()
208 private infix fun PrivacyItem.isIn(list: List<PrivacyItem>): Boolean { in isIn()
217 fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) in onPrivacyItemsChanged()
224 private val list: List<PrivacyItem>
DMediaProjectionPrivacyItemMonitor.kt64 private val privacyItems = mutableListOf<PrivacyItem>()
126 private fun makePrivacyItem(info: MediaProjectionInfo): PrivacyItem { in makePrivacyItem()
131 return PrivacyItem(PrivacyType.TYPE_MEDIA_PROJECTION, app, now) in makePrivacyItem()
134 private fun logItemActive(item: PrivacyItem, active: Boolean) { in logItemActive()
172 override fun getActivePrivacyItems(): List<PrivacyItem> { in getActivePrivacyItems()
DAppOpsPrivacyItemMonitor.kt182 override fun getActivePrivacyItems(): List<PrivacyItem> { in <lambda>()
206 private fun toPrivacyItemLocked(appOpItem: AppOpItem): PrivacyItem? { in <lambda>()
223 return PrivacyItem(type, app, appOpItem.timeStartedElapsed, appOpItem.isDisabled) in <lambda>()
DPrivacyItemMonitor.kt24 fun getActivePrivacyItems(): List<PrivacyItem> in startListening()
DPrivacyChipBuilder.kt20 class PrivacyChipBuilder(private val context: Context, itemsList: List<PrivacyItem>) {
DPrivacyItem.kt60 data class PrivacyItem( in getName() class
DOngoingPrivacyChip.kt49 var privacyList = emptyList<PrivacyItem>() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/logging/
DPrivacyLogger.kt27 import com.android.systemui.privacy.PrivacyItem
58 fun logRetrievedPrivacyItemsList(list: List<PrivacyItem>) { in logRetrievedPrivacyItemsList()
66 fun logPrivacyItemsToHold(list: List<PrivacyItem>) { in logPrivacyItemsToHold()
176 private fun listToString(list: List<PrivacyItem>): String { in listToString()
177 return list.joinToString(separator = ", ", transform = PrivacyItem::log) in listToString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepository.kt28 import com.android.systemui.privacy.PrivacyItem in <lambda>()
45 val privacyItems: StateFlow<List<PrivacyItem>> in <lambda>()
83 override val privacyItems: StateFlow<List<PrivacyItem>> =
87 override fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractor.kt24 import com.android.systemui.privacy.PrivacyItem in <lambda>()
46 val privacyItems: StateFlow<List<PrivacyItem>> = repository.privacyItems in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractorTest.kt26 import com.android.systemui.privacy.PrivacyItem
78 PrivacyItem( in isChipVisible_updates()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepositoryTest.kt31 import com.android.systemui.privacy.PrivacyItem
127 PrivacyItem( in privacyItems_updates()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/
DShadeHeaderViewModel.kt31 import com.android.systemui.privacy.PrivacyItem in <lambda>()
81 val privacyItems: StateFlow<List<PrivacyItem>> = privacyChipInteractor.privacyItems in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DHeaderPrivacyIconsController.kt24 import com.android.systemui.privacy.PrivacyItem
117 override fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) { in onChipVisibilityRefreshed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java52 import com.android.systemui.privacy.PrivacyItem;
704 public void onPrivacyItemsChanged(List<PrivacyItem> privacyItems) { in onPrivacyItemsChanged()
708 private void updatePrivacyItems(List<PrivacyItem> items) { in updatePrivacyItems()
712 for (PrivacyItem item : items) { in updatePrivacyItems()