com.google.ipc.invalidation.ticl.android2.ResourcesFactory.AndroidResources Java Examples

The following examples show how to use com.google.ipc.invalidation.ticl.android2.ResourcesFactory.AndroidResources. 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: AndroidNetworkChannel.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public void setSystemResources(SystemResources resources) {
  this.resources = (AndroidResources) Preconditions.checkNotNull(resources);
}
 
Example #2
Source File: TiclService.java    From 365browser with Apache License 2.0 4 votes vote down vote up
/** Returns the resources used for the current Ticl. */
AndroidResources getSystemResourcesForTest() {
  return resources;
}
 
Example #3
Source File: AndroidNetworkChannel.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public void setSystemResources(SystemResources resources) {
  this.resources = (AndroidResources) Preconditions.checkNotNull(resources);
}
 
Example #4
Source File: TiclService.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/** Returns the resources used for the current Ticl. */
AndroidResources getSystemResourcesForTest() {
  return resources;
}
 
Example #5
Source File: AndroidNetworkChannel.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public void setSystemResources(SystemResources resources) {
  this.resources = (AndroidResources) Preconditions.checkNotNull(resources);
}
 
Example #6
Source File: TiclService.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/** Returns the resources used for the current Ticl. */
AndroidResources getSystemResourcesForTest() {
  return resources;
}
 
Example #7
Source File: TiclService.java    From 365browser with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the resources to use for a Ticl. Normally, we use a new resources instance
 * for every call, but for existing  tests, we need to be able to override this function
 * and return the same instance each time.
 */
AndroidResources createResources() {
  return ResourcesFactory.createResources(this, new AndroidClock.SystemClock(), "TiclService");
}
 
Example #8
Source File: TiclService.java    From android-chromium with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Returns the resources to use for a Ticl. Normally, we use a new resources instance
 * for every call, but for existing  tests, we need to be able to override this function
 * and return the same instance each time.
 */
AndroidResources createResources() {
  return ResourcesFactory.createResources(this, new AndroidClock.SystemClock(), "TiclService");
}
 
Example #9
Source File: TiclService.java    From android-chromium with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Returns the resources to use for a Ticl. Normally, we use a new resources instance
 * for every call, but for existing  tests, we need to be able to override this function
 * and return the same instance each time.
 */
AndroidResources createResources() {
  return ResourcesFactory.createResources(this, new AndroidClock.SystemClock(), "TiclService");
}