/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/ |
D | DeviceListFragment.java | 48 private WifiP2pDevice device; field in DeviceListFragment 67 return device; in getDevice() 94 WifiP2pDevice device = (WifiP2pDevice) getListAdapter().getItem(position); in onListItemClick() local 95 ((DeviceActionListener) getActivity()).showDetails(device); in onListItemClick() 125 WifiP2pDevice device = items.get(position); in getView() local 126 if (device != null) { in getView() 130 top.setText(device.deviceName); in getView() 133 bottom.setText(getDeviceStatus(device.status)); in getView() 147 public void updateThisDevice(WifiP2pDevice device) { in updateThisDevice() argument 148 this.device = device; in updateThisDevice() [all …]
|
D | DeviceDetailFragment.java | 56 private WifiP2pDevice device; field in DeviceDetailFragment 74 config.deviceAddress = device.deviceAddress; in onCreateView() 80 "Connecting to :" + device.deviceAddress, true, true in onCreateView() 180 public void showDetails(WifiP2pDevice device) { in showDetails() argument 181 this.device = device; in showDetails() 184 view.setText(device.deviceAddress); in showDetails() 186 view.setText(device.toString()); in showDetails()
|
D | MainActivity.java | 156 public void showDetails(WifiP2pDevice device) { in showDetails() argument 159 fragment.showDetails(device); in showDetails()
|
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
D | DeviceScanActivity.java | 149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); in onListItemClick() local 150 if (device == null) return; in onListItemClick() 152 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName()); in onListItemClick() 153 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress()); in onListItemClick() 193 public void addDevice(BluetoothDevice device) { in addDevice() argument 194 if(!mLeDevices.contains(device)) { in addDevice() 195 mLeDevices.add(device); in addDevice() 236 BluetoothDevice device = mLeDevices.get(i); in getView() local 237 final String deviceName = device.getName(); in getView() 242 viewHolder.deviceAddress.setText(device.getAddress()); in getView() [all …]
|
D | BluetoothLeService.java | 230 final BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in connect() local 231 if (device == null) { in connect() 237 mBluetoothGatt = device.connectGatt(this, false, mGattCallback); in connect()
|
/developers/samples/android/common/src/java/com/example/android/common/midi/ |
D | MidiOutputPortSelector.java | 59 public void onDeviceOpened(MidiDevice device) { in onPortSelected() 60 if (device == null) { in onPortSelected() 63 mOpenDevice = device; in onPortSelected() 64 mOutputPort = device.openOutputPort(wrapper.getPortIndex()); in onPortSelected()
|
D | MidiInputPortSelector.java | 56 public void onDeviceOpened(MidiDevice device) { in onPortSelected() 57 if (device == null) { in onPortSelected() 60 mOpenDevice = device; in onPortSelected()
|
D | MidiPortConnector.java | 171 public void onDeviceOpened(MidiDevice device) { in connectToDevicePort() 172 if (device == null) { in connectToDevicePort() 184 mSourceDevice = device; in connectToDevicePort() 185 mConnection = device.connectPorts( in connectToDevicePort()
|
/developers/samples/android/connectivity/bluetooth/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/ |
D | DeviceListActivity.java | 120 for (BluetoothDevice device : pairedDevices) { in onCreate() 121 pairedDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress()); in onCreate() 199 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 201 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { 202 mNewDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress());
|
D | BluetoothChatService.java | 141 public synchronized void connect(BluetoothDevice device, boolean secure) { in connect() argument 142 Log.d(TAG, "connect to: " + device); in connect() 159 mConnectThread = new ConnectThread(device, secure); in connect() 172 device, final String socketType) { in connected() argument 204 bundle.putString(Constants.DEVICE_NAME, device.getName()); in connected() 393 public ConnectThread(BluetoothDevice device, boolean secure) { in ConnectThread() argument 394 mmDevice = device; in ConnectThread() 402 tmp = device.createRfcommSocketToServiceRecord( in ConnectThread() 405 tmp = device.createInsecureRfcommSocketToServiceRecord( in ConnectThread()
|
D | BluetoothChatFragment.java | 368 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in connectDevice() local 370 mChatService.connect(device, secure); in connectDevice()
|
/developers/samples/android/background/JobScheduler/kotlinApp/ |
D | README.md | 10 - Unplug device, schedule a task that requires the device to be plugged in. Job will start when the 11 device is plugged in.
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | CameraOps.java | 144 CameraDevice device = mCameraDevice; in createCaptureRequest() local 145 if (device == null) { in createCaptureRequest() 148 return device.createCaptureRequest(template); in createCaptureRequest()
|
/developers/samples/android/wearable/wear/SpeedTracker/ |
D | README | 2 wearable apk on a device that has GPS capabilities in
|
/developers/samples/android/media/BasicMediaRouter/ |
D | README.md | 8 to select an output device. If your device supports Miracast wireless displays,
|
/developers/samples/android/connectivity/nfc/CardEmulation/ |
D | README.md | 6 feature added in Android 4.4. This sample makes the device appear as a loyalty card 7 whenever the screen is on and the user taps their device on an appropriately configured
|
/developers/samples/android/content/documentsUi/StorageClient/ |
D | README.md | 6 on the device, and choose a file from any of them. 21 interface, and choose an image on your device. It will be displayed in this app.
|
/developers/samples/android/renderScript/BasicRenderScript/ |
D | README.md | 7 adjustment, running the computation on the device\'s GPU or other compute hardware as deemed approp… 16 The RenderScript runtime will parallelize work across all processors available on a device, such as…
|
/developers/samples/android/admin/BasicManagedProfile/ |
D | README.md | 18 To set up this app as a profile owner, you need to encrypt your device 20 device, but be aware that you can set up only one managed profile at a
|
/developers/samples/android/media/Camera2Basic/ |
D | README.md | 7 cameras attached to the device, display a camera preview, and take 14 devices connected to an Android device. It replaces the deprecated
|
/developers/samples/android/media/Camera2Basic/kotlinApp/ |
D | README.md | 6 cameras attached to the device, display a camera preview, and take 13 devices connected to an Android device. It replaces the deprecated
|
/developers/samples/android/media/Camera2Video/kotlinApp/ |
D | README.md | 23 camera device. Override its methods to set your CameraDevice instance, start the preview, and stop 33 8. Lastly, set up and clean up your camera device in `onResume()` and `onPause()`.
|
/developers/samples/android/media/Camera2Video/ |
D | README.md | 23 camera device. Override its methods to set your CameraDevice instance, start the preview, and stop 33 8. Lastly, set up and clean up your camera device in `onResume()` and `onPause()`.
|
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
D | MainActivity.java | 306 for (AudioDeviceInfo device : devices) { in speakerIsSupported() 307 if (device.getType() == AudioDeviceInfo.TYPE_BUILTIN_SPEAKER) { in speakerIsSupported()
|
/developers/samples/android/ui/accessibility/BasicAccessibility/ |
D | README.md | 15 on your Android device. Go to Settings > Accessibility > TalkBack to turn TalkBack on.
|