replace common qcom sources with samsung ones
This commit is contained in:
15
qcom/opensource/interfaces/servicetracker/1.0/Android.bp
Normal file
15
qcom/opensource/interfaces/servicetracker/1.0/Android.bp
Normal file
@@ -0,0 +1,15 @@
|
||||
// This file is autogenerated by hidl-gen -Landroidbp.
|
||||
|
||||
hidl_interface {
|
||||
name: "vendor.qti.hardware.servicetracker@1.0",
|
||||
root: "vendor.qti.hardware.servicetracker",
|
||||
system_ext_specific: true,
|
||||
srcs: [
|
||||
"types.hal",
|
||||
"IServicetracker.hal",
|
||||
],
|
||||
interfaces: [
|
||||
"android.hidl.base@1.0",
|
||||
],
|
||||
gen_java: true,
|
||||
}
|
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetracker@1.0;
|
||||
|
||||
/**
|
||||
*Interface that collects all the updated information related to
|
||||
*Client and Service and share the needed information with
|
||||
*other components.
|
||||
*/
|
||||
interface IServicetracker {
|
||||
/**
|
||||
*Collect the information related to service that is just started
|
||||
*@param serviceData contains details of the service,@param clientData
|
||||
*contains the details of client which has started the service
|
||||
*/
|
||||
oneway startService(ServiceData serviceData);
|
||||
|
||||
/**
|
||||
*Collect and update the information for the service which is just bound to
|
||||
*@param clientData
|
||||
*/
|
||||
oneway bindService(ServiceData serviceData, ClientData clientData);
|
||||
|
||||
/**
|
||||
*Update the bind information of sevice,client pair specified
|
||||
*by @param serviceData and @param clientData
|
||||
*/
|
||||
oneway unbindService(ServiceData serviceData, ClientData clientData);
|
||||
|
||||
/**
|
||||
*Update the service information when service specified by
|
||||
*@param serviceData has been destroyed
|
||||
*/
|
||||
oneway destroyService(ServiceData serviceData);
|
||||
|
||||
/**
|
||||
*Update the service and client information when process
|
||||
*specified by @param pid got killed
|
||||
*/
|
||||
oneway killProcess(int32_t pid);
|
||||
|
||||
/**
|
||||
*Return all the details related to Client specified by @param
|
||||
*clientName
|
||||
*/
|
||||
getclientInfo(string clientName) generates (Status status, ClientRecord client);
|
||||
|
||||
/**
|
||||
*Return all the details related to Service specified by @param
|
||||
*serviceName
|
||||
*/
|
||||
getserviceInfo(string serviceName) generates (Status status, ServiceRecord service);
|
||||
|
||||
/**
|
||||
*Return list of clients associated with the service specified by
|
||||
*@param serviceName
|
||||
*/
|
||||
getServiceConnections(string serviceName) generates (Status status, vec<ServiceConnection> conn);
|
||||
|
||||
/**
|
||||
*Return the list of services associated with the client
|
||||
*specified by @param clientName
|
||||
*/
|
||||
getClientConnections(string clientName) generates (Status status, vec<ClientConnection> conn);
|
||||
|
||||
/**
|
||||
*Return the pid of the process specified by @param processName
|
||||
*/
|
||||
getPid(string processName) generates (Status status, int32_t pid);
|
||||
|
||||
/**
|
||||
*Return the pid of the services listed in @param serviceList
|
||||
*/
|
||||
getPids(vec<string> serviceList) generates (Status status, vec<int32_t> pidList);
|
||||
|
||||
/**
|
||||
*Return whether a service specified by @param serviceName is
|
||||
*B-Service or not
|
||||
*/
|
||||
isServiceB(string serviceName) generates (Status status, bool serviceB);
|
||||
|
||||
/**
|
||||
*generate the list of b services running in system
|
||||
*/
|
||||
getServiceBCount() generates (Status status, vec<ServiceRecord> bServiceList, int32_t count);
|
||||
};
|
||||
|
||||
|
||||
|
111
qcom/opensource/interfaces/servicetracker/1.0/types.hal
Normal file
111
qcom/opensource/interfaces/servicetracker/1.0/types.hal
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetracker@1.0;
|
||||
|
||||
/**
|
||||
*Enum Values indicating the result of operation
|
||||
*/
|
||||
enum Status : int32_t {
|
||||
/** No errors. */
|
||||
SUCCESS,
|
||||
/**
|
||||
*the component for which the query is made
|
||||
* is not yet available
|
||||
*/
|
||||
ERROR_NOT_AVAILABLE,
|
||||
/** the arguments passed are invalid*/
|
||||
ERROR_INVALID_ARGS,
|
||||
/**
|
||||
*the information asked for the componenent
|
||||
*is not supported
|
||||
*/
|
||||
ERROR_NOT_SUPPORTED,
|
||||
ERROR_UNKNOWN
|
||||
};
|
||||
|
||||
/**
|
||||
*Client information recieved by AMS
|
||||
*/
|
||||
struct ClientData {
|
||||
string processName;
|
||||
int32_t pid;
|
||||
};
|
||||
|
||||
/**
|
||||
*Service information recieved by AMS
|
||||
*/
|
||||
struct ServiceData {
|
||||
string packageName;
|
||||
string processName;
|
||||
int32_t pid;
|
||||
double lastActivity;
|
||||
bool serviceB;
|
||||
};
|
||||
|
||||
/**
|
||||
*structure to define client to service connection
|
||||
*/
|
||||
struct ClientConnection {
|
||||
string serviceName;
|
||||
int32_t servicePid;
|
||||
int32_t count;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
*structure to define service to client connection
|
||||
*/
|
||||
struct ServiceConnection {
|
||||
string clientName;
|
||||
int32_t clientPid;
|
||||
int32_t count;
|
||||
};
|
||||
|
||||
/**
|
||||
*Client information
|
||||
*/
|
||||
struct ClientRecord {
|
||||
string processName;
|
||||
int32_t pid;
|
||||
vec<ClientConnection> conn;
|
||||
};
|
||||
|
||||
/**
|
||||
*Service information
|
||||
*/
|
||||
struct ServiceRecord {
|
||||
string packageName;
|
||||
string processName;
|
||||
int32_t pid;
|
||||
bool serviceB;
|
||||
double lastActivity;
|
||||
vec<ServiceConnection> conn;
|
||||
};
|
||||
|
15
qcom/opensource/interfaces/servicetracker/1.1/Android.bp
Normal file
15
qcom/opensource/interfaces/servicetracker/1.1/Android.bp
Normal file
@@ -0,0 +1,15 @@
|
||||
// This file is autogenerated by hidl-gen -Landroidbp.
|
||||
|
||||
hidl_interface {
|
||||
name: "vendor.qti.hardware.servicetracker@1.1",
|
||||
root: "vendor.qti.hardware.servicetracker",
|
||||
system_ext_specific: true,
|
||||
srcs: [
|
||||
"IServicetracker.hal",
|
||||
],
|
||||
interfaces: [
|
||||
"android.hidl.base@1.0",
|
||||
"vendor.qti.hardware.servicetracker@1.0",
|
||||
],
|
||||
gen_java: true,
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetracker@1.1;
|
||||
|
||||
import @1.0::IServicetracker;
|
||||
import @1.0::types;
|
||||
|
||||
interface IServicetracker extends @1.0::IServicetracker {
|
||||
/**
|
||||
*Return Pids of all the running Android Services.
|
||||
*/
|
||||
getRunningServicePid() generates (Status status, vec<int32_t> pidlist);
|
||||
};
|
18
qcom/opensource/interfaces/servicetracker/1.2/Android.bp
Normal file
18
qcom/opensource/interfaces/servicetracker/1.2/Android.bp
Normal file
@@ -0,0 +1,18 @@
|
||||
// This file is autogenerated by hidl-gen -Landroidbp.
|
||||
|
||||
hidl_interface {
|
||||
name: "vendor.qti.hardware.servicetracker@1.2",
|
||||
root: "vendor.qti.hardware.servicetracker",
|
||||
system_ext_specific: true,
|
||||
srcs: [
|
||||
"types.hal",
|
||||
"IActivityEventInfoCallback.hal",
|
||||
"IServicetracker.hal",
|
||||
],
|
||||
interfaces: [
|
||||
"android.hidl.base@1.0",
|
||||
"vendor.qti.hardware.servicetracker@1.0",
|
||||
"vendor.qti.hardware.servicetracker@1.1",
|
||||
],
|
||||
gen_java: true,
|
||||
}
|
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetracker@1.2;
|
||||
|
||||
interface IActivityEventInfoCallback {
|
||||
oneway notifyActivityEvent(ActivityStates aState, ActivityDetails aDetails, ActivityStats aStats, bool early_notify, int32_t userdata);
|
||||
};
|
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetracker@1.2;
|
||||
|
||||
import @1.1::IServicetracker;
|
||||
import @1.0::types;
|
||||
import IActivityEventInfoCallback;
|
||||
|
||||
interface IServicetracker extends @1.1::IServicetracker {
|
||||
/**
|
||||
* Register a callback for any activity lifecycle events.
|
||||
*
|
||||
* Registering a new callback must not unregister the old one; the old
|
||||
* callback remains registered until one of the following happens:
|
||||
* - client explicitly calls {@link unregisterCallback} to unregister it.
|
||||
* - The client process that hosts the callback dies.
|
||||
*
|
||||
* @param callback the callback to register.
|
||||
* @param aNotify Type of notification client wants to listen for.
|
||||
* @param userdata userdata passed by client when registered
|
||||
* @return result SUCCESS if successful,
|
||||
CALLBACK_EXIST if callback is already registered,
|
||||
ERROR_INVALID_ARGS if invalid callback tries to register,
|
||||
* UNKNOWN for other errors.
|
||||
*/
|
||||
registerCallback(IActivityEventInfoCallback callback, NotifyType aNotify, int32_t userdata) generates (Status result);
|
||||
|
||||
|
||||
/**
|
||||
* Explicitly unregister a callback that is previously registered through
|
||||
* {@link registerCallback}.
|
||||
*
|
||||
* @param callback the callback to unregister
|
||||
* @return result SUCCESS if successful,
|
||||
* NOT_FOUND if callback is not registered previously,
|
||||
* UNKNOWN for other errors.
|
||||
*/
|
||||
unregisterCallback(IActivityEventInfoCallback callback) generates (Status result);
|
||||
|
||||
/**
|
||||
* Get notified whenever there is a change in activity state in ActivityManagerService
|
||||
*
|
||||
* @param aState New state attained by activity
|
||||
* @param aDetails Information associated with an activity with every state change.
|
||||
* @param aStats activity's statistics w.r.t it's create time, no. of launch etc.
|
||||
* @param early_notify If notification is received as a part of early notification.
|
||||
* @return result SUCCESS if successful,
|
||||
* UNKNOWN for other errors.
|
||||
*/
|
||||
oneway OnActivityStateChange(ActivityStates aState, ActivityDetails aDetails, ActivityStats aStats, bool early_notify);
|
||||
|
||||
};
|
||||
|
||||
|
87
qcom/opensource/interfaces/servicetracker/1.2/types.hal
Normal file
87
qcom/opensource/interfaces/servicetracker/1.2/types.hal
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetracker@1.2;
|
||||
|
||||
import @1.0::Status;
|
||||
|
||||
enum Status : @1.0::Status {
|
||||
CALLBACK_EXIST,
|
||||
CALLBACK_DIED,
|
||||
};
|
||||
|
||||
/**
|
||||
* Activity details provided by ActivityManagerServices
|
||||
*/
|
||||
struct ActivityDetails {
|
||||
int32_t launchedFromPid;
|
||||
int32_t launchedFromUid;
|
||||
string packageName;
|
||||
string processName;
|
||||
string intent;
|
||||
string className;
|
||||
int32_t versioncode;
|
||||
};
|
||||
|
||||
/**
|
||||
* Activity events related statists from AMS
|
||||
*/
|
||||
struct ActivityStats {
|
||||
int64_t createTime;
|
||||
int64_t lastVisibleTime;
|
||||
int32_t launchCount;
|
||||
int64_t lastLaunchTime;
|
||||
};
|
||||
|
||||
/**
|
||||
*Enum values indicating the various activity states
|
||||
*/
|
||||
enum ActivityStates : int32_t {
|
||||
INITIALIZING,
|
||||
STARTED,
|
||||
RESUMED,
|
||||
PAUSING,
|
||||
PAUSED,
|
||||
STOPPING,
|
||||
STOPPED,
|
||||
FINISHING,
|
||||
DESTROYING,
|
||||
DESTROYED,
|
||||
RESTARTING_PROCESS,
|
||||
UNKNOWN,
|
||||
};
|
||||
|
||||
/**
|
||||
*Enum values indicatiing notification type
|
||||
*/
|
||||
enum NotifyType : int32_t {
|
||||
EARLY = 0,
|
||||
LATE = 1,
|
||||
BOTH = 2,
|
||||
};
|
28
qcom/opensource/interfaces/servicetracker/aidl/Android.bp
Normal file
28
qcom/opensource/interfaces/servicetracker/aidl/Android.bp
Normal file
@@ -0,0 +1,28 @@
|
||||
aidl_interface {
|
||||
name: "vendor.qti.hardware.servicetrackeraidl",
|
||||
vendor_available: true,
|
||||
host_supported: true,
|
||||
system_ext_specific: true,
|
||||
srcs: ["vendor/qti/hardware/servicetrackeraidl/*.aidl"],
|
||||
stability: "vintf",
|
||||
backend: {
|
||||
cpp: {
|
||||
enabled: false,
|
||||
},
|
||||
ndk: {
|
||||
enabled: true,
|
||||
},
|
||||
java: {
|
||||
enabled: true,
|
||||
sdk_version: "module_current",
|
||||
},
|
||||
},
|
||||
versions_with_info: [
|
||||
{
|
||||
version: "1",
|
||||
imports: [],
|
||||
},
|
||||
],
|
||||
frozen: true,
|
||||
|
||||
}
|
@@ -0,0 +1 @@
|
||||
fd4771abe6e1c694687c871ee5d888b6e9cbf7b0
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ClientConnection {
|
||||
String serviceName;
|
||||
int servicePid;
|
||||
int count;
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ClientData {
|
||||
String processName;
|
||||
int pid;
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ClientRecord {
|
||||
String processName;
|
||||
int pid;
|
||||
vendor.qti.hardware.servicetrackeraidl.ClientConnection[] conn;
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
interface IServicetracker {
|
||||
oneway void bindService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData, in vendor.qti.hardware.servicetrackeraidl.ClientData clientData);
|
||||
oneway void destroyService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData);
|
||||
vendor.qti.hardware.servicetrackeraidl.ClientConnection[] getClientConnections(in String clientName);
|
||||
int getPid(in String processName);
|
||||
int[] getPids(in String[] serviceList);
|
||||
int[] getRunningServicePid();
|
||||
int getServiceBCount(out vendor.qti.hardware.servicetrackeraidl.ServiceRecord[] bServiceList);
|
||||
vendor.qti.hardware.servicetrackeraidl.ServiceConnection[] getServiceConnections(in String serviceName);
|
||||
vendor.qti.hardware.servicetrackeraidl.ClientRecord getclientInfo(in String clientName);
|
||||
vendor.qti.hardware.servicetrackeraidl.ServiceRecord getserviceInfo(in String serviceName);
|
||||
boolean isServiceB(in String serviceName);
|
||||
oneway void killProcess(in int pid);
|
||||
oneway void startService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData);
|
||||
oneway void unbindService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData, in vendor.qti.hardware.servicetrackeraidl.ClientData clientData);
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ServiceConnection {
|
||||
String clientName;
|
||||
int clientPid;
|
||||
int count;
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ServiceData {
|
||||
String packageName;
|
||||
String processName;
|
||||
int pid;
|
||||
double lastActivity;
|
||||
boolean serviceB;
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ServiceRecord {
|
||||
String packageName;
|
||||
String processName;
|
||||
int pid;
|
||||
boolean serviceB;
|
||||
double lastActivity;
|
||||
vendor.qti.hardware.servicetrackeraidl.ServiceConnection[] conn;
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum Status {
|
||||
SUCCESS = 0,
|
||||
ERROR_NOT_AVAILABLE = 1,
|
||||
ERROR_INVALID_ARGS = 2,
|
||||
ERROR_NOT_SUPPORTED = 3,
|
||||
ERROR_UNKNOWN = 4,
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ClientConnection {
|
||||
String serviceName;
|
||||
int servicePid;
|
||||
int count;
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ClientData {
|
||||
String processName;
|
||||
int pid;
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ClientRecord {
|
||||
String processName;
|
||||
int pid;
|
||||
vendor.qti.hardware.servicetrackeraidl.ClientConnection[] conn;
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
interface IServicetracker {
|
||||
oneway void bindService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData, in vendor.qti.hardware.servicetrackeraidl.ClientData clientData);
|
||||
oneway void destroyService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData);
|
||||
vendor.qti.hardware.servicetrackeraidl.ClientConnection[] getClientConnections(in String clientName);
|
||||
int getPid(in String processName);
|
||||
int[] getPids(in String[] serviceList);
|
||||
int[] getRunningServicePid();
|
||||
int getServiceBCount(out vendor.qti.hardware.servicetrackeraidl.ServiceRecord[] bServiceList);
|
||||
vendor.qti.hardware.servicetrackeraidl.ServiceConnection[] getServiceConnections(in String serviceName);
|
||||
vendor.qti.hardware.servicetrackeraidl.ClientRecord getclientInfo(in String clientName);
|
||||
vendor.qti.hardware.servicetrackeraidl.ServiceRecord getserviceInfo(in String serviceName);
|
||||
boolean isServiceB(in String serviceName);
|
||||
oneway void killProcess(in int pid);
|
||||
oneway void startService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData);
|
||||
oneway void unbindService(in vendor.qti.hardware.servicetrackeraidl.ServiceData serviceData, in vendor.qti.hardware.servicetrackeraidl.ClientData clientData);
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ServiceConnection {
|
||||
String clientName;
|
||||
int clientPid;
|
||||
int count;
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ServiceData {
|
||||
String packageName;
|
||||
String processName;
|
||||
int pid;
|
||||
double lastActivity;
|
||||
boolean serviceB;
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@VintfStability
|
||||
parcelable ServiceRecord {
|
||||
String packageName;
|
||||
String processName;
|
||||
int pid;
|
||||
boolean serviceB;
|
||||
double lastActivity;
|
||||
vendor.qti.hardware.servicetrackeraidl.ServiceConnection[] conn;
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.qti.hardware.servicetrackeraidl;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum Status {
|
||||
SUCCESS = 0,
|
||||
ERROR_NOT_AVAILABLE = 1,
|
||||
ERROR_INVALID_ARGS = 2,
|
||||
ERROR_NOT_SUPPORTED = 3,
|
||||
ERROR_UNKNOWN = 4,
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
/**
|
||||
* structure to define client to service connection
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable ClientConnection {
|
||||
String serviceName;
|
||||
int servicePid;
|
||||
int count;
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
/**
|
||||
* Client information recieved by AMS
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable ClientData {
|
||||
String processName;
|
||||
int pid;
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
import vendor.qti.hardware.servicetrackeraidl.ClientConnection;
|
||||
|
||||
/**
|
||||
* Client information
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable ClientRecord {
|
||||
String processName;
|
||||
int pid;
|
||||
ClientConnection[] conn;
|
||||
}
|
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
import vendor.qti.hardware.servicetrackeraidl.ClientConnection;
|
||||
import vendor.qti.hardware.servicetrackeraidl.ClientData;
|
||||
import vendor.qti.hardware.servicetrackeraidl.ClientRecord;
|
||||
import vendor.qti.hardware.servicetrackeraidl.ServiceConnection;
|
||||
import vendor.qti.hardware.servicetrackeraidl.ServiceData;
|
||||
import vendor.qti.hardware.servicetrackeraidl.ServiceRecord;
|
||||
import vendor.qti.hardware.servicetrackeraidl.Status;
|
||||
|
||||
// Interface inherits from vendor.qti.hardware.servicetrackeraidl@1.0::IServicetracker but AIDL does not support interface inheritance (methods have been flattened).
|
||||
@VintfStability
|
||||
interface IServicetracker {
|
||||
/**
|
||||
* Collect and update the information for the service which is just bound to
|
||||
* @param clientData
|
||||
* @param serviceData
|
||||
*/
|
||||
oneway void bindService(in ServiceData serviceData, in ClientData clientData);
|
||||
|
||||
/**
|
||||
* Update the service information when service specified by
|
||||
* @param serviceData has been destroyed
|
||||
*/
|
||||
oneway void destroyService(in ServiceData serviceData);
|
||||
|
||||
/**
|
||||
* Return the list of services associated with the client
|
||||
* specified by @param clientName
|
||||
*/
|
||||
ClientConnection[] getClientConnections(in String clientName);
|
||||
|
||||
|
||||
/**
|
||||
* Return the pid of the process specified by @param processName
|
||||
*/
|
||||
int getPid(in String processName);
|
||||
|
||||
/**
|
||||
* Return the pid of the services listed in @param serviceList
|
||||
*/
|
||||
int[] getPids(in String[] serviceList);
|
||||
|
||||
/**
|
||||
* Return Pids of all the running Android Services.
|
||||
*/
|
||||
int[] getRunningServicePid();
|
||||
|
||||
|
||||
/**
|
||||
* generate the list of b services running in system
|
||||
*/
|
||||
int getServiceBCount(out ServiceRecord[] bServiceList);
|
||||
|
||||
/**
|
||||
* Return list of clients associated with the service specified by
|
||||
* @param serviceName
|
||||
*/
|
||||
ServiceConnection[] getServiceConnections(in String serviceName);
|
||||
|
||||
/**
|
||||
* Return all the details related to Client specified by @param
|
||||
* clientName
|
||||
*/
|
||||
ClientRecord getclientInfo(in String clientName);
|
||||
|
||||
/**
|
||||
* Return all the details related to Service specified by @param
|
||||
* serviceName
|
||||
*/
|
||||
ServiceRecord getserviceInfo(in String serviceName);
|
||||
|
||||
/**
|
||||
* Return whether a service specified by @param serviceName is
|
||||
* B-Service or not
|
||||
*/
|
||||
boolean isServiceB(in String serviceName);
|
||||
|
||||
/**
|
||||
* Update the service and client information when process
|
||||
* specified by @param pid got killed
|
||||
*/
|
||||
oneway void killProcess(in int pid);
|
||||
|
||||
/**
|
||||
* Collect the information related to service that is just started
|
||||
* @param serviceData contains details of the service,@param clientData
|
||||
* contains the details of client which has started the service
|
||||
*/
|
||||
oneway void startService(in ServiceData serviceData);
|
||||
|
||||
/**
|
||||
* Update the bind information of sevice,client pair specified
|
||||
* by @param serviceData and @param clientData
|
||||
*/
|
||||
oneway void unbindService(in ServiceData serviceData, in ClientData clientData);
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
/**
|
||||
* structure to define service to client connection
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable ServiceConnection {
|
||||
String clientName;
|
||||
int clientPid;
|
||||
int count;
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
/**
|
||||
* Service information recieved by AMS
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable ServiceData {
|
||||
String packageName;
|
||||
String processName;
|
||||
int pid;
|
||||
double lastActivity;
|
||||
boolean serviceB;
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
import vendor.qti.hardware.servicetrackeraidl.ServiceConnection;
|
||||
|
||||
/**
|
||||
* Service information
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable ServiceRecord {
|
||||
String packageName;
|
||||
String processName;
|
||||
int pid;
|
||||
boolean serviceB;
|
||||
double lastActivity;
|
||||
ServiceConnection[] conn;
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
*Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.servicetrackeraidl;
|
||||
|
||||
/**
|
||||
* Enum Values indicating the result of operation
|
||||
*/
|
||||
@VintfStability
|
||||
@Backing(type="int")
|
||||
enum Status {
|
||||
/**
|
||||
* No errors.
|
||||
*/
|
||||
SUCCESS,
|
||||
/**
|
||||
* the component for which the query is made
|
||||
* is not yet available
|
||||
*/
|
||||
ERROR_NOT_AVAILABLE,
|
||||
/**
|
||||
* the arguments passed are invalid
|
||||
*/
|
||||
ERROR_INVALID_ARGS,
|
||||
/**
|
||||
* the information asked for the componenent
|
||||
* is not supported
|
||||
*/
|
||||
ERROR_NOT_SUPPORTED,
|
||||
ERROR_UNKNOWN,
|
||||
}
|
41
qcom/opensource/interfaces/servicetracker/current.txt
Normal file
41
qcom/opensource/interfaces/servicetracker/current.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
######HAL released in Android P######
|
||||
f054d56cfb47d897f64f71ef4fcacb5ddb1d9c2841e1a83e93efbf92ca1d1297 vendor.qti.hardware.servicetracker@1.0::types
|
||||
bba735f959d5c7a36196de6548a5f74090512bc4e9d92ac29279b2dd786ebb8a vendor.qti.hardware.servicetracker@1.0::IServicetracker
|
||||
|
||||
######HAL released in Android Q######
|
||||
e1112e99ed844f2e3d9d653acc818391dc0470b810704f59928b021a11eca675 vendor.qti.hardware.servicetracker@1.1::IServicetracker
|
||||
|
||||
######HAL released in Android R######
|
||||
b21a4655232991b5121fc0c86522bdb76f8d519540deac62c85de5b7315a3e55 vendor.qti.hardware.servicetracker@1.2::types
|
||||
75c7c3e72c2efa195b743d1395dd3ea6ef96761a8503392f945d2f691ea0d2d0 vendor.qti.hardware.servicetracker@1.2::IActivityEventInfoCallback
|
||||
dc8389391ce48795d11717f6973f8e92a1f660fd6d5bc60e5de8ae19c1d16103 vendor.qti.hardware.servicetracker@1.2::IServicetracker
|
Reference in New Issue
Block a user