Home
last modified time | relevance | path

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

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSearchIndexableProvider.java63 CellBroadcastSettings.class.getName(),
93 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(getContext()); in queryRawData()
117 raw[COLUMN_INDEX_RAW_KEY] = CellBroadcastSettings.class.getSimpleName(); in queryRawData()
120 raw[COLUMN_INDEX_RAW_INTENT_TARGET_CLASS] = CellBroadcastSettings.class.getName(); in queryRawData()
134 Resources res = CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(getContext()); in queryNonIndexableKeys()
139 CellBroadcastSettings.KEY_CATEGORY_DEV_SETTINGS; in queryNonIndexableKeys()
147 CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE; in queryNonIndexableKeys()
152 CellBroadcastSettings.KEY_ENABLE_ALERT_SPEECH; in queryNonIndexableKeys()
160 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS; in queryNonIndexableKeys()
165 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS; in queryNonIndexableKeys()
[all …]
DCellBroadcastConfigService.java132 CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in setCellBroadcastOnSub()
141 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in setCellBroadcastOnSub()
144 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true); in setCellBroadcastOnSub()
147 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in setCellBroadcastOnSub()
150 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, false); in setCellBroadcastOnSub()
154 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_AREA_UPDATE_INFO_ALERTS, in setCellBroadcastOnSub()
158 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_PUBLIC_SAFETY_MESSAGES, in setCellBroadcastOnSub()
161 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_STATE_LOCAL_TEST_ALERTS, in setCellBroadcastOnSub()
165 CellBroadcastSettings.KEY_ENABLE_EMERGENCY_ALERTS, true); in setCellBroadcastOnSub()
DCellBroadcastAlertService.java317 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId( in handleCellBroadcastIntent()
428 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in isChannelEnabled()
432 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_AREA_UPDATE_INFO_ALERTS, in isChannelEnabled()
438 .getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, false); in isChannelEnabled()
490 .getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, in isChannelEnabled()
503 CellBroadcastSettings.KEY_ENABLE_EMERGENCY_ALERTS, true); in isChannelEnabled()
515 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in isChannelEnabled()
521 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true); in isChannelEnabled()
527 .getBoolean(CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in isChannelEnabled()
538 .getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, in isChannelEnabled()
[all …]
DCellBroadcastReceiver.java109 if (CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context).getBoolean( in onReceiveWithPrivilege()
128 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context) in adjustReminderInterval()
137 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, newIntervalDefault); in adjustReminderInterval()
158 sp.edit().putBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in initializeSharedPreference()
213 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable) in tryCdmaSetCategory()
219 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable) in tryCdmaSetCategory()
225 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable).apply(); in tryCdmaSetCategory()
230 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable).apply(); in tryCdmaSetCategory()
DCellBroadcastAlertDialog.java152 mWarningIcon = CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId( in initDrawableAndImageView()
360 if (CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context) in updateAlertText()
474 if (prefs.getBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, true)) { in dismiss()
476 prefs.edit().putBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, false) in dismiss()
DCellBroadcastAlertReminder.java131 String prefStr = prefs.getString(CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in queueAlertReminder()
158 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true)); in queueAlertReminder()
DCellBroadcastAlertAudio.java279 mUseFullVolume = prefs.getBoolean(CellBroadcastSettings.KEY_USE_FULL_VOLUME, false); in onStartCommand()
282 mEnableVibrate = prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true); in onStartCommand()
350 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId( in playAlertTone()
DCellBroadcastChannelManager.java118 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context) in CellBroadcastChannelRange()
219 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context) in getCellBroadcastChannelRanges()
DCellBroadcastSettings.java46 public class CellBroadcastSettings extends Activity { class
299 boolean hideTestAlertMenu = CellBroadcastSettings.isFeatureEnabled(getContext(), in onCreatePreferences()
DCellBroadcastOptOutActivity.java61 Intent intent = new Intent(activity, CellBroadcastSettings.class); in showOptOutDialog()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/
DCellBroadcastConfigServiceTest.java196 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingChannelsDefault()
197 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in testEnablingChannelsDefault()
198 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true); in testEnablingChannelsDefault()
199 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in testEnablingChannelsDefault()
290 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingPresidential()
311 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, false); in testEnablingPresidential()
332 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingPresidential()
361 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingExtreme()
362 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in testEnablingExtreme()
383 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, false); in testEnablingExtreme()
[all …]
DCellBroadcastSettingsTest.java75 Intent intent = new Intent(mContext, CellBroadcastSettings.class); in createActivityIntent()