Home | History | Annotate | Download | only in vr
      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 #ifndef ANDROID_HARDWARE_VR_V1_0_VR_H
     17 #define ANDROID_HARDWARE_VR_V1_0_VR_H
     18 
     19 #include <android/hardware/vr/1.0/IVr.h>
     20 
     21 namespace android {
     22 namespace hardware {
     23 namespace vr {
     24 namespace V1_0 {
     25 namespace implementation {
     26 
     27 using ::android::hardware::vr::V1_0::IVr;
     28 using ::android::hardware::Return;
     29 
     30 struct VrDevice : public IVr {
     31     VrDevice();
     32 
     33     Return<void> init()  override;
     34     Return<void> setVrMode(bool enabled)  override;
     35     Return<void> debug(const hidl_handle& handle, const hidl_vec<hidl_string>&)  override;
     36   private:
     37     // Taimen display touch sensitivity for VR Mode (b/37515573)
     38     bool mFtm4Touch;
     39     bool mVRmode;
     40 };
     41 
     42 }  // namespace implementation
     43 }  // namespace V1_0
     44 }  // namespace vr
     45 }  // namespace hardware
     46 }  // namespace android
     47 
     48 #endif  // ANDROID_HARDWARE_VR_V1_0_VR_H
     49