Remove IStatsCallback aidl from master
Test: statsd, statsd_test Change-Id: Idd0fb945b62f3a139a0db07f1014a3c4a4e2f5f8
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.IStatsCallbacks;
|
||||
|
||||
/**
|
||||
* Binder interface to communicate with the statistics management service.
|
||||
* {@hide}
|
||||
|
||||
Reference in New Issue
Block a user