@Test public void testOnBootCompleted() { Assert.assertTrue(shadowApplication.hasReceiverForIntent( new Intent(WearConnectivityController.ACTION_PROXY_STATUS_CHANGE))); verify(mockWifiMediator).onBootCompleted(true); verify(mockCellMediator).onBootCompleted(true); }
public void onBootCompleted() { mContext.registerReceiver(notifyProxyStatusChangeReceiver, new IntentFilter(ACTION_PROXY_STATUS_CHANGE)); if (mBtMediator != null) { mBtMediator.onBootCompleted(); } mWifiMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); if (mCellMediator != null) { mCellMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); } if (mActivityModeTracker.isActivityModeEnabled()) { onActivityModeChanged(true); } }
WearConnectivityController implements
        ActivityModeTracker.Listener,
        WearNetworkObserver.Listener,
        WearProxyNetworkAgent.Listener { public void onBootCompleted() { mContext.registerReceiver(notifyProxyStatusChangeReceiver, new IntentFilter(ACTION_PROXY_STATUS_CHANGE)); if (mBtMediator != null) { mBtMediator.onBootCompleted(); } mWifiMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); if (mCellMediator != null) { mCellMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); } if (mActivityModeTracker.isActivityModeEnabled()) { onActivityModeChanged(true); } } }
WearConnectivityController implements
        ActivityModeTracker.Listener,
        WearNetworkObserver.Listener,
        WearProxyNetworkAgent.Listener { public void onBootCompleted() { mContext.registerReceiver(notifyProxyStatusChangeReceiver, new IntentFilter(ACTION_PROXY_STATUS_CHANGE)); if (mBtMediator != null) { mBtMediator.onBootCompleted(); } mWifiMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); if (mCellMediator != null) { mCellMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); } if (mActivityModeTracker.isActivityModeEnabled()) { onActivityModeChanged(true); } } WearConnectivityController(
            Context context,
            AlarmManager alarmManager,
            WearBluetoothMediator btMediator,
            WearWifiMediator wifiMediator,
            WearCellularMediator cellMediator,
            WearProxyNetworkAgent proxyNetworkAgent,
            ActivityModeTracker activityModeTracker,
            PowerTracker powerTracker); }
WearConnectivityController implements
        ActivityModeTracker.Listener,
        WearNetworkObserver.Listener,
        WearProxyNetworkAgent.Listener { public void onBootCompleted() { mContext.registerReceiver(notifyProxyStatusChangeReceiver, new IntentFilter(ACTION_PROXY_STATUS_CHANGE)); if (mBtMediator != null) { mBtMediator.onBootCompleted(); } mWifiMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); if (mCellMediator != null) { mCellMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); } if (mActivityModeTracker.isActivityModeEnabled()) { onActivityModeChanged(true); } } WearConnectivityController(
            Context context,
            AlarmManager alarmManager,
            WearBluetoothMediator btMediator,
            WearWifiMediator wifiMediator,
            WearCellularMediator cellMediator,
            WearProxyNetworkAgent proxyNetworkAgent,
            ActivityModeTracker activityModeTracker,
            PowerTracker powerTracker); void onBootCompleted(); @Override void onProxyConnectionChange(boolean proxyConnected); @Override void onUnmeteredRequestsChanged(int numUnmeteredRequests); @Override void onHighBandwidthRequestsChanged(int numHighBandwidthRequests); @Override void onWifiRequestsChanged(int numWifiRequests); @Override void onCellularRequestsChanged(int numCellularRequests); @Override void onActivityModeChanged(boolean enabled); void dump(IndentingPrintWriter ipw); }
WearConnectivityController implements
        ActivityModeTracker.Listener,
        WearNetworkObserver.Listener,
        WearProxyNetworkAgent.Listener { public void onBootCompleted() { mContext.registerReceiver(notifyProxyStatusChangeReceiver, new IntentFilter(ACTION_PROXY_STATUS_CHANGE)); if (mBtMediator != null) { mBtMediator.onBootCompleted(); } mWifiMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); if (mCellMediator != null) { mCellMediator.onBootCompleted(mProxyNetworkAgent.isProxyConnected()); } if (mActivityModeTracker.isActivityModeEnabled()) { onActivityModeChanged(true); } } WearConnectivityController(
            Context context,
            AlarmManager alarmManager,
            WearBluetoothMediator btMediator,
            WearWifiMediator wifiMediator,
            WearCellularMediator cellMediator,
            WearProxyNetworkAgent proxyNetworkAgent,
            ActivityModeTracker activityModeTracker,
            PowerTracker powerTracker); void onBootCompleted(); @Override void onProxyConnectionChange(boolean proxyConnected); @Override void onUnmeteredRequestsChanged(int numUnmeteredRequests); @Override void onHighBandwidthRequestsChanged(int numHighBandwidthRequests); @Override void onWifiRequestsChanged(int numWifiRequests); @Override void onCellularRequestsChanged(int numCellularRequests); @Override void onActivityModeChanged(boolean enabled); void dump(IndentingPrintWriter ipw);  }