Home
last modified time | relevance | path

Searched refs:SchemaType (Results 1 – 14 of 14) sorted by relevance

/aosp12/system/libvintf/
H A DHalManifest.cpp406 if (mType == SchemaType::FRAMEWORK) { in checkCompatibility()
414 } else if (mType == SchemaType::DEVICE) { in checkCompatibility()
471 if (mType == SchemaType::FRAMEWORK) { in generateCompatibleMatrix()
472 matrix.mType = SchemaType::DEVICE; in generateCompatibleMatrix()
474 } else if (mType == SchemaType::DEVICE) { in generateCompatibleMatrix()
475 matrix.mType = SchemaType::FRAMEWORK; in generateCompatibleMatrix()
488 SchemaType HalManifest::type() const { in type()
492 void HalManifest::setType(SchemaType type) { in setType()
505 CHECK(mType == SchemaType::DEVICE); in sepolicyVersion()
510 CHECK(mType == SchemaType::FRAMEWORK); in vendorNdks()
[all …]
H A DCompatibilityMatrix.cpp49 if (mType != SchemaType::FRAMEWORK) { in addKernel()
113 SchemaType CompatibilityMatrix::type() const { in type()
136 return "/"s + (type() == SchemaType::DEVICE ? "vendor" : "system") + "/etc/" + in getXmlSchemaPath()
322 (lft.mType != SchemaType::DEVICE || in operator ==()
330 (lft.mType != SchemaType::FRAMEWORK || in operator ==()
340 if (e.type() != SchemaType::FRAMEWORK) { in combine()
362 baseMatrix->mType = SchemaType::FRAMEWORK; in combine()
392 baseMatrix->mType = SchemaType::DEVICE; in combineDeviceMatrices()
464 if (type() == SchemaType::FRAMEWORK) return framework.mSepolicy.sepolicyVersions(); in getSepolicyVersions()
469 return type() == SchemaType::DEVICE ? device.mVendorNdk.version() : ""; in getVendorNdkVersion()
H A Dparse_xml.cpp1036 if (m.mType == SchemaType::DEVICE) { in mutateNode()
1051 } else if (m.mType == SchemaType::FRAMEWORK) { in mutateNode()
1092 if (object->mType == SchemaType::DEVICE) { in buildObject()
1109 } else if (object->mType == SchemaType::FRAMEWORK) { in buildObject()
1221 if (m.mType == SchemaType::FRAMEWORK) { in mutateNode()
1238 } else if (m.mType == SchemaType::DEVICE) { in mutateNode()
1279 if (object->mType == SchemaType::FRAMEWORK) { in buildObject()
1308 } else if (object->mType == SchemaType::DEVICE) { in buildObject()
H A DAssembleVintf.cpp378 if (halManifest->mType == SchemaType::DEVICE) { in assembleHalManifest()
392 if (halManifest->mType == SchemaType::FRAMEWORK) { in assembleHalManifest()
532 if (matrices->front().mType == SchemaType::DEVICE) { in assembleCompatibilityMatrix()
559 if (matrices->front().mType == SchemaType::FRAMEWORK) { in assembleCompatibilityMatrix()
H A DRuntimeInfo.cpp81 if (mat.mType != SchemaType::FRAMEWORK) { in checkCompatibility()
H A Dparse_string.cpp102 DEFINE_PARSE_STREAMIN_FOR_ENUM(SchemaType)
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_VintfObject.cpp43 using vintf::SchemaType;
116 if (manifest == nullptr || manifest->type() != SchemaType::DEVICE) { in android_os_VintfObject_getSepolicyVersion()
127 if (matrix == nullptr || matrix->type() != SchemaType::FRAMEWORK) { in android_os_VintfObject_getPlatformSepolicyVersion()
148 if (manifest == nullptr || manifest->type() != SchemaType::FRAMEWORK) { in android_os_VintfObject_getVndkSnapshots()
/aosp12/system/libvintf/include/vintf/
H A DHalManifest.h69 HalManifest() : mType(SchemaType::DEVICE) {} in HalManifest()
105 SchemaType type() const;
106 void setType(SchemaType type);
233 SchemaType mType;
H A DCompatibilityMatrix.h53 CompatibilityMatrix() : mType(SchemaType::FRAMEWORK) {} in CompatibilityMatrix()
55 SchemaType type() const;
164 SchemaType mType;
H A DSchemaType.h27 enum class SchemaType : size_t { enum
H A Dparse_string.h36 std::ostream &operator<<(std::ostream &os, SchemaType ksv);
67 bool parse(const std::string &s, SchemaType *ver);
H A DSerializeFlags.h47 VINTF_SERIALIZE_FLAGS_FIELD(SchemaType, 11)
/aosp12/frameworks/native/cmds/lshal/
H A DListCommand.cpp55 vintf::SchemaType toSchemaType(Partition p) { in toSchemaType()
56 return (p == Partition::SYSTEM) ? vintf::SchemaType::FRAMEWORK : vintf::SchemaType::DEVICE; in toSchemaType()
59 Partition toPartition(vintf::SchemaType t) { in toPartition()
61 case vintf::SchemaType::FRAMEWORK: return Partition::SYSTEM; in toPartition()
63 case vintf::SchemaType::DEVICE: return Partition::VENDOR; in toPartition()
/aosp12/system/libvintf/test/
H A DLibVintfTest.cpp86 void set(CompatibilityMatrix &cm, SchemaType type) { in set()
148 vm.mType = SchemaType::DEVICE; in testDeviceManifest()
174 vm.mType = SchemaType::FRAMEWORK; in testFrameworkManfiest()
673 set(cm, SchemaType::DEVICE); in TEST_F()