mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: aidl-support: Make a stable version
This commit is contained in:
parent
61d1efb082
commit
65fa2766f4
38 changed files with 704 additions and 21 deletions
|
|
@ -13,7 +13,7 @@ android_app {
|
|||
"androidx.transition_transition",
|
||||
"kotlinx_coroutines_android",
|
||||
"androidx.coordinatorlayout_coordinatorlayout",
|
||||
"vendor.eureka.hardware.fmradio-java",
|
||||
"vendor.eureka.hardware.fmradio-V1-java",
|
||||
],
|
||||
required: [
|
||||
"vendor.eureka.hardware.fmradio-service",
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ android_app {
|
|||
jni_libs: ["libSwapStorageHelper"],
|
||||
static_libs: [
|
||||
"androidx.preference_preference",
|
||||
"vendor.eureka.hardware.parts-java",
|
||||
"vendor.eureka.hardware.parts-V1-java",
|
||||
],
|
||||
defaults: ["SettingsLibDefaults"],
|
||||
required: ["vendor.eureka.hardware.parts-service"],
|
||||
|
|
|
|||
|
|
@ -1,10 +1,17 @@
|
|||
aidl_interface {
|
||||
name: "vendor.eureka.hardware.fmradio",
|
||||
srcs: ["vendor/eureka/hardware/fmradio/*.aidl"],
|
||||
stability: "vintf",
|
||||
backend: {
|
||||
ndk: {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
unstable: true,
|
||||
versions_with_info: [
|
||||
{
|
||||
version: "1",
|
||||
imports: [],
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
c3526b25ff642236758dcaad007a7e232f87efa9
|
||||
c3526b25ff642236758dcaad007a7e232f87efa9
|
||||
953afbf98105208eed602421a0cb5c39f5e7b69e
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.fmradio;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum GetType {
|
||||
GET_TYPE_FM_FREQ,
|
||||
GET_TYPE_FM_UPPER_LIMIT,
|
||||
GET_TYPE_FM_LOWER_LIMIT,
|
||||
GET_TYPE_FM_RMSSI,
|
||||
GET_TYPE_FM_BEFORE_CHANNEL,
|
||||
GET_TYPE_FM_NEXT_CHANNEL,
|
||||
GET_TYPE_FM_SYSFS_IF,
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.fmradio;
|
||||
|
||||
import vendor.eureka.hardware.fmradio.GetType;
|
||||
import vendor.eureka.hardware.fmradio.SetType;
|
||||
|
||||
@VintfStability
|
||||
interface IFMDevControl {
|
||||
oneway void open();
|
||||
|
||||
int getValue(in GetType type);
|
||||
|
||||
oneway void setValue(in SetType type, int value);
|
||||
|
||||
int[] getFreqsList();
|
||||
|
||||
oneway void close();
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.fmradio;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum SetType {
|
||||
SET_TYPE_FM_FREQ,
|
||||
SET_TYPE_FM_MUTE,
|
||||
SET_TYPE_FM_VOLUME,
|
||||
SET_TYPE_FM_THREAD,
|
||||
SET_TYPE_FM_RMSSI,
|
||||
SET_TYPE_FM_SEARCH_CANCEL,
|
||||
SET_TYPE_FM_SPEAKER_ROUTE,
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.fmradio;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum GetType {
|
||||
GET_TYPE_FM_FREQ = 0,
|
||||
GET_TYPE_FM_UPPER_LIMIT = 1,
|
||||
GET_TYPE_FM_LOWER_LIMIT = 2,
|
||||
GET_TYPE_FM_RMSSI = 3,
|
||||
GET_TYPE_FM_BEFORE_CHANNEL = 4,
|
||||
GET_TYPE_FM_NEXT_CHANNEL = 5,
|
||||
GET_TYPE_FM_SYSFS_IF = 6,
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.fmradio;
|
||||
@VintfStability
|
||||
interface IFMDevControl {
|
||||
oneway void open();
|
||||
int getValue(in vendor.eureka.hardware.fmradio.GetType type);
|
||||
oneway void setValue(in vendor.eureka.hardware.fmradio.SetType type, int value);
|
||||
int[] getFreqsList();
|
||||
oneway void close();
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.fmradio;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum SetType {
|
||||
SET_TYPE_FM_FREQ = 0,
|
||||
SET_TYPE_FM_MUTE = 1,
|
||||
SET_TYPE_FM_VOLUME = 2,
|
||||
SET_TYPE_FM_THREAD = 3,
|
||||
SET_TYPE_FM_RMSSI = 4,
|
||||
SET_TYPE_FM_SEARCH_CANCEL = 5,
|
||||
SET_TYPE_FM_SPEAKER_ROUTE = 6,
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ cc_binary {
|
|||
"libaudioclient",
|
||||
"libaudiopolicy",
|
||||
"libaudiomanager",
|
||||
"vendor.eureka.hardware.fmradio-ndk",
|
||||
"vendor.eureka.hardware.fmradio-V1-ndk",
|
||||
],
|
||||
header_libs: ["libaudioclient_headers"],
|
||||
init_rc: ["vendor.eureka.hardware.fmradio-service.rc"],
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
package vendor.eureka.hardware.fmradio;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum GetType {
|
||||
GET_TYPE_FM_FREQ,
|
||||
GET_TYPE_FM_UPPER_LIMIT,
|
||||
|
|
|
|||
|
|
@ -17,14 +17,15 @@ package vendor.eureka.hardware.fmradio;
|
|||
import vendor.eureka.hardware.fmradio.GetType;
|
||||
import vendor.eureka.hardware.fmradio.SetType;
|
||||
|
||||
@VintfStability
|
||||
interface IFMDevControl {
|
||||
void open();
|
||||
oneway void open();
|
||||
|
||||
int getValue(in GetType type);
|
||||
|
||||
void setValue(in SetType type, int value);
|
||||
oneway void setValue(in SetType type, int value);
|
||||
|
||||
int[] getFreqsList();
|
||||
|
||||
void close();
|
||||
oneway void close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
package vendor.eureka.hardware.fmradio;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum SetType {
|
||||
SET_TYPE_FM_FREQ,
|
||||
SET_TYPE_FM_MUTE,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,17 @@
|
|||
aidl_interface {
|
||||
name: "vendor.eureka.hardware.parts",
|
||||
srcs: ["vendor/eureka/hardware/parts/*.aidl"],
|
||||
stability: "vintf",
|
||||
backend: {
|
||||
ndk: {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
unstable: true,
|
||||
}
|
||||
versions_with_info: [
|
||||
{
|
||||
version: "1",
|
||||
imports: [],
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
d0dc9a61b9e829ce23dde2a79aedf7518f145d85
|
||||
ac0a24199a0e9719d70fb254e0b5d6faab72dd1a
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum BatterySys {
|
||||
CAPACITY_MAX,
|
||||
TEMP,
|
||||
CAPACITY_CURRENT,
|
||||
CURRENT,
|
||||
FASTCHARGE,
|
||||
CHARGE,
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum DisplaySys {
|
||||
DOUBLE_TAP,
|
||||
GLOVE_MODE,
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
import vendor.eureka.hardware.parts.BatterySys;
|
||||
|
||||
@VintfStability
|
||||
interface IBatteryStats {
|
||||
int getBatteryStats(in BatterySys stats);
|
||||
|
||||
oneway void setBatteryWritable(in BatterySys stats, in boolean value);
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
import vendor.eureka.hardware.parts.DisplaySys;
|
||||
|
||||
@VintfStability
|
||||
interface IDisplayConfigs {
|
||||
oneway void writeDisplay(in boolean enable, in DisplaySys type);
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@VintfStability
|
||||
interface IFlashBrightness {
|
||||
int readFlashlightstats(in boolean s2mu106);
|
||||
|
||||
oneway void setFlashlightEnable(in boolean enable);
|
||||
|
||||
oneway void setFlashlightWritable(in int value);
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@VintfStability
|
||||
interface ISmartCharge {
|
||||
int getLimitCnt();
|
||||
|
||||
int getRestartCnt();
|
||||
|
||||
oneway void setConfig(in int limit, in int restart);
|
||||
|
||||
oneway void start();
|
||||
|
||||
oneway void stop();
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@VintfStability
|
||||
interface ISwapOnData {
|
||||
boolean getSwapOnResult();
|
||||
|
||||
boolean isMutexLocked();
|
||||
|
||||
oneway void removeSwapFile();
|
||||
|
||||
oneway void setSwapOff();
|
||||
|
||||
oneway void setSwapOn();
|
||||
|
||||
oneway void setSwapSize(in int size);
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum BatterySys {
|
||||
CAPACITY_MAX = 0,
|
||||
TEMP = 1,
|
||||
CAPACITY_CURRENT = 2,
|
||||
CURRENT = 3,
|
||||
FASTCHARGE = 4,
|
||||
CHARGE = 5,
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum DisplaySys {
|
||||
DOUBLE_TAP = 0,
|
||||
GLOVE_MODE = 1,
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@VintfStability
|
||||
interface IBatteryStats {
|
||||
int getBatteryStats(in vendor.eureka.hardware.parts.BatterySys stats);
|
||||
oneway void setBatteryWritable(in vendor.eureka.hardware.parts.BatterySys stats, in boolean value);
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@VintfStability
|
||||
interface IDisplayConfigs {
|
||||
oneway void writeDisplay(in boolean enable, in vendor.eureka.hardware.parts.DisplaySys type);
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@VintfStability
|
||||
interface IFlashBrightness {
|
||||
int readFlashlightstats(in boolean s2mu106);
|
||||
oneway void setFlashlightEnable(in boolean enable);
|
||||
oneway void setFlashlightWritable(in int value);
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@VintfStability
|
||||
interface ISmartCharge {
|
||||
int getLimitCnt();
|
||||
int getRestartCnt();
|
||||
oneway void setConfig(in int limit, in int restart);
|
||||
oneway void start();
|
||||
oneway void stop();
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.eureka.hardware.parts;
|
||||
@VintfStability
|
||||
interface ISwapOnData {
|
||||
boolean getSwapOnResult();
|
||||
boolean isMutexLocked();
|
||||
oneway void removeSwapFile();
|
||||
oneway void setSwapOff();
|
||||
oneway void setSwapOn();
|
||||
oneway void setSwapSize(in int size);
|
||||
}
|
||||
|
|
@ -15,7 +15,7 @@ cc_binary {
|
|||
"libbase",
|
||||
"libbinder_ndk",
|
||||
"libfileio",
|
||||
"vendor.eureka.hardware.parts-ndk",
|
||||
"vendor.eureka.hardware.parts-V1-ndk",
|
||||
],
|
||||
init_rc: ["vendor.eureka.hardware.parts-service.rc"],
|
||||
vintf_fragments: ["vendor.eureka.hardware.parts.xml"],
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
package vendor.eureka.hardware.parts;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum BatterySys {
|
||||
CAPACITY_MAX,
|
||||
TEMP,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
package vendor.eureka.hardware.parts;
|
||||
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum DisplaySys {
|
||||
DOUBLE_TAP,
|
||||
GLOVE_MODE,
|
||||
|
|
|
|||
|
|
@ -16,8 +16,9 @@ package vendor.eureka.hardware.parts;
|
|||
|
||||
import vendor.eureka.hardware.parts.BatterySys;
|
||||
|
||||
@VintfStability
|
||||
interface IBatteryStats {
|
||||
int getBatteryStats(in BatterySys stats);
|
||||
|
||||
void setBatteryWritable(in BatterySys stats, in boolean value);
|
||||
oneway void setBatteryWritable(in BatterySys stats, in boolean value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ package vendor.eureka.hardware.parts;
|
|||
|
||||
import vendor.eureka.hardware.parts.DisplaySys;
|
||||
|
||||
@VintfStability
|
||||
interface IDisplayConfigs {
|
||||
void writeDisplay(in boolean enable, in DisplaySys type);
|
||||
oneway void writeDisplay(in boolean enable, in DisplaySys type);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,10 +14,11 @@
|
|||
|
||||
package vendor.eureka.hardware.parts;
|
||||
|
||||
@VintfStability
|
||||
interface IFlashBrightness {
|
||||
int readFlashlightstats(in boolean s2mu106);
|
||||
|
||||
void setFlashlightEnable(in boolean enable);
|
||||
oneway void setFlashlightEnable(in boolean enable);
|
||||
|
||||
void setFlashlightWritable(in int value);
|
||||
oneway void setFlashlightWritable(in int value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,14 +14,15 @@
|
|||
|
||||
package vendor.eureka.hardware.parts;
|
||||
|
||||
@VintfStability
|
||||
interface ISmartCharge {
|
||||
int getLimitCnt();
|
||||
|
||||
int getRestartCnt();
|
||||
|
||||
void setConfig(in int limit, in int restart);
|
||||
oneway void setConfig(in int limit, in int restart);
|
||||
|
||||
void start();
|
||||
oneway void start();
|
||||
|
||||
void stop();
|
||||
oneway void stop();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,17 @@
|
|||
|
||||
package vendor.eureka.hardware.parts;
|
||||
|
||||
@VintfStability
|
||||
interface ISwapOnData {
|
||||
boolean getSwapOnResult();
|
||||
|
||||
boolean isMutexLocked();
|
||||
|
||||
void removeSwapFile();
|
||||
oneway void removeSwapFile();
|
||||
|
||||
void setSwapOff();
|
||||
oneway void setSwapOff();
|
||||
|
||||
void setSwapOn();
|
||||
oneway void setSwapOn();
|
||||
|
||||
void setSwapSize(in int size);
|
||||
oneway void setSwapSize(in int size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue