Lines Matching refs:handler

105     // mapping of phones to registered handler instances used for callbacks from RIL
513 // We need to keep a mapping of handler to Phone for proper unregistration.
516 // moving the handler (or the reference ot the handler) into the Phone object.
518 CallManagerHandler handler = mHandlerMap.get(phone);
519 if (handler != null) {
524 // New registration, create a new handler instance and register the phone.
525 handler = new CallManagerHandler();
526 mHandlerMap.put(phone, handler);
529 phone.registerForPreciseCallStateChanged(handler, EVENT_PRECISE_CALL_STATE_CHANGED, null);
530 phone.registerForDisconnect(handler, EVENT_DISCONNECT, null);
531 phone.registerForNewRingingConnection(handler, EVENT_NEW_RINGING_CONNECTION, null);
532 phone.registerForUnknownConnection(handler, EVENT_UNKNOWN_CONNECTION, null);
533 phone.registerForIncomingRing(handler, EVENT_INCOMING_RING, null);
534 phone.registerForRingbackTone(handler, EVENT_RINGBACK_TONE, null);
535 phone.registerForInCallVoicePrivacyOn(handler, EVENT_IN_CALL_VOICE_PRIVACY_ON, null);
536 phone.registerForInCallVoicePrivacyOff(handler, EVENT_IN_CALL_VOICE_PRIVACY_OFF, null);
537 phone.registerForDisplayInfo(handler, EVENT_DISPLAY_INFO, null);
538 phone.registerForSignalInfo(handler, EVENT_SIGNAL_INFO, null);
539 phone.registerForResendIncallMute(handler, EVENT_RESEND_INCALL_MUTE, null);
540 phone.registerForMmiInitiate(handler, EVENT_MMI_INITIATE, null);
541 phone.registerForMmiComplete(handler, EVENT_MMI_COMPLETE, null);
542 phone.registerForSuppServiceFailed(handler, EVENT_SUPP_SERVICE_FAILED, null);
543 phone.registerForServiceStateChanged(handler, EVENT_SERVICE_STATE_CHANGED, null);
549 phone.setOnPostDialCharacter(handler, EVENT_POST_DIAL_CHARACTER, null);
554 phone.registerForCdmaOtaStatusChange(handler, EVENT_CDMA_OTA_STATUS_CHANGE, null);
555 phone.registerForSubscriptionInfoReady(handler, EVENT_SUBSCRIPTION_INFO_READY, null);
556 phone.registerForCallWaiting(handler, EVENT_CALL_WAITING, null);
557 phone.registerForEcmTimerReset(handler, EVENT_ECM_TIMER_RESET, null);
562 phone.registerForOnHoldTone(handler, EVENT_ONHOLD_TONE, null);
568 CallManagerHandler handler = mHandlerMap.get(phone);
569 if (handler != null) {
570 Rlog.e(LOG_TAG, "Could not find Phone handler for unregistration");
576 phone.unregisterForPreciseCallStateChanged(handler);
577 phone.unregisterForDisconnect(handler);
578 phone.unregisterForNewRingingConnection(handler);
579 phone.unregisterForUnknownConnection(handler);
580 phone.unregisterForIncomingRing(handler);
581 phone.unregisterForRingbackTone(handler);
582 phone.unregisterForInCallVoicePrivacyOn(handler);
583 phone.unregisterForInCallVoicePrivacyOff(handler);
584 phone.unregisterForDisplayInfo(handler);
585 phone.unregisterForSignalInfo(handler);
586 phone.unregisterForResendIncallMute(handler);
587 phone.unregisterForMmiInitiate(handler);
588 phone.unregisterForMmiComplete(handler);
589 phone.unregisterForSuppServiceFailed(handler);
590 phone.unregisterForServiceStateChanged(handler);
601 phone.unregisterForCdmaOtaStatusChange(handler);
602 phone.unregisterForSubscriptionInfoReady(handler);
603 phone.unregisterForCallWaiting(handler);
604 phone.unregisterForEcmTimerReset(handler);
609 phone.unregisterForOnHoldTone(handler);
1393 * Registers the handler to reset the uplink mute state to get
1452 * @param h handler to notify
1635 * @param h handler to notify