Searched refs:mSummaryUpdater (Results 1 – 3 of 3) sorted by relevance
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 …]
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 …]
54 private WifiSummaryUpdater mSummaryUpdater; field in WifiSummaryUpdaterTest63 mSummaryUpdater = new WifiSummaryUpdater(mContext, mListener, mWifiTracker); in setUp()68 mSummaryUpdater.register(true); in register_true_shouldRegisterListenerAndTracker()77 mSummaryUpdater.register(true); in register_true_shouldFetchInitialStateAndSendSummaryChange()85 mSummaryUpdater.register(true); in register_false_shouldUnregisterListenerAndTracker()86 mSummaryUpdater.register(false); in register_false_shouldUnregisterListenerAndTracker()94 mSummaryUpdater.register(true); in onReceive_networkStateChanged_shouldSendSummaryChange()102 mSummaryUpdater.register(true); in onReceive_rssiChanged_shouldSendSummaryChange()112 assertThat(mSummaryUpdater.getSummary()) in getSummary_wifiDisabled_shouldReturnDisabled()121 assertThat(mSummaryUpdater.getSummary()) in getSummary_wifiDisconnected_shouldReturnDisconnected()[all …]