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

Commit 20e8af30 authored by Zhi Dou's avatar Zhi Dou Committed by Automerger Merge Worker
Browse files

Merge "add new storage sub libray" into main am: 0337ed2d

parents 01473c6c 0337ed2d
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -42,3 +42,14 @@ java_library {
    host_supported: true,
    is_stubs_module: true,
}

java_library {
    name: "aconfig_storage_stub_none",
    srcs: [
        "src/android/os/flagging/**/*.java",
    ],
    sdk_version: "none",
    system_modules: "core-all-system-modules",
    host_supported: true,
    is_stubs_module: true,
}
+30 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.os.flagging;

/*
 * This class allows generated aconfig code to compile independently of the framework.
 */
public class AconfigPackage {
    public static AconfigPackage load(String packageName) {
        throw new UnsupportedOperationException("Stub!");
    }

    public boolean getBooleanFlagValue(String flagName, boolean defaultValue) {
        throw new UnsupportedOperationException("Stub!");
    }
}
+44 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.os.flagging;

/*
 * This class allows generated aconfig code to compile independently of the framework.
 */
public class AconfigPackageInternal {

    public static AconfigPackageInternal load(String container, String packageName) {
        throw new UnsupportedOperationException("Stub!");
    }

    public static AconfigPackageInternal load(
            String container, String packageName, long packageFingerprint) {
        throw new UnsupportedOperationException("Stub!");
    }

    public boolean getBooleanFlagValue(int index) {
        throw new UnsupportedOperationException("Stub!");
    }

    public boolean getBooleanFlagValue(String flagName, boolean defaultValue) {
        throw new UnsupportedOperationException("Stub!");
    }

    public AconfigStorageReadException getException() {
        throw new UnsupportedOperationException("Stub!");
    }
}
+44 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.os.flagging;

/*
 * This class allows generated aconfig code to compile independently of the framework.
 */
public class PlatformAconfigPackageInternal {

    public static PlatformAconfigPackageInternal load(String container, String packageName) {
        throw new UnsupportedOperationException("Stub!");
    }

    public static PlatformAconfigPackageInternal load(
            String container, String packageName, long packageFingerprint) {
        throw new UnsupportedOperationException("Stub!");
    }

    public boolean getBooleanFlagValue(int index) {
        throw new UnsupportedOperationException("Stub!");
    }

    public boolean getBooleanFlagValue(String flagName, boolean defaultValue) {
        throw new UnsupportedOperationException("Stub!");
    }

    public AconfigStorageReadException getException() {
        throw new UnsupportedOperationException("Stub!");
    }
}