Home
last modified time | relevance | path

Searched refs:DevelopmentSettingsUtil (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/development/
DDevelopmentSettingsUtilTest.java58 assertThat(DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(mContext, mMockUserManager)) in isEnabled_settingsOff_isAdmin_shouldReturnFalse()
68 assertThat(DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(mContext, mMockUserManager)) in isEnabled_settingsOn_isAdmin_shouldReturnTrue()
79 assertThat(DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(mContext, mMockUserManager)) in isEnabled_settingsOn_notAdmin_shouldReturnFalse()
93 assertThat(DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(mContext, mMockUserManager)) in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse()
104 assertThat(DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(mContext, mMockUserManager)) in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue()
113 DevelopmentSettingsUtil.setDevelopmentSettingsEnabled(mContext, true); in setDevelopmentSettingsEnabled_setTrue()
124 DevelopmentSettingsUtil.setDevelopmentSettingsEnabled(mContext, false); in setDevelopmentSettingsEnabled_setFalse()
134 assertThat(DevelopmentSettingsUtil.isDeviceProvisioned(mContext)).isTrue(); in isDeviceProvisioned_true()
141 assertThat(DevelopmentSettingsUtil.isDeviceProvisioned(mContext)).isFalse(); in isDeviceProvisioned_false()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DDeveloperOptionsEntryPreferenceController.java28 import com.android.car.settings.development.DevelopmentSettingsUtil;
49 return DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(getContext(), mUserManager) in getAvailabilityStatus()
60 if (!DevelopmentSettingsUtil.isDeveloperOptionsModuleEnabled(getContext())) { in handlePreferenceClicked()
63 DevelopmentSettingsUtil.setDevelopmentSettingsEnabled(getContext(), /* enable= */ in handlePreferenceClicked()
DBuildNumberPreferenceController.java30 import com.android.car.settings.development.DevelopmentSettingsUtil;
58 DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(getContext(), mUserManager) in onResumeInternal()
73 if (!DevelopmentSettingsUtil.isDeviceProvisioned(getContext())) { in handlePreferenceClicked()
80 DevelopmentSettingsUtil.setDevelopmentSettingsEnabled(getContext(), true); in handlePreferenceClicked()
DSystemSettingsFragment.java25 import com.android.car.settings.development.DevelopmentSettingsUtil;
51 if (!DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(context,
/packages/apps/Car/Settings/src/com/android/car/settings/development/
DDevelopmentSettingsUtil.java37 public class DevelopmentSettingsUtil { class
39 private static final Logger LOG = new Logger(DevelopmentSettingsUtil.class);
41 private DevelopmentSettingsUtil() { in DevelopmentSettingsUtil() method in DevelopmentSettingsUtil
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DDeveloperOptionsEntryPreferenceControllerTest.java44 import com.android.car.settings.development.DevelopmentSettingsUtil;
140 DevelopmentSettingsUtil.setDevelopmentSettingsEnabled(mContext, enabled); in setDeveloperOptionsEnabled()
DBuildNumberPreferenceControllerTest.java46 import com.android.car.settings.development.DevelopmentSettingsUtil;
176 assertThat(DevelopmentSettingsUtil.isDevelopmentSettingsEnabled(mContext, in testHandlePreferenceClicked_devSettingsDisabled_allClicks_devSettingsEnabled()