/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothStateReceiver.java | 128 int deviceType; in handleConnectionStateChanged() local 130 deviceType = BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO; in handleConnectionStateChanged() 132 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID; in handleConnectionStateChanged() 134 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEADSET; in handleConnectionStateChanged() 141 BluetoothDeviceManager.getDeviceTypeString(deviceType), in handleConnectionStateChanged() 145 mBluetoothDeviceManager.onDeviceConnected(device, deviceType); in handleConnectionStateChanged() 148 mBluetoothDeviceManager.onDeviceDisconnected(device, deviceType); in handleConnectionStateChanged() 156 int deviceType; in handleActiveDeviceChanged() local 158 deviceType = BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO; in handleActiveDeviceChanged() 160 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID; in handleActiveDeviceChanged() [all …]
|
D | BluetoothDeviceManager.java | 346 public static String getDeviceTypeString(int deviceType) { in getDeviceTypeString() argument 347 switch (deviceType) { in getDeviceTypeString() 359 void onDeviceConnected(BluetoothDevice device, int deviceType) { in onDeviceConnected() argument 362 if (deviceType == DEVICE_TYPE_LE_AUDIO) { in onDeviceConnected() 376 } else if (deviceType == DEVICE_TYPE_HEARING_AID) { in onDeviceConnected() 384 } else if (deviceType == DEVICE_TYPE_HEADSET) { in onDeviceConnected() 392 + getDeviceTypeString(deviceType)); in onDeviceConnected() 397 + getDeviceTypeString(deviceType)); in onDeviceConnected() 404 void onDeviceDisconnected(BluetoothDevice device, int deviceType) { in onDeviceDisconnected() argument 406 + deviceType); in onDeviceDisconnected() [all …]
|
D | BluetoothRouteManager.java | 619 public void onActiveDeviceChanged(BluetoothDevice device, int deviceType) { in onActiveDeviceChanged() argument 621 if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO) { in onActiveDeviceChanged() 626 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID) { in onActiveDeviceChanged() 631 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEADSET) { in onActiveDeviceChanged() 933 public void setActiveDeviceCacheForTesting(BluetoothDevice device, int deviceType) { in setActiveDeviceCacheForTesting() argument 934 if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO) { in setActiveDeviceCacheForTesting() 936 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID) { in setActiveDeviceCacheForTesting() 938 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEADSET) { in setActiveDeviceCacheForTesting()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/ |
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 211 localIpSent += discoverSocket.send(targetIp, deviceType, deviceId) ? 1 : 0; in sendWildcardIp() 217 localIpSent = mSockets.get(0).send(0xFFFFFFFF, deviceType, deviceId) ? 1 : 0; in sendWildcardIp() [all …]
|
D | HdHomeRunDevice.java | 59 int ipAddress, int deviceType, int deviceId, int tunerIndex, String deviceModel) { in HdHomeRunDevice() argument 61 mDeviceType = deviceType; in HdHomeRunDevice()
|
D | HdHomeRunUtils.java | 74 int targetIp, int deviceType, int deviceId, int maxCount) { in findHdHomeRunDevices() argument 86 ds.findDevices(targetIp, deviceType, deviceId, maxCount); in findHdHomeRunDevices()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
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()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | DeviceInfoHelper.java | 82 int deviceType = recordInternal.getDeviceType(); in populateDeviceInfoId() local 83 DeviceInfo deviceInfo = new DeviceInfo(manufacturer, model, deviceType); in populateDeviceInfoId() 129 int deviceType = getCursorInt(cursor, DEVICE_TYPE_COLUMN_NAME); in populateDeviceInfoMap() local 130 DeviceInfo deviceInfo = new DeviceInfo(manufacturer, model, deviceType); in populateDeviceInfoMap() 176 private ContentValues getContentValues(String manufacturer, String model, int deviceType) { in getContentValues() argument 181 contentValues.put(DEVICE_TYPE_COLUMN_NAME, deviceType); in getContentValues() 217 DeviceInfo(String manufacturer, String model, @DeviceType int deviceType) { in DeviceInfo() argument 220 mDeviceType = deviceType; in DeviceInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsAudioDeviceTypeControllerTest.java | 99 int deviceType = AUDIO_DEVICE_CATEGORY_SPEAKER; in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() local 101 deviceType); in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() 106 assertThat(mAudioDeviceTypePref.getValue()).isEqualTo(Integer.toString(deviceType)); in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() 111 int deviceType = AUDIO_DEVICE_CATEGORY_SPEAKER; in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType() local 112 mAudioDeviceTypePref.setValue(Integer.toString(deviceType)); in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType() 114 mController.onPreferenceChange(mAudioDeviceTypePref, Integer.toString(deviceType)); in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 130 public @DeviceType int deviceType; field in InvariantDeviceProfile 262 @DeviceType int deviceType = getDeviceType(myInfo); in InvariantDeviceProfile() local 265 getPredefinedDeviceProfiles(context, gridName, deviceType, in InvariantDeviceProfile() 267 deviceType); in InvariantDeviceProfile() 283 initGrid(context, myInfo, result, deviceType); in InvariantDeviceProfile() 334 @DeviceType int deviceType = getDeviceType(displayInfo); in initGrid() local 337 getPredefinedDeviceProfiles(context, gridName, deviceType, in initGrid() 340 invDistWeightedInterpolate(displayInfo, allOptions, deviceType); in initGrid() 341 initGrid(context, displayInfo, displayOption, deviceType); in initGrid() 351 @DeviceType int deviceType) { in initGrid() argument [all …]
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/ |
D | Utils.java | 195 Rpcs.DeviceType deviceType = in convertToFastPairDevicesWithAccountKey() local 196 Rpcs.DeviceType.forNumber(metadataParcel.metadata.deviceType); in convertToFastPairDevicesWithAccountKey() 197 if (deviceType != null) { in convertToFastPairDevicesWithAccountKey() 198 fpInformationBuilder.setDeviceType(deviceType); in convertToFastPairDevicesWithAccountKey() 254 Rpcs.DeviceType deviceType = in convertToDevice() local 255 Rpcs.DeviceType.forNumber(metadata.deviceMetadata.deviceType); in convertToDevice() 256 if (deviceType != null) { in convertToDevice() 257 deviceBuilder.setDeviceType(deviceType); in convertToDevice() 461 metadataParcel.deviceType = fpInformation.getDeviceType().getNumber(); in convertToFastPairDeviceMetadata()
|
/packages/modules/Connectivity/nearby/framework/java/android/nearby/ |
D | PresenceDevice.java | 187 byte[] salt, byte[] secretId, byte[] encryptedIdentity, int deviceType, in PresenceDevice() argument 195 mDeviceType = deviceType; in PresenceDevice() 259 int deviceType = in.readInt(); 274 .setDeviceType(deviceType) 373 public Builder setDeviceType(@DeviceType int deviceType) { in setDeviceType() argument 374 mDeviceType = deviceType; in setDeviceType()
|
D | FastPairDeviceMetadata.java | 96 return mMetadataParcel.deviceType; in getDeviceType() 313 mBuilderParcel.deviceType = 0; // DEVICE_TYPE_UNSPECIFIED in Builder() 421 public Builder setDeviceType(int deviceType) { in setDeviceType() argument 422 mBuilderParcel.deviceType = deviceType; in setDeviceType()
|
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_service/fastpair_seeker_data_provider/shared/android/nearby/fastpair/seeker/ |
D | FastPairTestDataCache.kt | 115 @SerializedName("device_type") val deviceType: Int, constant in android.nearby.fastpair.seeker.FastPairTestDataCache.FastPairDeviceMetadataData 140 deviceType = meta.deviceType, 167 .setDeviceType(deviceType) in toFastPairDeviceMetadata()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | BluetoothDeviceFragment.java | 105 TextView deviceType = new TextView(context); in checkAllDevices() local 106 deviceType.setText(Boolean.toString(mDeviceTypeChecker.isIapDevice(device))); in checkAllDevices() 108 row.addView(deviceType); in checkAllDevices()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | AudioDeviceInfoBuilder.java | 43 public AudioDeviceInfoBuilder setType(int deviceType) { in setType() argument 44 mDeviceType = deviceType; in setType()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ |
D | FakeInvariantDeviceProfileTest.kt | 106 deviceType = InvariantDeviceProfile.TYPE_PHONE in newDP() 188 deviceType = InvariantDeviceProfile.TYPE_TABLET in initializeVarsForTablet() 271 deviceType = InvariantDeviceProfile.TYPE_MULTI_DISPLAY in initializeVarsForTwoPanel()
|
/packages/modules/Bluetooth/system/btcore/fuzzer/ |
D | btcore_property_fuzzer.cpp | 54 bt_device_type_t deviceType = in process() local 56 property = property_new_device_type(deviceType); in process()
|
D | README.md | 12 1. Bluetooth Device Type (parameter name: `deviceType`) 19 | `deviceType` | 0.`BT_DEVICE_DEVTYPE_BREDR` 1.`BT_DEVICE_DEVTYPE_BLE` 2.`BT_DEVICE_DEVTYPE_DUAL` |…
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteTransitionTests.java | 290 int deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEADSET; in testTransitions() local 292 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID; in testTransitions() 294 deviceType = BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO; in testTransitions() 299 sm.setActiveDeviceCacheForTesting(mParams.activeDevice, deviceType); in testTransitions() 315 sm.onActiveDeviceChanged(mParams.messageDevice, deviceType); in testTransitions() 317 sm.onActiveDeviceChanged(null, deviceType); in testTransitions()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | RttManager.java | 336 public int deviceType; field in RttManager.RttParams 471 deviceType = RTT_PEER_TYPE_AP; in RttParams() 487 sb.append("deviceType=" + deviceType); in toString() 538 dest.writeInt(params.deviceType); in writeToParcel() 569 params[i].deviceType = in.readInt(); 955 if (rttParams.deviceType != RTT_PEER_TYPE_AP) { in startRanging()
|
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/ |
D | ConfigurationManager.java | 360 @FiraParams.RangingDeviceType int deviceType, in createOpenSessionParams() 368 switch (deviceType) { in createOpenSessionParams() 395 .setDeviceType(deviceType) in createOpenSessionParams()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiEntryPreferenceTest.java | 269 int deviceType = NetworkProviderInfo.DEVICE_TYPE_PHONE; in refresh_itsHotspotNetworkEntry_shouldUpdateHotspotIcon() local 270 when(mHotspotNetworkEntry.getDeviceType()).thenReturn(deviceType); in refresh_itsHotspotNetworkEntry_shouldUpdateHotspotIcon() 276 verify(pref).updateHotspotIcon(deviceType); in refresh_itsHotspotNetworkEntry_shouldUpdateHotspotIcon()
|
/packages/modules/Uwb/service/support_lib/test/ |
D | FiraTests.java | 84 int deviceType = RANGING_DEVICE_TYPE_CONTROLEE; in testOpenSessionParams() local 158 .setDeviceType(deviceType) in testOpenSessionParams() 226 assertEquals(params.getDeviceType(), deviceType); in testOpenSessionParams() local 637 int deviceType = RANGING_DEVICE_TYPE_CONTROLLER; in testSpecificationParams() local 664 .setDeviceType(deviceType) in testSpecificationParams() 689 assertEquals(deviceType, params.getDeviceType()); in testSpecificationParams() 714 assertEquals(deviceType, fromBundle.getDeviceType()); in testSpecificationParams()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | FiraEncoder.java | 61 int deviceType = params.getDeviceType(); in getTlvBufferFromFiraOpenSessionParams() local 148 && (deviceType == FiraParams.RANGING_DEVICE_TYPE_CONTROLEE)) { in getTlvBufferFromFiraOpenSessionParams() 163 && (deviceType == FiraParams.RANGING_DEVICE_TYPE_CONTROLEE)) { in getTlvBufferFromFiraOpenSessionParams()
|