Searched refs:id_string (Results 1 - 25 of 33) sorted by relevance

12

/external/chromium_org/sync/syncable/
H A Dsyncable_proto_util.cc29 return SyncableIdFromProto(entity.id_string()).IsRoot();
H A Dnigori_util.cc110 Id id_string = type_root.GetFirstChildId(); local
111 to_visit.push(id_string);
113 id_string = to_visit.front();
115 if (id_string.IsRoot())
118 Entry child(trans, GET_BY_ID, id_string);
H A Ddirectory_backing_store.cc1242 std::string id_string; local
1243 get.ColumnBlobAsString(1, &id_string);
1265 if (id_string.at(0) == 'c') {
1272 id_string.substr(1));
1288 id_string.substr(1));
/external/chromium_org/sync/tools/testserver/
H A Dchromiumsync.py604 base_entry = self._entries.get(entry.id_string)
609 self._entries[entry.id_string] = copy.deepcopy(entry)
672 def _ExtractIdInfo(self, id_string):
673 if not id_string or id_string == ROOT_ID:
675 datatype_string, separator, remainder = id_string.partition('^')
703 def _ItemExists(self, id_string):
705 return id_string in self._entries
715 id_string = self._ServerTagToId(spec.tag)
716 if self._ItemExists(id_string)
[all...]
H A Dchromiumsync_test.py25 self.model._entries[proto.id_string] = proto
61 proto.id_string = 'abcd'
63 self.assertFalse(self.model._ItemExists(proto.id_string))
66 self.assertTrue(self.model._ItemExists(proto.id_string))
70 self.assertTrue(self.model._ItemExists(proto.id_string))
71 self.assertEqual(2, self.model._entries[proto.id_string].version)
137 entry.id_string = 'batch test %d' % i
161 entry.id_string = 'batch test %d' % i
196 def DoCommit(original=None, id_string='', name=None, parent=None,
201 proto.id_string
[all...]
/external/chromium_org/sync/internal_api/
H A Dbase_node.cc179 syncable::Id id_string = GetEntry()->GetPredecessorId(); local
180 if (id_string.IsRoot())
182 return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string);
186 syncable::Id id_string = GetEntry()->GetSuccessorId(); local
187 if (id_string.IsRoot())
189 return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string);
193 syncable::Id id_string = GetEntry()->GetFirstChildId(); local
194 if (id_string.IsRoot())
196 return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string);
/external/chromium_org/sync/engine/
H A Dentity_tracker.cc16 const std::string& id_string,
19 return new EntityTracker(id_string, client_tag_hash, 0, received_version);
23 const std::string& id_string,
32 return new EntityTracker(id_string,
15 FromServerUpdate( const std::string& id_string, const std::string& client_tag_hash, int64 received_version) argument
22 FromCommitRequest( const std::string& id_string, const std::string& client_tag_hash, int64 sequence_number, int64 base_version, base::Time ctime, base::Time mtime, const std::string& non_unique_name, bool deleted, const sync_pb::EntitySpecifics& specifics) argument
H A Dentity_tracker.h37 static EntityTracker* FromServerUpdate(const std::string& id_string,
43 const std::string& id_string,
H A Ddirectory_update_handler_unittest.cc283 type_root->id_string(),
288 type_root->id_string(),
305 EXPECT_TRUE(EntryExists(type_root->id_string()));
306 EXPECT_TRUE(EntryExists(e1->id_string()));
307 EXPECT_TRUE(EntryExists(e2->id_string()));
315 EXPECT_TRUE(EntryExists(type_root->id_string()));
316 EXPECT_FALSE(EntryExists(e1->id_string()));
317 EXPECT_TRUE(EntryExists(e2->id_string()));
346 type_root->id_string(),
359 EXPECT_TRUE(EntryExists(type_root->id_string()));
[all...]
H A Dprocess_updates_util.cc52 SyncableIdFromProto(update.id_string()));
102 syncable::Id id = SyncableIdFromProto(entry.id_string());
181 const syncable::Id& server_id = SyncableIdFromProto(update.id_string());
H A Dcommit_util.cc253 << " new_id:" << SyncableIdFromProto(entry_response.id_string())
274 SyncableIdFromProto(entry_response.id_string());
363 << " new_id:" << SyncableIdFromProto(entry_response.id_string())
448 SyncableIdFromProto(server_entry.id_string());
H A Dentity_tracker_unittest.cc75 EXPECT_EQ(kServerId, pb_entity.id_string());
H A Dmodel_type_sync_worker_impl.cc119 DCHECK_EQ(data_type_state_.type_root_id, update_entity->id_string());
121 data_type_state_.type_root_id = update_entity->id_string();
132 EntityTracker::FromServerUpdate(update_entity->id_string(),
142 response_data.id = update_entity->id_string();
H A Dnon_blocking_type_commit_contribution.cc71 response_data.id = entry_response.id_string();
H A Dmodel_type_sync_worker_impl_unittest.cc674 EXPECT_FALSE(entity.id_string().empty());
694 EXPECT_NE(entity.id_string(), commit_response.id);
725 EXPECT_FALSE(entity.id_string().empty());
741 EXPECT_EQ(entity.id_string(), commit_response.id);
817 EXPECT_NE(tag1_entity.id_string(), tag2_entity.id_string());
H A Ddirectory_commit_contribution_unittest.cc95 if (entity.id_string()[0] == '-') // Look for the - in 'c-1234' style IDs.
98 response->set_id_string(entity.id_string());
196 entity.id_string()));
/external/chromium_org/apps/
H A Dsaved_files_service_unittest.cc63 std::string id_string = GenerateId(id); local
64 SCOPED_TRACE(id_string);
65 EXPECT_TRUE(service_->IsRegistered(extension_->id(), id_string));
67 service_->GetFileEntry(extension_->id(), id_string);
69 EXPECT_EQ(id_string, entry->id);
/external/chromium_org/sync/test/fake_server/
H A Dbookmark_entity.cc41 string originator_client_item_id = client_entity.id_string();
72 return new BookmarkEntity(client_entity.id_string(),
H A Dfake_server.cc326 entity = TombstoneEntity::Create(client_entity.id_string());
329 if (!DeleteChildren(client_entity.id_string())) {
337 entities_[client_entity.id_string()]);
342 if (entities_.find(client_entity.id_string()) != entities_.end()) {
345 entities_[client_entity.id_string()],
442 if (entity_id != client_entity.id_string()) {
443 client_to_server_ids[client_entity.id_string()] = entity_id;
/external/chromium_org/sync/test/engine/
H A Dmock_connection_manager.cc398 last_sent_commit().entries(0).id_string()));
409 last_commit_response().entryresponse(0).id_string());
415 last_commit_response().entryresponse(0).id_string());
442 string id_string = GetMutableLastUpdate()->id_string(); local
444 AddUpdateTombstone(syncable::Id::CreateFromServerId(id_string));
578 string id_string = entry.id_string(); local
585 id = syncable::Id::CreateFromClientString(id_string);
587 id = syncable::Id::CreateFromServerId(id_string);
[all...]
/external/chromium_org/chrome/browser/extensions/api/bookmarks/
H A Dbookmarks_api.h140 bool GetBookmarkIdAsInt64(const std::string& id_string, int64* id);
145 const BookmarkNode* GetBookmarkNodeFromId(const std::string& id_string);
H A Dbookmarks_api.cc120 bool BookmarksFunction::GetBookmarkIdAsInt64(const std::string& id_string, argument
122 if (base::StringToInt64(id_string, id))
130 const std::string& id_string) {
132 if (!GetBookmarkIdAsInt64(id_string, &id))
557 std::string id_string; local
558 if (!args->GetString(0, &id_string))
561 if (base::StringToInt64(id_string, &id))
129 GetBookmarkNodeFromId( const std::string& id_string) argument
/external/chromium_org/components/bookmarks/browser/
H A Dbookmark_codec.cc275 std::string id_string; local
278 if (!value.GetString(kIdKey, &id_string) ||
279 !base::StringToInt64(id_string, &id) ||
319 UpdateChecksumWithUrlNode(id_string, title, url_string);
347 UpdateChecksumWithFolderNode(id_string, title);
/external/chromium_org/storage/browser/fileapi/
H A Dsandbox_directory_database.cc863 std::string id_string; local
865 db_->Get(leveldb::ReadOptions(), LastFileIdKey(), &id_string);
867 if (!base::StringToInt64(id_string, file_id)) {
891 std::string id_string = GetFileLookupKey(file_id); local
898 batch->Put(child_key, id_string);
904 id_string,
/external/chromium_org/components/policy/core/common/
H A Dschema.cc437 std::string id_string; local
438 if (schema.GetString(schema::kId, &id_string)) {
485 std::string id_string; local
486 if (schema.GetString(schema::kId, &id_string)) {
487 if (ContainsKey(*id_map, id_string)) {
488 *error = "Duplicated id: " + id_string;
491 (*id_map)[id_string] = *index;

Completed in 7409 milliseconds

12