Remove IStatsCallback aidl from master

Test: statsd, statsd_test

Change-Id: Idd0fb945b62f3a139a0db07f1014a3c4a4e2f5f8
This commit is contained in:
yro
2017-11-19 14:56:37 -08:00
parent 28306600e6
commit 29f69e8f04
6 changed files with 0 additions and 46 deletions

View File

@@ -273,7 +273,6 @@ LOCAL_SRC_FILES += \
core/java/android/os/IRecoverySystemProgressListener.aidl \
core/java/android/os/IRemoteCallback.aidl \
core/java/android/os/ISchedulingPolicyService.aidl \
core/java/android/os/IStatsCallbacks.aidl \
core/java/android/os/IStatsCompanionService.aidl \
core/java/android/os/IStatsManager.aidl \
core/java/android/os/IThermalEventListener.aidl \

View File

@@ -15,7 +15,6 @@
LOCAL_PATH:= $(call my-dir)
statsd_common_src := \
../../core/java/android/os/IStatsCallbacks.aidl \
../../core/java/android/os/IStatsCompanionService.aidl \
../../core/java/android/os/IStatsManager.aidl \
src/stats_log.proto \

View File

@@ -690,12 +690,6 @@ Status StatsService::removeConfiguration(const String16& key, bool* success) {
}
void StatsService::binderDied(const wp <IBinder>& who) {
for (size_t i = 0; i < mCallbacks.size(); i++) {
if (IInterface::asBinder(mCallbacks[i]) == who) {
mCallbacks.removeAt(i);
break;
}
}
}
} // namespace statsd

View File

@@ -24,7 +24,6 @@
#include "packages/UidMap.h"
#include <android/os/BnStatsManager.h>
#include <android/os/IStatsCallbacks.h>
#include <android/os/IStatsCompanionService.h>
#include <binder/IResultReceiver.h>
#include <utils/Looper.h>
@@ -195,16 +194,6 @@ private:
* Whether this is an eng build.
*/
bool mEngBuild;
/**
* Lock for callback handling.
*/
std::mutex mLock;
/**
* Vector maintaining the list of callbacks for clients.
*/
Vector< sp<IStatsCallbacks> > mCallbacks;
};
} // namespace statsd

View File

@@ -1,25 +0,0 @@
/**
* 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 android.os;
/**
* Callback for Statsd to allow binder calls to clients.
* {@hide}
*/
interface IStatsCallbacks {
void onReceiveLogs(out byte[] log);
}

View File

@@ -16,8 +16,6 @@
package android.os;
import android.os.IStatsCallbacks;
/**
* Binder interface to communicate with the statistics management service.
* {@hide}