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

Commit 46209b1f authored by android-build-team Robot's avatar android-build-team Robot
Browse files

release-request-b06579bd-a905-4db5-ada9-c69d40f4df90-for-git_pi-release-433530...

release-request-b06579bd-a905-4db5-ada9-c69d40f4df90-for-git_pi-release-4335309 snap-temp-L62700000102430107

Change-Id: I9aff4e8855b63c6ac19067682e04a1553ad6a33d
parents d9babdbb d5112d34
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -245,5 +245,6 @@ a432d6d9200248dc2126827bcd6cdea31dd65eff39b939f64585d27d915a5857 android.hardwar
86ba9c03978b79a742e990420bc5ced0673d25a939f82572996bef92621e2014 android.hardware.cas@1.0::IMediaCasService
503da837d1a67cbdb7c08a033e927e5430ae1b159d98bf72c6336b4dcc5e76f5 android.hardware.cas.native@1.0::types
619600109232ed64b827c8a11beed8070b1827ae464547d7aa146cf0473b4bca android.hardware.cas.native@1.0::IDescrambler
0a159f81359cd4f71bbe00972ee8403ea79351fb7c0cd48be72ebb3e424dbaef android.hardware.radio@1.0::types
f4945e397b5dea41bb64518dfde59be71245d8a125fd1e0acffeb57ac7b08fed android.hardware.thermal@1.1::IThermal
c8bc853546dd55584611def2a9fa1d99f657e3366c976d2f60fe6b8aa6d2cb87 android.hardware.thermal@1.1::IThermalCallback
+7 −4
Original line number Diff line number Diff line
@@ -18,14 +18,17 @@

package android.hardware.neuralnetworks@1.0;

import IEvent;
import IPreparedModel;

interface IDevice {
    initialize() generates(Capabilities capabilities);
    getCapabilities() generates (ErrorStatus status, Capabilities capabilities);

    getSupportedSubgraph(Model model) generates(vec<bool> supported);
    getSupportedOperations(Model model)
            generates (ErrorStatus status, vec<bool> supportedOperations);

    prepareModel(Model model) generates(IPreparedModel preparedModel);
    prepareModel(Model model, IEvent event)
            generates (ErrorStatus status, IPreparedModel preparedModel);

    getStatus() generates (DeviceStatus status);
};
+1 −1
Original line number Diff line number Diff line
@@ -44,6 +44,6 @@ interface IEvent {
     * @param status Status of the execution associated with the Event.
     *               Should be SUCCESS or ERROR.
     */
    oneway notify(Status status);
    oneway notify(ErrorStatus status);

};
+1 −1
Original line number Diff line number Diff line
@@ -22,5 +22,5 @@ import IEvent;

interface IPreparedModel {
    // Multiple threads can call this execute function concurrently.
    execute(Request request, IEvent event) generates(bool success);
    execute(Request request, IEvent event) generates (ErrorStatus status);
};
+13 −14
Original line number Diff line number Diff line
@@ -22,18 +22,14 @@ package android.hardware.neuralnetworks@1.0;
// These values are the same as found in the NeuralNetworks.h file.
// When modifying, be sure to update HAL_NUM_OPERAND_TYPES in HalIntefaces.h.
enum OperandType : uint32_t {
    FLOAT16                   = 0,
    OEM                       = 0,
    FLOAT32                   = 1,
    INT8                      = 2,
    UINT8                     = 3,
    INT16                     = 4,
    UINT16                    = 5,
    INT32                     = 6,
    UINT32                    = 7,
    TENSOR_FLOAT16            = 8,
    TENSOR_FLOAT32            = 9,
    TENSOR_INT32              = 10,
    TENSOR_QUANT8_ASYMM       = 11,
    INT32                     = 2, // TODO: is this needed?
    UINT32                    = 3,
    TENSOR_OEM_BYTE           = 4,
    TENSOR_FLOAT32            = 5,
    TENSOR_INT32              = 6,
    TENSOR_QUANT8_ASYMM       = 7,
};

// The type of operations.  Unlike the operation types found in
@@ -210,7 +206,10 @@ struct Request {
    vec<memory> pools;
};

enum Status : uint32_t {
    SUCCESS,
    ERROR,
enum ErrorStatus : uint32_t {
    NONE,
    DEVICE_UNAVAILABLE,
    GENERAL_FAILURE,
    OUTPUT_INSUFFICIENT_SIZE,
    INVALID_ARGUMENT,
};
Loading