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

Commit 0457b6c4 authored by Zhi Dou's avatar Zhi Dou Committed by Gerrit Code Review
Browse files

Merge "remove unused files in fake_device_config" into main

parents 90ed0c95 817c1501
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -23,16 +23,6 @@ java_library {
    is_stubs_module: true,
}

java_library {
    name: "strict_mode_stub",
    srcs: [
        "src/android/os/StrictMode.java",
    ],
    sdk_version: "core_current",
    host_supported: true,
    is_stubs_module: true,
}

java_library {
    name: "aconfig_storage_stub",
    srcs: [
+0 −26
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;

public class Binder {
    public static final long clearCallingIdentity() {
        throw new UnsupportedOperationException("Stub!");
    }
    public static final void restoreCallingIdentity(long token) {
        throw new UnsupportedOperationException("Stub!");
    }
}
+0 −29
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;

public class StrictMode {
    public static ThreadPolicy allowThreadDiskReads() {
        throw new UnsupportedOperationException("Stub!");
    }

    public static void setThreadPolicy(final ThreadPolicy policy) {
        throw new UnsupportedOperationException("Stub!");
    }

    public static final class ThreadPolicy {}
}
+0 −39
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 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.provider;

/*
 * This class allows generated aconfig code to compile independently of the framework.
 */
public class DeviceConfig {
	private DeviceConfig() {
	}

	public static boolean getBoolean(String ns, String name, boolean def) {
		return false;
	}

	public static Properties getProperties(String namespace, String... names) {
		return new Properties();
	}

	public static class Properties {
		public boolean getBoolean(String name, boolean def) {
			return false;
		}
	}
}
+4 −4
Original line number Diff line number Diff line
@@ -2,18 +2,18 @@ package android.util;

public final class Log {
    public static int i(String tag, String msg) {
        return 0;
        throw new UnsupportedOperationException("Stub!");
    }

    public static int w(String tag, String msg) {
        return 0;
        throw new UnsupportedOperationException("Stub!");
    }

    public static int e(String tag, String msg) {
        return 0;
        throw new UnsupportedOperationException("Stub!");
    }

    public static int e(String tag, String msg, Throwable tr) {
        return 0;
        throw new UnsupportedOperationException("Stub!");
    }
}