/aosp12/frameworks/av/media/libaudiofoundation/include/media/ |
H A 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()
|
/aosp12/frameworks/base/core/java/android/hardware/hdmi/ |
H A 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) { 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); 406 public void sendKeyEvent(int deviceType, int keyCode, boolean isPressed) {} in sendKeyEvent() argument 409 public void sendVolumeKeyEvent(int deviceType, int keyCode, boolean isPressed) {} in sendVolumeKeyEvent() argument 470 public void sendVendorCommand(int deviceType, int targetAddress, byte[] params, in sendVendorCommand() argument [all …]
|
H A 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
|
H A 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()
|
/aosp12/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
H A 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()
|
H A 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
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/ |
H A D | HdHomeRunDiscover.java | 69 int targetIp, int deviceType, int deviceId, int maxCount) { in findDevices() argument 75 int localIpSent = send(targetIp, deviceType, deviceId); in findDevices() 89 if (deviceType != HdHomeRunUtils.HDHOMERUN_DEVICE_TYPE_WILDCARD in findDevices() 90 && deviceType != result.mDeviceType) { in findDevices() 196 private int send(int targetIp, int deviceType, int deviceId) { in send() argument 198 ? sendWildcardIp(deviceType, deviceId) in send() 199 : sendTargetIp(targetIp, deviceType, deviceId); in send() 202 private int sendWildcardIp(int deviceType, int deviceId) { in sendWildcardIp() argument 222 private int sendTargetIp(int targetIp, int deviceType, int deviceId) { in sendTargetIp() argument 317 private boolean send(int targetIp, int deviceType, int deviceId) { in send() argument [all …]
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
H A D | WifiP2pWfdInfo.java | 279 public boolean setR2DeviceType(@DeviceType int deviceType) { in setR2DeviceType() argument 283 if (DEVICE_TYPE_WFD_SOURCE != deviceType in setR2DeviceType() 284 && DEVICE_TYPE_PRIMARY_SINK != deviceType in setR2DeviceType() 285 && DEVICE_TYPE_SOURCE_OR_PRIMARY_SINK != deviceType) { in setR2DeviceType() 290 mR2DeviceInfo |= deviceType; in setR2DeviceType() 321 public boolean setDeviceType(@DeviceType int deviceType) { in setDeviceType() argument 322 if (DEVICE_TYPE_WFD_SOURCE <= deviceType in setDeviceType() 323 && deviceType <= DEVICE_TYPE_SOURCE_OR_PRIMARY_SINK) { in setDeviceType() 325 mDeviceInfo |= deviceType; in setDeviceType()
|
/aosp12/frameworks/av/services/audiopolicy/common/include/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ |
H A D | ControlsMetricsLogger.kt | 37 log(ControlsEvents.CONTROL_TOUCH.id, cvh.deviceType, cvh.uid, isLocked) 41 log(ControlsEvents.CONTROL_DRAG.id, cvh.deviceType, cvh.uid, isLocked) 45 log(ControlsEvents.CONTROL_LONG_PRESS.id, cvh.deviceType, cvh.uid, isLocked) 54 log(ControlsEvents.CONTROL_REFRESH_END.id, cvh.deviceType, cvh.uid, isLocked) 67 @DeviceType deviceType: Int,
|
H A D | ControlStatus.kt | 33 @DeviceTypes.DeviceType val deviceType: Int 54 @DeviceTypes.DeviceType override val deviceType: Int 55 get() = control.deviceType
|
/aosp12/frameworks/av/services/audiopolicy/tests/ |
H A 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()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A 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()
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/ |
H A D | AudioPrimaryHidlHalTest.cpp | 104 for (auto deviceType : {AD::OUT_HDMI, AD::OUT_WIRED_HEADPHONE, AD::IN_USB_HEADSET}) { 105 SCOPED_TRACE("device=" + ::testing::PrintToString(deviceType)); 108 for (auto deviceType : {AD::AUDIO_DEVICE_OUT_HDMI, AD::AUDIO_DEVICE_OUT_WIRED_HEADPHONE, 110 SCOPED_TRACE("device=" + toString(deviceType)); 116 address.device = deviceType; 118 address.deviceType = toString(deviceType); 119 if (deviceType == AD::AUDIO_DEVICE_IN_USB_HEADSET) { 151 auto device = devices[0].deviceType; 163 : testGetDevices(stream.get(), address.deviceType)) 172 otherAddress.deviceType = xsd::isOutputDevice(address.deviceType)
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InvariantDeviceProfile.java | 119 public @DeviceType int deviceType; field in InvariantDeviceProfile 220 @DeviceType int deviceType = getDeviceType(myInfo); in InvariantDeviceProfile() local 225 deviceType); in InvariantDeviceProfile() 241 initGrid(context, myInfo, result, deviceType); in InvariantDeviceProfile() 286 @DeviceType int deviceType = getDeviceType(displayInfo); in initGrid() local 298 @DeviceType int deviceType) { in initGrid() argument 310 this.deviceType = deviceType; in initGrid() 426 deviceType); in getPredefinedDeviceProfiles() 731 isEnabled = (deviceType == TYPE_PHONE in GridOption() 733 || (deviceType == TYPE_TABLET in GridOption() [all …]
|
/aosp12/frameworks/base/core/java/android/service/controls/ |
H A 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() 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() 679 Log.e(TAG, "Invalid device type:" + deviceType); in setDeviceType() [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
H A D | InvalidDevice.cpp | 64 constexpr auto deviceType = DeviceType::OTHER; in create() local 68 std::move(extensions), deviceType, in create() 74 std::vector<Extension> extensions, DeviceType deviceType, in InvalidDevice() argument 79 kDeviceType(deviceType), in InvalidDevice() 114 ndk::ScopedAStatus InvalidDevice::getType(DeviceType* deviceType) { in getType() argument 115 *deviceType = kDeviceType; in getType()
|
H A D | Device.cpp | 85 DeviceType deviceType; in getDeviceTypeFrom() local 86 const auto ret = device->getType(&deviceType); in getDeviceTypeFrom() 88 return nn::convert(deviceType); in getDeviceTypeFrom() 139 const auto deviceType = NN_TRY(getDeviceTypeFrom(device.get())); in create() local 146 PrivateConstructorTag{}, std::move(name), std::move(versionString), deviceType, in create() 152 nn::DeviceType deviceType, std::vector<nn::Extension> extensions, in Device() argument 158 kDeviceType(deviceType), in Device()
|
/aosp12/frameworks/base/media/java/android/media/audiofx/ |
H A 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()
|
/aosp12/frameworks/base/media/java/android/media/audiopolicy/ |
H A 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()
|
/aosp12/frameworks/av/services/audioflinger/ |
H A 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | Utils.java | 182 final String deviceType = BluetoothUtils.getStringMetaData(bluetoothDevice, in isAdvancedDetailsHeader() local 184 if (TextUtils.equals(deviceType, BluetoothDevice.DEVICE_TYPE_UNTETHERED_HEADSET) in isAdvancedDetailsHeader() 185 || TextUtils.equals(deviceType, BluetoothDevice.DEVICE_TYPE_WATCH) in isAdvancedDetailsHeader() 186 || TextUtils.equals(deviceType, BluetoothDevice.DEVICE_TYPE_DEFAULT)) { in isAdvancedDetailsHeader() 187 Log.d(TAG, "isAdvancedDetailsHeader: deviceType is " + deviceType); in isAdvancedDetailsHeader()
|
/aosp12/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A 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()
|
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
H A D | ControlViewHolder.kt | 92 deviceType: Int 100 deviceType == DeviceTypes.TYPE_CAMERA -> TouchBehavior::class 131 val deviceType: Int 132 get() = cws.control?.let { it.deviceType } ?: cws.ci.deviceType 182 findBehaviorClass(controlStatus, controlTemplate, deviceType)) 248 return deviceType in ControlViewHolder.FORCE_PANEL_DEVICES || 278 deviceType 490 if (deviceType != DeviceTypes.TYPE_ROUTINE) {
|