/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSearchIndexableProvider.java | 70 CellBroadcastSettings.class.getName(), 91 return CellBroadcastSettings.getResources(getContextMethod(), in getResourcesMethod() 102 return CellBroadcastSettings.isTestAlertsToggleVisible(getContextMethod()); in isTestAlertsToggleVisible() 165 raw[COLUMN_INDEX_RAW_KEY] = CellBroadcastSettings.class.getSimpleName(); in queryRawData() 168 raw[COLUMN_INDEX_RAW_INTENT_TARGET_CLASS] = CellBroadcastSettings.class.getName(); in queryRawData() 184 CellBroadcastSettings.KEY_ENABLE_CMAS_PRESIDENTIAL_ALERTS; in queryNonIndexableKeys() 192 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS; in queryNonIndexableKeys() 200 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS; in queryNonIndexableKeys() 207 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS; in queryNonIndexableKeys() 214 CellBroadcastSettings.KEY_ENABLE_AREA_UPDATE_INFO_ALERTS; in queryNonIndexableKeys() [all …]
|
D | CellBroadcastAlertService.java | 186 if (tm.getEmergencyCallbackMode() && CellBroadcastSettings.getResources( in shouldDisplayMessage() 215 final String secondLanguageCode = CellBroadcastSettings.getResources(mContext, in shouldDisplayMessage() 221 CellBroadcastSettings.KEY_RECEIVE_CMAS_IN_SECOND_LANGUAGE, false); in shouldDisplayMessage() 305 if (CellBroadcastSettings.getResources(mContext, in handleCellBroadcastIntent() 354 && CellBroadcastSettings.getResources(mContext, cbm.getSubscriptionId()) in showNewAlert() 386 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in isChannelEnabled() 392 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in isChannelEnabled() 394 .getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, false); in isChannelEnabled() 425 && CellBroadcastSettings.isTestAlertsToggleVisible( in isChannelEnabled() 428 .getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, in isChannelEnabled() [all …]
|
D | CellBroadcastConfigService.java | 130 Resources res = CellBroadcastSettings.getResources(this, subId); in enableCellBroadcastChannels() 137 CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in enableCellBroadcastChannels() 146 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in enableCellBroadcastChannels() 149 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true); in enableCellBroadcastChannels() 152 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in enableCellBroadcastChannels() 155 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in enableCellBroadcastChannels() 156 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, false); in enableCellBroadcastChannels() 160 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_AREA_UPDATE_INFO_ALERTS, in enableCellBroadcastChannels() 164 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_PUBLIC_SAFETY_MESSAGES, in enableCellBroadcastChannels() 167 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_STATE_LOCAL_TEST_ALERTS, in enableCellBroadcastChannels() [all …]
|
D | CellBroadcastReceiver.java | 112 return CellBroadcastSettings.getResources(mContext, in getResourcesMethod() 227 String newIntervalDefault = CellBroadcastSettings.getResources(mContext, in adjustReminderInterval() 237 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, newIntervalDefault); in adjustReminderInterval() 277 sp.edit().putBoolean(CellBroadcastSettings.KEY_OVERRIDE_DND_SETTINGS_CHANGED, in initializeSharedPreference() 287 sp.edit().putBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in initializeSharedPreference() 401 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable) in tryCdmaSetCategory() 407 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable) in tryCdmaSetCategory() 413 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable).apply(); in tryCdmaSetCategory() 418 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable).apply(); in tryCdmaSetCategory()
|
D | CellBroadcastAlertDialog.java | 218 mWarningIcon = CellBroadcastSettings.getResources(getApplicationContext(), in initDrawableAndImageView() 303 if (!CellBroadcastSettings.getResources(getApplicationContext(), in onCreate() 358 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), in onCreate() 478 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), subId); in getLinkMethod() 546 Resources res = CellBroadcastSettings.getResources(context, message.getSubscriptionId()); in updateAlertText() 639 if (CellBroadcastSettings.getResources(getApplicationContext(), in onNewIntent() 748 if (prefs.getBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, true)) { in dismiss() 750 prefs.edit().putBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, false) in dismiss() 775 if (CellBroadcastSettings.getResources(getApplicationContext(), message.getSubscriptionId()) in onKeyDown() 814 prefs.edit().putBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, true) in hideOptOutDialog() [all …]
|
D | CellBroadcastSettings.java | 56 public class CellBroadcastSettings extends Activity { class 304 Resources res = CellBroadcastSettings.getResources(getContext(), in onCreatePreferences() 407 updateVibrationPreference(sp.getBoolean(CellBroadcastSettings.KEY_OVERRIDE_DND, in onCreatePreferences() 434 Resources res = CellBroadcastSettings.getResources(getContext(), in updatePreferenceVisibility() 517 Resources res = CellBroadcastSettings.getResources( in initReminderIntervalList() 607 Resources res = CellBroadcastSettings.getResources(context, in isTestAlertsToggleVisible()
|
D | CellBroadcastAlertReminder.java | 138 String prefStr = prefs.getString(CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, in queueAlertReminder() 165 Resources res = CellBroadcastSettings.getResources(context, subId); in queueAlertReminder() 180 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true)); in queueAlertReminder()
|
D | CellBroadcastAlertAudio.java | 329 mEnableVibrate = prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_ALERT_VIBRATE, true) in onStartCommand() 334 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), mSubId); in onStartCommand() 408 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), mSubId); in playAlertTone()
|
D | CellBroadcastChannelManager.java | 136 CellBroadcastSettings.getResources(context, subId) in CellBroadcastChannelRange() 250 CellBroadcastSettings.getResources(mContext, mSubId).getStringArray(key); in getCellBroadcastChannelRanges()
|
D | CellBroadcastOptOutActivity.java | 61 Intent intent = new Intent(activity, CellBroadcastSettings.class); in showOptOutDialog()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastConfigServiceTest.java | 38 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 213 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingChannelsDefault() 214 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in testEnablingChannelsDefault() 215 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, true); in testEnablingChannelsDefault() 216 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, true); in testEnablingChannelsDefault() 307 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingPresidential() 328 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, false); in testEnablingPresidential() 349 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingPresidential() 378 setPreference(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, true); in testEnablingExtreme() 379 setPreference(CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, true); in testEnablingExtreme() [all …]
|
D | CellBroadcastAlertReminderTest.java | 32 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 148 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalNull() 155 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalStringNotANumber() 162 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalZero() 169 CellBroadcastSettings.KEY_ALERT_REMINDER_INTERVAL, null); in testQueueAlertReminderReturnFalseIfIntervalOneButNotFirstTime()
|
D | CellBroadcastSettingsTest.java | 32 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 42 CellBroadcastActivityTestCase<CellBroadcastSettings> { 49 super(CellBroadcastSettings.class); in CellBroadcastSettingsTest() 113 Intent intent = new Intent(mContext, CellBroadcastSettings.class); in createActivityIntent()
|
D | CellBroadcastAlertDialogTest.java | 49 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 203 prefs.edit().putBoolean(CellBroadcastSettings.KEY_SHOW_CMAS_OPT_OUT_DIALOG, true).apply(); in testDismissWithDialog() 242 CellBroadcastSettings.setUseResourcesForSubId(false); in testCopyMessageToClipboard() 265 CellBroadcastSettings.setUseResourcesForSubId(false); in testAnimationHandler()
|
D | CellBroadcastReceiverTest.java | 50 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 355 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable); in testTryCdmaSetCatergory() 360 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable); in testTryCdmaSetCatergory() 365 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable); in testTryCdmaSetCatergory() 370 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable); in testTryCdmaSetCatergory()
|
D | CellBroadcastServiceTestCase.java | 37 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 154 CellBroadcastSettings.setUseResourcesForSubId(false); in setUp()
|
D | CellBroadcastAlertServiceTest.java | 37 import com.android.cellbroadcastreceiver.CellBroadcastSettings; 222 prefs.edit().putBoolean(CellBroadcastSettings.KEY_RECEIVE_CMAS_IN_SECOND_LANGUAGE, true) in testShowNewAlertChildAbduction()
|