com.google.ipc.invalidation.external.client.android.service.AndroidLogger Java Examples
The following examples show how to use
com.google.ipc.invalidation.external.client.android.service.AndroidLogger.
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: AndroidResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * Constructs a {@link SystemResourcesBuilder} instance using default scheduling, Android-style * logging, and storage, and using {@code network} to send and receive messages. */ public static SystemResourcesBuilder createResourcesBuilder(String logPrefix, NetworkChannel network, Storage storage) { SystemResourcesBuilder builder = new SystemResourcesBuilder(AndroidLogger.forPrefix(logPrefix), new ExecutorBasedScheduler("ticl" + logPrefix), new ExecutorBasedScheduler("ticl-listener" + logPrefix), network, storage); builder.setPlatform("Android-" + android.os.Build.VERSION.RELEASE); return builder; }
Example #2
Source File: AndroidResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * Constructs a {@link SystemResourcesBuilder} instance using default scheduling, Android-style * logging, and storage, and using {@code network} to send and receive messages. */ public static SystemResourcesBuilder createResourcesBuilder(String logPrefix, NetworkChannel network, Storage storage) { SystemResourcesBuilder builder = new SystemResourcesBuilder(AndroidLogger.forPrefix(logPrefix), new ExecutorBasedScheduler("ticl" + logPrefix), new ExecutorBasedScheduler("ticl-listener" + logPrefix), network, storage); builder.setPlatform("Android-" + android.os.Build.VERSION.RELEASE); return builder; }
Example #3
Source File: ResourcesFactory.java From 365browser with Apache License 2.0 | 3 votes |
/** * Creates an instance of resources for production code. * * @param context Android system context * @param clock source of time for the internal scheduler * @param logPrefix log prefix */ private AndroidResources(Context context, AndroidClock clock, String logPrefix) { super(AndroidLogger.forPrefix(logPrefix), new AndroidInternalScheduler(context, clock), new InvalidScheduler(), new AndroidNetworkChannel(context), new AndroidStorage(context), getPlatformString()); this.context = Preconditions.checkNotNull(context); }
Example #4
Source File: ResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 3 votes |
/** * Creates an instance of resources for production code. * * @param context Android system context * @param clock source of time for the internal scheduler * @param logPrefix log prefix */ private AndroidResources(Context context, AndroidClock clock, String logPrefix) { super(AndroidLogger.forPrefix(logPrefix), new AndroidInternalScheduler(context, clock), new InvalidScheduler(), new AndroidNetworkChannel(context), new AndroidStorage(context), getPlatformString()); this.context = Preconditions.checkNotNull(context); }
Example #5
Source File: ResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 3 votes |
/** * Creates an instance of resources for production code. * * @param context Android system context * @param clock source of time for the internal scheduler * @param logPrefix log prefix */ private AndroidResources(Context context, AndroidClock clock, String logPrefix) { super(AndroidLogger.forPrefix(logPrefix), new AndroidInternalScheduler(context, clock), new InvalidScheduler(), new AndroidNetworkChannel(context), new AndroidStorage(context), getPlatformString()); this.context = Preconditions.checkNotNull(context); }