Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39087718 authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Adds documentation for a test echo endpoint service

Bug: 383574936
Change-Id: Ib631bd96de7b9ea09114d61dc5f6f3e89061d79a
Test: None, documentation only
parent 93bfc46e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -16,6 +16,17 @@

package android.hardware.contexthub;

/**
 * Services that are provided by an endpoint.
 *
 * To support testing, the following service is defined here:
 *  1. Test echo service:
 *     - This service responds to a received message back to the sender with a
 *       message with identical content as the received message.
 *     - Format:                Service::RpcFormat::CUSTOM
 *     - Service descriptor:    android.hardware.contexthub.test.EchoService
 *     - Major version:         1
 */
@VintfStability
parcelable Service {
    /**
+1 −1
Original line number Diff line number Diff line
@@ -245,7 +245,7 @@ ScopedAStatus ContextHub::getEndpoints(std::vector<EndpointInfo>* _aidl_return)

    Service echoService;
    echoService.format = Service::RpcFormat::CUSTOM;
    echoService.serviceDescriptor = "ECHO";
    echoService.serviceDescriptor = "android.hardware.contexthub.test.EchoService";
    echoService.majorVersion = 1;
    echoService.minorVersion = 0;