/**
  * Called back by the service when it has finished processing notifications, releasing the wake
  * lock if the service is now stopping.
  */
 public static void finishStartingService(Service service, int startId) {
   synchronized (mStartingServiceSync) {
     if (mStartingService != null) {
       if (service.stopSelfResult(startId)) {
         mStartingService.release();
       }
     }
   }
 }
 /**
  * Called back by the service when it has finished processing notifications, releasing the wake
  * lock if the service is now stopping.
  */
 public static void finishStartingService(Service service, int startId) {
   synchronized (mStartingServiceSync) {
     if (Log.DEBUG) Log.v("SMSReceiverService: finishStartingService()");
     if (mStartingService != null) {
       if (service.stopSelfResult(startId)) {
         mStartingService.release();
       }
     }
   }
 }
Esempio n. 3
0
 /**
  * Called back by the service when it has finished processing notifications, releasing the wake
  * lock if the service is now stopping.
  */
 public static void finishStartingService(Service service, int startId) {
   synchronized (sStartingServiceSync) {
     if (sStartingService != null) {
       if (DEBUG) Log.d(TAG, "stopSelf id = " + startId);
       if (service.stopSelfResult(startId)) {
         Log.d(TAG, "finishStartingService: stopping service");
         sStartingService.release();
       }
     }
   }
 }
 public static void finishStartingService(Service service, int i)
 {
     synchronized (sStartingServiceSync)
     {
         if (sStartingService != null && service.stopSelfResult(i))
         {
             Log.d("DockEventReceiver", "finishStartingService: stopping service");
             sStartingService.release();
         }
     }
     return;
     exception;
     obj;
     JVM INSTR monitorexit ;
     throw exception;
 }