Home
last modified time | relevance | path

Searched refs:Person (Results 1 – 25 of 74) sorted by relevance

123

/external/protobuf/csharp/src/AddressBook/
DAddressbook.cs38Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email",… in AddressbookReflection()
50 public sealed partial class Person : pb::IMessage<Person> { class
51 …private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => ne…
52 public static pb::MessageParser<Person> Parser { get { return _parser; } }
62 public Person() { in Person() method in Google.Protobuf.Examples.AddressBook.Person
68 public Person(Person other) : this() { in Person() method in Google.Protobuf.Examples.AddressBook.Person
75 public Person Clone() { in Clone()
76 return new Person(this); in Clone()
114 …private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.P…
115 …= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNum…
[all …]
DAddPerson.cs43 private static Person PromptForAddress(TextReader input, TextWriter output) in PromptForAddress()
45 Person person = new Person(); in PromptForAddress()
69Person.Types.PhoneNumber phoneNumber = new Person.Types.PhoneNumber { Number = number }; in PromptForAddress()
76 phoneNumber.Type = Person.Types.PhoneType.Mobile; in PromptForAddress()
79 phoneNumber.Type = Person.Types.PhoneType.Home; in PromptForAddress()
82 phoneNumber.Type = Person.Types.PhoneType.Work; in PromptForAddress()
DSampleUsage.cs44 Person person = new Person in Main()
49 Phones = { new Person.Types.PhoneNumber { Number = "555-1212" } } in Main()
57 Person copy = Person.Parser.ParseFrom(bytes); in Main()
DListPeople.cs45 foreach (Person person in addressBook.People) in Print()
54 foreach (Person.Types.PhoneNumber phoneNumber in person.Phones) in Print()
58 case Person.Types.PhoneType.Mobile: in Print()
61 case Person.Types.PhoneType.Home: in Print()
64 case Person.Types.PhoneType.Work: in Print()
/external/junit-params/src/test/java/junitparams/usage/person_example/
DPersonTest.java19 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultAgeDirect()
25 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultAgeDefinedMethod()
35 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultAgeDefaultMethod()
45 public void personIsAdult(Person person, boolean valid) { in personIsAdult()
51 … return new Object[]{new Object[]{new Person(25), true}, new Object[]{new Person(32), true}}; in provideAdults()
55 … return new Object[]{new Object[]{new Person(12), false}, new Object[]{new Person(17), false}}; in provideTeens()
66 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultWithCustomTestName()
69 public static class Person { class in PersonTest
74 public Person(Integer age) { in Person() method in PersonTest.Person
78 public Person(String name, Integer age) { in Person() method in PersonTest.Person
/external/mockito/src/test/java/org/mockitousage/stubbing/
DCloningParameterTest.java29 verify(emailSender).sendEmail(1, new Person("Wes")); in shouldVerifyEvenIfArgumentsWereMutated()
33 Person person = new Person("Wes"); in businessLogic()
43 when(emailSender.getAllEmails(new Person("Wes"))).thenAnswer(new ClonesArguments()); in shouldReturnDefaultValueWithCloningAnswer()
46 List<?> emails = emailSender.getAllEmails(new Person("Wes")); in shouldReturnDefaultValueWithCloningAnswer()
52 public class Person { class in CloningParameterTest
57 public Person(String name) { in Person() method in CloningParameterTest.Person
83 Person other = (Person) obj; in equals()
104 void sendEmail(int i, Person person); in sendEmail()
106 List<?> getAllEmails(Person person); in getAllEmails()
/external/mockito/src/test/java/org/mockitousage/matchers/
DCapturingArgumentsTest.java25 class Person { class in CapturingArgumentsTest
29 public Person(Integer age) { in Person() method in CapturingArgumentsTest.Person
48 Person person = new Person(i); in email()
55 boolean sendEmailTo(Person person); in sendEmailTo()
66 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_captured_argument()
79 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_all_captured_arguments()
93 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_last_argument()
106 ArgumentCaptor<Person> person = ArgumentCaptor.forClass(Person.class); in should_print_captor_matcher()
121 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_captured_null()
135 ArgumentCaptor<List<Person>> argument = ArgumentCaptor.forClass(List.class); in should_allow_construction_of_captor_for_parameterized_type_in_a_convenient_way()
[all …]
/external/mockito/src/test/java/org/mockitousage/annotation/
DCaptorAnnotationBasicTest.java25 public class Person { class in CaptorAnnotationBasicTest
29 public Person(String name, String surname) { in Person() method in CaptorAnnotationBasicTest.Person
44 void save(Person capture); in save()
50 peopleRepository.save(new Person(name, surname)); in createPerson()
59 ArgumentCaptor<Person> captor = ArgumentCaptor.forClass(Person.class); in shouldUseCaptorInOrdinaryWay()
65 @Captor ArgumentCaptor<Person> captor;
87 verify(peopleRepository).save((Person) genericLessCaptor.capture()); in shouldUseGenericlessAnnotatedCaptor()
88 assertEquals("Wes", ((Person) genericLessCaptor.getValue()).getName()); in shouldUseGenericlessAnnotatedCaptor()
89 assertEquals("Williams", ((Person) genericLessCaptor.getValue()).getSurname()); in shouldUseGenericlessAnnotatedCaptor()
/external/protobuf/examples/
DAddPerson.java4 import com.example.tutorial.AddressBookProtos.Person;
15 static Person PromptForAddress(BufferedReader stdin, in PromptForAddress()
17 Person.Builder person = Person.newBuilder(); in PromptForAddress()
38 Person.PhoneNumber.Builder phoneNumber = in PromptForAddress()
39 Person.PhoneNumber.newBuilder().setNumber(number); in PromptForAddress()
44 phoneNumber.setType(Person.PhoneType.MOBILE); in PromptForAddress()
46 phoneNumber.setType(Person.PhoneType.HOME); in PromptForAddress()
48 phoneNumber.setType(Person.PhoneType.WORK); in PromptForAddress()
Dlist_people_test.go14 p := pb.Person{
25 want := `Person ID: 1234
37 in := pb.AddressBook{[]*pb.Person{
76 want := strings.Split(`Person ID: 101
79 Person ID: 102
81 Person ID: 201
85 Person ID: 301
91 Person ID: 1001
Dlist_people.cc12 const tutorial::Person& person = address_book.people(i); in ListPeople()
21 const tutorial::Person::PhoneNumber& phone_number = person.phones(j); in ListPeople()
24 case tutorial::Person::MOBILE: in ListPeople()
27 case tutorial::Person::HOME: in ListPeople()
30 case tutorial::Person::WORK: in ListPeople()
Dadd_person.cc10 void PromptForAddress(tutorial::Person* person) { in PromptForAddress()
35 tutorial::Person::PhoneNumber* phone_number = person->add_phones(); in PromptForAddress()
42 phone_number->set_type(tutorial::Person::MOBILE); in PromptForAddress()
44 phone_number->set_type(tutorial::Person::HOME); in PromptForAddress()
46 phone_number->set_type(tutorial::Person::WORK); in PromptForAddress()
Dlist_people.py17 if phone_number.type == addressbook_pb2.Person.MOBILE:
19 elif phone_number.type == addressbook_pb2.Person.HOME:
21 elif phone_number.type == addressbook_pb2.Person.WORK:
Dadd_person.py27 phone_number.type = addressbook_pb2.Person.MOBILE
29 phone_number.type = addressbook_pb2.Person.HOME
31 phone_number.type = addressbook_pb2.Person.WORK
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue8/
DPrattleRepresenterTest.java29 Person person = new Person("Alan", "Gutierrez", 9); in test()
39 Person person = new Person("Alan", "Gutierrez", 9); in test2beans()
49 private Person owner;
51 public Horse(String name, Person owner) { in Horse()
61 public Person getOwner() { in getOwner()
DPerson.java23 public class Person implements Serializable { class
29 public Person() { in Person() method in Person
32 public Person(String firstName, String lastName, int hatSize) { in Person() method in Person
64 if (object instanceof Person) { in equals()
65 Person person = (Person) object; in equals()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DConstructorTest.java51 assertTrue("Unexpected: " + obj.getClass().toString(), obj instanceof Person); in testGetBeanAssumeClass()
52 Person person = (Person) obj; in testGetBeanAssumeClass()
65 assertTrue(obj.getClass().toString(), obj instanceof Person); in testGetConstructorBean() local
66 Person person = (Person) obj; in testGetConstructorBean()
79 assertTrue(obj.getClass().toString(), obj instanceof Person); in testGetConstructorFromScalar() local
80 Person person = (Person) obj; in testGetConstructorFromScalar()
DPerson.java21 public class Person { class
26 public Person(String firstName, String lastName, Integer age) { in Person() method in Person
32 public Person() { in Person() method in Person
35 public Person(String lastName) { in Person() method in Person
/external/testng/src/test/java/test/mustache/
DMustacheTest.java19 public static class Person { class in MustacheTest
21 public Person(String n) { in Person() method in MustacheTest.Person
33 private static final List<Person> PEOPLE = new ArrayList<>(
34 Arrays.asList(new Person("Carl"), new Person("Christopher")));
62 create("person", new Person("John"), "day", "Monday"), in dp()
68 create("person", new Person("John"), "name", "Carl"), in dp()
/external/snakeyaml/src/test/java8/org/yaml/snakeyaml/issues/issue310/
DOptionalTest.java81 public static class Person { class in OptionalTest
130 Person expectedPerson = new Person(); in testOptionaStringLoad()
136 final Person pFromStr = yamlParser.loadAs(yamlStr, Person.class); in testOptionaStringLoad()
145 Person expectedPerson = new Person(); in testOptionalDumpLoad()
153 final Person pFromDump = yamlParser.loadAs(pDump, Person.class); in testOptionalDumpLoad()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue310/
DPropertyWithPrivateCostructorTest.java49 Person loadedPerson = yaml().loadAs(yamlStr, Person.class); in loadFromString()
59 Person person = new Person(123, "Neo Anderson", Option.valueOf(123456.78)); in dumpNload()
63 Person loadedPerson = yaml().loadAs(dump, Person.class); in dumpNload()
DPerson.java18 public class Person { class
24 public Person() { in Person() method in Person
28 public Person(int id, String name, Option<Double> income) { in Person() method in Person
/external/libbrillo/brillo/
Dany_unittest.cc210 struct Person { in TEST() struct
214 Any val(Person{"Jack", 40}); in TEST()
216 EXPECT_EQ("Jack", val.Get<Person>().name); in TEST()
217 val.GetPtr<Person>()->name = "Joe"; in TEST()
218 val.GetPtr<Person>()->age /= 2; in TEST()
219 EXPECT_EQ("Joe", val.Get<Person>().name); in TEST()
220 EXPECT_EQ(20, val.Get<Person>().age); in TEST()
221 EXPECT_EQ("Jack", val2.Get<Person>().name); in TEST()
222 EXPECT_EQ(40, val2.Get<Person>().age); in TEST()
296 struct Person { in TEST() struct
[all …]
/external/javassist/sample/reflect/
DPerson.java10 public class Person { class
17 public Person(String name, int birthYear) { in Person() method in Person
41 Person p = new Person(name, 1960); in main()
/external/python/cpython2/Lib/ctypes/test/
Dtest_structures.py213 class Person(Structure): class
217 self.assertRaises(TypeError, Person, 42)
218 self.assertRaises(ValueError, Person, "asldkjaslkdjaslkdj")
219 self.assertRaises(TypeError, Person, "Name", "HI")
222 self.assertEqual(Person("12345", 5).name, "12345")
224 self.assertEqual(Person("123456", 5).name, "123456")
226 self.assertRaises(ValueError, Person, "1234567", 5)
283 class Person(Structure): class
288 p = Person("Someone", ("1234", "5678"), 5)
316 class Person(Structure): class
[all …]

123