Home
last modified time | relevance | path

Searched refs:person (Results 1 – 25 of 211) sorted by relevance

123456789

/external/nanopb-c/tests/basic_buffer/
Ddecode_buffer.c19 Person person; in print_person() local
21 if (!pb_decode(stream, Person_fields, &person)) in print_person()
26 printf("name: \"%s\"\n", person.name); in print_person()
27 printf("id: %ld\n", (long)person.id); in print_person()
29 if (person.has_email) in print_person()
30 printf("email: \"%s\"\n", person.email); in print_person()
32 for (i = 0; i < person.phone_count; i++) in print_person()
34 Person_PhoneNumber *phone = &person.phone[i]; in print_person()
DSConscript5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o"])
6 dec = env.Program(["decode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o"])
10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person")
Dencode_buffer.c17 Person person = {"Test Person 99", 99, true, "test@person.com", in main() local
26 if (pb_encode(&stream, Person_fields, &person)) in main()
/external/nanopb-c/tests/basic_stream/
Ddecode_stream.c15 Person person; in print_person() local
17 if (!pb_decode(stream, Person_fields, &person)) in print_person()
22 printf("name: \"%s\"\n", person.name); in print_person()
23 printf("id: %ld\n", (long)person.id); in print_person()
25 if (person.has_email) in print_person()
26 printf("email: \"%s\"\n", person.email); in print_person()
28 for (i = 0; i < person.phone_count; i++) in print_person()
30 Person_PhoneNumber *phone = &person.phone[i]; in print_person()
DSConscript5 enc = env.Program(["encode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o"])
6 dec = env.Program(["decode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o"])
10 env.Decode(["encode_stream.output", "$COMMON/person.proto"], MESSAGE = "Person")
Dencode_stream.c19 Person person = {"Test Person 99", 99, true, "test@person.com", in main() local
31 if (pb_encode(&stream, Person_fields, &person)) in main()
/external/protobuf/examples/
Dlist_people.cc12 const tutorial::Person& person = address_book.person(i); in ListPeople() local
14 cout << "Person ID: " << person.id() << endl; in ListPeople()
15 cout << " Name: " << person.name() << endl; in ListPeople()
16 if (person.has_email()) { in ListPeople()
17 cout << " E-mail address: " << person.email() << endl; in ListPeople()
20 for (int j = 0; j < person.phone_size(); j++) { in ListPeople()
21 const tutorial::Person::PhoneNumber& phone_number = person.phone(j); in ListPeople()
Dlist_people.py10 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:
DListPeople.java12 for (Person person: addressBook.getPersonList()) { in Print()
13 System.out.println("Person ID: " + person.getId()); in Print()
14 System.out.println(" Name: " + person.getName()); in Print()
15 if (person.hasEmail()) { in Print()
16 System.out.println(" E-mail address: " + person.getEmail()); in Print()
19 for (Person.PhoneNumber phoneNumber : person.getPhoneList()) { in Print()
Dadd_person.py9 def PromptForAddress(person): argument
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()
53 PromptForAddress(address_book.person.add())
DAddPerson.java17 Person.Builder person = Person.newBuilder(); in PromptForAddress() local
20 person.setId(Integer.valueOf(stdin.readLine())); in PromptForAddress()
23 person.setName(stdin.readLine()); in PromptForAddress()
28 person.setEmail(email); in PromptForAddress()
53 person.addPhone(phoneNumber); in PromptForAddress()
56 return person.build(); in PromptForAddress()
Dadd_person.cc10 void PromptForAddress(tutorial::Person* person) { in PromptForAddress() argument
14 person->set_id(id); in PromptForAddress()
18 getline(cin, *person->mutable_name()); in PromptForAddress()
24 person->set_email(email); in PromptForAddress()
35 tutorial::Person::PhoneNumber* phone_number = person->add_phone(); in PromptForAddress()
Daddressbook.proto10 required int32 id = 2; // Unique ID number for this person.
29 repeated Person person = 1; field
DREADME.txt4 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
/external/libxml2/example/
Dgjobread.c32 typedef struct person { struct
40 } person, *personPtr; argument
53 ret = (personPtr) malloc(sizeof(person)); in parsePerson()
58 memset(ret, 0, sizeof(person)); in parsePerson()
/external/nanopb-c/tests/extra_fields/
Dperson_with_extra_field.expected3 email: "test@person.com"
/external/nanopb-c/tests/common/
DSConscript9 env.NanopbProto("person")
/external/nanopb-c/docs/
Dindex.rst29 - person.proto (just an example)
30 - person.pb.c (autogenerated, contains initializers for const arrays)
31 - person.pb.h (autogenerated, contains type declarations)
/external/cblas/
DLICENSE13 modification is done, however, it is the responsibility of the person
DNOTICE13 modification is done, however, it is the responsibility of the person
/external/icu/icu4c/source/samples/ufortune/resources/
Droot.txt125 "A candidate is a person who gets money from the rich and votes from the
128 "A celebrity is a person who is known for his well-knownness.",
165 "A consultant is a person who borrows your watch, tells you what time it
184 "A cynic is a person searching for an honest man, with a stolen
/external/libcxxabi/
DNOTICE29 Permission is hereby granted, free of charge, to any person obtaining a copy of
60 Permission is hereby granted, free of charge, to any person obtaining a copy
DLICENSE.TXT29 Permission is hereby granted, free of charge, to any person obtaining a copy of
60 Permission is hereby granted, free of charge, to any person obtaining a copy
/external/libcxx/
DLICENSE.TXT29 Permission is hereby granted, free of charge, to any person obtaining a copy of
60 Permission is hereby granted, free of charge, to any person obtaining a copy
/external/mksh/
DNOTICE21 * of said person’s immediate fault when using the work as intended.

123456789