Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 10 of 10) sorted by relevance

/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DScanResultAdapter.java61 return mArrayList.get(position).getDevice().getAddress().hashCode(); in getItemId()
78 String name = scanResult.getDevice().getName(); in getView()
83 deviceAddressView.setText(scanResult.getDevice().getAddress()); in getView()
95 if (mArrayList.get(i).getDevice().getAddress().equals(address)) { in getPosition()
110 int existingPosition = getPosition(scanResult.getDevice().getAddress()); in add()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DWiFiDirectActivity.java305 if (fragment.getDevice() == null in cancelDisconnect()
306 || fragment.getDevice().status == WifiP2pDevice.CONNECTED) { in cancelDisconnect()
308 } else if (fragment.getDevice().status == WifiP2pDevice.AVAILABLE in cancelDisconnect()
309 || fragment.getDevice().status == WifiP2pDevice.INVITED) { in cancelDisconnect()
DDeviceListFragment.java66 public WifiP2pDevice getDevice() { in getDevice() method in DeviceListFragment
/development/samples/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/
DImmersiveActivity.java124 if (event.getDevice().supportsSource(InputDevice.SOURCE_TOUCHSCREEN)) { in onCreate()
158 if (event.getDevice() == null in onCreate()
159 || !event.getDevice().supportsSource(InputDevice.SOURCE_MOUSE)) { in onCreate()
DDisplayAdapter.java352 if (event.getDevice().supportsSource(InputDevice.SOURCE_TOUCHSCREEN)) { in onBind()
392 if (event.getDevice() == null in onBind()
393 || !event.getDevice().supportsSource(InputDevice.SOURCE_MOUSE)) { in onBind()
/development/samples/ControllerSample/src/com/example/inputmanagercompat/
DInputManagerV9.java69 if (null == InputDevice.getDevice(id)) { in handleMessage()
99 return InputDevice.getDevice(id); in getInputDevice()
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DDeviceScanActivity.java149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); in onListItemClick()
199 public BluetoothDevice getDevice(int position) { in getDevice() method in DeviceScanActivity.LeDeviceListAdapter
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java231 public InputDevice getDevice() { in getDevice() method in GameControllerInput.InputDeviceState
370 mContext, mState.getDevice().toString(), Toast.LENGTH_LONG); in onItemClick()
381 mDeviceNameTextColumn.setContent(state.getDevice().getName()); in show()
DGameView.java218 mLastInputDevice = event.getDevice(); in onGenericMotionEvent()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java255 InputDevice dev = InputDevice.getDevice(shipID); in getShipForId()
828 mInputDevice = event.getDevice(); in processJoystickInput()
1146 ship.setInputDevice(InputDevice.getDevice(deviceId)); in onInputDeviceChanged()