Loading core/java/android/hardware/contexthub/HubServiceInfo.java +3 −1 Original line number Diff line number Diff line Loading @@ -112,6 +112,7 @@ public final class HubServiceInfo implements Parcelable { * <p>The value can be one of {@link HubServiceInfo#FORMAT_CUSTOM}, {@link * HubServiceInfo#FORMAT_AIDL} or {@link HubServiceInfo#FORMAT_PW_RPC_PROTOBUF}. */ @ServiceFormat public int getFormat() { return mFormat; } Loading Loading @@ -178,7 +179,8 @@ public final class HubServiceInfo implements Parcelable { * <li>Pigweed RPC with Protobuf: com.example.proto.ExampleService * </ol> * * @param serviceDescriptor The service descriptor. * @param serviceDescriptor The service descriptor for the interface, provided by the * vendor. * @param format One of {@link HubServiceInfo#FORMAT_CUSTOM}, {@link * HubServiceInfo#FORMAT_AIDL} or {@link HubServiceInfo#FORMAT_PW_RPC_PROTOBUF}. * @param majorVersion Breaking changes should be a major version bump. Loading core/java/android/hardware/location/ContextHubManager.java +13 −1 Original line number Diff line number Diff line Loading @@ -718,7 +718,19 @@ public final class ContextHubManager { /** * Find a list of endpoints that provides a specific service. * * @param serviceDescriptor Statically generated ID for an endpoint. * <p>Service descriptor should uniquely identify the interface (scoped to type). Convention of * the descriptor depend on interface type. * * <p>Examples: * * <ol> * <li>AOSP-defined AIDL: android.hardware.something.IFoo/default * <li>Vendor-defined AIDL: com.example.something.IBar/default * <li>Pigweed RPC with Protobuf: com.example.proto.ExampleService * </ol> * * @param serviceDescriptor The service descriptor for a service provided by the hub. The value * cannot be null or empty. * @return A list of {@link HubDiscoveryInfo} objects that represents the result of discovery. * @throws IllegalArgumentException if the serviceDescriptor is empty/null. */ Loading Loading
core/java/android/hardware/contexthub/HubServiceInfo.java +3 −1 Original line number Diff line number Diff line Loading @@ -112,6 +112,7 @@ public final class HubServiceInfo implements Parcelable { * <p>The value can be one of {@link HubServiceInfo#FORMAT_CUSTOM}, {@link * HubServiceInfo#FORMAT_AIDL} or {@link HubServiceInfo#FORMAT_PW_RPC_PROTOBUF}. */ @ServiceFormat public int getFormat() { return mFormat; } Loading Loading @@ -178,7 +179,8 @@ public final class HubServiceInfo implements Parcelable { * <li>Pigweed RPC with Protobuf: com.example.proto.ExampleService * </ol> * * @param serviceDescriptor The service descriptor. * @param serviceDescriptor The service descriptor for the interface, provided by the * vendor. * @param format One of {@link HubServiceInfo#FORMAT_CUSTOM}, {@link * HubServiceInfo#FORMAT_AIDL} or {@link HubServiceInfo#FORMAT_PW_RPC_PROTOBUF}. * @param majorVersion Breaking changes should be a major version bump. Loading
core/java/android/hardware/location/ContextHubManager.java +13 −1 Original line number Diff line number Diff line Loading @@ -718,7 +718,19 @@ public final class ContextHubManager { /** * Find a list of endpoints that provides a specific service. * * @param serviceDescriptor Statically generated ID for an endpoint. * <p>Service descriptor should uniquely identify the interface (scoped to type). Convention of * the descriptor depend on interface type. * * <p>Examples: * * <ol> * <li>AOSP-defined AIDL: android.hardware.something.IFoo/default * <li>Vendor-defined AIDL: com.example.something.IBar/default * <li>Pigweed RPC with Protobuf: com.example.proto.ExampleService * </ol> * * @param serviceDescriptor The service descriptor for a service provided by the hub. The value * cannot be null or empty. * @return A list of {@link HubDiscoveryInfo} objects that represents the result of discovery. * @throws IllegalArgumentException if the serviceDescriptor is empty/null. */ Loading