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

Commit 3d80c6a5 authored by zhidou's avatar zhidou
Browse files

add new storage sub libray

Create stub files of new storage, and the build target of new storage
sub. The stub files, and the library is needed for the case to provide
the symbols at the build time.

Test: presubmit
Change-Id: If3bc64130590b69c879e3bf5299a58f0dea42324
parent 2ffe4dea
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!");
    }
}