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

Commit 5a7d0e09 authored by Amy Zhang's avatar Amy Zhang
Browse files

Add FrontendInfo aidl interface to pass Tuner Frontend info

Test: atest android.media.tv.tuner.cts
Bug: 170684039
Change-Id: I4de4aa362701f9ab337be60acedaaa7e4f101de5
parent 3ab30e12
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,17 @@ filegroup {
    name: "tv_tuner_aidl",
    srcs: [
        "aidl/android/media/tv/tuner/ITunerService.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendAnalogCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendAtscCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendAtsc3Capabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendCableCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendDvbsCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendDvbtCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendIsdbsCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendIsdbs3Capabilities.aidl",
        "aidl/android/media/tv/tuner/TunerFrontendIsdbtCapabilities.aidl",
        "aidl/android/media/tv/tuner/TunerServiceFrontendInfo.aidl",
    ],
    path: "aidl",
}
+34 −0
Original line number Diff line number Diff line
/**
 * Copyright 2020, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.tuner;

/**
 * Analog Frontend Capabilities interface.
 *
 * {@hide}
 */
parcelable TunerFrontendAnalogCapabilities {
	/**
     * Signal Type capability
     */
    int typeCap;

    /**
     * Standard Interchange Format (SIF) capability
     */
    int sifStandardCap;
}
+54 −0
Original line number Diff line number Diff line
/**
 * Copyright 2020, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.tuner;

/**
 * ATSC3 Frontend Capabilities interface.
 *
 * {@hide}
 */
parcelable TunerFrontendAtsc3Capabilities {
    /**
     * Bandwidth capability
     */
    int bandwidthCap;

    /**
     * Modulation capability
     */
    int modulationCap;

    /**
     * TimeInterleaveMode capability
     */
    int timeInterleaveModeCap;

    /**
     * CodeRate capability
     */
    int codeRateCap;

    /**
     * FEC capability
     */
    int fecCap;

    /**
     * Demodulator Output Format capability
     */
    int demodOutputFormatCap;
}
+29 −0
Original line number Diff line number Diff line
/**
 * Copyright 2020, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.tuner;

/**
 * ATSC Frontend Capabilities interface.
 *
 * {@hide}
 */
parcelable TunerFrontendAtscCapabilities {
    /**
     * Modulation capability
     */
    int modulationCap;
}
 No newline at end of file
+39 −0
Original line number Diff line number Diff line
/**
 * Copyright 2020, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.tuner;

/**
 * Cable(DVBC) Frontend Capabilities interface.
 *
 * {@hide}
 */
parcelable TunerFrontendCableCapabilities {
    /**
     * Modulation capability
     */
    int modulationCap;

    /**
     * Code Rate capability
     */
    int codeRateCap; // inner FEC will converge to codeRate

    /**
     * Annex capability
     */
    int annexCap;
}
Loading