Home
last modified time | relevance | path

Searched refs:mSensorToggle (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/
DSensorState.java55 private PreferenceCompat mSensorToggle; field in SensorState
64 if (mSensorToggle != null) {
65 mSensorToggle.setChecked(!enabled);
97 mSensorToggle = mPreferenceCompatManager.getOrCreatePrefCompat(KEY_SENSOR_TOGGLE); in addSensorToggleWithInfo()
98 mSensorToggle.setTitle(ResourcesUtil.getString(mContext, mToggle.toggleTitle)); in addSensorToggleWithInfo()
99 mSensorToggle.setType(PreferenceCompat.TYPE_SWITCH); in addSensorToggleWithInfo()
100 mSensorToggle.setSummary(ResourcesUtil.getString(mContext, "sensor_toggle_description")); in addSensorToggleWithInfo()
103 mSensorToggle.setChecked( in addSensorToggleWithInfo()
116 mUIUpdateCallback.notifyUpdate(getStateIdentifier(), mSensorToggle); in addSensorToggleWithInfo() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DSensorFragment.java67 protected SwitchWithSoundPreference mSensorToggle; field in SensorFragment
162 mSensorToggle = new SwitchWithSoundPreference(themedContext); in addSensorToggleWithInfo()
163 screen.addPreference(mSensorToggle); in addSensorToggleWithInfo()
164 mSensorToggle.setKey(SENSOR_TOGGLE_KEY); in addSensorToggleWithInfo()
165 mSensorToggle.setTitle(mToggle.toggleTitle); in addSensorToggleWithInfo()
166 mSensorToggle.setSummary(R.string.sensor_toggle_description); in addSensorToggleWithInfo()
167 mSensorToggle.setFragment(SensorToggleInfoFragment.class.getName()); in addSensorToggleWithInfo()
168 mSensorToggle.getExtras().putObject(SensorToggleInfoFragment.TOGGLE_EXTRA, mToggle); in addSensorToggleWithInfo()
192 mSensorToggle.setChecked(!softwarePrivacyEnabled && !physicalPrivacyEnabled); in updateSensorPrivacyState()
193 mSensorToggle.setEnabled(!physicalPrivacyEnabled); in updateSensorPrivacyState()
[all …]
DMicrophoneFragment.java101 remoteCategory.setVisible(!mSensorToggle.isChecked()); in updateHardwareToggle()