/external/protobuf/examples/ |
list_people.py | 10 for person in address_book.person: 11 print "Person ID:", person.id 12 print " Name:", person.name 13 if person.HasField('email'): 14 print " E-mail address:", person.email 16 for phone_number in person.phone: 17 if phone_number.type == addressbook_pb2.Person.MOBILE: 19 elif phone_number.type == addressbook_pb2.Person.HOME [all...] |
list_people.cc | 12 const tutorial::Person& person = address_book.person(i); local 14 cout << "Person ID: " << person.id() << endl; 15 cout << " Name: " << person.name() << endl; 16 if (person.has_email()) { 17 cout << " E-mail address: " << person.email() << endl; 20 for (int j = 0; j < person.phone_size(); j++) { 21 const tutorial::Person::PhoneNumber& phone_number = person.phone(j) [all...] |
AddPerson.java | 4 import com.example.tutorial.AddressBookProtos.Person; 14 // This function fills in a Person message based on user input. 15 static Person PromptForAddress(BufferedReader stdin, 17 Person.Builder person = Person.newBuilder(); local 19 stdout.print("Enter person ID: "); 20 person.setId(Integer.valueOf(stdin.readLine())); 23 person.setName(stdin.readLine()); 28 person.setEmail(email) [all...] |
ListPeople.java | 4 import com.example.tutorial.AddressBookProtos.Person; 12 for (Person person: addressBook.getPersonList()) { 13 System.out.println("Person ID: " + person.getId()); 14 System.out.println(" Name: " + person.getName()); 15 if (person.hasEmail()) { 16 System.out.println(" E-mail address: " + person.getEmail()); 19 for (Person.PhoneNumber phoneNumber : person.getPhoneList()) [all...] |
add_person.py | 8 # This function fills in a Person message based on user input. 9 def PromptForAddress(person): 10 person.id = int(raw_input("Enter person ID number: ")) 11 person.name = raw_input("Enter name: ") 15 person.email = email 22 phone_number = person.phone.add() 27 phone_number.type = addressbook_pb2.Person.MOBILE 29 phone_number.type = addressbook_pb2.Person.HOME 31 phone_number.type = addressbook_pb2.Person.WOR [all...] |
addressbook.proto | 8 message Person { 10 required int32 id = 2; // Unique ID number for this person. 29 repeated Person person = 1;
|
add_person.cc | 9 // This function fills in a Person message based on user input. 10 void PromptForAddress(tutorial::Person* person) { 11 cout << "Enter person ID number: "; 14 person->set_id(id); 18 getline(cin, *person->mutable_name()); 24 person->set_email(email); 35 tutorial::Person::PhoneNumber* phone_number = person->add_phone(); 42 phone_number->set_type(tutorial::Person::MOBILE) [all...] |
README.txt | 4 example adds a new person to an address book, prompting the user to input 5 the person's information. The list_people example lists people already in the
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
createAttributeNS03.java | 74 illegalQNames.add("person:{"); 75 illegalQNames.add("person:}"); 76 illegalQNames.add("person:~"); 77 illegalQNames.add("person:'"); 78 illegalQNames.add("person:!"); 79 illegalQNames.add("person:@"); 80 illegalQNames.add("person:#"); 81 illegalQNames.add("person:$"); 82 illegalQNames.add("person:%"); 83 illegalQNames.add("person:^") [all...] |
createElementNS03.java | 76 illegalQNames.add("person:{"); 77 illegalQNames.add("person:}"); 78 illegalQNames.add("person:~"); 79 illegalQNames.add("person:'"); 80 illegalQNames.add("person:!"); 81 illegalQNames.add("person:@"); 82 illegalQNames.add("person:#"); 83 illegalQNames.add("person:$"); 84 illegalQNames.add("person:%"); 85 illegalQNames.add("person:^") [all...] |
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
CreateAttributeNS.java | 127 illegalQNames.add("person:{"); 128 illegalQNames.add("person:}"); 129 illegalQNames.add("person:~"); 130 illegalQNames.add("person:'"); 131 illegalQNames.add("person:!"); 132 illegalQNames.add("person:@"); 133 illegalQNames.add("person:#"); 134 illegalQNames.add("person:$"); 135 illegalQNames.add("person:%"); 136 illegalQNames.add("person:^") [all...] |
CreateElementNS.java | 145 illegalQNames.add("person:{"); 146 illegalQNames.add("person:}"); 147 illegalQNames.add("person:~"); 148 illegalQNames.add("person:'"); 149 illegalQNames.add("person:!"); 150 illegalQNames.add("person:@"); 151 illegalQNames.add("person:#"); 152 illegalQNames.add("person:$"); 153 illegalQNames.add("person:%"); 154 illegalQNames.add("person:^") [all...] |
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
legacy_contacts.sql | 11 CREATE TABLE contact_methods (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 15 CREATE TABLE extensions (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES people(_id),UNIQUE(person, name)); 24 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING); 32 CREATE TABLE organizations (_id INTEGER PRIMARY KEY AUTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,label TEXT,person INTEGER REFERENCES people(_id)); 55 CREATE TABLE phones (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),type INTEGER NOT NULL,number TEXT,number_key TEXT,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 59 CREATE TABLE photos (_id INTEGER PRIMARY KEY AUTOINCREMENT,exists_on_server INTEGER NOT NULL DEFAULT 0,person INTEGER REFERENCES people(_id), local_version TEXT,data BLOB,sync_error TEXT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,UNIQUE(person) ); 74 CREATE INDEX contactMethodsPeopleIndex ON contact_methods (person); 75 CREATE INDEX extensionsIndex1 ON extensions (person, name) [all...] |
/packages/providers/ContactsProvider/tests/assets/test1/ |
legacy_contacts.sql | 14 CREATE TABLE contact_methods (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 31 CREATE TABLE extensions (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES people(_id),UNIQUE(person, name)); 40 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING); 51 CREATE TABLE organizations (_id INTEGER PRIMARY KEY AUTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,label TEXT,person INTEGER REFERENCES people(_id)); 78 CREATE TABLE phones (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),type INTEGER NOT NULL,number TEXT,number_key TEXT,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 89 CREATE TABLE photos (_id INTEGER PRIMARY KEY AUTOINCREMENT,exists_on_server INTEGER NOT NULL DEFAULT 0,person INTEGER REFERENCES people(_id), local_version TEXT,data BLOB,sync_error TEXT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,UNIQUE(person) ); 106 CREATE INDEX contactMethodsPeopleIndex ON contact_methods (person); 107 CREATE INDEX extensionsIndex1 ON extensions (person, name) [all...] |
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
legacy_contacts.sql | 12 CREATE TABLE contact_methods (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 18 CREATE TABLE extensions (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES people(_id),UNIQUE(person, name)); 28 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING); 42 CREATE TABLE organizations (_id INTEGER PRIMARY KEY AUTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,label TEXT,person INTEGER REFERENCES people(_id)); 100 CREATE TABLE phones (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),type INTEGER NOT NULL,number TEXT,number_key TEXT,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 107 CREATE TABLE photos (_id INTEGER PRIMARY KEY AUTOINCREMENT,exists_on_server INTEGER NOT NULL DEFAULT 0,person INTEGER REFERENCES people(_id), local_version TEXT,data BLOB,sync_error TEXT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,UNIQUE(person) ); 130 CREATE INDEX contactMethodsPeopleIndex ON contact_methods (person); 131 CREATE INDEX extensionsIndex1 ON extensions (person, name) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_PeopleTest.java | 120 notes = "Test methods which add person to a group", 126 notes = "Test methods which add person to a group", 132 notes = "Test methods which add person to a group", 138 notes = "Test methods which add person to a group", 144 notes = "Test methods which add person to a group", 276 notes = "Test methods access the photo data of person", 282 notes = "Test methods access the photo data of person", 289 notes = "Test methods access the photo data of person",
|
/frameworks/base/core/java/android/provider/ |
Contacts.java | 242 * The person's name. 250 * Phonetic equivalent of the person's name, in a locale-dependent 279 * Notes about the person. 287 * The number of times a person has been contacted 295 * The last time a person was contacted. 303 * A custom ringtone associated with a person. Not always present. 311 * Whether the person should always be sent to voicemail. Not always 397 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/person"; 401 * person. 405 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/person"; [all...] |
/cts/tests/res/xml/ |
intentfilter.xml | 22 <type name="vnd.android.cursor.dir/person"/>
|
/external/bouncycastle/ |
NOTICE | 6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
/external/chromium/base/third_party/xdg_user_dirs/ |
xdg_user_dir_lookup.h | 7 Permission is hereby granted, free of charge, to any person
|
/external/dropbear/ |
agentfwd.h | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy
|
bignum.h | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy
|
common-chansession.c | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy
|
compat.h | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy
|
gendss.h | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy
|