/** Unregisters for the registered event with RIL */
 public void dispose(Handler h) {
   mCdmaSubscriptionSourceChangedRegistrants.remove(h);
   synchronized (sReferenceCountMonitor) {
     sReferenceCount--;
     if (sReferenceCount <= 0) {
       mCM.unregisterForCdmaSubscriptionChanged(this);
       mCM.unregisterForOn(this);
       mCM.unregisterForSubscriptionStatusChanged(this);
       sInstance = null;
     }
   }
 }
  /** Unregisters for the registered event with RIL */
  public void dispose(Handler handler) {
    if (null != handler) {
      mCdmaSubscriptionSourceChangedRegistrants.remove(handler);
    }

    mRef--;
    if (mRef <= 0) {
      mCM.unregisterForCdmaSubscriptionSourceChanged(this);
      mCM.unregisterForOn(this);
      mCM.unregisterForSubscriptionStatusChanged(this);
      mCdmaSSMInstances.remove(mCM);
    }
  }
 public void unregisterForVoiceCallEnded(Handler h) {
   voiceCallEndedRegistrants.remove(h);
 }
Пример #4
0
 public void unregisterForPsRestrictedDisabled(Handler h) {
   mPsRestrictDisabledRegistrants.remove(h);
 }
Пример #5
0
 public void unregisterForNetworkAttached(Handler h) {
   mNetworkAttachedRegistrants.remove(h);
 }
Пример #6
0
 public void unregisterForDataConnectionDetached(Handler h) {
   mDetachedRegistrants.remove(h);
 }
Пример #7
0
 public void unregisterForRoamingOff(Handler h) {
   mRoamingOffRegistrants.remove(h);
 }
Пример #8
0
 public void unregisterForSuppServiceNotification(Handler h) {
   mSsnRegistrants.remove(h);
   if (mSsnRegistrants.size() == 0) mCM.setSuppServiceNotifications(false, null);
 }
Пример #9
0
 public void unregisterForDataRegStateOrRatChanged(Handler h) {
   mDataRegStateOrRatChangedRegistrants.remove(h);
 }
Пример #10
0
 public void unregisterForDataRoamingOn(Handler h) {
   mDataRoamingOnRegistrants.remove(h);
 }
Пример #11
0
 public void unregisterForVoiceRoamingOn(Handler h) {
   mVoiceRoamingOnRegistrants.remove(h);
 }
 void unregisterForModemProfileReady(Handler h) {
   mModemDataProfileRegistrants.remove(h);
 }
Пример #13
0
 @Override
 public void unregisterForVoiceCallStarted(Handler h) {
   mVoiceCallStartedRegistrants.remove(h);
 }