1 /*
2  * Copyright (C) 2019 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 #define LOG_TAG "CamPrvdr@2.5-legacy"
18 //#define LOG_NDEBUG 0
19 #include <android/log.h>
20 #include <inttypes.h>
21 
22 #include "LegacyCameraProviderImpl_2_5.h"
23 #include "CameraProvider_2_5.h"
24 
25 namespace android {
26 namespace hardware {
27 namespace camera {
28 namespace provider {
29 namespace V2_5 {
30 namespace implementation {
31 
32 template struct CameraProvider<LegacyCameraProviderImpl_2_5>;
33 
LegacyCameraProviderImpl_2_5()34 LegacyCameraProviderImpl_2_5::LegacyCameraProviderImpl_2_5() :
35         LegacyCameraProviderImpl_2_4() {
36 }
37 
~LegacyCameraProviderImpl_2_5()38 LegacyCameraProviderImpl_2_5::~LegacyCameraProviderImpl_2_5() {}
39 
notifyDeviceStateChange(hidl_bitfield<DeviceState> newState)40 Return<void> LegacyCameraProviderImpl_2_5::notifyDeviceStateChange(
41         hidl_bitfield<DeviceState> newState) {
42     ALOGD("%s: New device state: 0x%" PRIx64, __FUNCTION__, newState);
43     uint64_t state = static_cast<uint64_t>(newState);
44     mModule->notifyDeviceStateChange(state);
45     return Void();
46 }
47 
48 }  // namespace implementation
49 }  // namespace V2_5
50 }  // namespace provider
51 }  // namespace camera
52 }  // namespace hardware
53 }  // namespace android
54