1 //
2 //  Copyright (C) 2017 Google, Inc.
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 "android/bluetooth/bluetooth_avrcp_register_notification_response.h"
18 
19 #include <utils/String16.h>
20 #include <utils/String8.h>
21 
22 using android::OK;
23 using android::String16;
24 using android::String8;
25 
26 namespace android {
27 namespace bluetooth {
28 
writeToParcel(Parcel * parcel) const29 status_t BluetoothAvrcpRegisterNotificationResponse::writeToParcel(
30     Parcel* parcel) const {
31   status_t status = parcel->write(&data_, sizeof(data_));
32   if (status != OK) return status;
33 
34   return status;
35 }
36 
readFromParcel(const Parcel * parcel)37 status_t BluetoothAvrcpRegisterNotificationResponse::readFromParcel(
38     const Parcel* parcel) {
39   status_t status = parcel->read(&data_, sizeof(data_));
40   if (status != OK) return status;
41 
42   return status;
43 }
44 
45 }  // namespace bluetooth
46 }  // namespace android
47