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

Commit 26686824 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Use SystemApi framework parcelables directly

Remove StaticIpConfigurationParcelable and ApfCapabilitiesParcelable and
use StaticIpConfiguration and ApfCapabilities directly.
These two classes are SystemApi and defined in framework.jar, so no
stability guarantee is needed: the parceled and unparceled class will
always be the framework.jar version.

Bug: 126477266
Fixes: 126477266
Test: atest FrameworksNetTests NetworkStackTests
Test: flashed, booted, WiFi and captive portal works.
Change-Id: Iaf80ae23e003752cc6d2300700021931923b6533
parent 64bb980f
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -17,11 +17,4 @@

package android.net;

import android.net.LinkAddress;

parcelable StaticIpConfigurationParcelable {
    LinkAddress ipAddress;
    String gateway;
    String[] dnsServers;
    String domains;
}
@JavaOnlyStableParcelable parcelable StaticIpConfiguration;
 No newline at end of file
+20 −0
Original line number Diff line number Diff line
/*
**
** Copyright (C) 2019 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.net.apf;

@JavaOnlyStableParcelable parcelable ApfCapabilities;
 No newline at end of file
+0 −2
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ aidl_interface {
    local_include_dir: "java",
    include_dirs: ["frameworks/base/core/java"],  // For framework parcelables.
    srcs: [
        "java/android/net/ApfCapabilitiesParcelable.aidl",
        "java/android/net/DhcpResultsParcelable.aidl",
        "java/android/net/IIpMemoryStore.aidl",
        "java/android/net/IIpMemoryStoreCallbacks.aidl",
@@ -36,7 +35,6 @@ aidl_interface {
        "java/android/net/InitialConfigurationParcelable.aidl",
        "java/android/net/PrivateDnsConfigParcel.aidl",
        "java/android/net/ProvisioningConfigurationParcelable.aidl",
        "java/android/net/StaticIpConfigurationParcelable.aidl",
        "java/android/net/TcpKeepalivePacketDataParcelable.aidl",
        "java/android/net/dhcp/DhcpServingParamsParcel.aidl",
        "java/android/net/dhcp/IDhcpServer.aidl",
+0 −23
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 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.net;

parcelable ApfCapabilitiesParcelable {
    int apfVersionSupported;
    int maximumApfProgramSize;
    int apfPacketFormat;
}
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@

package android.net;

import android.net.StaticIpConfigurationParcelable;
import android.net.StaticIpConfiguration;

parcelable DhcpResultsParcelable {
    StaticIpConfigurationParcelable baseConfiguration;
    StaticIpConfiguration baseConfiguration;
    int leaseDuration;
    int mtu;
    String serverAddress;
Loading