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

Commit 39843679 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8492635 from c1e26474 to tm-release

Change-Id: I76ccce46aedfcea72631ecc898c9ec5dae509dca
parents 4cb1afd1 c1e26474
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -208,7 +208,11 @@ void DrmManager::removeUniqueId(int uniqueId) {
}

status_t DrmManager::loadPlugIns() {
#if __LP64__
    String8 pluginDirPath("/system/lib64/drm");
#else
    String8 pluginDirPath("/system/lib/drm");
#endif
    loadPlugIns(pluginDirPath);
    return DRM_NO_ERROR;
}
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,6 @@ cc_fuzz {
        "libclearkeydevicefiles-protos",
        "libjsmn",
        "libprotobuf-cpp-lite",
        "libutils",
    ],
    shared_libs: [
        "android.hidl.allocator@1.0",
@@ -157,6 +156,7 @@ cc_fuzz {
        "libhidlbase",
        "libhidlmemory",
        "liblog",
        "libutils",
    ],
    fuzz_config: {
        cc: [
+1 −1
Original line number Diff line number Diff line
@@ -36,11 +36,11 @@ cc_fuzz {
        "libaudiomanager",
        "libaudiopolicy",
        "libaudioclient_aidl_conversion",
        "libutils",
    ],
    static_libs: [
        "android.media.audio.common.types-V1-cpp",
        "liblog",
        "libutils",
        "libcutils",
        "libaaudio",
        "libjsoncpp",
+21 −5
Original line number Diff line number Diff line
@@ -79,28 +79,42 @@ ENERGY_DICTIONARY = { \

SORTED_ENERGY_LIST = sorted(ENERGY_DICTIONARY, key=ENERGY_DICTIONARY.get)

# Sometimes "adb unroot" returns 1!
# Sometimes adb returns 1 for no apparent reason.
# So try several times.
# @return 0 on success
def adbUnroot():
def adbTryMultiple(command):
    returnCode = 1
    count = 0
    limit = 5
    while count < limit and returnCode != 0:
        print(('Try to adb unroot {} of {}'.format(count, limit)))
        print(('Try to adb {} {} of {}'.format(command, count, limit)))
        subprocess.call(["adb", "wait-for-device"])
        time.sleep(PRE_DELAY_SECONDS)
        returnCode = subprocess.call(["adb", "unroot"])
        returnCode = subprocess.call(["adb", command])
        print(('returnCode = {}'.format(returnCode)))
        count += 1
    return returnCode

# Sometimes "adb root" returns 1!
# So try several times.
# @return 0 on success
def adbRoot():
    return adbTryMultiple("root");

# Sometimes "adb unroot" returns 1!
# So try several times.
# @return 0 on success
def adbUnroot():
    return adbTryMultiple("unroot");

# @param commandString String containing shell command
# @return Both the stdout and stderr of the commands run
def runCommand(commandString):
    print(commandString)
    if commandString == "adb unroot":
        result = adbUnroot()
    elif commandString == "adb root":
        result = adbRoot()
    else:
        commandArray = commandString.split(' ')
        result = subprocess.run(commandArray, check=True, capture_output=True).stdout
@@ -111,6 +125,8 @@ def runCommand(commandString):
def adbCommand(commandString):
    if commandString == "unroot":
        result = adbUnroot()
    elif commandString == "root":
        result = adbRoot()
    else:
        print(("adb " + commandString))
        commandArray = ["adb"] + commandString.split(' ')
@@ -230,7 +246,7 @@ def measureEnergyForCommands(fileName):
                print((command + "\n"))
                comment = command[1:].strip() # remove leading '#'
            elif command.endswith('\\'):
                command = command[:-1].strip() # remove \\
                command = command[:-1].strip() # remove trailing '\'
                runCommand(command)
            elif command:
                report = averageEnergyForCommand(command, DEFAULT_NUM_ITERATIONS)
+23 −18
Original line number Diff line number Diff line
# Measure energy consumption with synthmark.

# ADPF <400 RR
adb root \
adb shell setprop vendor.powerhal.adpf.uclamp_min.high_limit 400 \
# None
adb shell synthmark -tj -n1 -N50 -B2 -z0
adb shell synthmark -tj -n1 -N75 -B2 -z0
adb shell synthmark -tj -n1 -N100 -B2 -z0

# ADPF PID
adb shell synthmark -tj -n1 -N50 -B2 -z1
adb shell synthmark -tj -n1 -N75 -B2 -z1
adb shell synthmark -tj -n1 -N100 -B2 -z1

# ADPF <400 RR
# adb root \
# adb shell setprop vendor.powerhal.adpf.uclamp_min.high_limit 400 \
# adb shell synthmark -tj -n1 -N50 -B2 -z1
# adb shell synthmark -tj -n1 -N75 -B2 -z1
# adb shell synthmark -tj -n1 -N100 -B2 -z1

# ADPF <500 RR
adb root \
adb shell setprop vendor.powerhal.adpf.uclamp_min.high_limit 500 \
adb shell synthmark -tj -n1 -N50 -B2 -z1
adb shell synthmark -tj -n1 -N75 -B2 -z1
adb shell synthmark -tj -n1 -N100 -B2 -z1
# adb root \
# adb shell setprop vendor.powerhal.adpf.uclamp_min.high_limit 500 \
# adb shell synthmark -tj -n1 -N50 -B2 -z1
# adb shell synthmark -tj -n1 -N75 -B2 -z1
# adb shell synthmark -tj -n1 -N100 -B2 -z1

# ADPF <600 RR
adb root \
adb shell setprop vendor.powerhal.adpf.uclamp_min.high_limit 600 \
adb shell synthmark -tj -n1 -N50 -B2 -z1
adb shell synthmark -tj -n1 -N75 -B2 -z1
adb shell synthmark -tj -n1 -N100 -B2 -z1

# None
adb shell synthmark -tj -n1 -N50 -B2 -z0
adb shell synthmark -tj -n1 -N75 -B2 -z0
adb shell synthmark -tj -n1 -N100 -B2 -z0
# adb root \
# adb shell setprop vendor.powerhal.adpf.uclamp_min.high_limit 600 \
# adb shell synthmark -tj -n1 -N50 -B2 -z1
# adb shell synthmark -tj -n1 -N75 -B2 -z1
# adb shell synthmark -tj -n1 -N100 -B2 -z1

# uclamp
# adb root \
Loading