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

Commit aaf632ef authored by Hai Zhang's avatar Hai Zhang
Browse files

Remove all remaining STOPSHIP comments for role.

By turning off DEBUG in two classes.

Fixes: 132909319
Test: presubmit
Change-Id: Id0f7485ede3a9a904f230aec59e44774171bb164
parent 05244bf0
Loading
Loading
Loading
Loading
+11 −17
Original line number Diff line number Diff line
@@ -47,8 +47,7 @@ public class Roles {

    private static final String LOG_TAG = Roles.class.getSimpleName();

    // STOPSHIP: Turn this off before we ship.
    private static final boolean DEBUG = true;
    private static final boolean DEBUG = false;

    private static final String TAG_ROLES = "roles";
    private static final String TAG_PERMISSION_SET = "permission-set";
@@ -460,9 +459,9 @@ public class Roles {
        String permission = getAttributeValue(parser, ATTRIBUTE_PERMISSION);
        IntentFilterData intentFilterData = null;
        List<RequiredMetaData> metaData = new ArrayList<>();
        List<String> metaDataNames;
        List<String> debugMetaDataNames;
        if (DEBUG) {
            metaDataNames = new ArrayList<>();
            debugMetaDataNames = new ArrayList<>();
        }

        int type;
@@ -491,7 +490,7 @@ public class Roles {
                        continue;
                    }
                    if (DEBUG) {
                        checkDuplicateElement(metaDataName, metaDataNames, "meta data");
                        checkDuplicateElement(metaDataName, debugMetaDataNames, "meta data");
                    }
                    // HACK: Only support boolean for now.
                    // TODO: Support android:resource and other types of android:value, maybe by
@@ -507,7 +506,7 @@ public class Roles {
                            metaDataValue, metaDataOptional);
                    metaData.add(requiredMetaData);
                    if (DEBUG) {
                        metaDataNames.add(metaDataName);
                        debugMetaDataNames.add(metaDataName);
                    }
                    break;
                default:
@@ -698,13 +697,10 @@ public class Roles {
                if (maxTargetSdkVersion == Integer.MIN_VALUE) {
                    maxTargetSdkVersion = null;
                }
                if (DEBUG) {
                    if (maxTargetSdkVersion != null
                            && maxTargetSdkVersion < Build.VERSION_CODES.BASE) {
                if (maxTargetSdkVersion != null && maxTargetSdkVersion < Build.VERSION_CODES.BASE) {
                    throwOrLogMessage("Invalid value for \"maxTargetSdkVersion\": "
                            + maxTargetSdkVersion);
                }
                }
                String modeName = requireAttributeValue(parser, ATTRIBUTE_MODE, TAG_APP_OP);
                if (modeName == null) {
                    continue;
@@ -797,12 +793,10 @@ public class Roles {
                    }
                    checkDuplicateElement(intentFilterData, intentFilterDatas,
                            "intent filter");
                    if (DEBUG) {
                    if (intentFilterData.getDataType() != null) {
                        throwOrLogMessage("mimeType in <data> is not supported when setting a"
                                + " preferred activity");
                    }
                    }
                    intentFilterDatas.add(intentFilterData);
                    break;
                default:
+1 −2
Original line number Diff line number Diff line
@@ -45,8 +45,7 @@ public class RoleControllerServiceImpl extends RoleControllerService {

    private static final String LOG_TAG = RoleControllerServiceImpl.class.getSimpleName();

    // STOPSHIP: Turn off debugging before we ship.
    private static final boolean DEBUG = true;
    private static final boolean DEBUG = false;

    private RoleManager mRoleManager;