Home
last modified time | relevance | path

Searched refs:isTestingMode (Results 1 – 5 of 5) sorted by relevance

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java298 boolean isTestingMode = CellBroadcastReceiver.isTestingMode( in onPrepareOptionsMenu()
304 menu.findItem(MENU_DELETE_ALL).setVisible(!mAdapter.isEmpty() && !isTestingMode); in onPrepareOptionsMenu()
305 menu.findItem(MENU_SHOW_ALL_MESSAGES).setVisible(isTestingMode in onPrepareOptionsMenu()
307 menu.findItem(MENU_SHOW_REGULAR_MESSAGES).setVisible(isTestingMode in onPrepareOptionsMenu()
DCellBroadcastReceiver.java208 setTestingMode(!isTestingMode(mContext)); in onReceive()
209 int msgId = (isTestingMode(mContext)) ? R.string.testing_mode_enabled in onReceive()
212 .onChangedTestMode(isTestingMode(mContext)); in onReceive()
416 && CellBroadcastReceiver.isTestingMode(context)) { in resetSettingsAsNeeded()
466 public static boolean isTestingMode(Context context) { in isTestingMode() method in CellBroadcastReceiver
DCellBroadcastSettings.java677 || CellBroadcastReceiver.isTestingMode(getContext())) { in updatePreferenceVisibility()
691 || CellBroadcastReceiver.isTestingMode(getContext())) { in updatePreferenceVisibility()
953 || CellBroadcastReceiver.isTestingMode(context)) in isTestAlertsToggleVisible()
DCellBroadcastAlertService.java345 if (range != null && range.mTestMode && !CellBroadcastReceiver.isTestingMode(mContext)) { in shouldDisplayMessage()
435 if (CellBroadcastReceiver.isTestingMode(getApplicationContext()) in handleCellBroadcastIntent()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java363 assertThat(mCellBroadcastReceiver.isTestingMode(mContext)).isFalse(); in testSetTestingMode()
365 assertThat(mCellBroadcastReceiver.isTestingMode(mContext)).isTrue(); in testSetTestingMode()