/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 150 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/ |
D | StatusEvent.kt | 121 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()
|
D | SystemEventCoordinator.kt | 86 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/ |
D | MediaProjectionPrivacyItemMonitor.kt | 64 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()
|
D | PrivacyItemController.kt | 217 fun onPrivacyItemsChanged(privacyItems: List<PrivacyItem>) in onPrivacyItemsChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/ |
D | PrivacyChipRepository.kt | 45 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/ |
D | PrivacyChipInteractor.kt | 46 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/ |
D | PrivacyChipRepositoryTest.kt | 114 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/ |
D | HeaderPrivacyIconsController.kt | 117 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/ |
D | PrivacyChipInteractorTest.kt | 76 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/ |
D | FakePrivacyChipRepository.kt | 32 override val privacyItems = _privacyItems constant in com.android.systemui.shade.data.repository.FakePrivacyChipRepository
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/ |
D | ShadeHeaderViewModel.kt | 81 val privacyItems: StateFlow<List<PrivacyItem>> = privacyChipInteractor.privacyItems in <lambda>() constant
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarPolicy.java | 704 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/ |
D | ShadeHeader.kt | 580 val privacyList by viewModel.privacyItems.collectAsStateWithLifecycle() in PrivacyChip()
|