D | PrivacyControlsViewModel.kt | 64 enum class Pref(val key: String, @StringRes val titleResId: Int) { class in com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel 78 val controlStateLiveData: SmartUpdateMediatorLiveData<Map<Pref, PrefState>> = 80 SmartUpdateMediatorLiveData<@JvmSuppressWildcards Map<Pref, PrefState>>(), 84 val shownPrefs = mutableMapOf<Pref, PrefState>() in onUpdate() 85 shownPrefs[Pref.CAMERA] = in onUpdate() 91 shownPrefs[Pref.MIC] = in onUpdate() 97 shownPrefs[Pref.CLIPBOARD] = in onUpdate() 99 shownPrefs[Pref.SHOW_PASSWORD] = in onUpdate() 125 fun handlePrefClick(fragment: Fragment, pref: Pref, admin: EnforcedAdmin?) { in handlePrefClick() 127 Pref.MIC -> toggleSensorOrShowAdmin(fragment, Sensors.MICROPHONE, admin) in handlePrefClick() [all …]
|