All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eg.agent.android.instrumentation.API.AsyncTaskInstrumentation Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package com.eg.agent.android.instrumentation.API;


import android.os.AsyncTask;

import com.eg.agent.android.trace.TraceMachine;

import java.util.concurrent.Executor;

public class AsyncTaskInstrumentation {
	private static final String categoryParams = "AsyncTask";
	private static final String APItype= "AsyncTask";
	
	
    public static final  AsyncTask execute(AsyncTask task, Params... params) {
      
        TraceMachine.enterMethod("AsyncTask#execute", categoryParams,APItype);
        task.getStatus();
        TraceMachine.exitMethod();
       
        return task.execute(params);        	

    }
    
    public static final  AsyncTask executeOnExecutor(AsyncTask task, Executor exec, Params... params) {
    	 TraceMachine.enterMethod("AsyncTask#executeOnExecutor", categoryParams,APItype);
    	  TraceMachine.exitMethod();
    	return task.executeOnExecutor(exec, params);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy