Move connectivity sources to packages/Connectivity
The service-connectivity sources should be in packages/modules/Connectivity. Move them to frameworks/base/packages/Connectivity, so that the whole directory can be moved to the dedicated packages/modules/Connectivity git project. Bug: 186628461 Test: m Change-Id: I26d1a274058fa38763ad4f605549d880865b4d76
This commit is contained in:
@@ -54,7 +54,7 @@ java_library {
|
||||
sdk_version: "system_server_current",
|
||||
min_sdk_version: "30",
|
||||
srcs: [
|
||||
":connectivity-service-srcs",
|
||||
"src/**/*.java",
|
||||
":framework-connectivity-shared-srcs",
|
||||
":services-connectivity-shared-srcs",
|
||||
// TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
errorLine1=" if (tm.isDataCapable()) {"
|
||||
errorLine2=" ~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/base/services/core/java/com/android/server/ConnectivityService.java"
|
||||
line="781"
|
||||
file="frameworks/base/packages/Connectivity/service/src/com/android/server/ConnectivityService.java"
|
||||
line="787"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
errorLine1=" mUserAllContext.sendStickyBroadcast(intent, options);"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/base/services/core/java/com/android/server/ConnectivityService.java"
|
||||
line="2633"
|
||||
file="frameworks/base/packages/Connectivity/service/src/com/android/server/ConnectivityService.java"
|
||||
line="2681"
|
||||
column="33"/>
|
||||
</issue>
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
errorLine1=" final int callingVersion = pm.getTargetSdkVersion(callingPackageName);"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="frameworks/base/services/core/java/com/android/server/ConnectivityService.java"
|
||||
line="5784"
|
||||
file="frameworks/base/packages/Connectivity/service/src/com/android/server/ConnectivityService.java"
|
||||
line="5851"
|
||||
column="43"/>
|
||||
</issue>
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (C) 2016 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.connectivity;
|
||||
|
||||
import android.os.SystemProperties;
|
||||
|
||||
public class MockableSystemProperties {
|
||||
|
||||
public String get(String key) {
|
||||
return SystemProperties.get(key);
|
||||
}
|
||||
|
||||
public int getInt(String key, int def) {
|
||||
return SystemProperties.getInt(key, def);
|
||||
}
|
||||
|
||||
public boolean getBoolean(String key, boolean def) {
|
||||
return SystemProperties.getBoolean(key, def);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user