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

Commit 4512e77b authored by Collin Fijalkovich's avatar Collin Fijalkovich Committed by Gerrit Code Review
Browse files

Merge "Introduce TracingServiceProxy System Services"

parents 14a82f79 a5ceac11
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7,3 +7,8 @@ filegroup {
    name: "IDropBoxManagerService.aidl",
    srcs: ["com/android/internal/os/IDropBoxManagerService.aidl"],
}

filegroup {
    name: "ITracingServiceProxy.aidl",
    srcs: ["android/tracing/ITracingServiceProxy.aidl"],
}
+32 −0
Original line number Diff line number Diff line
/**
 * Copyright (c) 2020, 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.tracing;

/**
 * Binder interface for the TracingServiceProxy running in system_server.
 *
 * {@hide}
 */
interface ITracingServiceProxy
{
    /**
     * Notifies system tracing app that a tracing session has ended. If a session is repurposed
     * for use in a bugreport, sessionStolen can be set to indicate that tracing has ended but
     * there is no buffer available to dump.
     */
    oneway void notifyTraceSessionEnded(boolean sessionStolen);
}
+2 −0
Original line number Diff line number Diff line
cfijalkovich@google.com
carmenjackson@google.com
+2 −0
Original line number Diff line number Diff line
@@ -460,6 +460,8 @@ applications that come with the platform
        <permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
        <!-- Permissions required for quick settings tile -->
        <permission name="android.permission.STATUS_BAR"/>
        <!-- Permissions required to query Betterbug -->
        <permission name="android.permission.QUERY_ALL_PACKAGES"/>
    </privapp-permissions>

    <privapp-permissions package="com.android.tv">
+42 −0
Original line number Diff line number Diff line
// Copyright (C) 2020 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.

// Provides C++ wrappers for system services.

cc_library_shared {
    name: "libtracingproxy",

    aidl: {
        export_aidl_headers: true,
        include_dirs: [
            "frameworks/base/core/java",
        ],
    },

    srcs: [
        ":ITracingServiceProxy.aidl",
    ],

    shared_libs: [
        "libbinder",
        "libutils",
    ],

    cflags: [
        "-Wall",
        "-Werror",
        "-Wunused",
        "-Wunreachable-code",
    ],
}
Loading