Java Code Examples for com.nostra13.universalimageloader.utils.L#writeDebugLogs()

The following examples show how to use com.nostra13.universalimageloader.utils.L#writeDebugLogs() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImageLoaderConfiguration.java    From candybar with Apache License 2.0 6 votes vote down vote up
private ImageLoaderConfiguration(final Builder builder) {
    context = builder.context;
    maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
    maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
    maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
    maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
    processorForDiskCache = builder.processorForDiskCache;
    taskExecutor = builder.taskExecutor;
    taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
    threadPoolSize = builder.threadPoolSize;
    threadPriority = builder.threadPriority;
    tasksProcessingType = builder.tasksProcessingType;
    diskCache = builder.diskCache;
    memoryCache = builder.memoryCache;
    defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
    downloader = builder.downloader;
    decoder = builder.decoder;

    customExecutor = builder.customExecutor;
    customExecutorForCachedImages = builder.customExecutorForCachedImages;

    networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
    slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

    L.writeDebugLogs(builder.writeLogs);
}
 
Example 2
Source File: ImageLoaderConfiguration.java    From letv with Apache License 2.0 6 votes vote down vote up
private ImageLoaderConfiguration(Builder builder) {
    this.resources = builder.context.getResources();
    this.maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
    this.maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
    this.maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
    this.maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
    this.processorForDiskCache = builder.processorForDiskCache;
    this.taskExecutor = builder.taskExecutor;
    this.taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
    this.threadPoolSize = builder.threadPoolSize;
    this.threadPriority = builder.threadPriority;
    this.tasksProcessingType = builder.tasksProcessingType;
    this.diskCache = builder.diskCache;
    this.memoryCache = builder.memoryCache;
    this.defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
    this.downloader = builder.downloader;
    this.decoder = builder.decoder;
    this.thumbnailUtils = builder.thumbnailUtils;
    this.customExecutor = builder.customExecutor;
    this.customExecutorForCachedImages = builder.customExecutorForCachedImages;
    this.networkDeniedDownloader = new NetworkDeniedImageDownloader(this.downloader);
    this.slowNetworkDownloader = new SlowNetworkImageDownloader(this.downloader);
    L.writeDebugLogs(builder.writeLogs);
}
 
Example 3
Source File: Common.java    From Rey-MusicPlayer with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    mContext = getApplicationContext();
    mPlayBackStarter = new PlayBackStarter(mContext);

    // Obtain the FirebaseAnalytics instance.
    mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);

    initImageLoader();

    AnalyticsTrackers.initialize(this);
    AnalyticsTrackers.getInstance().get(AnalyticsTrackers.Target.APP);

    /**
     *disable UIL Logs
     */
    L.writeDebugLogs(false);
}
 
Example 4
Source File: ImageLoaderConfiguration.java    From mobile-manager-tool with MIT License 6 votes vote down vote up
private ImageLoaderConfiguration(final Builder builder) {
	resources = builder.context.getResources();
	maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
	maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
	maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
	maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
	processorForDiskCache = builder.processorForDiskCache;
	taskExecutor = builder.taskExecutor;
	taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
	threadPoolSize = builder.threadPoolSize;
	threadPriority = builder.threadPriority;
	tasksProcessingType = builder.tasksProcessingType;
	diskCache = builder.diskCache;
	memoryCache = builder.memoryCache;
	defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
	downloader = builder.downloader;
	decoder = builder.decoder;

	customExecutor = builder.customExecutor;
	customExecutorForCachedImages = builder.customExecutorForCachedImages;

	networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
	slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

	L.writeDebugLogs(builder.writeLogs);
}
 
Example 5
Source File: ImageLoaderConfiguration.java    From BigApp_WordPress_Android with Apache License 2.0 6 votes vote down vote up
private ImageLoaderConfiguration(final Builder builder) {
	resources = builder.context.getResources();
	maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
	maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
	maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
	maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
	processorForDiskCache = builder.processorForDiskCache;
	taskExecutor = builder.taskExecutor;
	taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
	threadPoolSize = builder.threadPoolSize;
	threadPriority = builder.threadPriority;
	tasksProcessingType = builder.tasksProcessingType;
	diskCache = builder.diskCache;
	memoryCache = builder.memoryCache;
	defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
	downloader = builder.downloader;
	decoder = builder.decoder;

	customExecutor = builder.customExecutor;
	customExecutorForCachedImages = builder.customExecutorForCachedImages;

	networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
	slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

	L.writeDebugLogs(builder.writeLogs);
}
 
Example 6
Source File: ImageLoaderConfiguration.java    From WliveTV with Apache License 2.0 6 votes vote down vote up
private ImageLoaderConfiguration(final Builder builder) {
	resources = builder.context.getResources();
	maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
	maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
	maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
	maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
	processorForDiskCache = builder.processorForDiskCache;
	taskExecutor = builder.taskExecutor;
	taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
	threadPoolSize = builder.threadPoolSize;
	threadPriority = builder.threadPriority;
	tasksProcessingType = builder.tasksProcessingType;
	diskCache = builder.diskCache;
	memoryCache = builder.memoryCache;
	defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
	downloader = builder.downloader;
	decoder = builder.decoder;

	customExecutor = builder.customExecutor;
	customExecutorForCachedImages = builder.customExecutorForCachedImages;

	networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
	slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

	L.writeDebugLogs(builder.writeLogs);
}
 
Example 7
Source File: ImageLoaderConfiguration.java    From MiBandDecompiled with Apache License 2.0 6 votes vote down vote up
private ImageLoaderConfiguration(Builder builder)
{
    a = Builder.a(builder).getResources();
    b = Builder.b(builder);
    c = Builder.c(builder);
    d = Builder.d(builder);
    e = Builder.e(builder);
    f = Builder.f(builder);
    g = Builder.g(builder);
    h = Builder.h(builder);
    k = Builder.i(builder);
    l = Builder.j(builder);
    m = Builder.k(builder);
    o = Builder.l(builder);
    n = Builder.m(builder);
    r = Builder.n(builder);
    p = Builder.o(builder);
    q = Builder.p(builder);
    i = Builder.q(builder);
    j = Builder.r(builder);
    s = new g(p);
    t = new h(p);
    L.writeDebugLogs(Builder.s(builder));
}
 
Example 8
Source File: ImageLoaderConfiguration.java    From android-open-project-demo with Apache License 2.0 6 votes vote down vote up
private ImageLoaderConfiguration(final Builder builder) {
	resources = builder.context.getResources();
	maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
	maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
	maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
	maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
	processorForDiskCache = builder.processorForDiskCache;
	taskExecutor = builder.taskExecutor;
	taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
	threadPoolSize = builder.threadPoolSize;
	threadPriority = builder.threadPriority;
	tasksProcessingType = builder.tasksProcessingType;
	diskCache = builder.diskCache;
	memoryCache = builder.memoryCache;
	defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
	downloader = builder.downloader;
	decoder = builder.decoder;

	customExecutor = builder.customExecutor;
	customExecutorForCachedImages = builder.customExecutorForCachedImages;

	networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
	slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

	L.writeDebugLogs(builder.writeLogs);
}
 
Example 9
Source File: Common.java    From Rey-MusicPlayer with Apache License 2.0 5 votes vote down vote up
private void initImageLoader() {

        ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
                .defaultDisplayImageOptions(options)
                .build();

        ImageLoader.getInstance().init(config);

        L.writeDebugLogs(false);
        L.disableLogging();
        L.writeLogs(false);
    }
 
Example 10
Source File: ImageConfig.java    From wallpaperboard with Apache License 2.0 5 votes vote down vote up
public static ImageLoaderConfiguration getImageLoaderConfiguration(@NonNull Context context) {
    L.writeLogs(false);
    L.writeDebugLogs(false);
    return new ImageLoaderConfiguration.Builder(context)
            .threadPriority(Thread.NORM_PRIORITY - 2)
            .threadPoolSize(4)
            .tasksProcessingOrder(QueueProcessingType.FIFO)
            .diskCacheSize(256 * FileHelper.MB)
            .diskCache(new UnlimitedDiskCache(new File(
                    context.getCacheDir().toString() + "/uil-images")))
            .memoryCacheSize(8 * FileHelper.MB)
            .build();
}
 
Example 11
Source File: ImageLoaderConfiguration.java    From Android-Universal-Image-Loader-Modify with Apache License 2.0 5 votes vote down vote up
/**
 * ImageLoader参数配置构造器  把构建者中的数据 对全局变量初始化
 * @param builder   构建信息对象
 */
private ImageLoaderConfiguration(final Builder builder) {
	resources = builder.context.getResources();
	maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
	maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
	maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
	maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
	processorForDiskCache = builder.processorForDiskCache;
	taskExecutor = builder.taskExecutor;
	taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
	threadPoolSize = builder.threadPoolSize;
	threadPriority = builder.threadPriority;
	tasksProcessingType = builder.tasksProcessingType;
	diskCache = builder.diskCache;
	memoryCache = builder.memoryCache;
	defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
	downloader = builder.downloader;
	decoder = builder.decoder;

	customExecutor = builder.customExecutor;
	customExecutorForCachedImages = builder.customExecutorForCachedImages;

	networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
	slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

	L.writeDebugLogs(builder.writeLogs);
}
 
Example 12
Source File: TimberApp.java    From Muzesto with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    mInstance = this;
    ImageLoaderConfiguration localImageLoaderConfiguration = new ImageLoaderConfiguration.Builder(this).build();
    ImageLoader.getInstance().init(localImageLoaderConfiguration);
    L.writeLogs(false);
    L.disableLogging();
    L.writeDebugLogs(false);
    Nammu.init(this);

    mContext = getApplicationContext();

    /*if (!ATE.config(this, "light_theme").isConfigured()) {
        ATE.config(this, "light_theme")
                .activityTheme(R.style.AppTheme)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(false)
                //.usingMaterialDialogs(true)
                .commit();
    }*/
    /*if (!ATE.config(this, "dark_theme").isConfigured()) {
        ATE.config(this, "dark_theme")
                .activityTheme(R.style.AppTheme)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(false)
                //.usingMaterialDialogs(true)
                .commit();
    }*/
    /*if (!ATE.config(this, "light_theme_notoolbar").isConfigured()) {
        ATE.config(this, "light_theme_notoolbar")
                .activityTheme(R.style.AppTheme)
                .coloredActionBar(false)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(true)
                //.usingMaterialDialogs(true)
                .commit();
    }*/
    /*if (!ATE.config(this, "dark_theme_notoolbar").isConfigured()) {
        ATE.config(this, "dark_theme_notoolbar")
                .activityTheme(R.style.AppThemeDark)
                .coloredActionBar(false)
                .primaryColorRes(R.color.colorPrimary)
                .accentColorRes(R.color.colorAccent)
                .coloredNavigationBar(true)
                //.usingMaterialDialogs(true)
                .commit();
    }*/

}