Home
last modified time | relevance | path

Searched refs:file_desc (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/streaming_proto/test/unit/
Dstreaming_proto_java.cpp28 FileDescriptorProto* file_desc = request->add_proto_file(); in add_my_test_proto_file() local
29 file_desc->set_name("MyTestProtoFile"); in add_my_test_proto_file()
30 file_desc->set_package("test.package"); in add_my_test_proto_file()
32 auto* file_options = file_desc->mutable_options(); in add_my_test_proto_file()
35 auto* message = file_desc->add_message_type(); in add_my_test_proto_file()
54 FileDescriptorProto* file_desc = request->add_proto_file(); in add_my_other_test_proto_file() local
55 file_desc->set_name("MyOtherTestProtoFile"); in add_my_other_test_proto_file()
56 file_desc->set_package("test.package"); in add_my_other_test_proto_file()
58 auto* file_options = file_desc->mutable_options(); in add_my_other_test_proto_file()
61 auto* message = file_desc->add_message_type(); in add_my_other_test_proto_file()
[all …]
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp344 bool TableMerger::MergeFile(const ResourceFile& file_desc, bool overlay, io::IFile* file) { in MergeFile() argument
346 std::string path = ResourceUtils::BuildResourceFileName(file_desc); in MergeFile()
349 file_ref->SetSource(file_desc.source); in MergeFile()
350 file_ref->type = file_desc.type; in MergeFile()
353 ResourceTablePackage* pkg = table.FindOrCreatePackage(file_desc.name.package); in MergeFile()
354 pkg->FindOrCreateType(file_desc.name.type) in MergeFile()
355 ->FindOrCreateEntry(file_desc.name.entry) in MergeFile()
356 ->FindOrCreateValue(file_desc.config, {}) in MergeFile()
DTableMerger_test.cpp94 ResourceFile file_desc; in TEST_F() local
95 file_desc.config = test::ParseConfigOrDie("hdpi-v4"); in TEST_F()
96 file_desc.name = test::ParseNameOrDie("layout/main"); in TEST_F()
97 file_desc.source = android::Source("res/layout-hdpi/main.xml"); in TEST_F()
100 ASSERT_TRUE(merger.MergeFile(file_desc, false /*overlay*/, &test_file)); in TEST_F()
114 ResourceFile file_desc; in TEST_F() local
115 file_desc.name = test::ParseNameOrDie("xml/foo"); in TEST_F()
119 ASSERT_TRUE(merger.MergeFile(file_desc, false /*overlay*/, &file_a)); in TEST_F()
120 ASSERT_TRUE(merger.MergeFile(file_desc, true /*overlay*/, &file_b)); in TEST_F()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp272 jobject file_desc = jniCreateFileDescriptor(env, fd); in ReturnParcelFileDescriptor() local
273 if (file_desc == nullptr) { in ReturnParcelFileDescriptor()
277 return newParcelFileDescriptor(env, file_desc); in ReturnParcelFileDescriptor()