Home
last modified time | relevance | path

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

12

/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pConnectionProcedure.java69 if (DEBUG) Log.d(TAG, "Connecting to " + mPeer.deviceAddress); in P2pConnectionProcedure()
77 config.deviceAddress = peer.deviceAddress; in configForPeer()
115 if (DEBUG) Log.d(TAG, "stop() for " + mPeer.deviceAddress); in close()
169 WifiP2pDevice device = list.get(mPeer.deviceAddress); in onReceive()
188 if (owner != null && owner.deviceAddress.equals(mPeer.deviceAddress)) { in isConnectedToPeer()
192 if (client.deviceAddress.equals(mPeer.deviceAddress)) { in isConnectedToPeer()
DP2pDiscoveryProcedure.java129 foundAddresses.add(peer.deviceAddress); in updatePeers()
130 WifiP2pDevice old = getDevice(oldPeers, peer.deviceAddress); in updatePeers()
140 if (!foundAddresses.contains(oldPeer.deviceAddress)) { in updatePeers()
150 if (found.deviceAddress.equals(address)) { in getDevice()
DP2pMonitor.java50 return device.deviceName + " " + device.deviceAddress + ", status=" in toString()
117 if (mConnection != null && !peer.deviceAddress.equals(mConnection.getPeer() in connect()
118 .deviceAddress)) { in connect()
/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()
48 getArguments(deviceAddress, deviceName, deviceImgId)); in createSettingsFragment()
52 public static Bundle getArguments(String deviceAddress, String deviceName, int deviceImgId) { in getArguments() argument
54 b.putString(EXTRA_ACCESSORY_ADDRESS, deviceAddress); in getArguments()
DAccessoriesFragment.java93 final String deviceAddress = device.getAddress(); in updateAccessories() local
94 if (TextUtils.isEmpty(deviceAddress)) { in updateAccessories()
101 final String key = "BluetoothDevice:" + deviceAddress; in updateAccessories()
116 deviceAddress, in updateAccessories() local
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDeviceDetailsFragment.java59 CachedBluetoothDevice getDevice(String deviceAddress); in getDevice() argument
87 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() argument
89 return sTestDataFactory.getDevice(deviceAddress); in getCachedDevice()
92 mManager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getCachedDevice()
96 public static BluetoothDeviceDetailsFragment newInstance(String deviceAddress) { in newInstance() argument
98 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
DLocalBluetoothPreferences.java61 String deviceAddress, String deviceName) { in shouldShowDialogInForeground() argument
104 if (deviceAddress != null) { in shouldShowDialogInForeground()
108 if (deviceAddress.equals(lastSelectedDevice)) { in shouldShowDialogInForeground()
133 static void persistSelectedDeviceInPicker(Context context, String deviceAddress) { in persistSelectedDeviceInPicker() argument
136 deviceAddress); in persistSelectedDeviceInPicker()
DForgetDeviceDialogFragment.java43 public static ForgetDeviceDialogFragment newInstance(String deviceAddress) { in newInstance() argument
45 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
53 String deviceAddress = getArguments().getString(KEY_DEVICE_ADDRESS); in getDevice() local
55 BluetoothDevice device = manager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getDevice()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/notificationmsg/
DNotificationMsgDelegate.java177 String deviceAddress = device.getDeviceId(); in initializeNewConversation() local
178 ConversationKey convoKey = new ConversationKey(deviceAddress, notificationKey); in initializeNewConversation()
198 createNewMessage(deviceAddress, messagingStyleMessage, convoKey); in initializeNewConversation()
203 private void initializeNewMessage(String deviceAddress, in initializeNewMessage() argument
205 ConversationKey convoKey = new ConversationKey(deviceAddress, notificationKey); in initializeNewMessage()
216 createNewMessage(deviceAddress, messagingStyleMessage, convoKey); in initializeNewMessage()
232 private void createNewMessage(String deviceAddress, MessagingStyleMessage messagingStyleMessage, in createNewMessage() argument
235 Message message = Message.parseFromMessage(deviceAddress, messagingStyleMessage, in createNewMessage()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragment.java61 CachedBluetoothDevice getDevice(String deviceAddress); in getDevice() argument
88 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() argument
90 return sTestDataFactory.getDevice(deviceAddress); in getCachedDevice()
93 mManager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getCachedDevice()
97 public static BluetoothDeviceDetailsFragment newInstance(String deviceAddress) { in newInstance() argument
99 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
DLocalBluetoothPreferences.java61 String deviceAddress, String deviceName) { in shouldShowDialogInForeground() argument
104 if (deviceAddress != null) { in shouldShowDialogInForeground()
108 if (deviceAddress.equals(lastSelectedDevice)) { in shouldShowDialogInForeground()
133 static void persistSelectedDeviceInPicker(Context context, String deviceAddress) { in persistSelectedDeviceInPicker() argument
136 deviceAddress); in persistSelectedDeviceInPicker()
DForgetDeviceDialogFragment.java44 public static ForgetDeviceDialogFragment newInstance(String deviceAddress) { in newInstance() argument
46 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
54 String deviceAddress = getArguments().getString(KEY_DEVICE_ADDRESS); in getDevice() local
56 BluetoothDevice device = manager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getDevice()
/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/Car/Messenger/src/com/android/car/messenger/
DCompositeKey.java14 protected CompositeKey(String deviceAddress, String subKey) { in CompositeKey() argument
15 mDeviceAddress = deviceAddress; in CompositeKey()
40 public boolean matches(String deviceAddress) { in matches() argument
41 return mDeviceAddress.equals(deviceAddress); in matches()
DMapMessage.java79 private MapMessage(String deviceAddress, in MapMessage() argument
86 boolean missingDevice = (deviceAddress == null); in MapMessage()
106 mDeviceAddress = deviceAddress; in MapMessage()
DSenderKey.java13 private SenderKey(String deviceAddress, String key) { in SenderKey() argument
14 super(deviceAddress, key); in SenderKey()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothUtils.java93 String deviceAddress, String deviceName) { in shouldShowDialogInForeground() argument
136 if (deviceAddress != null) { in shouldShowDialogInForeground()
140 if (deviceAddress.equals(lastSelectedDevice)) { in shouldShowDialogInForeground()
165 static void persistSelectedDeviceInPicker(Context context, String deviceAddress) { in persistSelectedDeviceInPicker() argument
167 editor.putString(KEY_LAST_SELECTED_DEVICE, deviceAddress); in persistSelectedDeviceInPicker()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java123 @Nullable String deviceAddress) { in start() argument
138 doStart(deviceAddress); in start()
150 private void doStart(String deviceAddress) { in doStart() argument
206 if (deviceAddress != null) { in doStart()
209 if (deviceInfo.getAddress().equals(deviceAddress)) { in doStart()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DP2pThisDevicePreferenceControllerTest.java62 device.deviceAddress = "address"; in updateDeviceName_emptyName_shouldUseIpAddress()
66 assertThat(mPreference.getTitle()).isEqualTo(device.deviceAddress); in updateDeviceName_emptyName_shouldUseIpAddress()
72 device.deviceAddress = "address"; in updateDeviceName_hasName_shouldUseName()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPeer.java46 setTitle(device.deviceAddress); in WifiP2pPeer()
84 return device.deviceAddress.compareToIgnoreCase(other.device.deviceAddress); in compareTo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pPeer.java46 setTitle(device.deviceAddress); in WifiP2pPeer()
84 return device.deviceAddress.compareToIgnoreCase(other.device.deviceAddress); in compareTo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DForgetDeviceDialogFragmentTest.java74 String deviceAddress = "55:66:77:88:99:AA"; in setUp() local
75 when(mCachedDevice.getAddress()).thenReturn(deviceAddress); in setUp()
78 mFragment = spy(ForgetDeviceDialogFragment.newInstance(deviceAddress)); in setUp()
/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothHelper.java49 String deviceAddress, in sendMessage() argument
60 BluetoothDevice device = adapter.getRemoteDevice(deviceAddress); in sendMessage()

12