/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothStateReceiver.java | 177 int deviceType; in handleConnectionStateChanged() local 180 deviceType = BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO; in handleConnectionStateChanged() 183 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID; in handleConnectionStateChanged() 186 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEADSET; in handleConnectionStateChanged() 194 BluetoothDeviceManager.getDeviceTypeString(deviceType), in handleConnectionStateChanged() 202 mBluetoothDeviceManager.onDeviceConnected(device, deviceType); in handleConnectionStateChanged() 210 mBluetoothDeviceManager.onDeviceDisconnected(device, deviceType); in handleConnectionStateChanged() 219 int deviceType; in handleActiveDeviceChanged() local 222 deviceType = BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO; in handleActiveDeviceChanged() 225 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID; in handleActiveDeviceChanged() [all …]
|
D | BluetoothDeviceManager.java | 466 public static String getDeviceTypeString(int deviceType) { in getDeviceTypeString() argument 467 switch (deviceType) { in getDeviceTypeString() 480 public void onDeviceConnected(BluetoothDevice device, int deviceType) { in onDeviceConnected() argument 484 if (deviceType == DEVICE_TYPE_LE_AUDIO) { in onDeviceConnected() 498 } else if (deviceType == DEVICE_TYPE_HEARING_AID) { in onDeviceConnected() 506 } else if (deviceType == DEVICE_TYPE_HEADSET) { in onDeviceConnected() 514 + getDeviceTypeString(deviceType)); in onDeviceConnected() 519 + getDeviceTypeString(deviceType)); in onDeviceConnected() 532 void onDeviceDisconnected(BluetoothDevice device, int deviceType) { in onDeviceDisconnected() argument 534 + deviceType); in onDeviceDisconnected() [all …]
|
D | BluetoothRouteManager.java | 757 public void onActiveDeviceChanged(BluetoothDevice device, int deviceType) { in onActiveDeviceChanged() argument 759 if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO) { in onActiveDeviceChanged() 769 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID) { in onActiveDeviceChanged() 779 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEADSET) { in onActiveDeviceChanged() 832 byte[] deviceType = device.getMetadata(BluetoothDevice.METADATA_DEVICE_TYPE); in isWatch() 833 if (deviceType == null) { in isWatch() 836 String deviceTypeStr = new String(deviceType); in isWatch() 1259 public void setActiveDeviceCacheForTesting(BluetoothDevice device, int deviceType) { in setActiveDeviceCacheForTesting() argument 1260 if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO) { in setActiveDeviceCacheForTesting() 1262 } else if (deviceType == BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID) { in setActiveDeviceCacheForTesting() [all …]
|
/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/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsAudioDeviceTypeControllerTest.java | 100 int deviceType = AUDIO_DEVICE_CATEGORY_SPEAKER; in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() local 102 when(mAudioManager.getBluetoothAudioDeviceCategory(MAC_ADDRESS)).thenReturn(deviceType); in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() 105 true)).thenReturn(deviceType); in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() 111 assertThat(mAudioDeviceTypePref.getValue()).isEqualTo(Integer.toString(deviceType)); in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection() 116 int deviceType = AUDIO_DEVICE_CATEGORY_SPEAKER; in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType() local 117 mAudioDeviceTypePref.setValue(Integer.toString(deviceType)); in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType() 119 mController.onPreferenceChange(mAudioDeviceTypePref, Integer.toString(deviceType)); in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | DeviceInfoHelper.java | 87 int deviceType = recordInternal.getDeviceType(); in populateDeviceInfoId() local 88 DeviceInfo deviceInfo = new DeviceInfo(manufacturer, model, deviceType); in populateDeviceInfoId() 136 int deviceType = getCursorInt(cursor, DEVICE_TYPE_COLUMN_NAME); in populateDeviceInfoMap() local 137 DeviceInfo deviceInfo = new DeviceInfo(manufacturer, model, deviceType); in populateDeviceInfoMap() 183 private ContentValues getContentValues(String manufacturer, String model, int deviceType) { in getContentValues() argument 188 contentValues.put(DEVICE_TYPE_COLUMN_NAME, deviceType); in getContentValues() 224 DeviceInfo(String manufacturer, String model, @DeviceType int deviceType) { in DeviceInfo() argument 227 mDeviceType = deviceType; in DeviceInfo()
|
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/connectivity/ |
D | DiscoveryFilter.java | 46 @DeviceType int deviceType, @Nullable String deviceName, @Nullable String peerAddress) { in DiscoveryFilter() 47 this.mDeviceType = deviceType; in DiscoveryFilter() 98 public Builder setDeviceType(@DeviceType int deviceType) { in setDeviceType() argument 99 mDeviceType = deviceType; in setDeviceType()
|
D | CdmConnectivityManager.java | 110 private String getDeviceProfileFromType(@DeviceType int deviceType) { in getDeviceProfileFromType() argument 111 if (deviceType == DiscoveryFilter.WATCH) { in getDeviceProfileFromType() 115 throw new AssertionError(deviceType); in getDeviceProfileFromType()
|
/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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 134 public @DeviceType int deviceType; field in InvariantDeviceProfile 276 @DeviceType int deviceType = myInfo.getDeviceType(); in InvariantDeviceProfile() local 279 getPredefinedDeviceProfiles(context, gridName, deviceType, in InvariantDeviceProfile() 281 deviceType); in InvariantDeviceProfile() 297 initGrid(context, myInfo, result, deviceType); in InvariantDeviceProfile() 340 @DeviceType int deviceType = displayInfo.getDeviceType(); in initGrid() local 343 getPredefinedDeviceProfiles(context, gridName, deviceType, in initGrid() 346 invDistWeightedInterpolate(displayInfo, allOptions, deviceType); in initGrid() 347 initGrid(context, displayInfo, displayOption, deviceType); in initGrid() 366 @DeviceType int deviceType) { in initGrid() argument [all …]
|
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/audio/ |
D | AudioDeviceInfoBuilder.java | 52 public AudioDeviceInfoBuilder setType(int deviceType) { in setType() argument 53 mDeviceType = deviceType; in setType()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | DeviceGridState.java | 56 public DeviceGridState(int columns, int row, int numHotseat, int deviceType, String dbFile) { in DeviceGridState() argument 59 mDeviceType = deviceType; in DeviceGridState() 66 mDeviceType = idp.deviceType; in DeviceGridState()
|
/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 | 48 public AudioDeviceInfoBuilder setType(int deviceType) { in setType() argument 49 mDeviceType = deviceType; in setType()
|
/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/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | FakeInvariantDeviceProfileTest.kt | 118 deviceType = InvariantDeviceProfile.TYPE_PHONE in newDP() 200 deviceType = InvariantDeviceProfile.TYPE_TABLET in initializeVarsForTablet() 285 deviceType = InvariantDeviceProfile.TYPE_MULTI_DISPLAY in initializeVarsForTwoPanel()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteTransitionTests.java | 293 int deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEADSET; in testTransitions() local 295 deviceType = BluetoothDeviceManager.DEVICE_TYPE_HEARING_AID; in testTransitions() 297 deviceType = BluetoothDeviceManager.DEVICE_TYPE_LE_AUDIO; in testTransitions() 302 sm.setActiveDeviceCacheForTesting(mParams.activeDevice, deviceType); in testTransitions() 318 sm.onActiveDeviceChanged(mParams.messageDevice, deviceType); in testTransitions() 320 sm.onActiveDeviceChanged(null, deviceType); in testTransitions()
|
/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 665 .setDeviceType(deviceType) in testSpecificationParams() 691 assertEquals(deviceType, params.getDeviceType()); in testSpecificationParams() 717 assertEquals(deviceType, fromBundle.getDeviceType()); in testSpecificationParams() 748 assertEquals(deviceType, fromCopy.getDeviceType()); in testSpecificationParams()
|
/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/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiEntryPreferenceTest.java | 297 int deviceType = NetworkProviderInfo.DEVICE_TYPE_PHONE; in refresh_itsHotspotNetworkEntry_shouldUpdateHotspotIcon() local 298 when(mHotspotNetworkEntry.getDeviceType()).thenReturn(deviceType); in refresh_itsHotspotNetworkEntry_shouldUpdateHotspotIcon() 304 verify(pref).updateHotspotIcon(deviceType); in refresh_itsHotspotNetworkEntry_shouldUpdateHotspotIcon()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 664 int deviceType = mRemoteDevices.getDeviceProperties(device).getDeviceType(); in cleanupPrevBondRecordsFor() local 665 debugLog("cleanupPrevBondRecordsFor: " + device + ", device type: " + deviceType); in cleanupPrevBondRecordsFor() 670 if (Flags.cleanupLeOnlyDeviceType() && deviceType != BluetoothDevice.DEVICE_TYPE_LE) { in cleanupPrevBondRecordsFor() 1290 private String dumpDeviceType(int deviceType) { in dumpDeviceType() argument 1291 switch (deviceType) { in dumpDeviceType() 1301 return "Invalid device type: " + deviceType; in dumpDeviceType()
|