/frameworks/av/media/libaudiofoundation/include/media/ |
D | AudioContainers.h | 74 audio_devices_t deviceType) { in isSingleDeviceType() argument 75 return deviceTypes.size() == 1 && *(deviceTypes.begin()) == deviceType; in isSingleDeviceType() 98 for (auto deviceType : deviceTypes) { in deviceTypesToBitMask() local 99 types |= deviceType; in deviceTypesToBitMask() 109 for (auto deviceType : AUDIO_DEVICE_OUT_ALL_ARRAY) { in deviceTypesFromBitMask() local 110 if ((types & deviceType) == deviceType) { in deviceTypesFromBitMask() 111 deviceTypes.insert(deviceType); in deviceTypesFromBitMask() 115 for (auto deviceType : AUDIO_DEVICE_IN_ALL_ARRAY) { in deviceTypesFromBitMask() local 116 if ((types & deviceType) == deviceType) { in deviceTypesFromBitMask() 117 deviceTypes.insert(deviceType); in deviceTypesFromBitMask()
|
/frameworks/av/services/audiopolicy/common/include/ |
D | Volume.h | 96 audio_devices_t deviceType = apm_extract_one_audio_device(deviceTypes); in getDeviceForVolume() local 99 if (deviceType == AUDIO_DEVICE_OUT_SPEAKER_SAFE) { in getDeviceForVolume() 100 deviceType = AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForVolume() 103 ALOGW_IF(deviceType == AUDIO_DEVICE_NONE, in getDeviceForVolume() 107 return deviceType; in getDeviceForVolume()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | IHdmiControlService.aidl | 52 void sendKeyEvent(int deviceType, int keyCode, boolean isPressed); in sendKeyEvent() argument 53 void sendVolumeKeyEvent(int deviceType, int keyCode, boolean isPressed); in sendVolumeKeyEvent() argument 71 void sendVendorCommand(int deviceType, int targetAddress, in byte[] params, in sendVendorCommand() argument 73 void addVendorCommandListener(IHdmiVendorCommandListener listener, int deviceType); in addVendorCommandListener() argument 74 void sendStandby(int deviceType, int deviceId); in sendStandby() argument 83 void reportAudioStatus(int deviceType, int volume, int maxVolume, boolean isMute); in reportAudioStatus() argument
|
D | HdmiDeviceInfo.java | 132 int deviceType = source.readInt(); 137 deviceType, vendorId, displayName, powerStatus); 169 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 177 mDeviceType = deviceType; in HdmiDeviceInfo() 197 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 199 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo()
|
/frameworks/base/media/java/android/media/ |
D | MediaRouterClientState.java | 97 public @MediaRouter.RouteInfo.DeviceType int deviceType; field in MediaRouterClientState.RouteInfo 107 deviceType = MediaRouter.RouteInfo.DEVICE_TYPE_UNKNOWN; in RouteInfo() 123 deviceType = other.deviceType; in RouteInfo() 139 deviceType = in.readInt(); in RouteInfo() 161 dest.writeInt(deviceType); in writeToParcel() 178 + ", deviceType=" + deviceType in toString()
|
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiAudioSystemClientTest.java | 180 public void sendKeyEvent(final int deviceType, final int keyCode, final boolean isPressed) { in sendKeyEvent() argument 185 final int deviceType, final int keyCode, final boolean isPressed) { in sendVolumeKeyEvent() argument 282 final int deviceType) { in addVendorCommandListener() argument 286 public void sendVendorCommand(final int deviceType, final int targetAddress, in sendVendorCommand() argument 291 public void sendStandby(final int deviceType, final int deviceId) { in sendStandby() argument 330 public void reportAudioStatus(final int deviceType, final int volume, final int maxVolume, in reportAudioStatus() argument
|
/frameworks/av/services/audioflinger/ |
D | AudioHwDevice.cpp | 37 audio_devices_t deviceType, in openOutputStream() argument 53 status_t status = outputStream->open(handle, deviceType, config, address); in openOutputStream() 78 status = outputStream->open(handle, deviceType, &originalConfig, address); in openOutputStream()
|
D | AudioStreamOut.cpp | 121 audio_devices_t deviceType, in open() argument 133 deviceType, in open() 155 deviceType, in open()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | Virtualizer.java | 183 private boolean getAnglesInt(int inputChannelMask, int deviceType, int[] angles) in getAnglesInt() argument 207 paramsConverter.putInt(AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType)); in getAnglesInt() 215 + Integer.toHexString(deviceType) + ") returns " + status); in getAnglesInt() 326 private static int deviceToMode(int deviceType) { in deviceToMode() argument 327 switch (deviceType) { in deviceToMode() 436 int deviceType = getDeviceForModeForce(virtualizationMode); in forceVirtualizationMode() local 437 int internalDevice = AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType); in forceVirtualizationMode()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 63 int deviceType, String deviceAddress) { in AudioMix() argument 69 mDeviceSystemType = deviceType; in AudioMix() 196 public boolean isRoutedToDevice(int deviceType, @NonNull String deviceAddress) { in isRoutedToDevice() argument 200 if (deviceType != mDeviceSystemType) { in isRoutedToDevice() 329 Builder setDevice(int deviceType, String address) { in setDevice() argument 330 mDeviceSystemType = deviceType; in setDevice()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pWfdInfo.java | 86 public boolean setDeviceType(int deviceType) { in setDeviceType() argument 87 if (deviceType >= WFD_SOURCE && deviceType <= SOURCE_OR_PRIMARY_SINK) { in setDeviceType() 89 mDeviceInfo |= deviceType; in setDeviceType()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | DeviceDescriptor.cpp | 328 for (auto deviceType : orderedTypes) { in getFirstDevicesFromTypes() local 329 if (!(devices = getDevicesFromType(deviceType)).isEmpty()) { in getFirstDevicesFromTypes() 339 for (auto deviceType : orderedTypes) { in getFirstExistingDevice() local 340 if ((device = getDevice(deviceType, String8(""), AUDIO_FORMAT_DEFAULT)) != nullptr) { in getFirstExistingDevice() 357 audio_devices_t deviceType = apm_extract_one_audio_device(types()); in getDeviceForOpening() local 358 return deviceType == AUDIO_DEVICE_NONE ? nullptr : in getDeviceForOpening() 359 getDevice(deviceType, String8(""), AUDIO_FORMAT_DEFAULT); in getDeviceForOpening()
|
D | AudioPolicyMix.cpp | 116 status_t AudioPolicyMixCollection::getAudioPolicyMix(audio_devices_t deviceType, in getAudioPolicyMix() argument 120 ALOGV("getAudioPolicyMix() for dev=0x%x addr=%s", deviceType, address.string()); in getAudioPolicyMix() 127 i, deviceType, address.string()); in getAudioPolicyMix() 133 deviceType, address.string()); in getAudioPolicyMix() 344 audio_devices_t deviceType = itemAt(i)->mDeviceType; in getDeviceAndMixForOutput() local 347 __FUNCTION__, deviceType, address.c_str()); in getDeviceAndMixForOutput() 348 return availableOutputDevices.getDevice(deviceType, address, AUDIO_FORMAT_DEFAULT); in getDeviceAndMixForOutput()
|
D | HwModule.cpp | 314 sp<DeviceDescriptor> HwModuleCollection::getDeviceDescriptor(const audio_devices_t deviceType, in getDeviceDescriptor() argument 323 if (device_distinguishes_on_address(deviceType) && (devAddress.length() == 0)) { in getDeviceDescriptor() 329 auto moduleDevice = moduleDevices.getDevice(deviceType, devAddress, encodedFormat); in getDeviceDescriptor() 344 name, deviceType, address); in getDeviceDescriptor() 347 return createDevice(deviceType, address, name, encodedFormat); in getDeviceDescriptor()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecController.java | 78 void onAllocated(int deviceType, int logicalAddress); in onAllocated() argument 168 void addLocalDevice(int deviceType, HdmiCecLocalDevice device) { in addLocalDevice() argument 170 mLocalDevices.put(deviceType, device); in addLocalDevice() 187 void allocateLogicalAddress(final int deviceType, final int preferredAddress, in allocateLogicalAddress() argument 194 handleAllocateLogicalAddress(deviceType, preferredAddress, callback); in allocateLogicalAddress() 200 private void handleAllocateLogicalAddress(final int deviceType, int preferredAddress, in handleAllocateLogicalAddress() argument 208 if (deviceType == HdmiUtils.getTypeFromAddress(i)) { in handleAllocateLogicalAddress() 220 && deviceType == HdmiUtils.getTypeFromAddress(curAddress)) { in handleAllocateLogicalAddress() 239 deviceType, preferredAddress, assignedAddress); in handleAllocateLogicalAddress() 244 callback.onAllocated(deviceType, assignedAddress); in handleAllocateLogicalAddress() [all …]
|
D | HdmiUtils.java | 141 static void verifyAddressType(int logicalAddress, int deviceType) { in verifyAddressType() argument 143 if (actualDeviceType != deviceType) { in verifyAddressType() 144 throw new IllegalArgumentException("Device type missmatch:[Expected:" + deviceType in verifyAddressType() 503 String deviceType = parser.getAttributeValue(null, "type"); in readDevices() local 505 if (deviceType != null) { in readDevices() 506 config = readDeviceConfig(parser, deviceType); in readDevices() 520 private static DeviceConfig readDeviceConfig(XmlPullParser parser, String deviceType) in readDeviceConfig() argument 552 return new DeviceConfig(deviceType, codecSads); in readDeviceConfig()
|
D | HdmiControlService.java | 745 public void onAllocated(int deviceType, int logicalAddress) { in allocateLogicalAddress() argument 747 Slog.e(TAG, "Failed to allocate address:[device_type:" + deviceType + "]"); in allocateLogicalAddress() 751 HdmiDeviceInfo deviceInfo = createDeviceInfo(logicalAddress, deviceType, in allocateLogicalAddress() 754 mCecController.addLocalDevice(deviceType, localDevice); in allocateLogicalAddress() 1198 private HdmiDeviceInfo createDeviceInfo(int logicalAddress, int deviceType, int powerStatus) { in createDeviceInfo() argument 1201 getPhysicalAddress(), pathToPortId(getPhysicalAddress()), deviceType, in createDeviceInfo() 1417 public VendorCommandListenerRecord(IHdmiVendorCommandListener listener, int deviceType) { in VendorCommandListenerRecord() argument 1419 mDeviceType = deviceType; in VendorCommandListenerRecord() 1592 public void sendKeyEvent(final int deviceType, final int keyCode, final boolean isPressed) { in sendKeyEvent() argument 1603 HdmiCecLocalDevice localDevice = mCecController.getLocalDevice(deviceType); in sendKeyEvent() [all …]
|
D | ActiveSourceHandler.java | 62 void process(ActiveSource newActive, int deviceType) { in process() argument 67 tv.startNewDeviceAction(newActive, deviceType); in process()
|
D | NewDeviceAction.java | 65 int devicePhysicalAddress, int deviceType) { in NewDeviceAction() argument 69 mDeviceType = deviceType; in NewDeviceAction()
|
D | HdmiCecLocalDeviceSource.java | 70 protected HdmiCecLocalDeviceSource(HdmiControlService service, int deviceType) { in HdmiCecLocalDeviceSource() argument 71 super(service, deviceType); in HdmiCecLocalDeviceSource()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | DeviceDescriptor.h | 153 bool containsDeviceWithType(audio_devices_t deviceType) const { in containsDeviceWithType() argument 154 return containsDeviceAmongTypes({deviceType}); in containsDeviceWithType() 157 bool onlyContainsDevicesWithType(audio_devices_t deviceType) const { in onlyContainsDevicesWithType() argument 158 return isSingleDeviceType(mDeviceTypes, deviceType); in onlyContainsDevicesWithType()
|
/frameworks/av/media/libaudiohal/impl/ |
D | DeviceHalLocal.cpp | 107 audio_devices_t deviceType, in openOutputStream() argument 115 handle, deviceType, flags, in openOutputStream() 119 mDev, handle, deviceType, flags, config, &halStream, address); in openOutputStream()
|
/frameworks/wilhelm/src/ |
D | data.cpp | 68 SLuint32 deviceType = pDataLocator->mIODevice.deviceType; in checkDataLocator() local 73 switch (deviceType) { in checkDataLocator() 90 SL_LOGE("%s: deviceType=%u", name, deviceType); in checkDataLocator() 107 switch (deviceType) { in checkDataLocator() 139 SL_LOGE("%s: deviceType=%u is invalid", name, deviceType); in checkDataLocator()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiCecLocalDeviceTest.java | 66 protected MyHdmiCecLocalDevice(HdmiControlService service, int deviceType) { in MyHdmiCecLocalDevice() argument 67 super(service, deviceType); in MyHdmiCecLocalDevice()
|
D | HdmiControlServiceTest.java | 55 protected HdmiCecLocalDeviceMyDevice(HdmiControlService service, int deviceType) { in HdmiCecLocalDeviceMyDevice() argument 56 super(service, deviceType); in HdmiCecLocalDeviceMyDevice()
|