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

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

release-request-946c768b-83eb-4b7b-83e7-5737856fa8ec-for-git_oc-mr1-release-43...

release-request-946c768b-83eb-4b7b-83e7-5737856fa8ec-for-git_oc-mr1-release-4326576 snap-temp-L80300000101054689

Change-Id: I584e3017fcb9e1c0934c74e1b2a903dd49b6af08
parents 742a9328 9e5c9088
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -24,13 +24,9 @@ TEST(CheckConfig, audioPolicyConfigurationValidation) {
    const char* possibleConfigLocations[] = {"/odm/etc", "/vendor/etc", "/system/etc"};
    const char* configSchemaPath = "/data/local/tmp/audio_policy_configuration.xsd";

    bool found = false;
    for (std::string folder : possibleConfigLocations) {
        const auto configPath = folder + '/' + configName;
        if (access(configPath.c_str(), R_OK) == 0) {
            ASSERT_FALSE(found) << "Multiple " << configName << " found in "
                                << ::testing::PrintToString(possibleConfigLocations);
            found = true;
            ASSERT_VALID_XML(configPath.c_str(), configSchemaPath);
        }
    }
+17 −0
Original line number Diff line number Diff line
@@ -92,6 +92,23 @@ public:
    bool writeQueue(bool* outQueueChanged, uint32_t* outCommandLength,
            hidl_vec<hidl_handle>* outCommandHandles)
    {
        // After data are written to the queue, it may not be read by the
        // remote reader when
        //
        //  - the writer does not send them (because of other errors)
        //  - the hwbinder transaction fails
        //  - the reader does not read them (because of other errors)
        //
        // Discard the stale data here.
        size_t staleDataSize = mQueue ? mQueue->availableToRead() : 0;
        if (staleDataSize > 0) {
            ALOGW("discarding stale data from message queue");
            CommandQueueType::MemTransaction tx;
            if (mQueue->beginRead(staleDataSize, &tx)) {
                mQueue->commitRead(staleDataSize);
            }
        }

        // write data to queue, optionally resizing it
        if (mQueue && (mDataMaxSize <= mQueue->getQuantumCount())) {
            if (!mQueue->write(mData.get(), mDataWritten)) {
+37 −32
Original line number Diff line number Diff line
@@ -44,38 +44,43 @@ enum OperandType : uint32_t {
enum OperationType : uint32_t {
    OEM_OPERATION                = 0,
    ADD                          = 1,
    AVERAGE_POOL                 = 2,
    CAST                         = 3,
    CONCATENATION                = 4,
    CONV                         = 5,
    DEPTHWISE_CONV               = 6,
    DEPTH_TO_SPACE               = 7,
    DEQUANTIZE                   = 8,
    EMBEDDING_LOOKUP             = 9,
    FAKE_QUANT                   = 10,
    FLOOR                        = 11,
    FULLY_CONNECTED              = 12,
    GATHER                       = 13,
    HASHTABLE_LOOKUP             = 14,
    L2_NORMALIZATION             = 15,
    L2_POOL                      = 16,
    LOCAL_RESPONSE_NORMALIZATION = 17,
    LOGISTIC                     = 18,
    LSH_PROJECTION               = 19,
    LSTM                         = 20,
    MAX_POOL                     = 21,
    MUL                          = 22,
    RELU                         = 23,
    RELU1                        = 24,
    RELU6                        = 25,
    RESHAPE                      = 26,
    RESIZE_BILINEAR              = 27,
    RNN                          = 28,
    SOFTMAX                      = 29,
    SPACE_TO_DEPTH               = 30,
    SPLIT                        = 31,
    SVDF                         = 32,
    TANH                         = 33,
    AVERAGE_POOL_2D              = 2,
    CONCATENATION                = 3,
    CONV_2D                      = 4,
    DEPTHWISE_CONV_2D            = 5,
    DEPTH_TO_SPACE               = 6,
    DEQUANTIZE                   = 7,
    EMBEDDING_LOOKUP             = 8,
    FAKE_QUANT                   = 9,
    FLOOR                        = 10,
    FULLY_CONNECTED              = 11,
    HASHTABLE_LOOKUP             = 12,
    L2_NORMALIZATION             = 13,
    L2_POOL_2D                   = 14,
    LOCAL_RESPONSE_NORMALIZATION = 15,
    LOGISTIC                     = 16,
    LSH_PROJECTION               = 17,
    LSTM                         = 18,
    MAX_POOL_2D                  = 19,
    MUL                          = 20,
    RELU                         = 21,
    RELU1                        = 22,
    RELU6                        = 23,
    RESHAPE                      = 24,
    RESIZE_BILINEAR              = 25,
    RNN                          = 26,
    SOFTMAX                      = 27,
    SPACE_TO_DEPTH               = 28,
    SVDF                         = 29,
    TANH                         = 30,
};

// Fused activation functions
enum FusedActivationFunc : int32_t {
    NONE  = 0,
    RELU  = 1,
    RELU1 = 2,
    RELU6 = 3,
};

// Two special values that can be used instead of a regular poolIndex.
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ Model createTestModel() {
    std::vector<uint8_t> operandValues(
        reinterpret_cast<const uint8_t*>(operand2Data.data()),
        reinterpret_cast<const uint8_t*>(operand2Data.data()) + size);
    int32_t activation[1] = {0};
    int32_t activation[1] = {static_cast<int32_t>(FusedActivationFunc::NONE)};
    operandValues.insert(operandValues.end(), reinterpret_cast<const uint8_t*>(&activation[0]),
                         reinterpret_cast<const uint8_t*>(&activation[1]));

+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ using ::android::hardware::neuralnetworks::V1_0::IDevice;
using ::android::hardware::neuralnetworks::V1_0::IPreparedModel;
using ::android::hardware::neuralnetworks::V1_0::Capabilities;
using ::android::hardware::neuralnetworks::V1_0::DeviceStatus;
using ::android::hardware::neuralnetworks::V1_0::FusedActivationFunc;
using ::android::hardware::neuralnetworks::V1_0::Model;
using ::android::hardware::neuralnetworks::V1_0::OperationType;
using ::android::hardware::neuralnetworks::V1_0::PerformanceInfo;
Loading