Java Code Examples for com.google.ipc.invalidation.external.client.types.ObjectId#getName()
The following examples show how to use
com.google.ipc.invalidation.external.client.types.ObjectId#getName() .
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: InvalidationClientService.java From 365browser with Apache License 2.0 | 5 votes |
/** * Requests that the sync system perform a sync. * * @param objectId the object that changed, if known. * @param version the version of the object that changed, if known. * @param payload the payload of the change, if known. */ private void requestSync(@Nullable ObjectId objectId, long version, @Nullable String payload) { int objectSource = 0; String objectName = null; if (objectId != null) { objectName = new String(objectId.getName()); objectSource = objectId.getSource(); } Bundle bundle = PendingInvalidation.createBundle(objectName, objectSource, version, payload); Account account = ChromeSigninController.get().getSignedInUser(); String contractAuthority = AndroidSyncSettings.getContractAuthority(this); requestSyncFromContentResolver(bundle, account, contractAuthority); }
Example 2
Source File: InvalidationPreferences.java From 365browser with Apache License 2.0 | 4 votes |
/** Converts the given object id to a string for storage in preferences. */ private String getObjectIdString(ObjectId objectId) { return objectId.getSource() + ":" + new String(objectId.getName()); }
Example 3
Source File: InvalidationPreferences.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
/** Converts the given object id to a string for storage in preferences. */ private String getObjectIdString(ObjectId objectId) { return objectId.getSource() + ":" + new String(objectId.getName()); }
Example 4
Source File: InvalidationPreferences.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
/** Converts the given object id to a string for storage in preferences. */ private String getObjectIdString(ObjectId objectId) { return objectId.getSource() + ":" + new String(objectId.getName()); }