Java 类com.squareup.leakcanary.LeakDirectoryProvider 实例源码

项目:leakcannary    文件:DisplayLeakActivity.java   
@Override protected void onResume() {
  super.onResume();
  LeakDirectoryProvider leakDirectoryProvider = leakDirectoryProvider(this);
  if (leakDirectoryProvider.isLeakStorageWritable()) {
    File leakDirectory = leakDirectoryProvider.leakDirectory();
    LoadLeaks.load(this, leakDirectory);
  } else {
    leakDirectoryProvider.requestPermission(this);
  }
}
项目:LeakCanary4Eclipse    文件:DisplayLeakActivity.java   
@Override
protected void onResume() {
    super.onResume();
    LeakDirectoryProvider leakDirectoryProvider = leakDirectoryProvider(this);
    if (leakDirectoryProvider.isLeakStorageWritable()) {
        File leakDirectory = leakDirectoryProvider.leakDirectory();
        LoadLeaks.load(this, leakDirectory);
    } else {
        leakDirectoryProvider.requestPermission(this);
    }
}
项目:leakcannary    文件:DisplayLeakActivity.java   
public static void setLeakDirectoryProvider(LeakDirectoryProvider leakDirectoryProvider) {
  DisplayLeakActivity.leakDirectoryProvider = leakDirectoryProvider;
}
项目:LeakCanary4Eclipse    文件:DisplayLeakActivity.java   
public static void setLeakDirectoryProvider(LeakDirectoryProvider leakDirectoryProvider) {
    DisplayLeakActivity.leakDirectoryProvider = leakDirectoryProvider;
}
项目:leakcanary    文件:DisplayLeakActivity.java   
public static void setLeakDirectoryProvider(LeakDirectoryProvider leakDirectoryProvider) {
  DisplayLeakActivity.leakDirectoryProvider = leakDirectoryProvider;
}
项目:leakcanary    文件:DisplayLeakActivity.java   
static void load(DisplayLeakActivity activity, LeakDirectoryProvider leakDirectoryProvider) {
  LoadLeaks loadLeaks = new LoadLeaks(activity, leakDirectoryProvider);
  inFlight.add(loadLeaks);
  backgroundExecutor.execute(loadLeaks);
}
项目:leakcanary    文件:DisplayLeakActivity.java   
LoadLeaks(DisplayLeakActivity activity, LeakDirectoryProvider leakDirectoryProvider) {
  this.activityOrNull = activity;
  this.leakDirectoryProvider = leakDirectoryProvider;
  mainHandler = new Handler(Looper.getMainLooper());
}