/frameworks/av/media/libaudiofoundation/include/media/ |
D | AudioContainers.h | 83 audio_devices_t deviceType) { in isSingleDeviceType() argument 84 return deviceTypes.size() == 1 && *(deviceTypes.begin()) == deviceType; in isSingleDeviceType() 107 for (auto deviceType : deviceTypes) { in deviceTypesToBitMask() local 108 types = static_cast<audio_devices_t>(types | deviceType); in deviceTypesToBitMask() 118 for (auto deviceType : AUDIO_DEVICE_OUT_ALL_ARRAY) { in deviceTypesFromBitMask() local 119 if ((types & deviceType) == deviceType) { in deviceTypesFromBitMask() 120 deviceTypes.insert(deviceType); in deviceTypesFromBitMask() 124 for (auto deviceType : AUDIO_DEVICE_IN_ALL_ARRAY) { in deviceTypesFromBitMask() local 125 if ((types & deviceType) == deviceType) { in deviceTypesFromBitMask() 126 deviceTypes.insert(deviceType); in deviceTypesFromBitMask()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiControlServiceWrapper.java | 121 public void sendKeyEvent(int deviceType, int keyCode, boolean isPressed) { 122 HdmiControlServiceWrapper.this.sendKeyEvent(deviceType, keyCode, isPressed); 126 public void sendVolumeKeyEvent(int deviceType, int keyCode, boolean isPressed) { 127 HdmiControlServiceWrapper.this.sendVolumeKeyEvent(deviceType, keyCode, isPressed); 217 public void sendVendorCommand(int deviceType, int targetAddress, byte[] params, 220 deviceType, targetAddress, params, hasVendorId); 224 public void addVendorCommandListener(IHdmiVendorCommandListener listener, int deviceType) { 225 HdmiControlServiceWrapper.this.addVendorCommandListener(listener, deviceType); 229 public void sendStandby(int deviceType, int deviceId) { 230 HdmiControlServiceWrapper.this.sendStandby(deviceType, deviceId); [all …]
|
D | IHdmiControlService.aidl | 58 void sendKeyEvent(int deviceType, int keyCode, boolean isPressed); in sendKeyEvent() argument 59 void sendVolumeKeyEvent(int deviceType, int keyCode, boolean isPressed); in sendVolumeKeyEvent() argument 77 void sendVendorCommand(int deviceType, int targetAddress, in byte[] params, in sendVendorCommand() argument 79 void addVendorCommandListener(IHdmiVendorCommandListener listener, int deviceType); in addVendorCommandListener() argument 80 void sendStandby(int deviceType, int deviceId); in sendStandby() argument 89 void reportAudioStatus(int deviceType, int volume, int maxVolume, boolean isMute); in reportAudioStatus() argument
|
D | HdmiDeviceInfo.java | 135 int deviceType = source.readInt(); 141 deviceType, vendorId, displayName, powerStatus, cecVersion); 173 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 181 mDeviceType = deviceType; in HdmiDeviceInfo() 203 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 205 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo() 220 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 222 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo()
|
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiDeviceInfoTest.java | 37 int deviceType = 0; in testEquals() local 54 logicalAddr, phyAddr, portId, deviceType, vendorId, displayName), in testEquals() 56 logicalAddr, phyAddr, portId, deviceType, vendorId, displayName)) in testEquals() 62 deviceType, in testEquals() 70 deviceType, in testEquals() 79 deviceType, in testEquals()
|
D | HdmiAudioSystemClientTest.java | 181 public void sendKeyEvent(final int deviceType, final int keyCode, final boolean isPressed) { in sendKeyEvent() argument 186 final int deviceType, final int keyCode, final boolean isPressed) { in sendVolumeKeyEvent() argument 292 final int deviceType) { in addVendorCommandListener() argument 296 public void sendVendorCommand(final int deviceType, final int targetAddress, in sendVendorCommand() argument 301 public void sendStandby(final int deviceType, final int deviceId) { in sendStandby() argument 340 public void reportAudioStatus(final int deviceType, final int volume, final int maxVolume, in reportAudioStatus() argument
|
/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/packages/SystemUI/src/com/android/systemui/controls/ |
D | ControlsMetricsLogger.kt | 37 log(ControlsEvents.CONTROL_TOUCH.id, cvh.deviceType, cvh.uid, isLocked) in assignInstanceId() 41 log(ControlsEvents.CONTROL_DRAG.id, cvh.deviceType, cvh.uid, isLocked) in drag() 45 log(ControlsEvents.CONTROL_LONG_PRESS.id, cvh.deviceType, cvh.uid, isLocked) in longPress() 54 log(ControlsEvents.CONTROL_REFRESH_END.id, cvh.deviceType, cvh.uid, isLocked) in refreshEnd() 67 @DeviceType deviceType: Int, in log()
|
D | ControlStatus.kt | 33 @DeviceTypes.DeviceType val deviceType: Int constant 54 @DeviceTypes.DeviceType override val deviceType: Int constant in com.android.systemui.controls.ControlStatus 55 get() = control.deviceType
|
D | ControlsMetricsLoggerImpl.kt | 49 @DeviceType deviceType: Int, in log() 57 deviceType, in log()
|
/frameworks/av/services/audiopolicy/tests/ |
D | audio_health_tests.cpp | 75 std::string deviceType; in TEST() local 76 (void)DeviceConverter::toString(desc->type(), deviceType); in TEST() 77 ADD_FAILURE() << "Input device \"" << deviceType << "\" not found"; in TEST() 82 std::string deviceType; in TEST() local 83 (void)DeviceConverter::toString(desc->type(), deviceType); in TEST() 84 ADD_FAILURE() << "Output device \"" << deviceType << "\" not found"; in TEST()
|
/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/java/android/service/controls/ |
D | Control.java | 142 @DeviceTypes.DeviceType int deviceType, in Control() argument 160 if (!DeviceTypes.validDeviceType(deviceType)) { in Control() 161 Log.e(TAG, "Invalid device type:" + deviceType); in Control() 164 mDeviceType = deviceType; in Control() 474 public StatelessBuilder setDeviceType(@DeviceTypes.DeviceType int deviceType) { in setDeviceType() argument 475 if (!DeviceTypes.validDeviceType(deviceType)) { in setDeviceType() 476 Log.e(TAG, "Invalid device type:" + deviceType); in setDeviceType() 479 mDeviceType = deviceType; in setDeviceType() 677 public StatefulBuilder setDeviceType(@DeviceTypes.DeviceType int deviceType) { in setDeviceType() argument 678 if (!DeviceTypes.validDeviceType(deviceType)) { in setDeviceType() [all …]
|
D | DeviceTypes.java | 117 public static boolean validDeviceType(int deviceType) { in validDeviceType() argument 118 return deviceType >= -NUM_GENERIC_TYPES && deviceType <= NUM_CONCRETE_TYPES; in validDeviceType()
|
/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 | 62 int deviceType, String deviceAddress) { in AudioMix() argument 68 mDeviceSystemType = deviceType; in AudioMix() 205 public boolean isRoutedToDevice(int deviceType, @NonNull String deviceAddress) { in isRoutedToDevice() argument 209 if (deviceType != mDeviceSystemType) { in isRoutedToDevice() 338 Builder setDevice(int deviceType, String address) { in setDevice() argument 339 mDeviceSystemType = deviceType; in setDevice()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | ControlInfo.kt | 38 @DeviceTypes.DeviceType val deviceType: Int constant in com.android.systemui.controls.controller.ControlInfo 48 control.deviceType in fromControl()
|
D | ControlsFavoritePersistenceWrapper.kt | 125 attribute(null, TAG_TYPE, c.deviceType.toString()) in <lambda>() 198 val deviceType = parser.getAttributeValue(null, TAG_TYPE)?.toInt() in <lambda>() constant 199 if (id != null && title != null && deviceType != null) { in <lambda>() 200 controls.add(ControlInfo(id, title, subtitle, deviceType)) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlViewHolder.kt | 92 deviceType: Int in findBehaviorClass() 100 deviceType == DeviceTypes.TYPE_CAMERA -> TouchBehavior::class in findBehaviorClass() 131 val deviceType: Int constant in com.android.systemui.controls.ui.ControlViewHolder 132 get() = cws.control?.let { it.deviceType } ?: cws.ci.deviceType in <lambda>() 182 findBehaviorClass(controlStatus, controlTemplate, deviceType)) in bindData() 248 return deviceType in ControlViewHolder.FORCE_PANEL_DEVICES || in usePanel() 278 deviceType in applyRenderInfo() 490 if (deviceType != DeviceTypes.TYPE_ROUTINE) { in updateStatusRow()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiUtils.java | 131 static boolean isEligibleAddressForDevice(int deviceType, int logicalAddress) { in isEligibleAddressForDevice() argument 133 && ADDRESS_TO_TYPE.get(logicalAddress).contains(deviceType); in isEligibleAddressForDevice() 183 static void verifyAddressType(int logicalAddress, int deviceType) { in verifyAddressType() argument 185 if (!actualDeviceTypes.contains(deviceType)) { in verifyAddressType() 186 throw new IllegalArgumentException("Device type missmatch:[Expected:" + deviceType in verifyAddressType() 610 String deviceType = parser.getAttributeValue(null, "type"); in readDevices() local 612 if (deviceType != null) { in readDevices() 613 config = readDeviceConfig(parser, deviceType); in readDevices() 627 private static DeviceConfig readDeviceConfig(TypedXmlPullParser parser, String deviceType) in readDeviceConfig() argument 659 return new DeviceConfig(deviceType, codecSads); in readDeviceConfig()
|
D | HdmiCecMessageBuilder.java | 158 static HdmiCecMessage buildReportPhysicalAddressCommand(int src, int address, int deviceType) { in buildReportPhysicalAddressCommand() argument 164 (byte) (deviceType & 0xFF) in buildReportPhysicalAddressCommand() 705 for (Integer deviceType : allDeviceTypes) { in buildReportFeatures() 706 deviceTypes |= 1 << hdmiDeviceInfoDeviceTypeToShiftValue(deviceType); in buildReportFeatures() 782 private static int hdmiDeviceInfoDeviceTypeToShiftValue(int deviceType) { in hdmiDeviceInfoDeviceTypeToShiftValue() argument 783 switch (deviceType) { in hdmiDeviceInfoDeviceTypeToShiftValue() 797 throw new IllegalArgumentException("Unhandled device type: " + deviceType); in hdmiDeviceInfoDeviceTypeToShiftValue()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | DeviceDescriptor.h | 179 bool containsDeviceWithType(audio_devices_t deviceType) const { in containsDeviceWithType() argument 180 return containsDeviceAmongTypes({deviceType}); in containsDeviceWithType() 183 bool onlyContainsDevicesWithType(audio_devices_t deviceType) const { in onlyContainsDevicesWithType() argument 184 return isSingleDeviceType(mDeviceTypes, deviceType); in onlyContainsDevicesWithType()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | DeviceDescriptor.cpp | 399 for (auto deviceType : orderedTypes) { in getFirstDevicesFromTypes() local 400 if (!(devices = getDevicesFromType(deviceType)).isEmpty()) { in getFirstDevicesFromTypes() 410 for (auto deviceType : orderedTypes) { in getFirstExistingDevice() local 411 if ((device = getDevice(deviceType, String8(""), AUDIO_FORMAT_DEFAULT)) != nullptr) { in getFirstExistingDevice() 428 audio_devices_t deviceType = apm_extract_one_audio_device(types()); in getDeviceForOpening() local 429 return deviceType == AUDIO_DEVICE_NONE ? nullptr : in getDeviceForOpening() 430 getDevice(deviceType, String8(""), AUDIO_FORMAT_DEFAULT); in getDeviceForOpening()
|