Searched refs:mSummaryUpdater (Results 1 – 3 of 3) sorted by relevance
75 private BluetoothSummaryUpdater mSummaryUpdater; field in BluetoothSummaryUpdaterTest83 mSummaryUpdater = new BluetoothSummaryUpdater(mContext, mListener, mBluetoothManager); in setUp()99 mSummaryUpdater.register(true); in register_true_shouldRegisterListener()101 verify(mBluetoothManager.getEventManager()).registerCallback(mSummaryUpdater); in register_true_shouldRegisterListener()106 mSummaryUpdater.register(false); in register_false_shouldUnregisterListener()108 verify(mBluetoothManager.getEventManager()).unregisterCallback(mSummaryUpdater); in register_false_shouldUnregisterListener()119 mSummaryUpdater.register(true); in register_true_shouldSendSummaryChange()133 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_OFF); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()146 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()161 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()[all …]
37 private SummaryUpdaterTestable mSummaryUpdater; field in SummaryUpdaterTest45 mSummaryUpdater = new SummaryUpdaterTestable(mContext, mListener); in setUp()51 mSummaryUpdater.setTestSummary(summary); in notifyChangeIfNeeded_fistTimeInit_shouldNotifyChange()52 mSummaryUpdater.notifyChangeIfNeeded(); in notifyChangeIfNeeded_fistTimeInit_shouldNotifyChange()60 mSummaryUpdater.setTestSummary(summaryInit); in notifyChangeIfNeeded_summaryUpdated_shouldNotifyChange()61 mSummaryUpdater.notifyChangeIfNeeded(); in notifyChangeIfNeeded_summaryUpdated_shouldNotifyChange()64 mSummaryUpdater.setTestSummary(summaryUpdate); in notifyChangeIfNeeded_summaryUpdated_shouldNotifyChange()65 mSummaryUpdater.notifyChangeIfNeeded(); in notifyChangeIfNeeded_summaryUpdated_shouldNotifyChange()73 mSummaryUpdater.setTestSummary(summaryInit); in notifyChangeIfNeeded_summaryNotUpdated_shouldOnlyNotifyChangeOnce()74 mSummaryUpdater.notifyChangeIfNeeded(); in notifyChangeIfNeeded_summaryNotUpdated_shouldOnlyNotifyChangeOnce()[all …]
50 private WifiSummaryUpdater mSummaryUpdater; field in WifiSummaryUpdaterTest56 mSummaryUpdater = new WifiSummaryUpdater(mContext, mListener, mWifiTracker); in setUp()61 mSummaryUpdater.register(true); in register_true_shouldRegisterListenerAndTracker()69 mSummaryUpdater.register(true); in register_false_shouldUnregisterListenerAndTracker()70 mSummaryUpdater.register(false); in register_false_shouldUnregisterListenerAndTracker()78 mSummaryUpdater.register(true); in onReceive_networkStateChanged_shouldSendSummaryChange()86 mSummaryUpdater.register(true); in onReceive_rssiChanged_shouldSendSummaryChange()96 assertThat(mSummaryUpdater.getSummary()) in getSummary_wifiDisabled_shouldReturnDisabled()105 assertThat(mSummaryUpdater.getSummary()) in getSummary_wifiDisconnected_shouldReturnDisconnected()115 assertThat(mSummaryUpdater.getSummary()).isEqualTo("Test Ssid"); in getSummary_wifiConnected_shouldReturnSsid()[all …]