Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 94) sorted by relevance

1234

/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/
DDeviceListFragment.java48 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 …]
DDeviceDetailFragment.java56 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()
/developers/build/prebuilts/gradle/NfcProvisioning/
DREADME.md5 This sample demonstrates how to use NFC to provision a new device with a device owner. Device owner
6 is a specialized type of device administrator that can control device security and configuration.
7 This sample itself is not a device owner, but it is a programming app that sends NFC message to an
8 unprovisioned peer device and tells it to set up the specified device owner app.
14 values to the peer device. This sample uses the values below.
16 * `EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME` - The package name of the mobile device management
17 application that will be set as the profile owner or device owner.
18 * `EXTRA_PROVISIONING_LOCALE` - The Locale that the device will be set to.
19 * `EXTRA_PROVISIONING_TIME_ZONE` - The time zone AlarmManager that the device will be set to.
21 device owner provisioning for downloading the mobile device management application.
/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
DFullscreenActivity.java298 InputDevice device = ev.getDevice(); in onGenericMotionEvent() local
300 if (device != null && device.getId() == mCurrentDeviceId) { in onGenericMotionEvent()
301 if (isGamepad(device)) { in onGenericMotionEvent()
303 mAxes[axesMapping.ordinal()] = getCenteredAxis(ev, device, in onGenericMotionEvent()
321 private float getCenteredAxis(MotionEvent event, InputDevice device, int axis) { in getCenteredAxis() argument
322 InputDevice.MotionRange range = device.getMotionRange(axis, event.getSource()); in getCenteredAxis()
348 InputDevice device = ev.getDevice(); in onKeyDown() local
350 if (device != null && device.getId() == mCurrentDeviceId) { in onKeyDown()
351 if (isGamepad(device)) { in onKeyDown()
370 InputDevice device = ev.getDevice(); in onKeyUp() local
[all …]
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/
DDeviceScanActivity.java149 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 …]
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/
DDeviceScanActivity.java149 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 …]
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/
DMidiOutputPortSelector.java59 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()
DMidiInputPortSelector.java56 public void onDeviceOpened(MidiDevice device) { in onPortSelected()
57 if (device == null) { in onPortSelected()
60 mOpenDevice = device; in onPortSelected()
DMidiPortConnector.java171 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/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/
DMidiOutputPortSelector.java59 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()
DMidiInputPortSelector.java56 public void onDeviceOpened(MidiDevice device) { in onPortSelected()
57 if (device == null) { in onPortSelected()
60 mOpenDevice = device; in onPortSelected()
DMidiPortConnector.java171 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/common/src/java/com/example/android/common/midi/
DMidiOutputPortSelector.java59 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()
DMidiInputPortSelector.java56 public void onDeviceOpened(MidiDevice device) { in onPortSelected()
57 if (device == null) { in onPortSelected()
60 mOpenDevice = device; in onPortSelected()
DMidiPortConnector.java171 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/
DDeviceListActivity.java120 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());
DBluetoothChatService.java141 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()
/developers/build/prebuilts/gradle/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
DDeviceListActivity.java120 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());
DBluetoothChatService.java141 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()
/developers/build/prebuilts/gradle/SpeedTracker/
DREADME.md5 Sample demonstrates recording location and speed with a Wear device in mind. Location is
7 depending on whether the phone is disconnected or not and whether the Wear device has a
14 * Compile and install the mobile app onto your mobile device or emulator.
15 * Compile and install the wearable app onto your Wear device or emulator.
16 (**Note:** wearable apps are not automatically pushed from your mobile device
20 It also passes GPS location information back to the mobile device via the Data Layer to be rendered
/developers/build/prebuilts/gradle/DirectBoot/
DREADME.md5 Sample demonstrating how to store data in a device protected storage which
6 is always available while the device is booted both before and after any
12 This sample demonstrates how to store and access data in a device protected
13 storage which is always available while the device is booted.
20 …- A new storage location which is always available while the device is booted, both before and aft…
38 You need to be careful what data is stored/moved to a device protected storage
41 device protected storage.
/developers/build/prebuilts/gradle/ConfirmCredential/
DREADME.md5 A sample that demonstrates how to use device credentials (PIN, Pattern, Password) in your app
10 This sample demonstrates how you can use device credentials (PIN, Pattern, Password) in your app
15 with their device credentials and pass [KeyGenParameterSpec][2].
19 user as authenticated if the user has been authenticated with the device credentials
23 to confirm device credentials to the user.
/developers/build/prebuilts/androidtv/visual-game-controller/
DREADME.md3 The Visual Game Controller app is designed to run on an Android TV device and displays visual feedb…
9 * Compile and deploy to your Android TV device.
/developers/build/prebuilts/gradle/WearVerifyRemoteApp/
DREADME.md5 Sample demonstrates best practices for checking if connected mobile device has your app installed
12 * Compile and install the mobile app onto your mobile device or emulator (for mobile
14 * Compile and install the wearable app onto your Wear device or emulator (for Wear
22 be able to open the Play Store on the remote mobile device from the app (if it has the Play Store).
25 be able to open the Play Store on the remote Wear device from the app.
/developers/build/prebuilts/androidtv/leanback/
DREADME.md3 The Leanback API Demo/Video By Googles app is designed to run on an Android TV device and demonstra…
12 * Compile and deploy to your Android TV device.

1234