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

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

release-request-f0fc1aa1-730c-4deb-b1ff-e8ebeeccc4b5-for-git_oc-mr1-release-43...

release-request-f0fc1aa1-730c-4deb-b1ff-e8ebeeccc4b5-for-git_oc-mr1-release-4335659 snap-temp-L85900000102427279

Change-Id: If2c58a5f175bdfbed1aecd89fd891eb5b9875550
parents 2fb29096 7d765bdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ static const map<Class, ModuleConfig> gModuleConfigs{
            }),
            AmFmBandConfig({
                Band::FM_HD,
                87900,   // lowerLimit
                87700,   // lowerLimit
                107900,  // upperLimit
                {200},   // spacings
            }),
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ exit_group: 1
rt_sigreturn: 1
getrlimit: 1
madvise: 1
clock_gettime: 1

# used during process crash by crash_dump to dump process info
rt_sigprocmask: 1
+4 −2
Original line number Diff line number Diff line
@@ -839,7 +839,7 @@ void getDefaultColorFormat(sp<IOmxNode> omxNode, OMX_U32 kPortIndexOutput,
    OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
    *eColorFormat = OMX_COLOR_FormatUnused;
    portFormat.nIndex = 0;
    while (1) {
    while (portFormat.nIndex < 512) {
        status = getPortParam(omxNode, OMX_IndexParamVideoPortFormat,
                              kPortIndexOutput, &portFormat);
        if (status != ::android::hardware::media::omx::V1_0::Status::OK) break;
@@ -853,7 +853,9 @@ void getDefaultColorFormat(sp<IOmxNode> omxNode, OMX_U32 kPortIndexOutput,
            break;
        }
        if (OMX_COLOR_FormatYUV420SemiPlanar == portFormat.eColorFormat ||
            OMX_COLOR_FormatYUV420Planar == portFormat.eColorFormat) {
            OMX_COLOR_FormatYUV420Planar == portFormat.eColorFormat ||
            OMX_COLOR_FormatYUV420PackedPlanar == portFormat.eColorFormat ||
            OMX_COLOR_FormatYUV420PackedSemiPlanar == portFormat.eColorFormat) {
            *eColorFormat = portFormat.eColorFormat;
            break;
        }
+55 −4
Original line number Diff line number Diff line
@@ -21,12 +21,63 @@ package android.hardware.neuralnetworks@1.0;
import IEvent;
import IPreparedModel;

/**
 * This interface represents a device driver.
 */
interface IDevice {
    initialize() generates(Capabilities capabilities);
    /**
     * Gets the capabilities of a driver.
     *
     * @return status ErrorStatus::NONE if successful.
     * @return capabilities Capabilities of the driver.
     */
    getCapabilities() generates (ErrorStatus status, Capabilities capabilities);

    getSupportedSubgraph(Model model) generates(vec<bool> supported);
    /**
     * Gets the supported operations in a model.
     *
     * getSupportedSubgraph provides a more nuanced indication on whether a
     * model is able to be compiled by the driver. Having the entire model
     * allows for additional information such as tensor shapes to inputs or
     * tensor strides, information which is not known in "initialize".
     *
     * @param model A model whose operations--and their corresponding
     *              operands--are to be verified by the driver.
     * @return status ErrorStatus::NONE if successful.
     * @return supportedOperations A list of supported operations, where true
     *                             indicates the operation is supported and
     *                             false indicates the operation is not
     *                             supported. The index of "supported"
     *                             corresponds with the index of the operation
     *                             it is describing.
     */
    getSupportedOperations(Model model)
            generates (ErrorStatus status, vec<bool> supportedOperations);

    prepareModel(Model model, IEvent event) generates(IPreparedModel preparedModel);
    /**
     * Prepares a model for execution.
     *
     * prepareModel is used to make any necessary transformations or alternative
     * representations to a model for execution, possible including
     * transformations on the constant data, optimization on the model's graph,
     * or compilation into the device's native binary.
     *
     * The only information that may be unknown to the model at this stage is
     * the shape of the tensors, which may only be known at execution time.
     *
     * @param model The model to be prepared for execution.
     * @param event A synchronization callback that must be signaled once the
     *              execution has finished.
     * @return status ErrorStatus::NONE if successful.
     * @return preparedModel A handle to the resultant prepared model.
     */
    prepareModel(Model model, IEvent event)
            generates (ErrorStatus status, IPreparedModel preparedModel);

    /**
     * Returns the current status of a driver.
     *
     * @return status Status of the driver.
     */
    getStatus() generates (DeviceStatus status);
};
+5 −11
Original line number Diff line number Diff line
@@ -29,21 +29,15 @@ package android.hardware.neuralnetworks@1.0;
 * indicate to the Neuralnetworks runtime whether the computation was
 * successful or not, and that the corresponding output is ready to be
 * consumed if the execution was successful.
 *
 * TODO: Mention that "notify" is also called by a runtime thread
 * during CPU fallback execution? Depends on whether the HIDL comments
 * are strictly for vendors or not.
 */
interface IEvent {

    /**
     * IEvent::notify is called by the server thread (i.e. the thread doing the
     * work) to mark the event as completed so that any threads requiring the
     * corresponding resources can continue executing.
     * IEvent::notify is called by the server thread (i.e., the thread doing
     * the work) to mark the event as completed so that any threads requiring
     * the corresponding output can continue executing.
     *
     * @param status Status of the execution associated with the Event.
     *               Should be SUCCESS or ERROR.
     * @param status ErrorStatus::NONE if successful.
     */
    oneway notify(Status status);

    oneway notify(ErrorStatus status);
};
Loading