/frameworks/base/wifi/java/android/net/wifi/p2p/ |
WifiP2pDeviceList.java | 47 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); 55 if (device.deviceAddress != null) { 56 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); 63 if (TextUtils.isEmpty(device.deviceAddress)) { 64 throw new IllegalArgumentException("Empty deviceAddress"); 68 private void validateDeviceAddress(String deviceAddress) { 69 if (TextUtils.isEmpty(deviceAddress)) { 70 throw new IllegalArgumentException("Empty deviceAddress"); 89 mDevices.get(device.deviceAddress).status = device.status; 95 WifiP2pDevice d = mDevices.get(device.deviceAddress); [all...] |
WifiP2pConfig.java | 33 public String deviceAddress = ""; 64 deviceAddress = ""; 75 deviceAddress = tokens[1]; 109 sbuf.append("\n address: ").append(deviceAddress); 124 deviceAddress = source.deviceAddress; 133 dest.writeString(deviceAddress); 144 config.deviceAddress = in.readString();
|
WifiP2pGroupList.java | 98 * @param deviceAddress 100 void remove(String deviceAddress) { 101 remove(getNetworkId(deviceAddress)); 121 * @param deviceAddress p2p device address. 124 int getNetworkId(String deviceAddress) { 125 if (deviceAddress == null) return -1; 129 if (deviceAddress.equalsIgnoreCase(grp.getOwner().deviceAddress)) { 142 * @param deviceAddress p2p device address. 146 int getNetworkId(String deviceAddress, String ssid) [all...] |
WifiP2pDevice.java | 44 public String deviceAddress = ""; 182 deviceAddress = string; 189 deviceAddress = match.group(2); 196 deviceAddress = match.group(1); 204 deviceAddress = match.group(3); 281 if (device.deviceAddress == null) { 282 throw new IllegalArgumentException("deviceAddress is null"); 284 if (!deviceAddress.equals(device.deviceAddress)) { 285 throw new IllegalArgumentException("deviceAddress does not match") [all...] |
WifiP2pService.java | 447 // The deviceAddress will be an empty string when the device is inactive [all...] |
WifiP2pProvDiscEvent.java | 76 device.deviceAddress = tokens[1];
|
/frameworks/base/core/java/android/hardware/display/ |
WifiDisplay.java | 44 String deviceAddress = in.readString(); 50 return new WifiDisplay(deviceAddress, deviceName, deviceAlias, 59 public WifiDisplay(String deviceAddress, String deviceName, String deviceAlias, 61 if (deviceAddress == null) { 62 throw new IllegalArgumentException("deviceAddress must not be null"); 68 mDeviceAddress = deviceAddress;
|
DisplayManager.java | 337 * @param deviceAddress The MAC address of the device to which we should connect. 340 public void connectWifiDisplay(String deviceAddress) { 341 mGlobal.connectWifiDisplay(deviceAddress); 373 * @param deviceAddress The MAC address of the device to rename. 378 public void renameWifiDisplay(String deviceAddress, String alias) { 379 mGlobal.renameWifiDisplay(deviceAddress, alias); 390 * @param deviceAddress The MAC address of the device to forget. 393 public void forgetWifiDisplay(String deviceAddress) { 394 mGlobal.forgetWifiDisplay(deviceAddress);
|
DisplayManagerGlobal.java | 301 public void connectWifiDisplay(String deviceAddress) { 302 if (deviceAddress == null) { 303 throw new IllegalArgumentException("deviceAddress must not be null"); 307 mDm.connectWifiDisplay(deviceAddress); 309 Log.e(TAG, "Failed to connect to Wifi display " + deviceAddress + ".", ex); 337 public void renameWifiDisplay(String deviceAddress, String alias) { 338 if (deviceAddress == null) { 339 throw new IllegalArgumentException("deviceAddress must not be null"); 343 mDm.renameWifiDisplay(deviceAddress, alias); 345 Log.e(TAG, "Failed to rename Wifi display " + deviceAddress [all...] |
/frameworks/base/services/java/com/android/server/display/ |
PersistentDataStore.java | 51 * <wifi-display deviceAddress="00:00:00:00:00:00" deviceName="XXXX" deviceAlias="YYYY" /> 84 public WifiDisplay getRememberedWifiDisplay(String deviceAddress) { 86 int index = findRememberedWifiDisplay(deviceAddress); 150 public boolean forgetWifiDisplay(String deviceAddress) { 151 int index = findRememberedWifiDisplay(deviceAddress); 160 private int findRememberedWifiDisplay(String deviceAddress) { 163 if (mRememberedWifiDisplays.get(i).getDeviceAddress().equals(deviceAddress)) { 250 String deviceAddress = parser.getAttributeValue(null, "deviceAddress"); 253 if (deviceAddress == null || deviceName == null) [all...] |
WifiDisplayController.java | 257 if (device.deviceAddress.equals(address)) { 497 final String address = device.deviceAddress; 498 if (mDesiredDevice != null && mDesiredDevice.deviceAddress.equals(address)) { 513 && !mDesiredDevice.deviceAddress.equals(device.deviceAddress)) { 522 && !mConnectedDevice.deviceAddress.equals(device.deviceAddress) 687 config.deviceAddress = mConnectingDevice.deviceAddress; 794 !info.getOwner().deviceAddress.equals(mThisDevice.deviceAddress) [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiNative.java | 715 args.add(config.deviceAddress); 771 return doBooleanCommand("P2P_PROV_DISC " + config.deviceAddress + " pbc"); 774 return doBooleanCommand("P2P_PROV_DISC " + config.deviceAddress + " keypad"); 777 return doBooleanCommand("P2P_PROV_DISC " + config.deviceAddress + " display"); 802 public boolean p2pReject(String deviceAddress) { 803 return doBooleanCommand("P2P_REJECT " + deviceAddress); 807 public boolean p2pInvite(WifiP2pGroup group, String deviceAddress) { 808 if (TextUtils.isEmpty(deviceAddress)) return false; 811 return doBooleanCommand("P2P_INVITE peer=" + deviceAddress); 814 + " peer=" + deviceAddress + " go_dev_addr=" + group.getOwner().deviceAddress) [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
WifiP2pPeer.java | 49 setTitle(device.deviceAddress); 81 return device.deviceAddress.compareToIgnoreCase(other.device.deviceAddress);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothPreferences.java | 62 String deviceAddress) { 102 if (deviceAddress != null) { 106 if (deviceAddress.equals(lastSelectedDevice)) { 119 static void persistSelectedDeviceInPicker(Context context, String deviceAddress) { 122 deviceAddress);
|
BluetoothPairingRequest.java | 67 String deviceAddress = device != null ? device.getAddress() : null; 69 LocalBluetoothPreferences.shouldShowDialogInForeground(context, deviceAddress)) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
UPnPServiceResponseListenerTest.java | 60 Log.d(TAG, uniqueServiceNames + " received from " + srcDevice.deviceAddress); 66 if (srcDevice.deviceAddress.equalsIgnoreCase(mTargetAddr)) {
|
P2pBroadcastReceiverTest.java | 82 if (dev.deviceAddress.equals(targetAddr)) { 128 if (dev.deviceAddress.equals(targetAddr)) { 159 if (dev.deviceAddress.equals(targetAddr)) {
|
DnsSdResponseListenerTest.java | 64 " received from " + srcDevice.deviceAddress); 70 if (srcDevice.deviceAddress.equalsIgnoreCase(mTargetAddr)) {
|
DnsSdTxtRecordListenerTest.java | 66 + srcDevice.deviceAddress); 72 if (srcDevice.deviceAddress.equalsIgnoreCase(mTargetAddr)) {
|
ConnectReqTestCase.java | 126 config.deviceAddress = dev.deviceAddress;
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
WifiP2pServiceResponse.java | 206 dev.deviceAddress = srcAddr; 298 sbuf.append(" srcAddr:").append(mDevice.deviceAddress); 316 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) && 335 result = 31 * result + (mDevice.deviceAddress == null ? 336 0 : mDevice.deviceAddress.hashCode());
|
WifiP2pUpnpServiceResponse.java | 124 sbuf.append(" srcAddr:").append(mDevice.deviceAddress);
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
DeviceDetailFragment.java | 75 config.deviceAddress = device.deviceAddress; 81 "Connecting to :" + device.deviceAddress, true, true 183 view.setText(device.deviceAddress);
|
/developers/build/prebuilts/gradle/BluetoothLeGatt/BluetoothLeGattSample/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 242 viewHolder.deviceAddress.setText(device.getAddress()); 266 TextView deviceAddress;
|
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/BluetoothLeGattSample/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 242 viewHolder.deviceAddress.setText(device.getAddress()); 266 TextView deviceAddress;
|