Home
last modified time | relevance | path

Searched refs:Pref (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DPrivacyControlsFragment.java28 import com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel.Pref;
58 private void setPreferences(Map<Pref, PrefState> prefStates) { in setPreferences() argument
65 setSwitchPreference(prefStates, Pref.MIC); in setPreferences()
66 setSwitchPreference(prefStates, Pref.CAMERA); in setPreferences()
67 setSwitchPreference(prefStates, Pref.CLIPBOARD); in setPreferences()
68 setSwitchPreference(prefStates, Pref.SHOW_PASSWORD); in setPreferences()
70 findPreference(Pref.LOCATION.getKey()) in setPreferences()
73 mViewModel.handlePrefClick(this, Pref.LOCATION, null); in setPreferences()
78 private void setSwitchPreference(Map<Pref, PrefState> prefStates, Pref prefType) { in setSwitchPreference() argument
DPrivacySubpageFragment.kt32 import com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel.Pref in <lambda>()
63 prefStates: Map<Pref, PrefState> -> in <lambda>()
153 private fun renderPrivacyControls(prefStates: Map<Pref, PrefState>) { in <lambda>()
154 fun setSwitchPreference(prefType: Pref) { in <lambda>()
164 setSwitchPreference(Pref.MIC) in <lambda>()
165 setSwitchPreference(Pref.CAMERA) in <lambda>()
166 setSwitchPreference(Pref.CLIPBOARD) in <lambda>()
167 setSwitchPreference(Pref.SHOW_PASSWORD) in <lambda>()
169 val locationEntry: Preference? = findPreference(Pref.LOCATION.key) in <lambda>()
171 privacyControlsViewModel.handlePrefClick(this, Pref.LOCATION, null) in <lambda>()
DClickableDisabledSwitchPreference.java33 import com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel.Pref;
101 Pref prefType, in setupState()
117 } else if (prefType.equals(Pref.MIC)) { in setupState()
119 } else if (prefType.equals(Pref.CAMERA)) { in setupState()
DSafetyCenterActivity.java60 import com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel.Pref;
305 if (Pref.findByKey(preferenceKey) != null) { in getParentGroupId()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DPrivacyControlsViewModel.kt64 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 …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterSearchIndexablesProvider.kt53 import com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel.Pref in <lambda>()
345 get() = Pref.values().map { it.key } in <lambda>()
348 for (pref in Pref.values()) { in <lambda>()