Home | History | Annotate | Download | only in phone

Lines Matching full:state

159     // Internal PhoneApp Call state tracker
176 // True if a wired headset is currently plugged in, based on the state
185 // True if we are beginning a call, but the phone state has not changed yet
188 // Last phone state seen by updatePhoneState()
189 Phone.State mLastPhoneState = Phone.State.IDLE;
209 /** boolean indicating restoring mute state on InCallScreen.onResume() */
226 // cdmaOtaScreenState object store OTA Screen State information.
238 * Set the restore mute state flag. Used when we are setting the mute state
246 * Get the restore mute state flag.
248 * out if we need to restore the mute state for the current active call.
257 Phone.State phoneState;
290 // state change (since the status bar icon needs to
314 // speakerphone, update the "speaker" state. We ONLY want to do
319 // Do not change speaker state if phone is not off hook
320 if (phoneState == Phone.State.OFFHOOK) {
323 // if the state is "not connected", restore the speaker state.
326 // if the state is "connected", force the speaker off without
327 // storing the state.
332 // Update the Proximity sensor based on headset state
335 // Force TTY state update according to new headset state
342 // Marks the event where the SIM goes into ready state.
375 State.OFFHOOK &&
463 // before registering for phone state changes
496 // keep track of some "persistent state" of the in-call UI.
559 // audio-mode-related state of our own) is initialized
560 // correctly, given the current state of the phone.
574 // start with the default value to set the mute state.
611 // Update the Proximity sensor based on keyboard state
819 * the SIM to move to READY state.
839 * of the state of the device. Dismissed upon completion of
856 * If we're in a state where the screen *is* allowed to turn off,
882 * Update the state of the poke lock held by the phone app,
892 // state, and also when we're trying to keep the screen alive
1000 * Sets the wake state and screen timeout based on the current state
1001 * of the phone, and the current state of the in-call UI.
1006 * It's safe to call this method regardless of the state of the Phone
1007 * (e.g. whether or not it's idle), and regardless of the state of the
1011 Phone.State state = mCM.getState();
1029 // time the speaker state changes. (That happens in
1031 boolean isSpeakerInUse = (state == Phone.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this);
1034 // depend on the bluetooth state, but this isn't as clear-cut as
1035 // the speaker state (since while using BT it's common for the
1068 // the "disconnected" state.
1070 boolean isRinging = (state == Phone.State.RINGING);
1071 boolean isDialing = (phone.getForegroundCall().getState() == Call.State.DIALING);
1135 * the proximity sensor state.
1137 * in case the call fails without changing the telephony state.
1142 // Update the Proximity sensor based on mBeginningCall state
1148 * based on the current state of the phone. This method is called
1149 * from the CallNotifier on any phone state change.
1172 * @param state current state of the phone (see {@link Phone#State})
1174 /* package */ void updateProximitySensorMode(Phone.State state) {
1175 if (VDBG) Log.d(LOG_TAG, "updateProximitySensorMode: state = " + state);
1190 if (((state == Phone.State.OFFHOOK) || mBeginningCall) &&
1227 * Notifies the phone app when the phone state changes.
1230 /* package */ void updatePhoneState(Phone.State state) {
1231 if (state != mLastPhoneState) {
1232 mLastPhoneState = state;
1233 updateProximitySensorMode(state);
1237 mAccelerometerListener.enable(state == Phone.State.OFFHOOK);
1247 mInCallScreen.updateKeyguardPolicy(state == Phone.State.OFFHOOK);
1252 /* package */ Phone.State getPhoneState() {
1335 * This depends on the BluetoothHeadset state *and* the current
1336 * telephony state; see shouldShowBluetoothIndication().
1347 * bluetooth state and current telephony state.
1349 * This needs to be called any time the bluetooth headset state or the
1350 * telephony state changes.
1361 // need to be refreshed based on the new state.
1363 if (DBG) Log.d (LOG_TAG, "- updating in-call notification for BT state change...");
1367 // Update the Proximity sensor based on Bluetooth audio state
1376 * based on the specified bluetooth headset state, and the
1377 * current state of the phone.
1431 if (VDBG) Log.d(LOG_TAG, "==> new state: " + mBluetoothHeadsetState);
1438 if (VDBG) Log.d(LOG_TAG, "==> new state: " + mBluetoothHeadsetAudioState);
1442 if (VDBG) Log.d(LOG_TAG, "- state: " + intent.getStringExtra(Phone.STATE_KEY));
1459 if (VDBG) Log.d(LOG_TAG, " state: " + intent.getIntExtra("state", 0));
1461 mIsHeadsetPlugged = (intent.getIntExtra("state", 0) == 1);
1469 // receiving this state change notification, notify the handler.
1538 // be updated if their state changed.
1543 if (mCM.getState() != Phone.State.IDLE) {
1567 int state = ss.getState();
1568 notificationMgr.updateNetworkSelection(state);
1621 * This method can be used any time there's a state change anywhere in
1625 * (via this method) for regular telephony state changes like
1627 * listens for those state changes itself.
1645 if (DBG) Log.d(LOG_TAG, "handleQueryTTYModeResponse: Error getting TTY state.");
1648 "handleQueryTTYModeResponse: TTY enable state successfully queried.");
1719 * its latest call origin state.