Home
last modified time | relevance | path

Searched refs:objectIds (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/
DTestableInvalidationService.java63 public void register(byte[] clientId, Iterable<ObjectId> objectIds) { in register() argument
64 List<ObjectId> objectIdList = CollectionUtil.newArrayList(objectIds); in register()
67 super.register(clientId, objectIds); in register()
71 public void unregister(byte[] clientId, Iterable<ObjectId> objectIds) { in unregister() argument
72 List<ObjectId> objectIdList = CollectionUtil.newArrayList(objectIds); in unregister()
75 super.unregister(clientId, objectIds); in unregister()
DInvalidationServiceTest.java606 Set<ObjectId> objectIds = new HashSet<ObjectId>(); in testRegistrationIntentWithTypesAndObjectIds() local
610 objectIds.add(ObjectId.newInstance(1, "obj1".getBytes())); in testRegistrationIntentWithTypesAndObjectIds()
611 objectIds.add(ObjectId.newInstance(2, "obj2".getBytes())); in testRegistrationIntentWithTypesAndObjectIds()
615 assertTrue(expectedObjectIdsRegistered(types, objectIds, false /* isReady */)); in testRegistrationIntentWithTypesAndObjectIds()
622 assertTrue(expectedObjectIdsRegistered(types, objectIds, false /* isReady */)); in testRegistrationIntentWithTypesAndObjectIds()
626 assertTrue(expectedObjectIdsRegistered(types, objectIds, true /* isReady */)); in testRegistrationIntentWithTypesAndObjectIds()
629 objectIds.add(ObjectId.newInstance(3, "obj3".getBytes())); in testRegistrationIntentWithTypesAndObjectIds()
633 assertTrue(expectedObjectIdsRegistered(types, objectIds, true /* isReady */)); in testRegistrationIntentWithTypesAndObjectIds()
639 assertTrue(expectedObjectIdsRegistered(types, objectIds, true /* isReady */)); in testRegistrationIntentWithTypesAndObjectIds()
645 assertTrue(expectedObjectIdsRegistered(types, objectIds, true /* isReady */)); in testRegistrationIntentWithTypesAndObjectIds()
[all …]
DInvalidationPreferencesTest.java91 Set<ObjectId> objectIds = CollectionUtil.newHashSet( in testReadWriteAndReadData() local
97 invPreferences.setObjectIds(editContext, objectIds); in testReadWriteAndReadData()
110 assertEquals(objectIds, invPreferences.getSavedObjectIds()); in testReadWriteAndReadData()
/external/chromium_org/sync/android/java/src/org/chromium/sync/internal_api/pub/base/
DModelType.java174 Set<ObjectId> objectIds = new HashSet<ObjectId>(filteredModelTypes.size()); in modelTypesToObjectIds() local
176 objectIds.add(modelType.toObjectId()); in modelTypesToObjectIds()
178 return objectIds; in modelTypesToObjectIds()
183 Set<String> objectIds = new HashSet<String>(modelTypes.size()); in modelTypesToSyncTypesForTest() local
185 objectIds.add(modelType.toString()); in modelTypesToSyncTypesForTest()
187 return objectIds; in modelTypesToSyncTypesForTest()
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DInvalidationPreferences.java127 Set<ObjectId> objectIds = new HashSet<ObjectId>(objectIdStrings.size()); in getSavedObjectIds() local
131 objectIds.add(objectId); in getSavedObjectIds()
134 return objectIds; in getSavedObjectIds()
138 public void setObjectIds(EditContext editContext, Collection<ObjectId> objectIds) { in setObjectIds() argument
139 if (objectIds == null) throw new NullPointerException("objectIds is null."); in setObjectIds()
140 Set<String> objectIdStrings = new HashSet<String>(objectIds.size()); in setObjectIds()
141 for (ObjectId objectId : objectIds) { in setObjectIds()
DInvalidationService.java304 Set<ObjectId> objectIds = new InvalidationPreferences(this).getSavedObjectIds(); in readNonSyncRegistrationsFromPrefs() local
305 if (objectIds == null) return Collections.emptySet(); in readNonSyncRegistrationsFromPrefs()
306 else return objectIds; in readNonSyncRegistrationsFromPrefs()
347 private void setRegisteredTypes(Set<String> syncTypes, Set<ObjectId> objectIds) { in setRegisteredTypes() argument
365 if (objectIds != null) { in setRegisteredTypes()
366 prefs.setObjectIds(editContext, objectIds); in setRegisteredTypes()
385 Set<ObjectId> desiredNonSyncRegistrations = objectIds != null ? in setRegisteredTypes()
386 objectIds : existingNonSyncRegistrations; in setRegisteredTypes()
DInvalidationIntentProtocol.java132 Set<ObjectId> objectIds = new HashSet<ObjectId>(objectSources.size()); in getRegisteredObjectIds() local
134 objectIds.add(ObjectId.newInstance( in getRegisteredObjectIds()
137 return objectIds; in getRegisteredObjectIds()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/
DInvalidationControllerTest.java309 Set<ObjectId> objectIds = InvalidationIntentProtocol.getRegisteredObjectIds(intent); in testSetRegisteredObjectIds() local
310 assertEquals(2, objectIds.size()); in testSetRegisteredObjectIds()
311 assertTrue(objectIds.contains(ObjectId.newInstance(1, "a".getBytes()))); in testSetRegisteredObjectIds()
312 assertTrue(objectIds.contains(ObjectId.newInstance(2, "b".getBytes()))); in testSetRegisteredObjectIds()