Home | History | Annotate | Download | only in default
      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 #ifndef ANDROID_HARDWARE_CAMERA_PROVIDER_V2_5_LEGACYCAMERAPROVIDER_H
     18 #define ANDROID_HARDWARE_CAMERA_PROVIDER_V2_5_LEGACYCAMERAPROVIDER_H
     19 
     20 #include <LegacyCameraProviderImpl_2_4.h>
     21 
     22 #include <android/hardware/camera/provider/2.5/ICameraProvider.h>
     23 #include <hidl/Status.h>
     24 #include <hidl/MQDescriptor.h>
     25 
     26 namespace android {
     27 namespace hardware {
     28 namespace camera {
     29 namespace provider {
     30 namespace V2_5 {
     31 namespace implementation {
     32 
     33 using namespace ::android::hardware::camera::provider;
     34 
     35 using ::android::hardware::camera::common::V1_0::CameraDeviceStatus;
     36 using ::android::hardware::camera::common::V1_0::Status;
     37 using ::android::hardware::camera::common::V1_0::TorchModeStatus;
     38 using ::android::hardware::camera::common::V1_0::VendorTag;
     39 using ::android::hardware::camera::common::V1_0::VendorTagSection;
     40 using ::android::hardware::camera::common::V1_0::helper::CameraModule;
     41 using ::android::hardware::camera::common::V1_0::helper::VendorTagDescriptor;
     42 using ::android::hardware::camera::provider::V2_5::DeviceState;
     43 using ::android::hardware::hidl_bitfield;
     44 using ::android::hardware::Return;
     45 
     46 struct LegacyCameraProviderImpl_2_5 : public V2_4::implementation::LegacyCameraProviderImpl_2_4 {
     47     LegacyCameraProviderImpl_2_5();
     48     ~LegacyCameraProviderImpl_2_5();
     49 
     50     // Methods from ::android::hardware::camera::provider::V2_5::ICameraProvider follow.
     51     Return<void> notifyDeviceStateChange(hidl_bitfield<DeviceState> newState);
     52 private:
     53 };
     54 
     55 }  // namespace implementation
     56 }  // namespace V2_5
     57 }  // namespace provider
     58 }  // namespace camera
     59 }  // namespace hardware
     60 }  // namespace android
     61 
     62 #endif  // ANDROID_HARDWARE_CAMERA_PROVIDER_V2_5_CAMERAPROVIDER_H
     63