Loading packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -701,6 +701,7 @@ public class SettingsBackupTest { Settings.Secure.ASSIST_SCREENSHOT_ENABLED, Settings.Secure.ASSIST_STRUCTURE_ENABLED, Settings.Secure.ATTENTIVE_TIMEOUT, Settings.Secure.AUDIO_DEVICE_INVENTORY, // setting not controllable by user Settings.Secure.AUTOFILL_FEATURE_FIELD_CLASSIFICATION, Settings.Secure.AUTOFILL_USER_DATA_MAX_CATEGORY_COUNT, Settings.Secure.AUTOFILL_USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE, Loading services/core/java/com/android/server/audio/AudioDeviceInventory.java +4 −1 Original line number Diff line number Diff line Loading @@ -90,8 +90,10 @@ public class AudioDeviceInventory { private static final String mMetricsId = "audio.device."; private final Object mDeviceInventoryLock = new Object(); @GuardedBy("mDeviceCatalogLock") @GuardedBy("mDeviceInventoryLock") private final ArrayList<AdiDeviceState> mDeviceInventory = new ArrayList<>(0); List<AdiDeviceState> getImmutableDeviceInventory() { synchronized (mDeviceInventoryLock) { return List.copyOf(mDeviceInventory); Loading @@ -107,6 +109,7 @@ public class AudioDeviceInventory { AdiDeviceState findDeviceStateForAudioDeviceAttributes(AudioDeviceAttributes ada, int canonicalDeviceType) { final boolean isWireless = isBluetoothDevice(ada.getInternalType()); synchronized (mDeviceInventoryLock) { for (AdiDeviceState deviceSetting : mDeviceInventory) { if (deviceSetting.getDeviceType() == canonicalDeviceType Loading Loading
packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -701,6 +701,7 @@ public class SettingsBackupTest { Settings.Secure.ASSIST_SCREENSHOT_ENABLED, Settings.Secure.ASSIST_STRUCTURE_ENABLED, Settings.Secure.ATTENTIVE_TIMEOUT, Settings.Secure.AUDIO_DEVICE_INVENTORY, // setting not controllable by user Settings.Secure.AUTOFILL_FEATURE_FIELD_CLASSIFICATION, Settings.Secure.AUTOFILL_USER_DATA_MAX_CATEGORY_COUNT, Settings.Secure.AUTOFILL_USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE, Loading
services/core/java/com/android/server/audio/AudioDeviceInventory.java +4 −1 Original line number Diff line number Diff line Loading @@ -90,8 +90,10 @@ public class AudioDeviceInventory { private static final String mMetricsId = "audio.device."; private final Object mDeviceInventoryLock = new Object(); @GuardedBy("mDeviceCatalogLock") @GuardedBy("mDeviceInventoryLock") private final ArrayList<AdiDeviceState> mDeviceInventory = new ArrayList<>(0); List<AdiDeviceState> getImmutableDeviceInventory() { synchronized (mDeviceInventoryLock) { return List.copyOf(mDeviceInventory); Loading @@ -107,6 +109,7 @@ public class AudioDeviceInventory { AdiDeviceState findDeviceStateForAudioDeviceAttributes(AudioDeviceAttributes ada, int canonicalDeviceType) { final boolean isWireless = isBluetoothDevice(ada.getInternalType()); synchronized (mDeviceInventoryLock) { for (AdiDeviceState deviceSetting : mDeviceInventory) { if (deviceSetting.getDeviceType() == canonicalDeviceType Loading