@Test public void testHighBandwidthRequest() { mMediator.updateNumHighBandwidthRequests(1); verifyPowerChange(WearCellularMediator.MSG_ENABLE_CELL, WearCellularMediator.Reason.ON_NETWORK_REQUEST); }
public void updateNumHighBandwidthRequests(int numHighBandwidthRequests) { mNumHighBandwidthRequests = numHighBandwidthRequests; updateRadioPower(); }
WearCellularMediator implements
        PowerTracker.Listener,
        UserAbsentRadiosOffObserver.Listener,
        SignalStateDetector.Listener { public void updateNumHighBandwidthRequests(int numHighBandwidthRequests) { mNumHighBandwidthRequests = numHighBandwidthRequests; updateRadioPower(); } }
WearCellularMediator implements
        PowerTracker.Listener,
        UserAbsentRadiosOffObserver.Listener,
        SignalStateDetector.Listener { public void updateNumHighBandwidthRequests(int numHighBandwidthRequests) { mNumHighBandwidthRequests = numHighBandwidthRequests; updateRadioPower(); } WearCellularMediator(
            Context context,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings settings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver); @VisibleForTesting  WearCellularMediator(
            Context context,
            ContentResolver contentResolver,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings wearCellularMediatorSettings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
            SignalStateDetector signalStateDetector); }
WearCellularMediator implements
        PowerTracker.Listener,
        UserAbsentRadiosOffObserver.Listener,
        SignalStateDetector.Listener { public void updateNumHighBandwidthRequests(int numHighBandwidthRequests) { mNumHighBandwidthRequests = numHighBandwidthRequests; updateRadioPower(); } WearCellularMediator(
            Context context,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings settings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver); @VisibleForTesting  WearCellularMediator(
            Context context,
            ContentResolver contentResolver,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings wearCellularMediatorSettings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
            SignalStateDetector signalStateDetector); void onBootCompleted(boolean proxyConnected); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); @Override void onDeviceIdleModeChanged(); void updateActivityMode(boolean activeMode); @Override void onUserAbsentRadiosOffChanged(boolean isEnabled); void updateProxyConnected(boolean isProxyConnected); void updateNumHighBandwidthRequests(int numHighBandwidthRequests); void updateNumCellularRequests(int numCellularRequests); void updateDetectorState(boolean signalDetectorAllowed); @Override void onSignalStateChanged(int signalState); void dump(IndentingPrintWriter ipw); }
WearCellularMediator implements
        PowerTracker.Listener,
        UserAbsentRadiosOffObserver.Listener,
        SignalStateDetector.Listener { public void updateNumHighBandwidthRequests(int numHighBandwidthRequests) { mNumHighBandwidthRequests = numHighBandwidthRequests; updateRadioPower(); } WearCellularMediator(
            Context context,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings settings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver); @VisibleForTesting  WearCellularMediator(
            Context context,
            ContentResolver contentResolver,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings wearCellularMediatorSettings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
            SignalStateDetector signalStateDetector); void onBootCompleted(boolean proxyConnected); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); @Override void onDeviceIdleModeChanged(); void updateActivityMode(boolean activeMode); @Override void onUserAbsentRadiosOffChanged(boolean isEnabled); void updateProxyConnected(boolean isProxyConnected); void updateNumHighBandwidthRequests(int numHighBandwidthRequests); void updateNumCellularRequests(int numCellularRequests); void updateDetectorState(boolean signalDetectorAllowed); @Override void onSignalStateChanged(int signalState); void dump(IndentingPrintWriter ipw); static final String TAG; static final String CELL_AUTO_SETTING_KEY; static final int CELL_AUTO_OFF; static final int CELL_AUTO_ON; static final int CELL_AUTO_SETTING_DEFAULT; static final Uri CELL_AUTO_SETTING_URI; static final Uri CELL_ON_URI; static final int RADIO_ON_STATE_UNKNOWN; static final int RADIO_ON_STATE_ON; static final int RADIO_ON_STATE_OFF; }