- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
66 lines
1.5 KiB
Java
66 lines
1.5 KiB
Java
package okhttp3.internal.http2;
|
|
|
|
import androidx.core.internal.view.SupportMenu;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class Settings {
|
|
public int set;
|
|
public final int[] values = new int[10];
|
|
|
|
public boolean isSet(int i) {
|
|
return ((1 << i) & this.set) != 0;
|
|
}
|
|
|
|
public void clear() {
|
|
this.set = 0;
|
|
Arrays.fill(this.values, 0);
|
|
}
|
|
|
|
public Settings set(int i, int i2) {
|
|
if (i >= 0) {
|
|
int[] iArr = this.values;
|
|
if (i < iArr.length) {
|
|
this.set = (1 << i) | this.set;
|
|
iArr[i] = i2;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public int get(int i) {
|
|
return this.values[i];
|
|
}
|
|
|
|
public int size() {
|
|
return Integer.bitCount(this.set);
|
|
}
|
|
|
|
public int getHeaderTableSize() {
|
|
if ((this.set & 2) != 0) {
|
|
return this.values[1];
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public int getMaxConcurrentStreams(int i) {
|
|
return (this.set & 16) != 0 ? this.values[4] : i;
|
|
}
|
|
|
|
public int getMaxFrameSize(int i) {
|
|
return (this.set & 32) != 0 ? this.values[5] : i;
|
|
}
|
|
|
|
public int getInitialWindowSize() {
|
|
return (this.set & 128) != 0 ? this.values[7] : SupportMenu.USER_MASK;
|
|
}
|
|
|
|
public void merge(Settings settings) {
|
|
for (int i = 0; i < 10; i++) {
|
|
if (settings.isSet(i)) {
|
|
set(i, settings.get(i));
|
|
}
|
|
}
|
|
}
|
|
}
|