diff options
author | 2021-02-25 18:10:46 +0100 | |
---|---|---|
committer | 2021-02-26 12:35:06 +0100 | |
commit | a6daf9fa42f6586bb42148310a4c165da56770c9 (patch) | |
tree | 45cdaab0e89fc782f8a23b57f31414a56feb4a3f | |
parent | c738a17f1fd264c1256b7c7b301d321387dfd360 (diff) |
Adding aidl file to share deviceProductInfo constants bw java and c++
Bug: 179775994
Test: N/A
Change-Id: Ibea82aeff36e8cb7ee57ff1d7798e67615278af6
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | aidl/android/hardware/display/IDeviceProductInfoConstants.aidl | 32 |
2 files changed, 38 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 1393f61edc..dec6716290 100644 --- a/Android.bp +++ b/Android.bp @@ -86,3 +86,9 @@ cc_library_headers{ name: "libandroid_headers_private", export_include_dirs: ["include/private"], } + +filegroup { + name: "deviceproductinfoconstants_aidl", + srcs: ["aidl/android/hardware/display/IDeviceProductInfoConstants.aidl"], + path: "aidl", +} diff --git a/aidl/android/hardware/display/IDeviceProductInfoConstants.aidl b/aidl/android/hardware/display/IDeviceProductInfoConstants.aidl new file mode 100644 index 0000000000..7cc272adff --- /dev/null +++ b/aidl/android/hardware/display/IDeviceProductInfoConstants.aidl @@ -0,0 +1,32 @@ +/* + * Copyright 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.hardware.display; + +/** @hide */ +interface IDeviceProductInfoConstants { + /** The device connection to the display sink is unknown. */ + const int CONNECTION_TO_SINK_UNKNOWN = 0; + + /** The device is built-in in the display sink. */ + const int CONNECTION_TO_SINK_BUILT_IN = 1; + + /** The device is directly connected to the display sink. */ + const int CONNECTION_TO_SINK_DIRECT = 2; + + /** The device is transitively connected to the display sink. */ + const int CONNECTION_TO_SINK_TRANSITIVE = 3; +}
\ No newline at end of file |