mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Default to sofware AEC.
This commit is contained in:
committed by
Alex Hart
parent
0aabf9945f
commit
47134e19f1
@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.util;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.annotation.WorkerThread;
|
||||
|
||||
@@ -89,6 +90,8 @@ public final class FeatureFlags {
|
||||
private static final String CDSH = "android.cdsh";
|
||||
private static final String VOICE_NOTE_RECORDING_V2 = "android.voiceNoteRecordingV2.2";
|
||||
private static final String GROUPS_V2_UPDATE_PAGING = "android.groupsv2.updatePaging";
|
||||
private static final String HARDWARE_AEC_MODELS = "android.calling.hardwareAecModels";
|
||||
private static final String FORCE_DEFAULT_AEC = "android.calling.forceDefaultAec";
|
||||
|
||||
/**
|
||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||
@@ -131,7 +134,9 @@ public final class FeatureFlags {
|
||||
DONOR_BADGES_DISPLAY,
|
||||
CHANGE_NUMBER_ENABLED,
|
||||
VOICE_NOTE_RECORDING_V2,
|
||||
GROUPS_V2_UPDATE_PAGING
|
||||
GROUPS_V2_UPDATE_PAGING,
|
||||
HARDWARE_AEC_MODELS,
|
||||
FORCE_DEFAULT_AEC
|
||||
);
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -187,7 +192,8 @@ public final class FeatureFlags {
|
||||
DONOR_BADGES_DISPLAY,
|
||||
DONATE_MEGAPHONE,
|
||||
VOICE_NOTE_RECORDING_V2,
|
||||
GROUPS_V2_UPDATE_PAGING
|
||||
GROUPS_V2_UPDATE_PAGING,
|
||||
FORCE_DEFAULT_AEC
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -443,6 +449,16 @@ public final class FeatureFlags {
|
||||
return getBoolean(GROUPS_V2_UPDATE_PAGING, false);
|
||||
}
|
||||
|
||||
/** A comma-separated list of models that should use hardware AEC for calling. */
|
||||
public static @NonNull String hardwareAecModels() {
|
||||
return getString(HARDWARE_AEC_MODELS, "");
|
||||
}
|
||||
|
||||
/** Whether or not all devices should be forced into using default AEC for calling. */
|
||||
public static boolean forceDefaultAec() {
|
||||
return getBoolean(FORCE_DEFAULT_AEC, false);
|
||||
}
|
||||
|
||||
/** Only for rendering debug info. */
|
||||
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
|
||||
return new TreeMap<>(REMOTE_VALUES);
|
||||
|
||||
Reference in New Issue
Block a user