Home
last modified time | relevance | path

Searched refs:ObjectId (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DInvalidationService.java18 import com.google.ipc.invalidation.external.client.types.ObjectId;
116 public void invalidateUnknownVersion(ObjectId objectId, byte[] ackHandle) { in invalidateUnknownVersion()
129 byte[] clientId, ObjectId objectId, boolean isTransient, String errorMessage) { in informRegistrationFailure()
135 List<ObjectId> objectIdAsList = CollectionUtil.newArrayList(objectId); in informRegistrationFailure()
146 byte[] clientId, ObjectId objectId, RegistrationState regState) { in informRegistrationStatus()
148 List<ObjectId> objectIdAsList = CollectionUtil.newArrayList(objectId); in informRegistrationStatus()
185 Set<ObjectId> desiredRegistrations = readRegistrationsFromPrefs(); in reissueRegistrations()
293 private Set<ObjectId> readSyncRegistrationsFromPrefs() { in readSyncRegistrationsFromPrefs()
303 private Set<ObjectId> readNonSyncRegistrationsFromPrefs() { in readNonSyncRegistrationsFromPrefs()
304 Set<ObjectId> objectIds = new InvalidationPreferences(this).getSavedObjectIds(); in readNonSyncRegistrationsFromPrefs()
[all …]
DInvalidationPreferences.java14 import com.google.ipc.invalidation.external.client.types.ObjectId;
121 public Set<ObjectId> getSavedObjectIds() { in getSavedObjectIds()
127 Set<ObjectId> objectIds = new HashSet<ObjectId>(objectIdStrings.size()); in getSavedObjectIds()
129 ObjectId objectId = getObjectId(objectIdString); in getSavedObjectIds()
138 public void setObjectIds(EditContext editContext, Collection<ObjectId> objectIds) { in setObjectIds()
141 for (ObjectId objectId : objectIds) { in setObjectIds()
181 private String getObjectIdString(ObjectId objectId) { in getObjectIdString()
189 private ObjectId getObjectId(String objectIdString) { in getObjectId()
202 return ObjectId.newInstance(objectSource, objectName); in getObjectId()
DInvalidationIntentProtocol.java10 import com.google.ipc.invalidation.external.client.types.ObjectId;
123 public static Set<ObjectId> getRegisteredObjectIds(Intent intent) { in getRegisteredObjectIds()
132 Set<ObjectId> objectIds = new HashSet<ObjectId>(objectSources.size()); in getRegisteredObjectIds()
134 objectIds.add(ObjectId.newInstance( in getRegisteredObjectIds()
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/
DTestableInvalidationService.java12 import com.google.ipc.invalidation.external.client.types.ObjectId;
29 final List<List<ObjectId>> mRegistrations = new ArrayList<List<ObjectId>>();
32 final List<List<ObjectId>> mUnregistrations = new ArrayList<List<ObjectId>>();
38 final Set<ObjectId> mCurrentRegistrations = new HashSet<ObjectId>();
63 public void register(byte[] clientId, Iterable<ObjectId> objectIds) { in register()
64 List<ObjectId> objectIdList = CollectionUtil.newArrayList(objectIds); in register()
71 public void unregister(byte[] clientId, Iterable<ObjectId> objectIds) { in unregister()
72 List<ObjectId> objectIdList = CollectionUtil.newArrayList(objectIds); in unregister()
DInvalidationServiceTest.java18 import com.google.ipc.invalidation.external.client.types.ObjectId;
81 Set<ObjectId> regAccumulator = new HashSet<ObjectId>(); in testComputeRegistrationOps()
82 Set<ObjectId> unregAccumulator = new HashSet<ObjectId>(); in testComputeRegistrationOps()
95 InvalidationService.computeRegistrationOps(new HashSet<ObjectId>(), in testComputeRegistrationOps()
96 new HashSet<ObjectId>(), regAccumulator, unregAccumulator); in testComputeRegistrationOps()
102 Set<ObjectId> desiredTypes = in testComputeRegistrationOps()
106 new HashSet<ObjectId>(), in testComputeRegistrationOps()
112 new HashSet<ObjectId>(regAccumulator)); in testComputeRegistrationOps()
143 ObjectId objectId = ObjectId.newInstance(1, "obj".getBytes()); in testReady()
157 new HashSet<ObjectId>(getService().mRegistrations.get(0))); in testReady()
[all …]
DInvalidationPreferencesTest.java12 import com.google.ipc.invalidation.external.client.types.ObjectId;
91 Set<ObjectId> objectIds = CollectionUtil.newHashSet( in testReadWriteAndReadData()
92 ObjectId.newInstance(1, "obj1".getBytes()), in testReadWriteAndReadData()
93 ObjectId.newInstance(2, "obj2".getBytes())); in testReadWriteAndReadData()
/external/chromium_org/components/invalidation/
Dinvalidation_util.h23 class ObjectId; variable
31 bool operator()(const invalidation::ObjectId& lhs,
32 const invalidation::ObjectId& rhs) const;
40 typedef std::set<invalidation::ObjectId, ObjectIdLessThan> ObjectIdSet;
42 typedef std::map<invalidation::ObjectId, int, ObjectIdLessThan>
47 const invalidation::ObjectId& object_id);
50 invalidation::ObjectId* out);
53 const invalidation::ObjectId& object_id);
Dregistration_manager.h61 typedef std::map<invalidation::ObjectId,
79 void MarkRegistrationLost(const invalidation::ObjectId& id);
86 void DisableId(const invalidation::ObjectId& id);
114 RegistrationStatus(const invalidation::ObjectId& id,
127 const invalidation::ObjectId id;
151 typedef std::map<invalidation::ObjectId,
161 void TryRegisterId(const invalidation::ObjectId& id,
168 void DoRegisterId(const invalidation::ObjectId& id);
171 void UnregisterId(const invalidation::ObjectId& id);
177 bool IsIdRegistered(const invalidation::ObjectId& id) const;
Dsync_invalidation_listener_unittest.cc30 using invalidation::ObjectId;
83 virtual void Register(const ObjectId& object_id) OVERRIDE { in Register()
92 const invalidation::vector<ObjectId>& object_ids) OVERRIDE { in Register()
100 virtual void Unregister(const ObjectId& object_id) OVERRIDE { in Unregister()
109 const invalidation::vector<ObjectId>& object_ids) OVERRIDE { in Unregister()
114 for (invalidation::vector<ObjectId>::const_iterator in Unregister()
142 size_t GetInvalidationCount(const ObjectId& id) const { in GetInvalidationCount()
151 int64 GetVersion(const ObjectId& id) const { in GetVersion()
161 std::string GetPayload(const ObjectId& id) const { in GetPayload()
171 bool IsUnknownVersion(const ObjectId& id) const { in IsUnknownVersion()
[all …]
Dinvalidation_util.cc19 bool ObjectIdLessThan::operator()(const invalidation::ObjectId& lhs, in operator ()()
20 const invalidation::ObjectId& rhs) const { in operator ()()
44 const invalidation::ObjectId& object_id) { in ObjectIdToValue()
52 invalidation::ObjectId* out) { in ObjectIdFromValue()
53 *out = invalidation::ObjectId(); in ObjectIdFromValue()
59 *out = invalidation::ObjectId(source, name); in ObjectIdFromValue()
63 std::string ObjectIdToString(const invalidation::ObjectId& object_id) { in ObjectIdToString()
Dinvalidation.h30 static Invalidation Init(const invalidation::ObjectId& id,
33 static Invalidation InitUnknownVersion(const invalidation::ObjectId& id);
43 invalidation::ObjectId object_id() const;
97 Invalidation(const invalidation::ObjectId& id,
104 invalidation::ObjectId id_;
Dunacked_invalidation_set.h37 UnackedInvalidationSet(invalidation::ObjectId id);
42 const invalidation::ObjectId& object_id() const;
111 invalidation::ObjectId object_id_;
115 typedef std::map<invalidation::ObjectId,
Dack_handler.h13 class ObjectId; variable
30 virtual void Acknowledge(const invalidation::ObjectId& id,
34 virtual void Drop(const invalidation::ObjectId& id,
Dp2p_invalidator_unittest.cc88 default_enabled_ids_.insert(invalidation::ObjectId(10, "A")); in P2PInvalidatorTest()
89 default_enabled_ids_.insert(invalidation::ObjectId(10, "B")); in P2PInvalidatorTest()
257 enabled_ids.insert(invalidation::ObjectId(20, "A")); in TEST_F()
258 enabled_ids.insert(invalidation::ObjectId(20, "B")); in TEST_F()
259 enabled_ids.insert(invalidation::ObjectId(20, "C")); in TEST_F()
261 changed_ids.insert(invalidation::ObjectId(20, "A")); in TEST_F()
262 changed_ids.insert(invalidation::ObjectId(20, "Z")); in TEST_F()
264 expected_ids.insert(invalidation::ObjectId(20, "A")); in TEST_F()
Dregistration_manager.cc24 const invalidation::ObjectId& id, RegistrationManager* manager) in RegistrationStatus()
100 const invalidation::ObjectId& id) { in MarkRegistrationLost()
127 void RegistrationManager::DisableId(const invalidation::ObjectId& id) { in DisableId()
168 const invalidation::ObjectId& id = it->first; in GetPendingRegistrationsForTest()
202 void RegistrationManager::TryRegisterId(const invalidation::ObjectId& id, in TryRegisterId()
256 void RegistrationManager::DoRegisterId(const invalidation::ObjectId& id) { in DoRegisterId()
269 void RegistrationManager::UnregisterId(const invalidation::ObjectId& id) { in UnregisterId()
297 const invalidation::ObjectId& id) const { in IsIdRegistered()
Dmock_ack_handler.h58 const invalidation::ObjectId& id,
61 const invalidation::ObjectId& id,
66 typedef std::map<invalidation::ObjectId,
Dsync_invalidation_listener.h102 const invalidation::ObjectId& object_id, in NON_EXPORTED_BASE()
109 const invalidation::ObjectId& object_id, in NON_EXPORTED_BASE()
113 const invalidation::ObjectId& object_id, in NON_EXPORTED_BASE()
126 const invalidation::ObjectId& id, in NON_EXPORTED_BASE()
129 const invalidation::ObjectId& id, in NON_EXPORTED_BASE()
Dinvalidation.cc28 Invalidation Invalidation::Init(const invalidation::ObjectId& id, in Init()
35 const invalidation::ObjectId& id) { in InitUnknownVersion()
48 invalidation::ObjectId id; in InitFromValue()
92 invalidation::ObjectId Invalidation::object_id() const { in object_id()
167 Invalidation::Invalidation(const invalidation::ObjectId& id, in Invalidation()
Dinvalidation_logger_unittest.cc169 ObjectId o1(1000, "DataType1"); in TEST()
173 ObjectId o2(1000, "DataType2"); in TEST()
180 ObjectId o3(1020, "DataTypeA"); in TEST()
196 ObjectId o4(1020, "DataTypeF"); in TEST()
200 ObjectId o5(1020, "DataTypeG"); in TEST()
231 ObjectId o1(1020, "DataTypeA"); in TEST()
239 ObjectId o2(1040, "DataTypeB"); in TEST()
Dregistration_manager_unittest.cc56 void LoseRegistration(const invalidation::ObjectId& oid) { in LoseRegistration()
71 virtual void Register(const invalidation::ObjectId& oid) OVERRIDE { in Register()
77 const std::vector<invalidation::ObjectId>& oids) OVERRIDE { in Register()
81 virtual void Unregister(const invalidation::ObjectId& oid) OVERRIDE { in Unregister()
87 const std::vector<invalidation::ObjectId>& oids) OVERRIDE { in Unregister()
103 invalidation::ObjectId GetIdForIndex(size_t index) { in GetIdForIndex()
106 return invalidation::ObjectId(1 + index, name); in GetIdForIndex()
Dobject_id_invalidation_map.h47 invalidation::ObjectId id) const;
65 typedef std::map<invalidation::ObjectId,
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dpush_messaging_invalidation_handler_unittest.cc89 expected_ids.insert(invalidation::ObjectId( in TEST_F()
92 expected_ids.insert(invalidation::ObjectId( in TEST_F()
95 expected_ids.insert(invalidation::ObjectId( in TEST_F()
98 expected_ids.insert(invalidation::ObjectId( in TEST_F()
115 invalidation::ObjectId( in TEST_F()
123 invalidation::ObjectId( in TEST_F()
139 invalidation::ObjectId( in TEST_F()
144 invalidation::ObjectId( in TEST_F()
149 invalidation::ObjectId( in TEST_F()
154 invalidation::ObjectId( in TEST_F()
[all …]
/external/chromium_org/sync/android/java/src/org/chromium/sync/internal_api/pub/base/
DModelType.java9 import com.google.ipc.invalidation.external.client.types.ObjectId;
119 public ObjectId toObjectId() { in toObjectId()
120 return ObjectId.newInstance(Types.ObjectSource.CHROME_SYNC, mModelType.getBytes()); in toObjectId()
123 public static ModelType fromObjectId(ObjectId objectId) { in fromObjectId()
163 public static Set<ObjectId> syncTypesToObjectIds(Collection<String> syncTypes) { in syncTypesToObjectIds()
172 public static Set<ObjectId> modelTypesToObjectIds(Set<ModelType> modelTypes) { in modelTypesToObjectIds()
174 Set<ObjectId> objectIds = new HashSet<ObjectId>(filteredModelTypes.size()); in modelTypesToObjectIds()
/external/chromium_org/sync/tools/
Dinvalidation_helper.cc12 invalidation::ObjectId* object_id) { in RealModelTypeToObjectId()
25 invalidation::ObjectId model_type_as_id; in ModelTypeSetToObjectIdSet()
/external/chromium_org/chrome/browser/sync/glue/
Dinvalidation_helper.cc12 invalidation::ObjectId* object_id) { in RealModelTypeToObjectId()
25 invalidation::ObjectId model_type_as_id; in ModelTypeSetToObjectIdSet()

123