diff options
| author | 2020-02-03 18:13:23 -0800 | |
|---|---|---|
| committer | 2020-02-05 11:01:09 -0800 | |
| commit | 6ee546d8808d1645fcc8fc2dbca82740fd0ac569 (patch) | |
| tree | 803579c51475b84725054f4b78b2b45cdd3f1cf8 /libs/graphicsenv/IGpuService.cpp | |
| parent | c4173b5fac778586a7696d3df606590909b38432 (diff) | |
GpuStats: migrate to new statsd native puller api (part 1)
Bug: 148421389
Test: build, flash and boot.
Change-Id: I44f0b5befd8f879ba0542cec50212ee274ce1adb
Diffstat (limited to 'libs/graphicsenv/IGpuService.cpp')
| -rw-r--r-- | libs/graphicsenv/IGpuService.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/libs/graphicsenv/IGpuService.cpp b/libs/graphicsenv/IGpuService.cpp index 9f5b0ff46f..de3503bcf0 100644 --- a/libs/graphicsenv/IGpuService.cpp +++ b/libs/graphicsenv/IGpuService.cpp @@ -48,50 +48,6 @@ public: remote()->transact(BnGpuService::SET_GPU_STATS, data, &reply, IBinder::FLAG_ONEWAY); } - virtual status_t getGpuStatsGlobalInfo(std::vector<GpuStatsGlobalInfo>* outStats) const { - if (!outStats) return UNEXPECTED_NULL; - - Parcel data, reply; - status_t status; - - if ((status = data.writeInterfaceToken(IGpuService::getInterfaceDescriptor())) != OK) - return status; - - if ((status = remote()->transact(BnGpuService::GET_GPU_STATS_GLOBAL_INFO, data, &reply)) != - OK) - return status; - - int32_t result = 0; - if ((status = reply.readInt32(&result)) != OK) return status; - if (result != OK) return result; - - outStats->clear(); - return reply.readParcelableVector(outStats); - } - - virtual status_t getGpuStatsAppInfo(std::vector<GpuStatsAppInfo>* outStats) const { - if (!outStats) return UNEXPECTED_NULL; - - Parcel data, reply; - status_t status; - - if ((status = data.writeInterfaceToken(IGpuService::getInterfaceDescriptor())) != OK) { - return status; - } - - if ((status = remote()->transact(BnGpuService::GET_GPU_STATS_APP_INFO, data, &reply)) != - OK) { - return status; - } - - int32_t result = 0; - if ((status = reply.readInt32(&result)) != OK) return status; - if (result != OK) return result; - - outStats->clear(); - return reply.readParcelableVector(outStats); - } - virtual void setTargetStats(const std::string& appPackageName, const uint64_t driverVersionCode, const GpuStatsInfo::Stats stats, const uint64_t value) { Parcel data, reply; @@ -150,32 +106,6 @@ status_t BnGpuService::onTransact(uint32_t code, const Parcel& data, Parcel* rep return OK; } - case GET_GPU_STATS_GLOBAL_INFO: { - CHECK_INTERFACE(IGpuService, data, reply); - - std::vector<GpuStatsGlobalInfo> stats; - const status_t result = getGpuStatsGlobalInfo(&stats); - - if ((status = reply->writeInt32(result)) != OK) return status; - if (result != OK) return result; - - if ((status = reply->writeParcelableVector(stats)) != OK) return status; - - return OK; - } - case GET_GPU_STATS_APP_INFO: { - CHECK_INTERFACE(IGpuService, data, reply); - - std::vector<GpuStatsAppInfo> stats; - const status_t result = getGpuStatsAppInfo(&stats); - - if ((status = reply->writeInt32(result)) != OK) return status; - if (result != OK) return result; - - if ((status = reply->writeParcelableVector(stats)) != OK) return status; - - return OK; - } case SET_TARGET_STATS: { CHECK_INTERFACE(IGpuService, data, reply); |