@DSVerified
  @DSBan(DSCat.DROIDSAFE_INTERNAL)
  public static void modelService(android.app.Service service) {
    if (mApplication != null) service.setApplication(mApplication);

    service.droidsafeAttachContext(context);

    service.onCreate();
    for (IntentFilter filter : service.__ds__intentFilters) {

      Intent intent = service.__ds__registerIntentFilter(filter);

      mApplication.__ds__intentsFromFilter.add(intent);

      service.onBind(intent);
      service.onRebind(intent);
      service.onStart(intent, DSUtils.FAKE_INT);
      service.onTaskRemoved(intent);
      service.onStartCommand(intent, DSUtils.FAKE_INT, DSUtils.FAKE_INT);
      service.onUnbind(intent);
      if (service instanceof IntentService) {
        ((IntentService) service).__ds__onHandleIntent(intent);
      }
    }
    service.droidsafeOnSubServiceHook();
    service.onConfigurationChanged(new Configuration());
    service.onLowMemory();
    service.onTrimMemory(0);
    service.stopSelf(0);
    service.onDestroy();
  }
示例#2
0
 public void onRebind(Intent intent) {
   Logger.INTERNAL("notificationAvatar", "on rebind");
   this.mBound = true;
   hideChathead();
   Bridge.getPoller().startInboxPolling();
   super.onRebind(intent);
 }
示例#3
0
 public void onRebind(Intent paramIntent) {
   super.onRebind(paramIntent);
 }
示例#4
0
 @Override
 public void onRebind(Intent intent) {
   super.onRebind(intent);
 }
示例#5
0
 @Override
 public void onRebind(Intent intent) {
   isBound = true;
   showNotificationIfNotBoundAndHasPendingRequestsOtherwiseHideNotification();
   super.onRebind(intent);
 }
 public void onRebind(android.content.Intent intent) {
   if (ScriptLoader.isCalledFromJRuby()) {
     super.onRebind(intent);
     return;
   }
   if (JRubyAdapter.isInitialized()) {
     if (scriptInfo.getCallbackProcs() != null
         && scriptInfo.getCallbackProcs()[CB_REBIND] != null) {
       super.onRebind(intent);
       JRubyAdapter.runRubyMethod(scriptInfo.getCallbackProcs()[CB_REBIND], "call", intent);
     } else {
       String rubyClassName = scriptInfo.getRubyClassName();
       if ((Boolean)
           JRubyAdapter.runScriptlet(
               "defined?("
                   + rubyClassName
                   + ") == 'constant' && "
                   + rubyClassName
                   + ".instance_methods(false).any?{|m| m.to_sym == :on_rebind}")) {
         // FIXME(uwe): Simplify when we stop support for RubotoCore 0.4.7
         if (JRubyAdapter.isJRubyPreOneSeven()) {
           JRubyAdapter.put("$arg_intent", intent);
           JRubyAdapter.put("$ruby_instance", scriptInfo.getRubyInstance());
           JRubyAdapter.runScriptlet("$ruby_instance.on_rebind($arg_intent)");
         } else {
           if (JRubyAdapter.isJRubyOneSeven()) {
             JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_rebind", intent);
           } else {
             throw new RuntimeException(
                 "Unknown JRuby version: " + JRubyAdapter.get("JRUBY_VERSION"));
           }
         }
       } else {
         if ((Boolean)
             JRubyAdapter.runScriptlet(
                 "defined?("
                     + rubyClassName
                     + ") == 'constant' && "
                     + rubyClassName
                     + ".instance_methods(false).any?{|m| m.to_sym == :onRebind}")) {
           // FIXME(uwe): Simplify when we stop support for RubotoCore 0.4.7
           if (JRubyAdapter.isJRubyPreOneSeven()) {
             JRubyAdapter.put("$arg_intent", intent);
             JRubyAdapter.put("$ruby_instance", scriptInfo.getRubyInstance());
             JRubyAdapter.runScriptlet("$ruby_instance.onRebind($arg_intent)");
           } else {
             if (JRubyAdapter.isJRubyOneSeven()) {
               JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onRebind", intent);
             } else {
               throw new RuntimeException(
                   "Unknown JRuby version: " + JRubyAdapter.get("JRUBY_VERSION"));
             }
           }
         } else {
           {
             super.onRebind(intent);
             return;
           }
         }
       }
     }
   } else {
     Log.i("Method called before JRuby runtime was initialized: RubotoService#onRebind");
     {
       super.onRebind(intent);
       return;
     }
   }
 }
 @Override
 public void onRebind(Intent intent) {
   Log.i(TAG, "Client rebound");
   super.onRebind(intent);
 }
 @Override
 public void onRebind(Intent intent) {
   Log.d(TAG, TAGClass + "onRebind()");
   super.onRebind(intent);
 }
示例#9
0
 @Override
 public void onRebind(Intent intent) {
   FLog.i(TAG, "onRebind");
   mFrontMessenger = null;
   super.onRebind(intent);
 }
 @Override
 public void onRebind(Intent intent) {
   // TODO Auto-generated method stub
   super.onRebind(intent);
   Log.i(TAG, FILE_NAME + "onRebind,ppid=" + Thread.currentThread().getName());
 }
示例#11
0
 @Override
 public void onRebind(Intent intent) {
   // TODO Auto-generated method stub
   Log.d("g54mdp", "onRebind4");
   super.onRebind(intent);
 }