Searched refs:AdiDeviceState (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AdiDeviceState.java | 45 public final class AdiDeviceState { class 79 AdiDeviceState(@AudioDeviceInfo.AudioDeviceType int deviceType, in AdiDeviceState() method in AdiDeviceState 195 final AdiDeviceState sads = (AdiDeviceState) obj; in equals() 245 public static AdiDeviceState fromPersistedString(@Nullable String persistedString) { in fromPersistedString() 270 final AdiDeviceState deviceState = new AdiDeviceState(deviceType, in fromPersistedString()
|
D | SpatializerHelper.java | 292 for (AdiDeviceState deviceState : mDeviceBroker.getImmutableDeviceInventory()) { in init() 521 for (AdiDeviceState deviceState : mDeviceBroker.getImmutableDeviceInventory()) { in getCompatibleAudioDevices() 549 final AdiDeviceState deviceState = findSACompatibleDeviceStateForAudioDeviceAttributes(ada); in addCompatibleAudioDevice() 550 AdiDeviceState updatedDevice = null; // non-null on update. in addCompatibleAudioDevice() 568 updatedDevice = new AdiDeviceState(canonicalDeviceType, ada.getInternalType(), in addCompatibleAudioDevice() 581 private void initSAState(AdiDeviceState device) { in initSAState() 603 static void logDeviceState(AdiDeviceState deviceState, String event) { in logDeviceState() 622 final AdiDeviceState deviceState = findSACompatibleDeviceStateForAudioDeviceAttributes(ada); in removeCompatibleAudioDevice() 654 private AdiDeviceState findSACompatibleDeviceStateForAudioDeviceAttributes( in findSACompatibleDeviceStateForAudioDeviceAttributes() 656 final AdiDeviceState deviceState = in findSACompatibleDeviceStateForAudioDeviceAttributes() [all …]
|
D | AudioDeviceInventory.java | 111 MAX_SETTINGS_LENGTH_PER_STRING / AdiDeviceState.getPeristedMaxSize(); 122 private final LinkedHashMap<Pair<Integer, String>, AdiDeviceState> mDeviceInventory = 125 Collection<AdiDeviceState> getImmutableDeviceInventory() { in getImmutableDeviceInventory() 126 final List<AdiDeviceState> newList; in getImmutableDeviceInventory() 138 void addOrUpdateDeviceSAStateInInventory(AdiDeviceState deviceState, boolean syncInventory) { in addOrUpdateDeviceSAStateInInventory() 168 AdiDeviceState ads = findBtDeviceStateForAddress(address, deviceType); in addAudioDeviceInInventoryIfNeeded() 185 ads = new AdiDeviceState(AudioDeviceInfo.convertInternalDeviceToDeviceType(deviceType), in addAudioDeviceInInventoryIfNeeded() 203 AdiDeviceState deviceState, boolean syncInventory) { in addOrUpdateAudioDeviceCategoryInInventory() 242 AdiDeviceState deviceState = findBtDeviceStateForAddress(address, DEVICE_OUT_BLE_HEADSET); in getAndUpdateBtAdiDeviceStateCategoryForAddress() 264 AdiDeviceState deviceState = findBtDeviceStateForAddress(address, DEVICE_OUT_BLE_HEADSET); in isBluetoothAudioDeviceCategoryFixed() [all …]
|
D | AudioDeviceBroker.java | 1533 /*package*/ void postSynchronizeAdiDevicesInInventory(AdiDeviceState deviceState) { in postSynchronizeAdiDevicesInInventory() 1537 /*package*/ void postUpdatedAdiDeviceState(AdiDeviceState deviceState, boolean initSA) { in postUpdatedAdiDeviceState() 2075 (AdiDeviceState) msg.obj); in handleMessage() 2080 mAudioService.onUpdatedAdiDeviceState((AdiDeviceState) msg.obj, msg.arg1 == 1); in handleMessage() 2790 Collection<AdiDeviceState> getImmutableDeviceInventory() { in getImmutableDeviceInventory() 2794 void addOrUpdateDeviceSAStateInInventory(AdiDeviceState deviceState, boolean syncInventory) { in addOrUpdateDeviceSAStateInInventory() 2799 AdiDeviceState deviceState, boolean syncInventory) { in addOrUpdateBtAudioDeviceCategoryInInventory() 2804 AdiDeviceState findDeviceStateForAudioDeviceAttributes(AudioDeviceAttributes ada, in findDeviceStateForAudioDeviceAttributes() 2810 AdiDeviceState findBtDeviceStateForAddress(String address, int deviceType) { in findBtDeviceStateForAddress() 2829 /*package*/ boolean isSADevice(AdiDeviceState deviceState) { in isSADevice()
|
D | SoundDoseHelper.java | 593 void initCachedAudioDeviceCategories(Collection<AdiDeviceState> deviceStates) { in initCachedAudioDeviceCategories() 594 for (final AdiDeviceState state : deviceStates) { in initCachedAudioDeviceCategories()
|
D | AudioService.java | 10838 /*package*/ boolean isSADevice(AdiDeviceState deviceState) { in isSADevice() 10874 for (AdiDeviceState ads : mDeviceBroker.getImmutableDeviceInventory()) { in retrieveBluetoothAddressUncheked() 11398 AdiDeviceState deviceState = mDeviceBroker.findBtDeviceStateForAddress(addr, in setBluetoothAudioDeviceCategory_legacy() 11410 deviceState = new AdiDeviceState(deviceType, internalType, addr); in setBluetoothAudioDeviceCategory_legacy() 11434 final AdiDeviceState deviceState = mDeviceBroker.findBtDeviceStateForAddress( in getBluetoothAudioDeviceCategory_legacy() 11490 public void onUpdatedAdiDeviceState(AdiDeviceState deviceState, boolean initSA) { in onUpdatedAdiDeviceState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AudioDeviceBrokerTest.java | 227 new AdiDeviceState(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, in testAdiDeviceStateNullAddressCtor() 229 new AdiDeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in testAdiDeviceStateNullAddressCtor() 238 final AdiDeviceState devState = new AdiDeviceState( in testAdiDeviceStateStringSerialization() 244 final AdiDeviceState result = AdiDeviceState.fromPersistedString(persistString); in testAdiDeviceStateStringSerialization() 261 final AdiDeviceState devState = new AdiDeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in testIsBluetoothAudioDeviceCategoryFixed() 302 final AdiDeviceState devState = new AdiDeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in testGetAndUpdateBtAdiDeviceStateCategoryForAddress()
|
/frameworks/base/services/ |
D | art-wear-profile | 7984 PLcom/android/server/audio/AdiDeviceState;->getPeristedMaxSize()I
|