aboutsummaryrefslogtreecommitdiff
path: root/service/src/com/android/car/CarTestService.java
diff options
context:
space:
mode:
authorKeun-young Park <keunyoung@google.com>2016-02-29 16:54:29 -0800
committerKeun-young Park <keunyoung@google.com>2016-03-03 16:21:05 -0800
commita28d7b201584823286f26e21a9f30d07c416eb3e (patch)
treefbaa688e075c28a08768e2f4752740ca8bcd7823 /service/src/com/android/car/CarTestService.java
parenta6521cd799e509b03ecbeea3b05f1dd5c0379387 (diff)
downloadCar-a28d7b201584823286f26e21a9f30d07c416eb3e.tar.gz
add input service
- CarInputService monitors input event through vehicle hal and handle it by itself (for now, VOICE_ASSITANT only), deliver it to other relevant component, or inject as android key event into kernel input device. - renamed jni to jni_car_service - added kitchensink input test. - From kitchensink test, single touch of volume key does not work as touch event in other window mess things up. But long press should work. It will work in real physical keys. - TODO: android key to linux key mapping should be expanded for all possible keys. bug: 27461452 Change-Id: I51e4b64bcd3c745f27ebb089fafce536be91f04d
Diffstat (limited to 'service/src/com/android/car/CarTestService.java')
-rw-r--r--service/src/com/android/car/CarTestService.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/src/com/android/car/CarTestService.java b/service/src/com/android/car/CarTestService.java
index 2752e3051d..1a983c7096 100644
--- a/service/src/com/android/car/CarTestService.java
+++ b/service/src/com/android/car/CarTestService.java
@@ -23,6 +23,7 @@ import android.util.Log;
import com.android.car.hal.VehicleHal;
import com.android.car.vehiclenetwork.IVehicleNetworkHalMock;
import com.android.car.vehiclenetwork.VehicleNetwork;
+import com.android.car.vehiclenetwork.VehicleNetworkProto.VehiclePropConfigs;
import com.android.car.vehiclenetwork.VehiclePropValueParcelable;
import java.io.PrintWriter;
@@ -126,6 +127,13 @@ public class CarTestService extends ICarTest.Stub implements CarServiceBase {
});
}
+ @Override
+ public boolean isPropertySupported(int property) {
+ VehiclePropConfigs configs = VehicleHal.getInstance().getVehicleNetwork().listProperties(
+ property);
+ return configs != null;
+ }
+
public synchronized boolean isInMocking() {
return mInMocking;
}