Home
last modified time | relevance | path

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

123

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java47 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); in WifiP2pDeviceList()
55 if (device.deviceAddress != null) { in WifiP2pDeviceList()
56 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList()
63 if (TextUtils.isEmpty(device.deviceAddress)) { in validateDevice()
68 private void validateDeviceAddress(String deviceAddress) { in validateDeviceAddress() argument
69 if (TextUtils.isEmpty(deviceAddress)) { in validateDeviceAddress()
90 mDevices.get(device.deviceAddress).status = device.status; in update()
96 WifiP2pDevice d = mDevices.get(device.deviceAddress); in updateSupplicantDetails()
108 mDevices.put(device.deviceAddress, device); in updateSupplicantDetails()
112 public void updateGroupCapability(String deviceAddress, int groupCapab) { in updateGroupCapability() argument
[all …]
DWifiP2pDevice.java51 public String deviceAddress = ""; field in WifiP2pDevice
204 deviceAddress = string; in WifiP2pDevice()
211 deviceAddress = match.group(2); in WifiP2pDevice()
218 deviceAddress = match.group(1); in WifiP2pDevice()
226 deviceAddress = match.group(3); in WifiP2pDevice()
315 if (device.deviceAddress == null) { in updateSupplicantDetails()
318 if (!deviceAddress.equals(device.deviceAddress)) { in updateSupplicantDetails()
336 if (other == null || other.deviceAddress == null) { in equals()
337 return (deviceAddress == null); in equals()
339 return other.deviceAddress.equals(deviceAddress); in equals()
[all …]
DWifiP2pGroupList.java112 void remove(String deviceAddress) { in remove() argument
113 remove(getNetworkId(deviceAddress)); in remove()
138 public int getNetworkId(String deviceAddress) { in getNetworkId() argument
139 if (deviceAddress == null) return -1; in getNetworkId()
143 if (deviceAddress.equalsIgnoreCase(grp.getOwner().deviceAddress)) { in getNetworkId()
161 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() argument
162 if (deviceAddress == null || ssid == null) { in getNetworkId()
168 if (deviceAddress.equalsIgnoreCase(grp.getOwner().deviceAddress) && in getNetworkId()
189 return grp.getOwner().deviceAddress; in getOwnerAddr()
DWifiP2pConfig.java46 public String deviceAddress = ""; field in WifiP2pConfig
162 deviceAddress = ""; in invalidate()
174 deviceAddress = tokens[1]; in WifiP2pConfig()
208 sbuf.append("\n address: ").append(deviceAddress); in toString()
227 deviceAddress = source.deviceAddress; in WifiP2pConfig()
239 dest.writeString(deviceAddress); in writeToParcel()
253 config.deviceAddress = in.readString();
300 public @NonNull Builder setDeviceAddress(@Nullable MacAddress deviceAddress) { in setDeviceAddress() argument
301 if (deviceAddress == null) { in setDeviceAddress()
304 mDeviceAddress = deviceAddress; in setDeviceAddress()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1789 if (mThisDevice.deviceAddress.equals(device.deviceAddress)) break; in processMessage()
1800 device = mPeers.remove(device.deviceAddress); in processMessage()
1862 mPeers.get(resp.getSrcDevice().deviceAddress); in processMessage()
2050 mPeers.updateStatus(mSavedPeerConfig.deviceAddress, in processMessage()
2110 config.deviceAddress = group.getOwner().deviceAddress; in processMessage()
2119 if (owner != null && ((owner = mPeers.get(owner.deviceAddress)) != null)) { in processMessage()
2156 mSavedPeerConfig.deviceAddress = device.deviceAddress; in processMessage()
2159 notifyP2pProvDiscShowPinRequest(provDisc.pin, device.deviceAddress); in processMessage()
2160 mPeers.updateStatus(device.deviceAddress, WifiP2pDevice.INVITED); in processMessage()
2189 netId = mGroups.getNetworkId(mThisDevice.deviceAddress); in processMessage()
[all …]
DWifiP2pNative.java592 freq, config.deviceAddress, join); in p2pGroupAdd()
627 public boolean p2pReject(String deviceAddress) { in p2pReject() argument
628 return mSupplicantP2pIfaceHal.reject(deviceAddress); in p2pReject()
644 public boolean p2pInvite(WifiP2pGroup group, String deviceAddress) { in p2pInvite() argument
645 return mSupplicantP2pIfaceHal.invite(group, deviceAddress); in p2pInvite()
656 public boolean p2pReinvoke(int netId, String deviceAddress) { in p2pReinvoke() argument
657 return mSupplicantP2pIfaceHal.reinvoke(netId, deviceAddress); in p2pReinvoke()
667 public String p2pGetSsid(String deviceAddress) { in p2pGetSsid() argument
668 return mSupplicantP2pIfaceHal.getSsid(deviceAddress); in p2pGetSsid()
688 public int getGroupCapability(String deviceAddress) { in getGroupCapability() argument
[all …]
DSupplicantP2pIfaceCallbackImpl.java115 device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onDeviceFound()
153 device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onDeviceLost()
186 config.deviceAddress = NativeUtil.macAddressFromByteArray(srcAddress); in onGoNegotiationRequest()
301 owner.deviceAddress = NativeUtil.macAddressFromByteArray(goDeviceAddress); in onGroupStarted()
349 client.deviceAddress = NativeUtil.macAddressFromByteArray(srcAddress); in onInvitationReceived()
360 owner.deviceAddress = NativeUtil.macAddressFromByteArray(goDeviceAddress); in onInvitationReceived()
410 event.device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onProvisionDiscoveryCompleted()
480 device.deviceAddress = NativeUtil.macAddressFromByteArray(deviceAddressBytes); in createStaEventDevice()
/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()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioZoneInputFragment.java138 public void playAudio(@NonNull String deviceAddress) { in playAudio() argument
139 Objects.requireNonNull(deviceAddress); in playAudio()
141 if (deviceAddress.equals(mActiveInputAddress)) { in playAudio()
164 mActiveInputAddress = deviceAddress; in playAudio()
169 mActiveInputAddress = deviceAddress; in playAudio()
170 mAudioDeviceInfoMap.get(deviceAddress).mPlayerState = DELAYED_STATE; in playAudio()
182 public void stopAudio(@NonNull String deviceAddress) { in stopAudio() argument
183 Objects.requireNonNull(deviceAddress); in stopAudio()
185 if (deviceAddress.equals(mActiveInputAddress)) { in stopAudio()
DCarAudioInputAdapter.java69 String deviceAddress = mAudioDeviceInfos[position].mDeviceAddress; in getView() local
70 vh.mDeviceAddress.setText(deviceAddress); in getView()
90 private void playAudio(String deviceAddress) { in playAudio() argument
91 mFragment.playAudio(deviceAddress); in playAudio()
94 private void stopAudio(String deviceAddress) { in stopAudio() argument
95 mFragment.stopAudio(deviceAddress); in stopAudio()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java40 assertEquals(devA.deviceAddress, devB.deviceAddress); in compareWifiP2pDevices()
63 dev_a.deviceAddress = new String("02:90:4c:a0:92:54"); in testEqualsWithHashCode()
65 dev_b.deviceAddress = new String("02:90:4c:a0:92:54"); in testEqualsWithHashCode()
88 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithUpdatedValues()
107 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithNullWfdInfo()
DWifiP2pGroupListTest.java81 list.getNetworkId(TEST_GROUP_OWNER_2.deviceAddress)); in testListOperations()
82 assertEquals(TEST_GROUP_OWNER_2.deviceAddress, in testListOperations()
85 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_OTHER.deviceAddress)); in testListOperations()
88 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress)); in testListOperations()
91 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress, "testGroup4")); in testListOperations()
94 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_3.deviceAddress)); in testListOperations()
DWifiP2pDeviceListTest.java49 assertEquals(TEST_DEVICE_1, list.get(TEST_DEVICE_1.deviceAddress)); in testListOperations()
50 assertEquals(null, list.get(TEST_DEVICE_4.deviceAddress)); in testListOperations()
52 list.remove(TEST_DEVICE_2.deviceAddress); in testListOperations()
53 assertEquals(null, list.get(TEST_DEVICE_2.deviceAddress)); in testListOperations()
56 assertEquals(null, list.get(TEST_DEVICE_3.deviceAddress)); in testListOperations()
DWifiP2pProvDiscEventTest.java47 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testPbcReqEvent()
59 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testPbcRespEvent()
70 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testEnterPinEvent()
82 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testShowPinEvent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryActivity.java49 String deviceAddress = null; in createSettingsFragment() local
54 deviceAddress = bundle.getString(EXTRA_ACCESSORY_ADDRESS); in createSettingsFragment()
63 getArguments(deviceAddress, deviceName, deviceImgId)); in createSettingsFragment()
67 public static Bundle getArguments(String deviceAddress, String deviceName, int deviceImgId) { in getArguments() argument
69 b.putString(EXTRA_ACCESSORY_ADDRESS, deviceAddress); in getArguments()
/packages/apps/Settings/src/com/android/settings/bluetooth/
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()
DBluetoothDeviceDetailsFragment.java63 CachedBluetoothDevice getDevice(String deviceAddress); in getDevice() argument
90 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() argument
92 return sTestDataFactory.getDevice(deviceAddress); in getCachedDevice()
95 mManager.getBluetoothAdapter().getRemoteDevice(deviceAddress); in getCachedDevice()
99 public static BluetoothDeviceDetailsFragment newInstance(String deviceAddress) { in newInstance() argument
101 args.putString(KEY_DEVICE_ADDRESS, deviceAddress); in newInstance()
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/service/src/com/android/car/audio/
DCarAudioZone.java183 String deviceAddress = null; in getAddressForContext() local
185 deviceAddress = volumeGroup.getAddressForContext(audioContext); in getAddressForContext()
186 if (deviceAddress != null) { in getAddressForContext()
187 return deviceAddress; in getAddressForContext()
239 private boolean containsDeviceAddress(String deviceAddress) { in containsDeviceAddress() argument
240 return mDeviceAddresses.contains(deviceAddress); in containsDeviceAddress()
/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/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceResponse.java199 dev.deviceAddress = srcAddr; in newInstance()
290 sbuf.append(" srcAddr:").append(mDevice.deviceAddress); in toString()
308 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) && in equals()
327 result = 31 * result + (mDevice.deviceAddress == null ? in hashCode()
328 0 : mDevice.deviceAddress.hashCode()); in hashCode()
/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackImplTest.java117 assertEquals(device.deviceAddress, mDeviceAddress2String); in testOnDeviceFound_success()
171 assertEquals(mDeviceAddress2String, device.deviceAddress); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
256 assertEquals(device.deviceAddress, mDeviceAddress1String); in testOnDeviceLost_success()
299 assertEquals(config.deviceAddress, mDeviceAddress1String); in testOnGoNegotiationRequest_success()
360 assertEquals(group.getOwner().deviceAddress, mDeviceAddress1String); in testOnGroupStarted_success()
487 assertEquals(mDeviceAddress2String, p2pDeviceCaptor.getValue().deviceAddress); in testStaAuth_success()
501 assertEquals(mDeviceAddress1String, p2pDeviceCaptor.getValue().deviceAddress); in testStaAuth_noDeviceAddress_success()
628 assertEquals(mDeviceAddress2String, group.getOwner().deviceAddress); in testOnInvitationReceived()
650 assertEquals(mDeviceAddress2String, p2pDeviceCaptor.getValue().deviceAddress); in testOnStaDeauthorized()

123