Home
last modified time | relevance | path

Searched refs:CellBroadcastSettings (Results 1 – 23 of 23) sorted by relevance

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastSettingsTest.java54 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
73 CellBroadcastActivityTestCase<CellBroadcastSettings> {
98 super(CellBroadcastSettings.class); in CellBroadcastSettingsTest()
106 CellBroadcastSettings.resetResourcesCache(); in setUp()
111 CellBroadcastSettings.resetResourcesCache(); in tearDown()
158 .putBoolean(CellBroadcastSettings.KEY_RECEIVE_CMAS_IN_SECOND_LANGUAGE, true) in testResetAllPreferences()
159 .putBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, false).apply(); in testResetAllPreferences()
162 .getBoolean(CellBroadcastSettings.KEY_RECEIVE_CMAS_IN_SECOND_LANGUAGE, in testResetAllPreferences()
166 .getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true)); in testResetAllPreferences()
171 CellBroadcastSettings.resetAllPreferences(mContext); in testResetAllPreferences()
[all …]
DCellBroadcastConfigServiceTest.java51 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
259 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingChannelsDefault()
260 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in testEnablingChannelsDefault()
261 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true); in testEnablingChannelsDefault()
262 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in testEnablingChannelsDefault()
332 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingPresidential()
348 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, false); in testEnablingPresidential()
352 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingPresidential()
363 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingExtreme()
364 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in testEnablingExtreme()
[all …]
DCellBroadcastAlertServiceTest.java70 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
221 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testHandleCellBroadcastIntent()
249 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testHandleCellBroadcastIntentDomesticRoaming()
277 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testHandleCellBroadcastIntentInternationalRoaming()
305 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testHandleCellBroadcastIntentNonRoaming()
332 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testHandleCellBroadcastIntentNonMatchedScope()
373 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testShowNewAlertChildAbductionWithDefaultLanguage()
398 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE); in testShowNewAlertChildAbduction()
399 enablePreference(CellBroadcastSettings.KEY_RECEIVE_CMAS_IN_SECOND_LANGUAGE); in testShowNewAlertChildAbduction()
446 CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testShouldDisplayMessageForSubUsers()
[all …]
DCellBroadcastAlertReminderTest.java35 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
151 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testStartServicePlayAlertReminderForWatch()
175 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalNull()
182 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalStringNotANumber()
189 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalZero()
196 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalOneButNotFirstTime()
DCellBroadcastBootupConfigTest.java55 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
148 CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in testConfiguration()
149 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, in testConfiguration()
150 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, in testConfiguration()
151 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, in testConfiguration()
152 CellBroadcastSettings.KEY_ENABLE_PUBLIC_SAFETY_MESSAGES, in testConfiguration()
153 CellBroadcastSettings.KEY_ENABLE_EMERGENCY_ALERTS, in testConfiguration()
DCellBroadcastReceiverTest.java60 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
450 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, !enable)) in testTryCdmaSetCatergory()
456 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, !enable)) in testTryCdmaSetCatergory()
462 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, !enable)) in testTryCdmaSetCatergory()
468 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, !enable)) in testTryCdmaSetCatergory()
727 Resources res = CellBroadcastSettings.getResourcesByOperator(mContext, subId, ""); in testResourceOnRoamingState()
729 res = CellBroadcastSettings.getResourcesByOperator(mContext, subId, "530"); in testResourceOnRoamingState()
741 res = CellBroadcastSettings.getResourcesByOperator(mContext, subId, ""); in testResourceOnRoamingState()
744 res = CellBroadcastSettings.getResourcesByOperator(mContext, subId, "334"); in testResourceOnRoamingState()
752 res = CellBroadcastSettings.getResourcesByOperator(mContext, subId, ""); in testResourceOnRoamingState()
[all …]
DCellBroadcastListItemTest.java38 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
79 CellBroadcastSettings.sResourcesCacheByOperator.put(FAKE_MCC, mMockResources); in setUp()
DCellBroadcastServiceTestCase.java47 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
263 CellBroadcastSettings.resetResourcesCache(); in setUp()
DCellBroadcastAlertDialogTest.java67 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
178 CellBroadcastSettings.resetResourcesCache(); in setUp()
184 CellBroadcastSettings.resetResourcesCache(); in tearDown()
535 CellBroadcastSettings.resetResourcesCache(); in testPulsationRestartOnNewIntent()
737 CellBroadcastSettings.sResourcesCacheByOperator.put("334090", mockResources2); in testTitleOnNonDefaultSubId()
DCellBroadcastAlertAudioTest.java51 import com.android.cellbroadcastreceiver.CellBroadcastSettings;
130 enablePreference(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE); in setUp()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSearchIndexableProvider.java70 CellBroadcastSettings.class.getName(),
91 return CellBroadcastSettings.getResourcesForDefaultSubId(getContextMethod()); in getResourcesMethod()
101 return CellBroadcastSettings.isTestAlertsToggleVisible(getContextMethod()); in isTestAlertsToggleVisible()
172 raw[COLUMN_INDEX_RAW_KEY] = CellBroadcastSettings.class.getSimpleName(); in queryRawData()
175 raw[COLUMN_INDEX_RAW_INTENT_TARGET_CLASS] = CellBroadcastSettings.class.getName(); in queryRawData()
191 CellBroadcastSettings.KEY_ENABLE_CMAS_PRESIDENTIAL_ALERTS; in queryNonIndexableKeys()
195 if (!CellBroadcastSettings.getResources(getContextMethod(), in queryNonIndexableKeys()
200 CellBroadcastSettings.KEY_ENABLE_ALERT_SPEECH; in queryNonIndexableKeys()
208 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS; in queryNonIndexableKeys()
216 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS; in queryNonIndexableKeys()
[all …]
DCellBroadcastAlertService.java238 .getBoolean(CellBroadcastSettings.KEY_ENABLE_PUBLIC_SAFETY_MESSAGES_FULL_SCREEN, in shouldDisplayFullScreenMessage()
256 if (tm.getEmergencyCallbackMode() && CellBroadcastSettings.getResourcesByOperator( in shouldDisplayMessage()
304 final String secondLanguageCode = CellBroadcastSettings.getResources(mContext, in shouldDisplayMessage()
310 CellBroadcastSettings.KEY_RECEIVE_CMAS_IN_SECOND_LANGUAGE, false); in shouldDisplayMessage()
428 CellBroadcastSettings in handleCellBroadcastIntent()
473 && CellBroadcastSettings.getResourcesByOperator(mContext, cbm.getSubscriptionId(), in showNewAlert()
488 Resources res = CellBroadcastSettings.getResources(mContext, cbm.getSubscriptionId()); in showNewAlert()
529 Resources res = CellBroadcastSettings.getResourcesByOperator(mContext, subId, in isChannelEnabled()
538 .getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in isChannelEnabled()
550 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in isChannelEnabled()
[all …]
DCellBroadcastConfigService.java144 if (CellBroadcastSettings.hasAnyPreferenceChanged(c)) { in onHandleIntent()
148 Intent settingsIntent = new Intent(c, CellBroadcastSettings.class); in onHandleIntent()
181 if (!CellBroadcastSettings.hasAnyPreferenceChanged(getApplicationContext())) { in onHandleIntent()
199 CellBroadcastSettings.resetAllPreferences(getApplicationContext()); in resetAllPreferences()
284 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true)); in getCellBroadcastChannelsConfig()
289 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true)); in getCellBroadcastChannelsConfig()
294 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true)); in getCellBroadcastChannelsConfig()
297 ? (CellBroadcastSettings in getCellBroadcastChannelsConfig()
300 : (CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in getCellBroadcastChannelsConfig()
301 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, in getCellBroadcastChannelsConfig()
[all …]
DCellBroadcastAlertDialog.java271 mWarningIcon = CellBroadcastSettings.getResourcesByOperator( in initDrawableAndImageView()
525 if (!CellBroadcastSettings.getResourcesForDefaultSubId(getApplicationContext()) in onCreate()
526 .getBoolean(R.bool.mute_by_physical_button) && !CellBroadcastSettings in onCreate()
583 Resources res = CellBroadcastSettings.getResourcesByOperator(getApplicationContext(), in onCreate()
738 Resources res = CellBroadcastSettings.getResourcesByOperator(getApplicationContext(), in getLinkMethod()
851 Resources res = CellBroadcastSettings.getResourcesByOperator(context, in updateAlertText()
1009 if (CellBroadcastSettings.getResourcesForDefaultSubId(getApplicationContext()) in onNewIntent()
1153 if (prefs.getBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, true)) { in dismiss()
1155 prefs.edit().putBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, false) in dismiss()
1187 if (message != null && CellBroadcastSettings.getResourcesByOperator(getApplicationContext(), in onKeyDown()
[all …]
DCellBroadcastReceiver.java131 return CellBroadcastSettings.getResourcesForDefaultSubId(mContext); in getResourcesMethod()
514 String newIntervalDefault = CellBroadcastSettings.getResourcesForDefaultSubId(mContext) in adjustReminderInterval()
523 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, newIntervalDefault); in adjustReminderInterval()
570 sp.edit().putBoolean(CellBroadcastSettings.KEY_OVERRIDE_DND_SETTINGS_CHANGED, in initializeSharedPreference()
580 sp.edit().putBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in initializeSharedPreference()
704 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable) in tryCdmaSetCategory()
710 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable) in tryCdmaSetCategory()
716 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable).apply(); in tryCdmaSetCategory()
721 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable).apply(); in tryCdmaSetCategory()
DCellBroadcastAlertReminder.java154 String prefStr = prefs.getString(CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, in queueAlertReminder()
183 Resources res = CellBroadcastSettings.getResourcesByOperator(context, subId, in queueAlertReminder()
199 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true)); in queueAlertReminder()
DCellBroadcastSettings.java64 public class CellBroadcastSettings extends CollapsingToolbarBaseActivity { class
71 public CellBroadcastSettings.CellBroadcastSettingsFragment mCellBroadcastSettingsFragment;
435 Resources res = CellBroadcastSettings.getResourcesForDefaultSubId(getContext()); in onCreatePreferences()
574 updateVibrationPreference(sp.getBoolean(CellBroadcastSettings.KEY_OVERRIDE_DND, in onCreatePreferences()
601 Resources res = CellBroadcastSettings.getResourcesForDefaultSubId(getContext()); in updatePreferenceVisibility()
780 Resources res = CellBroadcastSettings.getResourcesForDefaultSubId(getContext()); in initReminderIntervalList()
818 Resources res = CellBroadcastSettings.getResourcesForDefaultSubId(getContext()); in initAlertsToggleDisabledAsNeeded()
827 Resources res = CellBroadcastSettings.getResourcesForDefaultSubId(getContext()); in setAlertsEnabled()
DCellBroadcastOptOutActivity.java69 Intent intent = new Intent(activity, CellBroadcastSettings.class); in showOptOutDialog()
DCellBroadcastAlertAudio.java388 mEnableVibrate = prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true) in handleStartIntent()
393 Resources res = CellBroadcastSettings.getResourcesByOperator(getApplicationContext(), in handleStartIntent()
468 Resources res = CellBroadcastSettings.getResourcesByOperator(getApplicationContext(), in playAlertTone()
DCellBroadcastListItem.java75 Resources res = CellBroadcastSettings.getResourcesByOperator(mContext, in bind()
DCellBroadcastChannelManager.java405 getChannelRangesMapFromResoures(CellBroadcastSettings in initAsNeeded()
420 getChannelRangesMapFromResoures(CellBroadcastSettings in initAsNeeded()
DCellBroadcastListActivity.java101 if (CellBroadcastSettings.getResourcesForDefaultSubId(getApplicationContext()).getBoolean( in onCreate()
523 Intent intent = new Intent(getActivity(), CellBroadcastSettings.class); in onOptionsItemSelected()
DCellBroadcastContentProvider.java484 if (CellBroadcastSettings.getResourcesByOperator(context, message.getSubscriptionId(), in writeMessageToSmsInbox()