blob: 4d9a05ace60000479f89b6724799003ac43826e4 [file] [log] [blame]
Todd Poynor694553d2015-12-03 11:05:45 -08001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "metrics_collector_service_impl.h"
18
19#include <binder/IServiceManager.h>
20#include <binder/Status.h>
Todd Poynor694553d2015-12-03 11:05:45 -080021#include <utils/Errors.h>
22
Todd Poynorb77ae452016-01-04 14:11:25 -080023#include "metrics_collector.h"
Todd Poynor694553d2015-12-03 11:05:45 -080024
25using namespace android;
26
27BnMetricsCollectorServiceImpl::BnMetricsCollectorServiceImpl(
Todd Poynorb77ae452016-01-04 14:11:25 -080028 MetricsCollector* metrics_collector)
29 : metrics_collector_(metrics_collector) {
Todd Poynor694553d2015-12-03 11:05:45 -080030}
31
32android::binder::Status BnMetricsCollectorServiceImpl::notifyUserCrash() {
Todd Poynorb77ae452016-01-04 14:11:25 -080033 metrics_collector_->ProcessUserCrash();
Todd Poynor694553d2015-12-03 11:05:45 -080034 return android::binder::Status::ok();
35}