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

Commit cd9dd94f authored by Ruchir Rastogi's avatar Ruchir Rastogi
Browse files

StatsEventParcel impl.; move AIDL files

This implementation continue to uses libbinder, as opposed to
libbinder_ndk.

We also move many (but not all) statsd aidl files from
frameworks/base/core into the apex.

Test: m -j128 && bit statsd_test:*
Change-Id: I95f06e937e50c1e2a638163b13587682402956a7
parent 45665b5f
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -253,6 +253,8 @@ filegroup {
        ":libcamera_client_aidl",
        ":libcamera_client_framework_aidl",
        ":libupdate_engine_aidl",
        // TODO: this needs to be removed when statsd-framework.jar is separated out
        ":statsd_aidl",
        ":storaged_aidl",
        ":vold_aidl",

@@ -412,18 +414,6 @@ filegroup {
    path: "core/java",
}

filegroup {
    name: "statsd_aidl",
    srcs: [
        "core/java/android/os/IPullAtomCallback.aidl",
        "core/java/android/os/IPullAtomResultReceiver.aidl",
        "core/java/android/os/IStatsCompanionService.aidl",
        "core/java/android/os/IStatsManager.aidl",
        "core/java/android/os/IStatsPullerCallback.aidl",
    ],
    path: "core/java",
}

filegroup {
    name: "libvibrator_aidl",
    srcs: [
+35 −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.
//

// TODO(b/145815909): move StatsDimensionsValue.aidl and StatsLogEventWrapper.aidl here
filegroup {
    name: "statsd_aidl",
    srcs: ["**/*.aidl"],
}

// This library is currently unused
aidl_interface {
    name: "stats-event-parcel-aidl",
    srcs: ["android/util/StatsEventParcel.aidl"],
    backend: {
        java: {
            sdk_version: "28",
        },
        cpp: {
            enabled: false,
        }
    }
}
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package android.os;

import android.util.StatsEvent;
import android.util.StatsEventParcel;

/**
  * Binder interface to pull atoms for the stats service.
@@ -27,6 +27,6 @@ interface IPullAtomResultReceiver {
    /**
     * Indicate that a pull request for an atom is complete.
     */
     oneway void pullFinished(int atomTag, boolean success, in StatsEvent[] output);
     oneway void pullFinished(int atomTag, boolean success, in StatsEventParcel[] output);

}
Loading