Home
last modified time | relevance | path

Searched refs:deviceAddress (Results 1 – 23 of 23) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryActivity.java34 String deviceAddress = null; in createSettingsFragment() local
39 deviceAddress = bundle.getString(EXTRA_ACCESSORY_ADDRESS); in createSettingsFragment()
47 return SettingsFragment.newInstance(deviceAddress, deviceName, deviceImgId); in createSettingsFragment()
52 public static SettingsFragment newInstance(String deviceAddress, String deviceName, in newInstance() argument
55 b.putString(EXTRA_ACCESSORY_ADDRESS, deviceAddress); in newInstance()
66 String deviceAddress = args.getString(EXTRA_ACCESSORY_ADDRESS); in onPreferenceStartInitialScreen() local
70 BluetoothAccessoryFragment.newInstance(deviceAddress, deviceName, deviceImgId)); in onPreferenceStartInitialScreen()
DBluetoothAccessoryFragment.java96 public static BluetoothAccessoryFragment newInstance(String deviceAddress, String deviceName, in newInstance() argument
99 prepareArgs(b, deviceAddress, deviceName, deviceImgId); in newInstance()
105 public static void prepareArgs(Bundle b, String deviceAddress, String deviceName, in prepareArgs() argument
107 b.putString(ARG_ACCESSORY_ADDRESS, deviceAddress); in prepareArgs()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragment.java56 CachedBluetoothDevice getDevice(String deviceAddress); in getDevice() argument
80 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() argument
82 return sTestDataFactory.getDevice(deviceAddress); in getCachedDevice()
85 mManager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getCachedDevice()
89 public static BluetoothDeviceDetailsFragment newInstance(String deviceAddress) { in newInstance() argument
91 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
DLocalBluetoothPreferences.java62 String deviceAddress, String deviceName) { in shouldShowDialogInForeground() argument
105 if (deviceAddress != null) { in shouldShowDialogInForeground()
109 if (deviceAddress.equals(lastSelectedDevice)) { in shouldShowDialogInForeground()
134 static void persistSelectedDeviceInPicker(Context context, String deviceAddress) { in persistSelectedDeviceInPicker() argument
137 deviceAddress); in persistSelectedDeviceInPicker()
DForgetDeviceDialogFragment.java42 public static ForgetDeviceDialogFragment newInstance(String deviceAddress) { in newInstance() argument
44 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
52 String deviceAddress = getArguments().getString(KEY_DEVICE_ADDRESS); in getDevice() local
54 BluetoothDevice device = manager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getDevice()
DBluetoothPairingRequest.java48 String deviceAddress = device != null ? device.getAddress() : null; in onReceive() local
51 context, deviceAddress, deviceName); in onReceive()
DRemoteDeviceNameDialogFragment.java46 String deviceAddress = getArguments().getString(KEY_CACHED_DEVICE_ADDRESS); in getDevice() local
48 BluetoothDevice device = manager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getDevice()
DBluetoothPermissionRequest.java116 String deviceAddress = mDevice != null ? mDevice.getAddress() : null; in onReceive() local
125 context, deviceAddress, deviceName)) { in onReceive()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMapMessageMonitor.java276 private boolean supportsReply(String deviceAddress) { in supportsReply() argument
277 return mReplyFeatureMap.containsKey(deviceAddress) in supportsReply()
278 && mReplyFeatureMap.get(deviceAddress); in supportsReply()
540 CompositeKey(String deviceAddress, String subKey) { in CompositeKey() argument
541 mDeviceAddress = deviceAddress; in CompositeKey()
559 boolean matches(String deviceAddress) { in matches() argument
560 return mDeviceAddress.equals(deviceAddress); in matches()
590 private SenderKey(String deviceAddress, String key) { in SenderKey() argument
591 super(deviceAddress, key); in SenderKey()
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
DStatusNotification.java31 default void notifyPaired(String deviceAddress) { in notifyPaired() argument
32 notify("Paired to " + deviceAddress + ". Ready to capture data."); in notifyPaired()
39 default void notifyConnected(String deviceAddress) { in notifyConnected() argument
40 notify("Connected to " + deviceAddress + ". Starting data capture."); in notifyConnected()
DMainActivity.java97 String deviceAddress = getBluetoothDongleMacFromPreferences(""); in handleConnection() local
98 Log.i(TAG, "Considering a connection to " + deviceAddress); in handleConnection()
99 if (TextUtils.isEmpty(deviceAddress)) { in handleConnection()
103 mCollectionTask = Obd2CollectionTask.create(this, this, deviceAddress); in handleConnection()
DObd2CollectionTask.java44 Context context, StatusNotification statusNotification, String deviceAddress) { in create() argument
49 Objects.requireNonNull(deviceAddress)); in create()
91 Obd2CollectionTask(Context context, StatusNotification statusNotification, String deviceAddress) in Obd2CollectionTask() argument
96 BluetoothConnection bluetoothConnection = new BluetoothConnection(deviceAddress); in Obd2CollectionTask()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragmentTest.java73 String deviceAddress = "55:66:77:88:99:AA"; in setUp() local
74 mFragment = spy(BluetoothDeviceDetailsFragment.newInstance(deviceAddress)); in setUp()
78 when(mCachedDevice.getAddress()).thenReturn(deviceAddress); in setUp()
80 args.putString(BluetoothDeviceDetailsFragment.KEY_DEVICE_ADDRESS, deviceAddress); in setUp()
DForgetDeviceDialogFragmentTest.java66 String deviceAddress = "55:66:77:88:99:AA"; in setUp() local
67 when(mCachedDevice.getAddress()).thenReturn(deviceAddress); in setUp()
68 mFragment = spy(ForgetDeviceDialogFragment.newInstance(deviceAddress)); in setUp()
DRemoteDeviceNameDialogFragmentTest.java68 String deviceAddress = "55:66:77:88:99:AA"; in setUp() local
69 when(mCachedDevice.getAddress()).thenReturn(deviceAddress); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DP2pThisDevicePreferenceControllerTest.java65 device.deviceAddress = "address"; in updateDeviceName_emptyName_shouldUseIpAddress()
69 assertThat(mPreference.getTitle()).isEqualTo(device.deviceAddress); in updateDeviceName_emptyName_shouldUseIpAddress()
75 device.deviceAddress = "address"; in updateDeviceName_hasName_shouldUseName()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPeer.java44 setTitle(device.deviceAddress); in WifiP2pPeer()
82 return device.deviceAddress.compareToIgnoreCase(other.device.deviceAddress); in compareTo()
DWifiP2pSettings.java402 config.deviceAddress = mSelectedWifiPeer.device.deviceAddress; in onPreferenceTreeClick()
442 mSelectedWifiPeer.device.deviceAddress : in onCreateDialog()
461 mSelectedWifiPeer.device.deviceAddress : in onCreateDialog()
DP2pThisDevicePreferenceController.java62 mPreference.setTitle(thisDevice.deviceAddress); in updateDeviceName()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java329 final String deviceAddress = device.getAddress(); in updateAccessories() local
330 if (TextUtils.isEmpty(deviceAddress)) { in updateAccessories()
337 final String key = "BluetoothDevice:" + deviceAddress; in updateAccessories()
352 deviceAddress, in updateAccessories() local
/packages/services/Car/service/src/com/android/car/
DCarBluetoothService.java91 public void setBluetoothDeviceConnectionPriority(String deviceAddress, int profileToSet, in setBluetoothDeviceConnectionPriority() argument
105 getKeyForProfile(profileToSet, priorityToSet), deviceAddress, in setBluetoothDeviceConnectionPriority() local
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java305 private WifiDisplay findWifiDisplay(String deviceAddress) { in findWifiDisplay() argument
306 if (mWifiDisplayStatus != null && deviceAddress != null) { in findWifiDisplay()
308 if (display.getDeviceAddress().equals(deviceAddress)) { in findWifiDisplay()
/packages/apps/Settings/tests/app/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsRotationTest.java71 public CachedBluetoothDevice getDevice(String deviceAddress) { in setUp()