/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSearchIndexableProvider.java | 63 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 …]
|
D | CellBroadcastConfigService.java | 132 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()
|
D | CellBroadcastAlertService.java | 317 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 …]
|
D | CellBroadcastReceiver.java | 109 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()
|
D | CellBroadcastAlertDialog.java | 152 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()
|
D | CellBroadcastAlertReminder.java | 131 String prefStr = prefs.getString(CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in queueAlertReminder() 158 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true)); in queueAlertReminder()
|
D | CellBroadcastAlertAudio.java | 279 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()
|
D | CellBroadcastChannelManager.java | 118 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context) in CellBroadcastChannelRange() 219 CellBroadcastSettings.getResourcesForDefaultSmsSubscriptionId(context) in getCellBroadcastChannelRanges()
|
D | CellBroadcastSettings.java | 46 public class CellBroadcastSettings extends Activity { class 299 boolean hideTestAlertMenu = CellBroadcastSettings.isFeatureEnabled(getContext(), in onCreatePreferences()
|
D | CellBroadcastOptOutActivity.java | 61 Intent intent = new Intent(activity, CellBroadcastSettings.class); in showOptOutDialog()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastConfigServiceTest.java | 196 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 …]
|
D | CellBroadcastSettingsTest.java | 75 Intent intent = new Intent(mContext, CellBroadcastSettings.class); in createActivityIntent()
|