1 /*
2  * Copyright (C) 2017 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 #include <android/os/StatsLogEventWrapper.h>
17 
18 #include <binder/Parcel.h>
19 #include <binder/Parcelable.h>
20 #include <binder/Status.h>
21 #include <utils/RefBase.h>
22 #include <vector>
23 
24 using android::Parcel;
25 using android::Parcelable;
26 using android::status_t;
27 using std::vector;
28 
29 namespace android {
30 namespace os {
31 
StatsLogEventWrapper()32 StatsLogEventWrapper::StatsLogEventWrapper(){};
33 
writeToParcel(Parcel * out) const34 status_t StatsLogEventWrapper::writeToParcel(Parcel* out) const {
35     out->writeByteVector(bytes);
36     return ::android::NO_ERROR;
37 };
38 
readFromParcel(const Parcel * in)39 status_t StatsLogEventWrapper::readFromParcel(const Parcel* in) {
40     in->readByteVector(&bytes);
41     return ::android::NO_ERROR;
42 };
43 
44 } // Namespace os
45 } // Namespace android
46