Commit 32fcf76a authored by DidntRead's avatar DidntRead
Browse files

update

parent 46fce2b6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
<manifest version="1.0" type="framework">
    <hal format="hidl">
        <name>vendor.lineage.livedisplay</name>
        <transport>hwbinder</transport>
        <version>2.0</version>
        <interface>
            <name>IAdaptiveBacklight</name>
            <instance>default</instance>
        </interface>
    </hal>
    <hal format="hidl">
        <name>vendor.lineage.touch</name>
        <transport>hwbinder</transport>
+1 −30
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@ class WriteThread : public Thread {
    bool threadLoop() override;

    void doGetLatency();
    void doGetPresentationPosition();
    void doWrite();
};

@@ -85,12 +84,6 @@ void WriteThread::doWrite() {
    }
}

void WriteThread::doGetPresentationPosition() {
    mStatus.retval =
        StreamOut::getPresentationPositionImpl(mStream, &mStatus.reply.presentationPosition.frames,
                                               &mStatus.reply.presentationPosition.timeStamp);
}

void WriteThread::doGetLatency() {
    mStatus.retval = Result::OK;
    mStatus.reply.latencyMs = mStream->get_latency(mStream);
@@ -114,7 +107,6 @@ bool WriteThread::threadLoop() {
                doWrite();
                break;
            case IStreamOut::WriteCommand::GET_PRESENTATION_POSITION:
                doGetPresentationPosition();
                break;
            case IStreamOut::WriteCommand::GET_LATENCY:
                doGetLatency();
@@ -492,31 +484,10 @@ Return<Result> StreamOut::flush() {
}

// static
Result StreamOut::getPresentationPositionImpl(audio_stream_out_t* stream, uint64_t* frames,
                                              TimeSpec* timeStamp) {
    // Don't logspam on EINVAL--it's normal for get_presentation_position
    // to return it sometimes. EAGAIN may be returned by A2DP audio HAL
    // implementation. ENODATA can also be reported while the writer is
    // continuously querying it, but the stream has been stopped.
    static const std::vector<int> ignoredErrors{EINVAL, EAGAIN, ENODATA};
    Result retval(Result::NOT_SUPPORTED);
    if (stream->get_presentation_position == NULL) return retval;
    struct timespec halTimeStamp;
    retval = Stream::analyzeStatus("get_presentation_position",
                                   stream->get_presentation_position(stream, frames, &halTimeStamp),
                                   ignoredErrors);
    if (retval == Result::OK) {
        timeStamp->tvSec = halTimeStamp.tv_sec;
        timeStamp->tvNSec = halTimeStamp.tv_nsec;
    }
    return retval;
}

Return<void> StreamOut::getPresentationPosition(getPresentationPosition_cb _hidl_cb) {
    uint64_t frames = 0;
    TimeSpec timeStamp = {0, 0};
    Result retval = getPresentationPositionImpl(mStream, &frames, &timeStamp);
    _hidl_cb(retval, frames, timeStamp);
    _hidl_cb(Result::OK, 0, timeStamp);
    return Void();
}

+2 −3
Original line number Diff line number Diff line
@@ -2,10 +2,9 @@ cc_binary {
    name: "android.hardware.sensors@1.0-service.mtk",
    init_rc: ["android.hardware.sensors@1.0-service.mtk.rc"],
    defaults: ["hidl_defaults"],
    proprietary: true,
    relative_install_path: "hw",
    srcs: [
	"service.cpp"
    ],
    srcs: ["service.cpp"],
    shared_libs: [
        "liblog",
        "libcutils",

ims/Android.mk

0 → 100644
+18 −0
Original line number Diff line number Diff line
#
# Copyright (C) 2019 The LineageOS 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.
#
LOCAL_PATH := $(call my-dir)

include $(call all-makefiles-under,$(LOCAL_PATH))

ims/service/Android.mk

0 → 100644
+37 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)

# Build the Ims OEM implementation including imsservice, imsadapter, imsriladapter.
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_JAVA_LIBRARIES += telephony-common
LOCAL_JAVA_LIBRARIES += ims-common
LOCAL_STATIC_JAVA_LIBRARIES += wfo-common

# Use SimServs.jar for VoLTE MMTelSS Package
LOCAL_STATIC_JAVA_LIBRARIES += Simservs

LOCAL_PACKAGE_NAME := ImsService
LOCAL_SDK_VERSION := current
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true

LOCAL_PROGUARD_ENABLED := disabled
LOCAL_PROGUARD_FLAGS := $(proguard.flags)

include $(BUILD_PACKAGE)

# Build java lib for accessing ImsConfigProvider API
include $(CLEAR_VARS)

LOCAL_MODULE := ims-config
LOCAL_SRC_FILES:= src/com/mediatek/ims/config/ConfigRegister.java \
                  src/com/mediatek/ims/config/FeatureRegister.java \
                  src/com/mediatek/ims/config/ImsConfigContract.java \
                  src/com/mediatek/ims/config/ImsConfigSettings.java \
                  src/com/mediatek/ims/config/Register.java \

LOCAL_JAVA_LIBRARIES := ims-common

include $(BUILD_STATIC_JAVA_LIBRARY)
Loading