Java 类com.squareup.leakcanary.internal.HeapAnalyzerService 实例源码

项目:boohee_v5.6    文件:ServiceHeapDumpListener.java   
public ServiceHeapDumpListener(Context context, Class<? extends
        AbstractAnalysisResultService> listenerServiceClass) {
    LeakCanaryInternals.setEnabled(context, listenerServiceClass, true);
    LeakCanaryInternals.setEnabled(context, HeapAnalyzerService.class, true);
    this.listenerServiceClass = (Class) Preconditions.checkNotNull(listenerServiceClass,
            "listenerServiceClass");
    this.context = ((Context) Preconditions.checkNotNull(context, "context"))
            .getApplicationContext();
}
项目:leakcannary    文件:ServiceHeapDumpListener.java   
public ServiceHeapDumpListener(Context context,
    Class<? extends AbstractAnalysisResultService> listenerServiceClass) {
  setEnabled(context, listenerServiceClass, true);
  setEnabled(context, HeapAnalyzerService.class, true);
  this.listenerServiceClass = checkNotNull(listenerServiceClass, "listenerServiceClass");
  this.context = checkNotNull(context, "context").getApplicationContext();
}
项目:LeakCanary4Eclipse    文件:ServiceHeapDumpListener.java   
public ServiceHeapDumpListener(Context context,
    Class<? extends AbstractAnalysisResultService> listenerServiceClass) {
  setEnabled(context, listenerServiceClass, true);
  setEnabled(context, HeapAnalyzerService.class, true);
  this.listenerServiceClass = checkNotNull(listenerServiceClass, "listenerServiceClass");
  this.context = checkNotNull(context, "context").getApplicationContext();
}
项目:leakcanary-for-eclipse    文件:ServiceHeapDumpListener.java   
public ServiceHeapDumpListener(Context context,
    Class<? extends AbstractAnalysisResultService> listenerServiceClass) {
  setEnabled(context, listenerServiceClass, true);
  setEnabled(context, HeapAnalyzerService.class, true);
  this.listenerServiceClass = checkNotNull(listenerServiceClass, "listenerServiceClass");
  this.context = checkNotNull(context, "context").getApplicationContext();
}
项目:leakcanary    文件:ServiceHeapDumpListener.java   
public ServiceHeapDumpListener(Context context,
    Class<? extends AbstractAnalysisResultService> listenerServiceClass) {
  setEnabled(context, listenerServiceClass, true);
  setEnabled(context, HeapAnalyzerService.class, true);
  this.listenerServiceClass = checkNotNull(listenerServiceClass, "listenerServiceClass");
  this.context = checkNotNull(context, "context").getApplicationContext();
}
项目:boohee_v5.6    文件:ServiceHeapDumpListener.java   
public void analyze(HeapDump heapDump) {
    Preconditions.checkNotNull(heapDump, "heapDump");
    HeapAnalyzerService.runAnalysis(this.context, heapDump, this.listenerServiceClass);
}
项目:boohee_v5.6    文件:LeakCanary.java   
public static boolean isInAnalyzerProcess(Context context) {
    return LeakCanaryInternals.isInServiceProcess(context, HeapAnalyzerService.class);
}
项目:leakcannary    文件:ServiceHeapDumpListener.java   
@Override public void analyze(HeapDump heapDump) {
  checkNotNull(heapDump, "heapDump");
  HeapAnalyzerService.runAnalysis(context, heapDump, listenerServiceClass);
}
项目:LeakCanary4Eclipse    文件:ServiceHeapDumpListener.java   
@Override public void analyze(HeapDump heapDump) {
  checkNotNull(heapDump, "heapDump");
  HeapAnalyzerService.runAnalysis(context, heapDump, listenerServiceClass);
}
项目:leakcanary-for-eclipse    文件:ServiceHeapDumpListener.java   
@Override public void analyze(HeapDump heapDump) {
  checkNotNull(heapDump, "heapDump");
  HeapAnalyzerService.runAnalysis(context, heapDump, listenerServiceClass);
}
项目:leakcanary    文件:ServiceHeapDumpListener.java   
@Override public void analyze(HeapDump heapDump) {
  checkNotNull(heapDump, "heapDump");
  HeapAnalyzerService.runAnalysis(context, heapDump, listenerServiceClass);
}
项目:leakcannary    文件:LeakCanary.java   
/**
 * Whether the current process is the process running the {@link HeapAnalyzerService}, which is
 * a different process than the normal app process.
 */
public static boolean isInAnalyzerProcess(Context context) {
  return isInServiceProcess(context, HeapAnalyzerService.class);
}
项目:LeakCanary4Eclipse    文件:LeakCanary.java   
/**
 * Whether the current process is the process running the {@link HeapAnalyzerService}, which is
 * a different process than the normal app process.
 */
public static boolean isInAnalyzerProcess(Context context) {
  return isInServiceProcess(context, HeapAnalyzerService.class);
}
项目:leakcanary-for-eclipse    文件:LeakCanary.java   
/**
 * Whether the current process is the process running the {@link HeapAnalyzerService}, which is
 * a different process than the normal app process.
 */
public static boolean isInAnalyzerProcess(Context context) {
  return isInServiceProcess(context, HeapAnalyzerService.class);
}
项目:leakcanary    文件:LeakCanary.java   
/**
 * Whether the current process is the process running the {@link HeapAnalyzerService}, which is
 * a different process than the normal app process.
 */
public static boolean isInAnalyzerProcess(Context context) {
  return isInServiceProcess(context, HeapAnalyzerService.class);
}