Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a181cd8 authored by Khaled Abdelmohsen's avatar Khaled Abdelmohsen
Browse files

Add getters for atomic formula components

Bug: 143697198
Test: N/A
Change-Id: Ic09dc2ab906f8b879d4f4d3fab50107272257230
parent e4a34f68
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -177,6 +177,14 @@ public abstract class AtomicFormula implements Formula {
            dest.writeInt(mOperator);
        }

        public int getValue() {
            return mValue;
        }

        public int getOperator() {
            return mOperator;
        }

        private int getMetadataValueByKey(AppInstallMetadata appInstallMetadata) {
            switch (getKey()) {
                case VERSION_CODE:
@@ -271,6 +279,10 @@ public abstract class AtomicFormula implements Formula {
            dest.writeStringNoHelper(mValue);
        }

        public String getValue() {
            return mValue;
        }

        private String getMetadataValueByKey(AppInstallMetadata appInstallMetadata) {
            switch (getKey()) {
                case PACKAGE_NAME:
@@ -367,6 +379,10 @@ public abstract class AtomicFormula implements Formula {
            dest.writeByte((byte) (mValue ? 1 : 0));
        }

        public boolean getValue() {
            return mValue;
        }

        private boolean getMetadataValueByKey(AppInstallMetadata appInstallMetadata) {
            switch (getKey()) {
                case PRE_INSTALLED: