@Test public void testUpdateActivityMode() { mWifiMediator.updateProxyConnected(false); verifyWifiWanted(true); mWifiMediator.updateActivityMode(true); verifyWifiWanted(false); mWifiMediator.updateActivityMode(false); verifyWifiWanted(true); }
public void updateActivityMode(boolean activityMode) { if (mActivityMode != activityMode) { mActivityMode = activityMode; updateWifiState("activity mode changed: " + mActivityMode); } }
WearWifiMediator implements
        UserAbsentRadiosOffObserver.Listener,
        PowerTracker.Listener,
        WearWifiMediatorSettings.Listener,
        WifiBackoff.Listener { public void updateActivityMode(boolean activityMode) { if (mActivityMode != activityMode) { mActivityMode = activityMode; updateWifiState("activity mode changed: " + mActivityMode); } } }
WearWifiMediator implements
        UserAbsentRadiosOffObserver.Listener,
        PowerTracker.Listener,
        WearWifiMediatorSettings.Listener,
        WifiBackoff.Listener { public void updateActivityMode(boolean activityMode) { if (mActivityMode != activityMode) { mActivityMode = activityMode; updateWifiState("activity mode changed: " + mActivityMode); } } WearWifiMediator(Context context,
                            AlarmManager alarmManager,
                            WearWifiMediatorSettings wifiMediatorSettings,
                            CompanionTracker companionTracker,
                            PowerTracker powerTracker,
                            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
                            WifiBackoff wifiBackoff,
                            WifiManager wifiManager,
                            WifiLogger wifiLogger); }
WearWifiMediator implements
        UserAbsentRadiosOffObserver.Listener,
        PowerTracker.Listener,
        WearWifiMediatorSettings.Listener,
        WifiBackoff.Listener { public void updateActivityMode(boolean activityMode) { if (mActivityMode != activityMode) { mActivityMode = activityMode; updateWifiState("activity mode changed: " + mActivityMode); } } WearWifiMediator(Context context,
                            AlarmManager alarmManager,
                            WearWifiMediatorSettings wifiMediatorSettings,
                            CompanionTracker companionTracker,
                            PowerTracker powerTracker,
                            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
                            WifiBackoff wifiBackoff,
                            WifiManager wifiManager,
                            WifiLogger wifiLogger); void onBootCompleted(boolean proxyConnected); void updateProxyConnected(boolean proxyConnected); void updateNumUnmeteredRequests(int numUnmeteredRequests); void updateNumHighBandwidthRequests(int numHighBandwidthRequests); void updateNumWifiRequests(int numWifiRequests); void updateActivityMode(boolean activityMode); @Override void onUserAbsentRadiosOffChanged(boolean isEnabled); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); @Override void onDeviceIdleModeChanged(); @Override void onWifiSettingChanged(String newWifiSetting); @Override void onInWifiSettingsMenuChanged(boolean inWifiSettingsMenu); @Override void onEnableWifiWhileChargingChanged(boolean enableWifiWhileCharging); @Override void onDisableWifiMediatorChanged(boolean disableWifiMediator); @Override void onHardwareLowPowerModeChanged(boolean inHardwareLowPowerMode); @Override void onWifiOnWhenProxyDisconnectedChanged(boolean wifiOnWhenProxyDisconnected); @Override void onWifiBackoffChanged(); void dump(IndentingPrintWriter ipw); }
WearWifiMediator implements
        UserAbsentRadiosOffObserver.Listener,
        PowerTracker.Listener,
        WearWifiMediatorSettings.Listener,
        WifiBackoff.Listener { public void updateActivityMode(boolean activityMode) { if (mActivityMode != activityMode) { mActivityMode = activityMode; updateWifiState("activity mode changed: " + mActivityMode); } } WearWifiMediator(Context context,
                            AlarmManager alarmManager,
                            WearWifiMediatorSettings wifiMediatorSettings,
                            CompanionTracker companionTracker,
                            PowerTracker powerTracker,
                            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
                            WifiBackoff wifiBackoff,
                            WifiManager wifiManager,
                            WifiLogger wifiLogger); void onBootCompleted(boolean proxyConnected); void updateProxyConnected(boolean proxyConnected); void updateNumUnmeteredRequests(int numUnmeteredRequests); void updateNumHighBandwidthRequests(int numHighBandwidthRequests); void updateNumWifiRequests(int numWifiRequests); void updateActivityMode(boolean activityMode); @Override void onUserAbsentRadiosOffChanged(boolean isEnabled); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); @Override void onDeviceIdleModeChanged(); @Override void onWifiSettingChanged(String newWifiSetting); @Override void onInWifiSettingsMenuChanged(boolean inWifiSettingsMenu); @Override void onEnableWifiWhileChargingChanged(boolean enableWifiWhileCharging); @Override void onDisableWifiMediatorChanged(boolean disableWifiMediator); @Override void onHardwareLowPowerModeChanged(boolean inHardwareLowPowerMode); @Override void onWifiOnWhenProxyDisconnectedChanged(boolean wifiOnWhenProxyDisconnected); @Override void onWifiBackoffChanged(); void dump(IndentingPrintWriter ipw);  }