Home
last modified time | relevance | path

Searched refs:mEmergencyNumberUtils (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/emergency/
DEmergencyGestureNumberOverridePreference.java43 private EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGestureNumberOverridePreference
68 mEmergencyNumberUtils = new EmergencyNumberUtils(context); in init()
80 final String defaultNumber = mEmergencyNumberUtils.getDefaultPoliceNumber(); in onBindDialogView()
82 final String number = mEmergencyNumberUtils.getPoliceNumber(); in onBindDialogView()
93 mEmergencyNumberUtils.setEmergencyNumberOverride(input); in onClick()
95 mEmergencyNumberUtils.setEmergencyNumberOverride( in onClick()
96 mEmergencyNumberUtils.getDefaultPoliceNumber()); in onClick()
DEmergencyGestureSoundPreferenceController.java33 EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGestureSoundPreferenceController
37 mEmergencyNumberUtils = new EmergencyNumberUtils(context); in EmergencyGestureSoundPreferenceController()
57 return mEmergencyNumberUtils.getEmergencyGestureSoundEnabled(); in isChecked()
62 mEmergencyNumberUtils.setEmergencySoundEnabled(isChecked); in setChecked()
DEmergencyGesturePreferenceController.java39 EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGesturePreferenceController
45 mEmergencyNumberUtils = new EmergencyNumberUtils(context); in EmergencyGesturePreferenceController()
71 return mEmergencyNumberUtils.getEmergencyGestureEnabled(); in isChecked()
76 mEmergencyNumberUtils.setEmergencyGestureEnabled(isChecked); in onSwitchChanged()
DEmergencyGestureNumberOverridePreferenceController.java46 EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGestureNumberOverridePreferenceController
54 mEmergencyNumberUtils = new EmergencyNumberUtils(context); in EmergencyGestureNumberOverridePreferenceController()
75 String number = mEmergencyNumberUtils.getPoliceNumber(); in getSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/emergency/
DEmergencyGestureSoundPreferenceControllerTest.java45 private EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGestureSoundPreferenceControllerTest
54 mController.mEmergencyNumberUtils = mEmergencyNumberUtils; in setUp()
83 when(mEmergencyNumberUtils.getEmergencyGestureSoundEnabled()).thenReturn(true); in isChecked_configIsSet_shouldReturnTrue()
91 when(mEmergencyNumberUtils.getEmergencyGestureSoundEnabled()).thenReturn(false); in isChecked_configIsSetToFalse_shouldReturnFalse()
DEmergencyGesturePreferenceControllerTest.java48 private EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGesturePreferenceControllerTest
58 mController.mEmergencyNumberUtils = mEmergencyNumberUtils; in setUp()
87 when(mEmergencyNumberUtils.getEmergencyGestureEnabled()).thenReturn(true); in isChecked_configIsNotSet_shouldReturnTrue()
95 when(mEmergencyNumberUtils.getEmergencyGestureEnabled()).thenReturn(false); in isChecked_configIsSet_shouldReturnFalse()
DEmergencyGestureNumberOverridePreferenceControllerTest.java51 private EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyGestureNumberOverridePreferenceControllerTest
88 mController.mEmergencyNumberUtils = mEmergencyNumberUtils; in updateState_shouldLoadNumberFromSettings()
89 when(mEmergencyNumberUtils.getPoliceNumber()).thenReturn("123"); in updateState_shouldLoadNumberFromSettings()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/service/
DEmergencyActionForegroundService.java63 private EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyActionForegroundService
76 mEmergencyNumberUtils = new EmergencyNumberUtils(this); in onCreate()
84 if (mTelecomManager == null || mEmergencyNumberUtils == null) { in onStartCommand()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/
DEmergencyActionFragment.java56 private EmergencyNumberUtils mEmergencyNumberUtils; field in EmergencyActionFragment
67 mEmergencyNumberUtils = new EmergencyNumberUtils(context); in onAttach()
92 mEmergencyNumberUtils.getPoliceNumber())); in onCreateView()