Home
last modified time | relevance | path

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

1234

/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 …]
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()
147 if (deviceAddress.equalsIgnoreCase(groupOwner.deviceAddress)) { in getNetworkId()
165 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() argument
166 if (deviceAddress == null || ssid == null) { in getNetworkId()
176 if (deviceAddress.equalsIgnoreCase(groupOwner.deviceAddress) in getNetworkId()
203 return groupOwner.deviceAddress; in getOwnerAddr()
DWifiP2pDevice.java65 public String deviceAddress = ""; field in WifiP2pDevice
250 deviceAddress = string; in WifiP2pDevice()
257 deviceAddress = match.group(2); in WifiP2pDevice()
264 deviceAddress = match.group(1); in WifiP2pDevice()
272 deviceAddress = match.group(3); in WifiP2pDevice()
361 if (device.deviceAddress == null) { in updateSupplicantDetails()
364 if (!deviceAddress.equals(device.deviceAddress)) { in updateSupplicantDetails()
476 if (other == null || other.deviceAddress == null) { in equals()
477 return (deviceAddress == null); in equals()
479 return other.deviceAddress.equals(deviceAddress); in equals()
[all …]
DWifiP2pConfig.java58 public String deviceAddress = ""; field in WifiP2pConfig
254 deviceAddress = ""; in invalidate()
266 deviceAddress = tokens[1]; in WifiP2pConfig()
311 sbuf.append("\n address: ").append(deviceAddress); in toString()
333 deviceAddress = source.deviceAddress; in WifiP2pConfig()
348 dest.writeString(deviceAddress); in writeToParcel()
366 config.deviceAddress = in.readString();
429 public Builder setDeviceAddress(@Nullable MacAddress deviceAddress) { in setDeviceAddress() argument
430 if (deviceAddress == null) { in setDeviceAddress()
433 mDeviceAddress = deviceAddress; in setDeviceAddress()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DExternalApproverManager.java55 @Nullable MacAddress deviceAddress, @Nullable Message message) { in put() argument
57 if (null == deviceAddress) return null; in put()
61 ApproverEntry existEntry = mApproverByAddress.get(deviceAddress); in put()
70 key, deviceAddress, Message.obtain(message)); in put()
71 mApprovers.put(new Pair(key, deviceAddress), newEntry); in put()
72 mApproverByAddress.put(deviceAddress, newEntry); in put()
88 public ApproverEntry get(@Nullable MacAddress deviceAddress) { in get() argument
89 if (null == deviceAddress) return null; in get()
90 return mApproverByAddress.get(deviceAddress); in get()
95 @Nullable MacAddress deviceAddress) { in get() argument
[all …]
DWifiP2pServiceImpl.java740 String deviceAddress = mSettingsConfigStore.get(WIFI_P2P_DEVICE_ADDRESS); in handleBootCompleted() local
741 if (!mWifiGlobals.isP2pMacRandomizationSupported() && !TextUtils.isEmpty(deviceAddress)) { in handleBootCompleted()
742 mThisDevice.deviceAddress = deviceAddress; in handleBootCompleted()
2045 && !TextUtils.isEmpty(mThisDevice.deviceAddress)) { in needsActiveP2p()
3294 if (mThisDevice.deviceAddress.equals(device.deviceAddress)) break; in processMessageImpl()
3305 device = mPeers.remove(device.deviceAddress); in processMessageImpl()
3386 mPeers.get(resp.getSrcDevice().deviceAddress); in processMessageImpl()
3656 mPeers.updateStatus(mSavedPeerConfig.deviceAddress, in processMessageImpl()
3720 config.deviceAddress = group.getOwner().deviceAddress; in processMessageImpl()
3729 if (owner != null && ((owner = mPeers.get(owner.deviceAddress)) != null)) { in processMessageImpl()
[all …]
DWifiP2pNative.java704 freq, config.deviceAddress, join); in p2pGroupAdd()
739 public boolean p2pReject(String deviceAddress) { in p2pReject() argument
740 return mSupplicantP2pIfaceHal.reject(deviceAddress); in p2pReject()
756 public boolean p2pInvite(WifiP2pGroup group, String deviceAddress) { in p2pInvite() argument
757 return mSupplicantP2pIfaceHal.invite(group, deviceAddress); in p2pInvite()
768 public boolean p2pReinvoke(int netId, String deviceAddress) { in p2pReinvoke() argument
769 return mSupplicantP2pIfaceHal.reinvoke(netId, deviceAddress); in p2pReinvoke()
779 public String p2pGetSsid(String deviceAddress) { in p2pGetSsid() argument
780 return mSupplicantP2pIfaceHal.getSsid(deviceAddress); in p2pGetSsid()
800 public int getGroupCapability(String deviceAddress) { in getGroupCapability() argument
[all …]
DSupplicantP2pIfaceCallbackHidlImpl.java117 device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onDeviceFound()
155 device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onDeviceLost()
188 config.deviceAddress = NativeUtil.macAddressFromByteArray(srcAddress); in onGoNegotiationRequest()
303 owner.deviceAddress = NativeUtil.macAddressFromByteArray(goDeviceAddress); in onGroupStarted()
351 client.deviceAddress = NativeUtil.macAddressFromByteArray(srcAddress); in onInvitationReceived()
362 owner.deviceAddress = NativeUtil.macAddressFromByteArray(goDeviceAddress); in onInvitationReceived()
424 event.device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onProvisionDiscoveryCompleted()
427 event.device.deviceAddress = null; in onProvisionDiscoveryCompleted()
437 if (TextUtils.isEmpty(event.device.deviceAddress)) return; in onProvisionDiscoveryCompleted()
504 device.deviceAddress = NativeUtil.macAddressFromByteArray(deviceAddressBytes); in createStaEventDevice()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pConfigTest.java150 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildDefaultConfig()
159 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildNonPersistentConfig()
169 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildConfigWithGroupClientIpProvisioningModeDefault()
182 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildConfigWithGroupClientIpProvisioningModeIpv4Dhcp()
195 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildConfigWithGroupClientIpProvisioningModeIpv6LinkLocal()
246 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildConfigWithJoinExistingGroupDefault()
257 assertEquals(c.deviceAddress, DEVICE_ADDRESS); in testBuildConfigWithJoinExistingGroupSet()
267 config.deviceAddress = DEVICE_ADDRESS; in testWifiP2pConfig()
299 config.deviceAddress = DEVICE_ADDRESS; in testInvalidate()
301 assertEquals("", config.deviceAddress); in testInvalidate()
DWifiP2pGroupListTest.java82 list.getNetworkId(TEST_GROUP_OWNER_2.deviceAddress)); in testListOperations()
83 assertEquals(TEST_GROUP_OWNER_2.deviceAddress, in testListOperations()
86 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_OTHER.deviceAddress)); in testListOperations()
89 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress)); in testListOperations()
92 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress, "testGroup4")); in testListOperations()
95 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_3.deviceAddress)); in testListOperations()
127 list.getNetworkId(TEST_GROUP_OWNER_2.deviceAddress)); in testGetNetworkIdIgnoresNullGroupOwner()
140 list.getNetworkId(TEST_GROUP_OWNER_2.deviceAddress, mTestGroup2.getNetworkName())); in testGetNetworkIdWithSsidIgnoresNullGroupOwner()
DWifiP2pDeviceTest.java56 assertEquals(devA.deviceAddress, devB.deviceAddress); in compareWifiP2pDevices()
79 dev_a.deviceAddress = new String("02:90:4c:a0:92:54"); in testEqualsWithHashCode()
81 dev_b.deviceAddress = new String("02:90:4c:a0:92:54"); in testEqualsWithHashCode()
104 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithUpdatedValues()
123 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithNullWfdInfo()
154 device.deviceAddress = "11:22:33:44:55:66"; in testParcelReadWrite()
171 assertEquals(device.deviceAddress, unparceledDevice.deviceAddress); in testParcelReadWrite()
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()
DWifiP2pGroupTest.java75 group.addClient(CLIENT_1.deviceAddress); in testSetterGetter()
76 group.setClientInterfaceMacAddress(CLIENT_1.deviceAddress, in testSetterGetter()
104 if (client.deviceAddress.equals(CLIENT_1_DEV_ADDRESS)) { in testSetterGetter()
109 } else if (client.deviceAddress.equals(CLIENT_2_DEV_ADDRESS)) { in testSetterGetter()
118 group.removeClient(CLIENT_2.deviceAddress); in testSetterGetter()
/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.java146 public void playAudio(@NonNull String deviceAddress) { in playAudio() argument
147 Objects.requireNonNull(deviceAddress); in playAudio()
149 if (deviceAddress.equals(mActiveInputAddress)) { in playAudio()
172 mActiveInputAddress = deviceAddress; in playAudio()
177 mActiveInputAddress = deviceAddress; in playAudio()
178 mAudioDeviceInfoMap.get(deviceAddress).mPlayerState = DELAYED_STATE; in playAudio()
190 public void stopAudio(@NonNull String deviceAddress) { in stopAudio() argument
191 Objects.requireNonNull(deviceAddress); in stopAudio()
193 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/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryActivity.java48 String deviceAddress = null; in createSettingsFragment() local
53 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/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()
/packages/modules/Uwb/androidx_backend/tests/src/androidx/core/uwb/backend/impl/internal/
DRangingControllerTest.java158 UwbAddress deviceAddress = mRangingController.getLocalAddress();
185 RangingDevice.calculateHashedSessionId(deviceAddress, complexChannel),
197 UwbAddress deviceAddress = mRangingController.getLocalAddress();
230 .onRangingInitialized(UwbDevice.createForAddress(deviceAddress.toBytes()));
235 UwbAddress deviceAddress = mRangingController.getLocalAddress();
258 .onRangingSuspended(UwbDevice.createForAddress(deviceAddress.toBytes()),
264 UwbAddress deviceAddress = mRangingController.getLocalAddress();
298 .onRangingSuspended(UwbDevice.createForAddress(deviceAddress.toBytes()),
305 UwbAddress deviceAddress = mRangingController.getLocalAddress();
358 UwbDevice.createForAddress(deviceAddress.toBytes()),
[all …]
DRangingControleeTest.java129 UwbAddress deviceAddress = mRangingControlee.getLocalAddress();
169 UwbAddress deviceAddress = mRangingControlee.getLocalAddress();
201 .onRangingInitialized(UwbDevice.createForAddress(deviceAddress.toBytes()));
206 UwbAddress deviceAddress = mRangingControlee.getLocalAddress();
228 .onRangingSuspended(UwbDevice.createForAddress(deviceAddress.toBytes()),
234 UwbAddress deviceAddress = mRangingControlee.getLocalAddress();
267 .onRangingSuspended(UwbDevice.createForAddress(deviceAddress.toBytes()),
273 UwbAddress deviceAddress = mRangingControlee.getLocalAddress();
325 UwbDevice.createForAddress(deviceAddress.toBytes()),
331 UwbAddress deviceAddress = mRangingControlee.getLocalAddress();
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DScanFilter.java90 String deviceAddress, in ScanFilter() argument
112 mDeviceAddress = deviceAddress; in ScanFilter()
741 public Builder setDeviceAddress(String deviceAddress) { in setDeviceAddress() argument
742 if (deviceAddress == null) { in setDeviceAddress()
743 mDeviceAddress = deviceAddress; in setDeviceAddress()
746 return setDeviceAddress(deviceAddress, BluetoothDevice.ADDRESS_TYPE_PUBLIC); in setDeviceAddress()
768 @NonNull String deviceAddress, @AddressType int addressType) { in setDeviceAddress()
769 return setDeviceAddressInternal(deviceAddress, addressType, null); in setDeviceAddress()
810 @NonNull String deviceAddress, @AddressType int addressType, @NonNull byte[] irk) { in setDeviceAddress()
815 return setDeviceAddressInternal(deviceAddress, addressType, irk); in setDeviceAddress()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java65 String deviceAddress = device != null ? device.getAddress() : null; in shouldShowDialogInForeground() local
109 if (deviceAddress != null) { in shouldShowDialogInForeground()
113 if (deviceAddress.equals(lastSelectedDevice)) { in shouldShowDialogInForeground()
152 static void persistSelectedDeviceInPicker(Context context, String deviceAddress) { in persistSelectedDeviceInPicker() argument
155 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/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()

1234