mirror of
				https://github.com/oplus-giulia-dev/android_hardware_oplus
				synced 2025-11-04 13:55:35 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			747 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			747 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * SPDX-FileCopyrightText: 2025 The LineageOS Project
 | 
						|
 * SPDX-License-Identifier: Apache-2.0
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <aidl/vendor/lineage/touch/BnGloveMode.h>
 | 
						|
#include <aidl/vendor/oplus/hardware/touch/IOplusTouch.h>
 | 
						|
 | 
						|
namespace aidl {
 | 
						|
namespace vendor {
 | 
						|
namespace lineage {
 | 
						|
namespace touch {
 | 
						|
 | 
						|
using aidl::vendor::oplus::hardware::touch::IOplusTouch;
 | 
						|
 | 
						|
class GloveMode : public BnGloveMode {
 | 
						|
  public:
 | 
						|
    explicit GloveMode(std::shared_ptr<IOplusTouch> oplusTouch);
 | 
						|
 | 
						|
    ndk::ScopedAStatus getEnabled(bool* _aidl_return) override;
 | 
						|
    ndk::ScopedAStatus setEnabled(bool enabled) override;
 | 
						|
 | 
						|
  private:
 | 
						|
    std::shared_ptr<IOplusTouch> mOplusTouch;
 | 
						|
};
 | 
						|
 | 
						|
}  // namespace touch
 | 
						|
}  // namespace lineage
 | 
						|
}  // namespace vendor
 | 
						|
}  // namespace aidl
 |