Merge "DO NOT MERGE: Add stub class and filegroup for Ethernet service." into sc-mainline-prod

This commit is contained in:
Xiao Ma 2022-03-16 10:11:11 +00:00 • committed by Android (Google) Code Review
commit 08ff0332f4
3 changed files with 64 additions and 0 deletions

View file

@ -37,6 +37,11 @@ filegroup {
srcs: [],
}
filegroup {
name: "ethernet-service-updatable-sources",
srcs: [],
}
filegroup {
name: "services.connectivity-netstats-jni-sources",
srcs: [

View file

@ -0,0 +1,31 @@
/*
* Copyright (C) 2022 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 com.android.server.ethernet;
import android.content.Context;
/**
* Fake EthernetService class for branches that do not have the updatable EthernetService yet,
* to allow building the T service-connectivity before sources are moved to the branch.
*/
public final class EthernetService {
/** Create instance */
public static EthernetServiceImpl create(Context ctx) {
throw new RuntimeException("This is a stub class");
}
}

View file

@ -0,0 +1,28 @@
/*
* Copyright (C) 2022 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 com.android.server.ethernet;
import android.os.Binder;
/** Stub class for EthernetServiceImpl */
public class EthernetServiceImpl extends Binder {
/** Start service */
public void start() {
throw new RuntimeException("This is a stub class");
}
}