Home
last modified time | relevance | path

Searched refs:foo (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/frameworks/base/tools/aapt2/java/
DProguardRules_test.cpp59 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarAppComponentFactory { <init>(); }"));
60 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarBackupAgent { <init>(); }"));
61 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarApplication { <init>(); }"));
62 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarActivity { <init>(); }"));
63 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarService { <init>(); }"));
64 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarReceiver { <init>(); }"));
65 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarProvider { <init>(); }"));
66 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarInstrumentation { <init>(); }"));
67 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarZygotePreload { <init>(); }"));
70 EXPECT_THAT(actual, HasSubstr("-keep class com.foo.BarAppComponentFactory { <init>(); }"));
[all …]
/frameworks/base/cmds/idmap2/tests/
DCommandLineOptionsTests.cpp41 bool foo = true; in TEST() local
44 CommandLineOptions("test").OptionalFlag("--foo", "", &foo).OptionalFlag("--bar", "", &bar); in TEST()
48 ASSERT_TRUE(foo); in TEST()
51 foo = bar = false; in TEST()
54 ASSERT_TRUE(foo); in TEST()
59 std::string foo; in TEST() local
62 .MandatoryOption("--foo", "", &foo) in TEST()
66 ASSERT_EQ(foo, "FOO"); in TEST()
74 std::string foo; in TEST() local
75 CommandLineOptions opts = CommandLineOptions("test").MandatoryOption("--foo", "", &foo); in TEST()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Ddrop_unknown_fields_test.cc52 Foo foo; in TEST() local
53 ASSERT_TRUE(foo.ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST()
54 EXPECT_EQ(1, foo.int32_value()); in TEST()
56 static_cast<int>(foo.enum_value())); in TEST()
59 EXPECT_TRUE(foo.GetReflection()->GetUnknownFields(foo).empty()); in TEST()
61 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo.SerializeAsString())); in TEST()
75 google::protobuf::scoped_ptr<google::protobuf::Message> foo( in TEST() local
77 ASSERT_TRUE(foo->ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST()
78 EXPECT_TRUE(foo->GetReflection()->GetUnknownFields(*foo).empty()); in TEST()
80 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo->SerializeAsString())); in TEST()
Dany.proto51 // Foo foo = ...;
53 // any.PackFrom(foo);
55 // if (any.UnpackTo(&foo)) {
61 // Foo foo = ...;
62 // Any any = Any.pack(foo);
65 // foo = any.unpack(Foo.class);
70 // foo = Foo(...)
72 // any.Pack(foo)
75 // any.Unpack(foo)
81 // in the type URL, for example "foo.bar.com/x/y.z" will yield type
/frameworks/base/tools/aapt2/link/
DXmlCompatVersioner_test.cpp82 app:foo="16dp"
83 foo="bar"/>)");
104 EXPECT_THAT(el->FindAttribute(xml::kSchemaAuto, "foo"), NotNull());
105 EXPECT_THAT(el->FindAttribute({}, "foo"), NotNull());
112 EXPECT_THAT(el->FindAttribute(xml::kSchemaAuto, "foo"), NotNull());
113 EXPECT_THAT(el->FindAttribute({}, "foo"), NotNull());
121 app:foo="16dp"
122 foo="bar"/>)");
147 EXPECT_THAT(el->FindAttribute(xml::kSchemaAuto, "foo"), NotNull());
148 EXPECT_THAT(el->FindAttribute({}, "foo"), NotNull());
[all …]
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp54 input += R"(<attr name="foo"/>)"; in TEST()
93 ASSERT_TRUE(TestParse(R"(<string name="foo"> " hey there " </string>)")); in TEST_F()
114 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F()
154 ASSERT_TRUE(TestParse(R"(<string name="foo"> This is what I think </string>)")); in TEST_F()
170 EXPECT_TRUE(TestParse(R"(<string name="foo">&#32;Hello&#32;</string>)")); in TEST_F()
202 std::string input = R"(<string name="foo"> <b> My <i> favorite</i> string </b> </string>)"; in TEST_F()
245 <string name="foo" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> in TEST_F()
257 <string name="foo" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> in TEST_F()
264 <string name="foo" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> in TEST_F()
279 <string name="foo" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> in TEST_F()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDictionaryTests+String.m43 //%PDDM-EXPAND TESTS_FOR_POD_VALUES(String, NSString, *, Objects, @"foo", @"bar", @"baz", @"mumble")
97 XCTAssertFalse([dict getUInt32:NULL forKey:@"foo"]);
106 …StringUInt32Dictionary *dict = [GPBStringUInt32Dictionary dictionaryWithUInt32:100U forKey:@"foo"];
110 XCTAssertTrue([dict getUInt32:NULL forKey:@"foo"]);
111 XCTAssertTrue([dict getUInt32:&value forKey:@"foo"]);
115 XCTAssertEqualObjects(aKey, @"foo");
122 const NSString *kKeys[] = { @"foo", @"bar", @"baz" };
131 XCTAssertTrue([dict getUInt32:NULL forKey:@"foo"]);
132 XCTAssertTrue([dict getUInt32:&value forKey:@"foo"]);
177 const NSString *kKeys1[] = { @"foo", @"bar", @"baz", @"mumble" };
[all …]
/frameworks/native/libs/binder/ndk/test/
Dmain_client.cpp52 sp<IFoo> foo = IFoo::getService(IFoo::kSomeInstanceName); in TEST() local
53 ASSERT_NE(foo, nullptr); in TEST()
56 EXPECT_EQ(STATUS_OK, foo->doubleNumber(1, &out)); in TEST()
68 sp<IFoo> foo = IFoo::getService(IFoo::kInstanceNameToDieFor, &binder); in TEST() local
69 ASSERT_NE(nullptr, foo.get()); in TEST()
87 EXPECT_EQ(STATUS_DEAD_OBJECT, foo->die()); in TEST()
89 foo = nullptr; in TEST()
146 sp<IFoo> foo = new MyTestFoo; in TEST() local
147 EXPECT_EQ(STATUS_OK, foo->addService(kInstanceName)); in TEST()
150 EXPECT_EQ(foo.get(), getFoo.get()); in TEST()
[all …]
Diface.cpp31 sp<IFoo> foo; member
35 IFoo_Class_Data* foo = static_cast<IFoo_Class_Data*>(args); in IFoo_Class_onCreate() local
38 return static_cast<void*>(foo); in IFoo_Class_onCreate()
49 sp<IFoo> foo = static_cast<IFoo_Class_Data*>(AIBinder_getUserData(binder))->foo; in IFoo_Class_onTransact() local
50 CHECK(foo != nullptr) << "Transaction made on already deleted object"; in IFoo_Class_onTransact()
58 stat = foo->doubleNumber(valueIn, &valueOut); in IFoo_Class_onTransact()
64 stat = foo->die(); in IFoo_Class_onTransact()
168 sp<IFoo> ret = data->foo; in getService()
/frameworks/compile/slang/tests/F_reduce_general_parse/
Dreduce_general_parse.rs9 #pragma rs reduce(foo
10 #pragma rs reduce (foo
11 #pragma rs reduce(foo )
12 #pragma rs reduce(foo) initializer(
13 #pragma rs reduce(foo) initializer(init)
14 #pragma rs reduce(foo) initializer(init) accumulator(accum)
15 #pragma rs reduce(foo) initializer(init2) accumulator(accum2)
/frameworks/compile/slang/tests/F_foreach_unexpected_kernel_arg/
Dforeach_unexpected_kernel_arg.rs3 #pragma rs java_package_name(com.example.foo)
5 int RS_KERNEL foo(int a) {
10 int (*fp)(int) = &foo;
12 rsForEach(&foo, in, out);
14 rsForEachWithOptions(&foo, NULL, in, out);
/frameworks/compile/slang/tests/F_foreach_unexpected_allocs/
Dforeach_unexpected_allocs.rs3 #pragma rs java_package_name(com.example.foo)
5 int RS_KERNEL foo(int a) {
10 rsForEach(foo, in);
11 rsForEach(foo, in, in, out);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dmessage_test.js107 var foo = new proto.jspb.test.Complex(data1);
109 var result = foo.toObject();
121 result = foo.toObject(true /* opt_includeInstance */);
127 $jspbMessageInstance: foo.getANestedMessage()
130 {anInt: 22, $jspbMessageInstance: foo.getARepeatedMessageList()[0]},
131 {anInt: 33, $jspbMessageInstance: foo.getARepeatedMessageList()[1]}
134 $jspbMessageInstance: foo
140 var foo = new proto.jspb.test.Complex([
146 var result = foo.toObject();
280 var foo = new proto.jspb.test.OptionalFields(data);
[all …]
/frameworks/compile/slang/tests/F_foreach_from_kernel/
Dforeach_from_kernel.rs3 #pragma rs java_package_name(com.example.foo)
5 int __attribute__((kernel)) foo(int a) {
13 rsForEach(foo, g_in, g_out);
18 rsForEach(foo, g_in, g_out);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetLiteTest.java59 Foo foo = Foo.newBuilder() in testMergeFieldFrom() local
63 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testMergeFieldFrom()
68 assertEquals(foo.toByteString(), toByteString(instance)); in testMergeFieldFrom()
72 Foo foo = Foo.newBuilder() in testSerializedSize() local
76 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testSerializedSize()
81 assertEquals(foo.toByteString().size(), instance.getSerializedSize()); in testSerializedSize()
156 Foo foo = Foo.newBuilder() in testRoundTrips() local
169 Foo copy = Foo.parseFrom(foo.toByteArray()); in testRoundTrips()
171 assertEquals(foo.getSerializedSize(), copy.getSerializedSize()); in testRoundTrips()
172 assertFalse(foo.equals(copy)); in testRoundTrips()
[all …]
/frameworks/compile/slang/tests/F_struct_field_ptr_to_array/
Dstruct_field_ptr_to_array.rs2 #pragma rs java_package_name(foo)
4 struct foo { struct
8 struct foo f; struct
/frameworks/compile/slang/tests/F_struct_field_ptr_to_fn_noproto/
Dstruct_field_ptr_to_fn_noproto.rs2 #pragma rs java_package_name(foo)
4 struct foo { struct
8 struct foo f; argument
/frameworks/compile/slang/tests/F_struct_field_ptr_to_fn_proto/
Dstruct_field_ptr_to_fn_proto.rs2 #pragma rs java_package_name(foo)
4 struct foo { struct
8 struct foo f; struct
/frameworks/compile/slang/tests/P_overload/
Doverload.rs2 #pragma rs java_package_name(foo)
4 void __attribute__((overloadable)) foo(int i) {
7 void __attribute__((overloadable)) foo(float f) {
/frameworks/compile/slang/tests/P_foreach_multi/
Dforeach_multi.rs3 #pragma rs java_package_name(com.example.foo)
5 int RS_KERNEL foo(int a, int b) {
10 rsForEach(foo, in, in, out);
/frameworks/compile/slang/tests/P_foreach_options/
Dforeach_options.rs3 #pragma rs java_package_name(com.example.foo)
5 int RS_KERNEL foo(int a) {
13 rsForEach(foo, in, out);
/frameworks/compile/slang/tests/P_foreach/
Dforeach.rs3 #pragma rs java_package_name(com.example.foo)
9 int RS_KERNEL foo(int a) {
14 rsForEach(foo, in, out);
/frameworks/compile/slang/tests/F_foreach_non_kernel/
Dforeach_non_kernel.rs3 #pragma rs java_package_name(com.example.foo)
9 int foo(int a) {
15 rsForEach(foo, in, out);
/frameworks/compile/slang/tests/P_refcount/
Drefcount.rs2 #pragma rs java_package_name(foo)
11 static void foo() {
30 foo();
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dprinter_unittest.cc231 const GeneratedCodeInfo::Annotation* foo = info.annotation(0).path_size() == 1 in TEST() local
237 ASSERT_EQ(1, foo->path_size()); in TEST()
239 EXPECT_EQ(33, foo->path(0)); in TEST()
242 EXPECT_EQ("path_1", foo->source_file()); in TEST()
244 EXPECT_EQ(3, foo->begin()); in TEST()
245 EXPECT_EQ(4, foo->end()); in TEST()
271 const GeneratedCodeInfo::Annotation* foo = info.annotation(0).path_size() == 1 in TEST() local
277 ASSERT_EQ(1, foo->path_size()); in TEST()
279 EXPECT_EQ(33, foo->path(0)); in TEST()
282 EXPECT_EQ("path_1", foo->source_file()); in TEST()
[all …]

12345678910>>...14