public void setAllCellInfo(List<CellInfo> allCellInfo) { this.allCellInfo = allCellInfo; if (VERSION.SDK_INT >= JELLY_BEAN_MR1) { for (PhoneStateListener listener : getListenersForFlags(LISTEN_CELL_INFO)) { listener.onCellInfoChanged(allCellInfo); } } }
public void setCellLocation(CellLocation cellLocation) { this.cellLocation = cellLocation; for (PhoneStateListener listener : getListenersForFlags(LISTEN_CELL_LOCATION)) { listener.onCellLocationChanged(cellLocation); } }
/** Sets the value to be returned by {@link #getSignalStrength()} */ public void setSignalStrength(SignalStrength signalStrength) { this.signalStrength = signalStrength; for (PhoneStateListener listener : getListenersForFlags(PhoneStateListener.LISTEN_SIGNAL_STRENGTHS)) { listener.onSignalStrengthsChanged(signalStrength); } }
/** * Sets the current call state with the option to specify an incoming phone number for the * CALL_STATE_RINGING state. The incoming phone number will be ignored for all other cases. */ public void setCallState(int callState, String incomingPhoneNumber) { if (callState != CALL_STATE_RINGING) { incomingPhoneNumber = null; } this.callState = callState; this.incomingPhoneNumber = incomingPhoneNumber; for (PhoneStateListener listener : getListenersForFlags(LISTEN_CALL_STATE)) { listener.onCallStateChanged(callState, incomingPhoneNumber); } }
public void setCallState(int callState, String incomingPhoneNumber) { if (callState != CALL_STATE_RINGING) { incomingPhoneNumber = null; } this.callState = callState; this.incomingPhoneNumber = incomingPhoneNumber; for (PhoneStateListener listener : getListenersForFlags(LISTEN_CALL_STATE)) { listener.onCallStateChanged(callState, incomingPhoneNumber); } }
public void setAllCellInfo(List<CellInfo> allCellInfo) { this.allCellInfo = allCellInfo; if (VERSION.SDK_INT >= JELLY_BEAN_MR1) { for (PhoneStateListener listener : getListenersForFlags(LISTEN_CELL_INFO)) { listener.onCellInfoChanged(allCellInfo); } } }
public void setCellLocation(CellLocation cellLocation) { this.cellLocation = cellLocation; for (PhoneStateListener listener : getListenersForFlags(LISTEN_CELL_LOCATION)) { listener.onCellLocationChanged(cellLocation); } }
public void setAllCellInfo(List<CellInfo> allCellInfo) { this.allCellInfo = allCellInfo; if (VERSION.SDK_INT >= JELLY_BEAN_MR1) { for (PhoneStateListener listener : getListenersForFlags(LISTEN_CELL_INFO)) { listener.onCellInfoChanged(allCellInfo); } } }
public void setCellLocation(CellLocation cellLocation) { this.cellLocation = cellLocation; for (PhoneStateListener listener : getListenersForFlags(LISTEN_CELL_LOCATION)) { listener.onCellLocationChanged(cellLocation); } }
/** * Sets the current call state with the option to specify an incoming phone number for the * CALL_STATE_RINGING state. The incoming phone number will be ignored for all other cases. */ public void setCallState(int callState, String incomingPhoneNumber) { if (callState != CALL_STATE_RINGING) { incomingPhoneNumber = null; } this.callState = callState; this.incomingPhoneNumber = incomingPhoneNumber; for (PhoneStateListener listener : getListenersForFlags(LISTEN_CALL_STATE)) { listener.onCallStateChanged(callState, incomingPhoneNumber); } }