com.google.ipc.invalidation.ticl.android2.channel.AndroidNetworkChannel Java Examples

The following examples show how to use com.google.ipc.invalidation.ticl.android2.channel.AndroidNetworkChannel. 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: ResourcesFactory.java    From 365browser with Apache License 2.0 3 votes vote down vote up
/**
 * 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 #2
Source File: ResourcesFactory.java    From android-chromium with BSD 2-Clause "Simplified" License 3 votes vote down vote up
/**
 * 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 #3
Source File: ResourcesFactory.java    From android-chromium with BSD 2-Clause "Simplified" License 3 votes vote down vote up
/**
 * 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);
}