Home
last modified time | relevance | path

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

123456

/development/tools/labpretest/
Dlabpretest.sh24 device=''
31 d) device="$OPTARG";;
80 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'`
86 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'`
113 while [ "$device" != "$fdevice" -a $n -le 30 ]; do
115 fdevice=`$FASTBOOT devices | sed -n "s/\($device\).*/\1/ p"`
140 $ADB -s $device reboot bootloader
158 $FASTBOOT -s $device reboot-bootloader
177 $FASTBOOT -s $device reboot
178 $ADB -s $device wait-for-device
[all …]
/development/tools/hosttestlib/src/com/android/hosttest/
DDeviceConnector.java46 for (IDevice device : adbBridge.getDevices()) { in connectToDevice()
48 return device; in connectToDevice()
49 } else if (deviceSerial.equals(device.getSerialNumber())) { in connectToDevice()
50 return device; in connectToDevice()
57 IDevice device = listener.waitForDevice(MAX_WAIT_DEVICE_TIME); in connectToDevice() local
59 if (device == null) { in connectToDevice()
62 System.out.println(String.format("Connected to %s", device.getSerialNumber())); in connectToDevice()
64 return device; in connectToDevice()
78 public void deviceChanged(IDevice device, int changeMask) { in deviceChanged() argument
81 public void deviceConnected(IDevice device) { in deviceConnected() argument
[all …]
/development/python-packages/gdbrunner/
D__init__.py67 if result.device == "-a":
68 result.device = adb.get_device(adb_path=adb_path)
69 elif result.device == "-d":
70 result.device = adb.get_usb_device(adb_path=adb_path)
71 elif result.device == "-e":
72 result.device = adb.get_emulator_device(adb_path=adb_path)
74 result.device = adb.get_device(result.serial, adb_path=adb_path)
77 result.device = None
93 def get_processes(device): argument
115 output, _ = device.shell([ps_script])
[all …]
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbTestActivity.java60 for (UsbDevice device : mManager.getDeviceList().values()) { in onCreate()
61 UsbInterface intf = findAdbInterface(device); in onCreate()
62 if (setAdbInterface(device, intf)) { in onCreate()
108 public void deviceOnline(AdbDevice device) { in deviceOnline() argument
110 m.obj = device; in deviceOnline()
114 private void handleDeviceOnline(AdbDevice device) { in handleDeviceOnline() argument
115 log("device online: " + device.getSerial()); in handleDeviceOnline()
116 device.openSocket("shell:exec logcat"); in handleDeviceOnline()
120 private boolean setAdbInterface(UsbDevice device, UsbInterface intf) { in setAdbInterface() argument
131 if (device != null && intf != null) { in setAdbInterface()
[all …]
DAdbMessage.java106 public boolean write(AdbDevice device) { in write() argument
107 synchronized (device) { in write()
108 UsbRequest request = device.getOutRequest(); in write()
113 request = device.getOutRequest(); in write()
118 device.releaseOutRequest(request); in write()
124 device.releaseOutRequest(request); in write()
/development/ndk/platforms/android-3/include/linux/
Ddevice.h30 struct device;
48 int (*match)(struct device * dev, struct device_driver * drv);
49 int (*uevent)(struct device *dev, char **envp,
51 int (*probe)(struct device * dev);
52 int (*remove)(struct device * dev);
53 void (*shutdown)(struct device * dev);
54 int (*suspend)(struct device * dev, pm_message_t state);
55 int (*resume)(struct device * dev);
58 struct device * bus_find_device(struct bus_type *bus, struct device *start,
59 void *data, int (*match)(struct device *, void *));
[all …]
Dtransport_class.h22 int (*setup)(struct transport_container *, struct device *,
24 int (*configure)(struct transport_container *, struct device *,
26 int (*remove)(struct transport_container *, struct device *,
Dclk.h15 struct device;
19 struct clk *clk_get(struct device *dev, const char *id);
Dattribute_container.h25 int (*match)(struct attribute_container *, struct device *);
31 …class_device *attribute_container_find_class_device(struct attribute_container *, struct device *);
/development/samples/browseable/DeviceOwner/
D_index.jd8 This app demonstrates how to use device owner features. Use the NfcProvisioning sample to set up
9 this app as the device owner of your test device (This requires wiping out the device and resseting
10 it as an unprovisioned device). As a device owner, this app can configure global settings, and
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
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 …]
/development/scripts/
Dgdbclient.py85 def get_remote_pid(device, process_name): argument
86 processes = gdbrunner.get_processes(device)
99 def ensure_linker(device, sysroot, is64bit): argument
106 device.pull(remote_path, local_path)
121 device = args.device
131 pid = get_remote_pid(device, args.target_name)
138 binary_file, local = gdbrunner.find_file(device, run_cmd[0], sysroot,
143 binary_file, local = gdbrunner.find_binary(device, pid, sysroot,
212 device = args.device
214 if device is None:
[all …]
/development/samples/browseable/BluetoothLeGatt/src/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 …]
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java99 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onResume() local
101 setDevice(device); in onResume()
103 if (mDevice != null && mDevice.equals(device)) { in onResume()
114 private void setDevice(UsbDevice device) { in setDevice() argument
115 Log.d(TAG, "setDevice " + device); in setDevice()
116 if (device.getInterfaceCount() != 1) { in setDevice()
120 UsbInterface intf = device.getInterface(0); in setDevice()
132 mDevice = device; in setDevice()
134 if (device != null) { in setDevice()
135 UsbDeviceConnection connection = mUsbManager.openDevice(device); in setDevice()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DDeviceListActivity.java111 for (BluetoothDevice device : pairedDevices) { in onCreate()
112 mPairedDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress()); in onCreate()
185 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
187 if (device.getBondState() != BluetoothDevice.BOND_BONDED) {
188 mNewDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress());
DBluetoothChatService.java129 public synchronized void connect(BluetoothDevice device, boolean secure) { in connect() argument
130 if (D) Log.d(TAG, "connect to: " + device); in connect()
141 mConnectThread = new ConnectThread(device, secure); in connect()
152 device, final String socketType) { in connected() argument
178 bundle.putString(BluetoothChat.DEVICE_NAME, device.getName()); in connected()
355 public ConnectThread(BluetoothDevice device, boolean secure) { in ConnectThread() argument
356 mmDevice = device; in ConnectThread()
364 tmp = device.createRfcommSocketToServiceRecord( in ConnectThread()
367 tmp = device.createInsecureRfcommSocketToServiceRecord( in ConnectThread()
/development/samples/browseable/BluetoothChat/src/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.java140 public synchronized void connect(BluetoothDevice device, boolean secure) { in connect() argument
141 Log.d(TAG, "connect to: " + device); in connect()
158 mConnectThread = new ConnectThread(device, secure); in connect()
170 device, final String socketType) { in connected() argument
202 bundle.putString(Constants.DEVICE_NAME, device.getName()); in connected()
380 public ConnectThread(BluetoothDevice device, boolean secure) { in ConnectThread() argument
381 mmDevice = device; in ConnectThread()
389 tmp = device.createRfcommSocketToServiceRecord( in ConnectThread()
392 tmp = device.createInsecureRfcommSocketToServiceRecord( in ConnectThread()
/development/tools/emulator/skins/WSVGA/
Dlayout13 device {
45 name device
72 name device
/development/tools/emulator/skins/WXGA800-7in/
Dlayout13 device {
46 name device
74 name device
/development/tools/emulator/skins/WXGA720/
Dlayout13 device {
45 name device
72 name device
/development/tools/emulator/skins/WXGA800/
Dlayout13 device {
45 name device
72 name device
/development/samples/browseable/MidiSynth/src/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()
/development/samples/browseable/MidiScope/src/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()
/development/samples/BluetoothHDP/
D_index.jd5 …nstrates how to communicate with a Bluetooth Health Device Profile (HDP) device. This feature is …
8 so on. For a list of supported devices and their corresponding device data
14device type include blood pressure monitor, glucose meter, thermometer, etc. Upon connection, th…

123456