/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/ |
D | NetworkProviderInfo.java | 124 public Builder setDeviceType(@DeviceType int deviceType) { in setDeviceType() argument 125 mDeviceType = deviceType; in setDeviceType() 216 private static void validate(@DeviceType int deviceType, String deviceName, String modelName, in validate() argument 218 if (deviceType != DEVICE_TYPE_UNKNOWN && deviceType != DEVICE_TYPE_PHONE in validate() 219 && deviceType != DEVICE_TYPE_TABLET && deviceType != DEVICE_TYPE_LAPTOP in validate() 220 && deviceType != DEVICE_TYPE_WATCH && deviceType != DEVICE_TYPE_AUTO) { in validate() 231 private NetworkProviderInfo(@DeviceType int deviceType, @NonNull String deviceName, in NetworkProviderInfo() argument 234 validate(deviceType, deviceName, modelName, batteryPercentage, connectionStrength); in NetworkProviderInfo() 235 mDeviceType = deviceType; in NetworkProviderInfo()
|
/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); 229 public void sendStandby(int deviceType, int deviceId) { 230 HdmiControlServiceWrapper.this.sendStandby(deviceType, deviceId); 276 public void reportAudioStatus(int deviceType, int volume, int maxVolume, boolean isMute) { 277 HdmiControlServiceWrapper.this.reportAudioStatus(deviceType, volume, maxVolume, isMute); [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 80 void sendStandby(int deviceType, int deviceId); in sendStandby() argument 89 void reportAudioStatus(int deviceType, int volume, int maxVolume, boolean isMute); 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/services/core/java/com/android/server/hdmi/ |
D | HdmiEarcLocalDevice.java | 36 protected HdmiEarcLocalDevice(HdmiControlService service, int deviceType) { in HdmiEarcLocalDevice() argument 37 super(service, deviceType); in HdmiEarcLocalDevice() 41 static HdmiEarcLocalDevice create(HdmiControlService service, int deviceType) { in create() argument 42 switch (deviceType) { in create()
|
D | ReportFeaturesMessage.java | 67 for (Integer deviceType : allDeviceTypes) { in build() 68 deviceTypes |= (byte) (1 << hdmiDeviceInfoDeviceTypeToShiftValue(deviceType)); in build() 103 private static int hdmiDeviceInfoDeviceTypeToShiftValue(int deviceType) { in hdmiDeviceInfoDeviceTypeToShiftValue() argument 104 switch (deviceType) { in hdmiDeviceInfoDeviceTypeToShiftValue() 118 throw new IllegalArgumentException("Unhandled device type: " + deviceType); in hdmiDeviceInfoDeviceTypeToShiftValue()
|
D | HdmiLocalDevice.java | 32 protected HdmiLocalDevice(HdmiControlService service, int deviceType) { in HdmiLocalDevice() argument 34 mDeviceType = deviceType; in HdmiLocalDevice()
|
/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 | 74 std::string deviceType; in TEST() local 75 (void)DeviceConverter::toString(desc->type(), deviceType); in TEST() 76 ADD_FAILURE() << "Input device \"" << deviceType << "\" not found"; in TEST() 81 std::string deviceType; in TEST() local 82 (void)DeviceConverter::toString(desc->type(), deviceType); in TEST() 83 ADD_FAILURE() << "Output device \"" << deviceType << "\" not found"; in TEST()
|
/frameworks/av/services/audioflinger/datapath/ |
D | AudioHwDevice.cpp | 43 audio_devices_t deviceType, in openOutputStream() argument 55 status_t status = outputStream->open(handle, deviceType, config, address); in openOutputStream() 75 status = outputStream->open(handle, deviceType, &originalConfig, address); in openOutputStream() 96 audio_devices_t deviceType, in openInputStream() argument 110 status_t status = inputStream->open(handle, deviceType, config, address, source, outputDevice, in openInputStream() 123 status = inputStream->open(handle, deviceType, config, address, source, in openInputStream() 147 status = inputStream->open(handle, deviceType, &originalConfig, address, source, in openInputStream()
|
/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()
|
D | AudioSystem.java | 1309 public static boolean isInputDevice(int deviceType) { in isInputDevice() argument 1310 return (deviceType & DEVICE_BIT_IN) == DEVICE_BIT_IN; in isInputDevice() 1314 public static boolean isBluetoothDevice(int deviceType) { in isBluetoothDevice() argument 1315 return isBluetoothA2dpOutDevice(deviceType) in isBluetoothDevice() 1316 || isBluetoothScoDevice(deviceType) in isBluetoothDevice() 1317 || isBluetoothLeDevice(deviceType); in isBluetoothDevice() 1321 public static boolean isBluetoothOutDevice(int deviceType) { in isBluetoothOutDevice() argument 1322 return isBluetoothA2dpOutDevice(deviceType) in isBluetoothOutDevice() 1323 || isBluetoothScoOutDevice(deviceType) in isBluetoothOutDevice() 1324 || isBluetoothLeOutDevice(deviceType); in isBluetoothOutDevice() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAlsaManager.java | 211 private void addDeviceToAttachedDevicesMap(int deviceType, UsbAlsaDevice device) { in addDeviceToAttachedDevicesMap() argument 212 if (deviceType == AudioManager.DEVICE_NONE) { in addDeviceToAttachedDevicesMap() 216 Stack<UsbAlsaDevice> devices = mAttachedDevices.get(deviceType); in addDeviceToAttachedDevicesMap() 218 mAttachedDevices.put(deviceType, new Stack<>()); in addDeviceToAttachedDevicesMap() 219 devices = mAttachedDevices.get(deviceType); in addDeviceToAttachedDevicesMap() 230 private void removeDeviceFromAttachedDevicesMap(int deviceType, UsbAlsaDevice device) { in removeDeviceFromAttachedDevicesMap() argument 231 Stack<UsbAlsaDevice> devices = mAttachedDevices.get(deviceType); in removeDeviceFromAttachedDevicesMap() 237 mAttachedDevices.remove(deviceType); in removeDeviceFromAttachedDevicesMap() 253 private UsbAlsaDevice selectDefaultDevice(int deviceType) { in selectDefaultDevice() argument 255 Slog.d(TAG, "selectDefaultDevice():" + deviceType); in selectDefaultDevice() [all …]
|
/frameworks/base/core/java/android/service/controls/ |
D | Control.java | 145 @DeviceTypes.DeviceType int deviceType, in Control() argument 164 if (!DeviceTypes.validDeviceType(deviceType)) { in Control() 165 Log.e(TAG, "Invalid device type:" + deviceType); in Control() 168 mDeviceType = deviceType; in Control() 489 public StatelessBuilder setDeviceType(@DeviceTypes.DeviceType int deviceType) { in setDeviceType() argument 490 if (!DeviceTypes.validDeviceType(deviceType)) { in setDeviceType() 491 Log.e(TAG, "Invalid device type:" + deviceType); in setDeviceType() 494 mDeviceType = deviceType; in setDeviceType() 696 public StatefulBuilder setDeviceType(@DeviceTypes.DeviceType int deviceType) { in setDeviceType() argument 697 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/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiDeviceInfoTest.java | 40 int deviceType = 0; in testEquals() local 61 .setDeviceType(deviceType) in testEquals() 70 .setDeviceType(deviceType) in testEquals()
|
D | HdmiAudioSystemClientTest.java | 183 public void sendKeyEvent(final int deviceType, final int keyCode, final boolean isPressed) { in sendKeyEvent() argument 188 final int deviceType, final int keyCode, final boolean isPressed) { in sendVolumeKeyEvent() argument 297 public void sendVendorCommand(final int deviceType, final int targetAddress, in sendVendorCommand() argument 302 public void sendStandby(final int deviceType, final int deviceId) { in sendStandby() argument 341 public void reportAudioStatus(final int deviceType, final int volume, final int maxVolume, in reportAudioStatus() argument
|
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/ |
D | AidlConversionVirtualizer.cpp | 66 audio_devices_t deviceType; in setParameter() local 67 if (OK != param.readFromValue(&deviceType)) { in setParameter() 73 deviceType)); in setParameter() 152 const audio_devices_t deviceType = VALUE_OR_RETURN_STATUS( in getParameter() local 154 return param.writeToValue(&deviceType); in getParameter()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | Virtualizer.java | 188 private boolean getAnglesInt(int inputChannelMask, int deviceType, int[] angles) in getAnglesInt() argument 212 paramsConverter.putInt(AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType)); in getAnglesInt() 220 + Integer.toHexString(deviceType) + ") returns " + status); in getAnglesInt() 331 private static int deviceToMode(int deviceType) { in deviceToMode() argument 332 switch (deviceType) { in deviceToMode() 441 int deviceType = getDeviceForModeForce(virtualizationMode); in forceVirtualizationMode() local 442 int internalDevice = AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType); in forceVirtualizationMode()
|
/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/services/core/java/com/android/server/audio/ |
D | AdiDeviceState.java | 79 AdiDeviceState(@AudioDeviceInfo.AudioDeviceType int deviceType, in AdiDeviceState() argument 82 mDeviceType = deviceType; in AdiDeviceState() 86 mInternalDeviceType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType); in AdiDeviceState() 261 final int deviceType = Integer.parseInt(fields[0]); in fromPersistedString() local 270 final AdiDeviceState deviceState = new AdiDeviceState(deviceType, in fromPersistedString()
|
/frameworks/av/media/libaudiofoundation/include/media/ |
D | AudioContainers.h | 96 audio_devices_t deviceType) { in isSingleDeviceType() argument 97 return deviceTypes.size() == 1 && *(deviceTypes.begin()) == deviceType; in isSingleDeviceType() 120 for (auto deviceType : deviceTypes) { in deviceTypesToBitMask() local 121 types = static_cast<audio_devices_t>(types | deviceType); in deviceTypesToBitMask()
|