Home
last modified time | relevance | path

Searched refs:res_id (Results 1 – 13 of 13) sorted by relevance

/aosp12/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
H A DStructNfGenMsg.java41 final public short res_id; // N.B.: this is big endian in the kernel field in StructNfGenMsg
61 final short res_id = byteBuffer.getShort(); in parse() local
64 return new StructNfGenMsg(nfgen_family, version, res_id); in parse()
70 res_id = id; in StructNfGenMsg()
76 res_id = (short) 0; in StructNfGenMsg()
85 byteBuffer.putShort(res_id); in pack()
100 + "res_id{" + Short.toUnsignedInt(res_id) + "} " in toString()
/aosp12/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp383 const ResourceId res_id(package_id, type->id, static_cast<uint16_t>(it.index())); in ParseType() local
403 if (const auto to_remove_it = staged_entries_to_remove_.find({name, res_id}); in ParseType()
411 .SetId(res_id, OnIdConflict::CREATE_ENTRY) in ParseType()
417 auto spec_flags = entry_type_spec_flags_.find(res_id); in ParseType()
426 entry_type_spec_flags_.erase(res_id); in ParseType()
431 auto cache_iter = id_index_.find(res_id); in ParseType()
433 id_index_.insert({res_id, name}); in ParseType()
483 ResourceId res_id(util::DeviceToHost32(ref_iter->ident)); in ParseOverlayable() local
484 const auto iter = id_index_.find(res_id); in ParseOverlayable()
490 << " resource " << res_id); in ParseOverlayable()
[all …]
/aosp12/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp331 ResourceId res_id = 0; in FindByName() local
349 res_id.id = *real_res_id; in FindByName()
350 if (!res_id.is_valid_static()) { in FindByName()
354 auto flags = asset_manager_.GetResourceTypeSpecFlags(res_id.id); in FindByName()
370 s = LookupAttributeInTable(asset_manager_, res_id); in FindByName()
373 s->id = res_id; in FindByName()
378 s->is_dynamic = IsPackageDynamic(ResourceId(res_id).package_id(), real_name.package) || in FindByName()
/aosp12/frameworks/base/tools/aapt2/
H A DResource.h143 ResourceId(uint32_t res_id); // NOLINT(google-explicit-constructor)
226 inline ResourceId::ResourceId(uint32_t res_id) : id(res_id) {} in ResourceId() argument
267 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceId& res_id) {
268 return out << res_id.to_string();
/aosp12/system/netd/server/
H A DNFLogListener.cpp94 msg.nfhdr.res_id = htons(nfLogGroup); in cfgMode()
115 msg.nfhdr.res_id = htons(nfLogGroup); in cfgCmdBind()
135 msg.nfhdr.res_id = htons(nfLogGroup); in cfgCmdUnbind()
151 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener()
H A DNFLogListenerTest.cpp91 msg.nfmsg.res_id = htons(type); in sendEmptyMsg()
120 EXPECT_EQ(kType, ntohs(nfmsg.res_id)); in TEST_F()
/aosp12/system/netd/libnetdutils/
H A DNetfilter.cpp28 << static_cast<int>(msg.version) << ", res_id: 0x" << ntohs(msg.res_id) << "]" in operator <<()
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
H A DConntrackMessageTest.java169 assertEquals((short) 0, nfmsgHdr.res_id); in testConntrackParseIPv4TcpTimeoutUpdate()
218 assertEquals((short) 0, nfmsgHdr.res_id); in testConntrackParseIPv4UdpTimeoutUpdate()
312 assertEquals((short) 0x1234, nfmsgHdr.res_id); in testParseCtNew()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
H A DTestNotificationService.java172 int res_id = android_context.getResources().getIdentifier(CANCEL_RES_NAME, in doCancel() local
174 final String cancel_label = android_context.getResources().getString(res_id); in doCancel()
/aosp12/bionic/libc/kernel/uapi/linux/netfilter/
H A Dnfnetlink.h50 __be16 res_id; member
/aosp12/frameworks/base/core/jni/
H A Dandroid_util_XmlBlock.cpp75 jlong token, jint res_id) in android_content_XmlBlock_nativeCreateParseState() argument
89 st->setSourceResourceId(res_id); in android_content_XmlBlock_nativeCreateParseState()
/aosp12/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp240 uint32_t res_id = parser->getAttributeNameResID(i); in CopyAttributes() local
241 if (res_id > 0) { in CopyAttributes()
242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
/aosp12/frameworks/base/tools/aapt2/dump/
H A DDumpManifest.cpp199 Value* FindValueById(const ResourceTable* table, const ResourceId& res_id, in FindValueById() argument
205 if (entry->id && entry->id.value() == res_id.id) { in FindValueById()