Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

166 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files34

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

workspace/decomp/HeyOTA/sources/com/heytap/accessory/bean/TrafficReport.java

Java · 2,836 bytes
package com.heytap.accessory.bean;

import android.os.Bundle;
import java.util.Locale;

/* loaded from: classes.dex */
public class TrafficReport {
    private static final String KEY_DELAY_TIME = "key_delay_time";
    private static final String KEY_MAX_WINDOW_SIZE = "key_max_window_size";
    private static final String KEY_TENDENCY = "key_tendency";
    private static final String KEY_USED_SIZE = "key_used_size";
    private long mMaxWindowSize;
    private long mUsedSize;
    private Tendency mTendency = Tendency.UNKNOWN;
    private int mDelayTime = 0;

    /* loaded from: classes.dex */
    public enum Tendency {
        UNKNOWN,
        INCREASING,
        STABLE,
        DECREASING
    }

    public TrafficReport(long j, long j2) {
        this.mMaxWindowSize = 0L;
        this.mUsedSize = 0L;
        this.mMaxWindowSize = j;
        this.mUsedSize = j2;
    }

    public static TrafficReport createFromBundle(Bundle bundle) {
        long j = bundle.getLong(KEY_MAX_WINDOW_SIZE);
        long j2 = bundle.getLong(KEY_USED_SIZE);
        int i = bundle.getInt(KEY_TENDENCY);
        int i2 = bundle.getInt(KEY_DELAY_TIME);
        TrafficReport trafficReport = new TrafficReport(j, j2);
        if (Tendency.values().length > i) {
            trafficReport.setTendency(Tendency.values()[i]);
        }
        trafficReport.setDelayTime(i2);
        return trafficReport;
    }

    public Bundle getBundle() {
        Bundle bundle = new Bundle();
        bundle.putLong(KEY_MAX_WINDOW_SIZE, this.mMaxWindowSize);
        bundle.putLong(KEY_USED_SIZE, this.mUsedSize);
        bundle.putInt(KEY_TENDENCY, this.mTendency.ordinal());
        bundle.putInt(KEY_DELAY_TIME, this.mDelayTime);
        return bundle;
    }

    public int getDelayTime() {
        return this.mDelayTime;
    }

    public long getLeftWindowSize() {
        return this.mMaxWindowSize - this.mUsedSize;
    }

    public long getMaxWindowSize() {
        return this.mMaxWindowSize;
    }

    public Tendency getTendency() {
        return this.mTendency;
    }

    public float getUsedPercent() {
        return (((float) this.mUsedSize) / ((float) this.mMaxWindowSize)) * 100.0f;
    }

    public String getUsedPercentString(int i) {
        StringBuilder sb = new StringBuilder();
        sb.append(String.format(Locale.CHINA, "%." + i + "f", Float.valueOf(getUsedPercent())));
        sb.append("%");
        return sb.toString();
    }

    public long getUsedSize() {
        return this.mUsedSize;
    }

    public void setDelayTime(int i) {
        this.mDelayTime = i;
    }

    public void setMaxWindowSize(long j) {
        this.mMaxWindowSize = j;
    }

    public void setTendency(Tendency tendency) {
        this.mTendency = tendency;
    }

    public void setUsedSize(long j) {
        this.mUsedSize = j;
    }
}