Home
last modified time | relevance | path

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

12345

/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 …]
DDeviceTestCase.java41 public void setDevice(IDevice device) { in setDevice() argument
42 mDevice = device; in setDevice()
/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
82 def get_processes(device): argument
114 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/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/python-packages/adb/
Dtest.py38 device = adb.get_device('foo')
39 self.assertEqual(device.serial, 'foo')
45 device = adb.get_device()
46 self.assertEqual(device.serial, 'foo')
52 device = adb.get_device('foo')
53 self.assertEqual(device.serial, 'foo')
66 device = adb.get_device()
67 self.assertEqual(device.serial, 'foo')
/development/scripts/
Dgdbclient.py39 def get_tracer_pid(device, pid): argument
43 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
82 def verify_device(root, device): argument
83 name = device.get_prop("ro.product.name")
90 def get_remote_pid(device, process_name): argument
91 processes = gdbrunner.get_processes(device)
104 def ensure_linker(device, sysroot, is64bit): argument
111 device.pull(remote_path, local_path)
126 device = args.device
138 pid = get_remote_pid(device, args.target_name)
[all …]
Dusb-reset-by-serial.py56 def issue_ioctl_to_device(device): argument
60 fd = open(device, "wb")
63 "%s" % (device, e.strerror))
64 verbose(1, "issuing USBDEVFS_RESET ioctl() to %s" % device)
113 device = None
120 device = "/dev/bus/usb/%03d/%03d" % (p1, p2)
121 verbose(1, "setting device: %s" % device)
128 "%s, invoking reset" % (ser, device))
129 issue_ioctl_to_device(device)
/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/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/tools/emulator/skins/WXGA800/
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/WSVGA/
Dlayout13 device {
45 name device
72 name device
/development/vndk/tools/sourcedr/Documentation/
Dlist-installed-files-from-source-dirs.md57 `device` or `vendor` directories and installed to the system partition. This
61 the device. The specified path must be relative to the file system root of
62 the device. The default value is `system`.
67 `device:vendor`.
72 List the files from `device/google` and installed to `/system`:
77 --source-filter device/google \
82 List the files from `device/google` and installed into `/system/lib64` with:
87 --source-filter device/google \
/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/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());
/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());
/development/samples/browseable/RuntimePermissionsWear/
D_index.jd9 a wearable device and a mobile device.
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dproject.csv3 2018/03/02,device/google/cuttlefish_common,,Downstream Only Projects,0,0,0,0,0
44 2018/03/02,device/generic/mini-emulator-mips,device/generic/mini-emulator-mips,Intact Projects,0,0,…
49 2018/03/02,device/huawei/angler-kernel,device/huawei/angler-kernel,Modified Projects,1,0,0,0,0
69 2018/03/02,device/google/marlin,,Downstream Only Projects,0,0,0,0,0
70 2018/03/02,device/generic/uml,,Downstream Only Projects,0,0,0,0,0
71 2018/03/02,device/generic/car,,Downstream Only Projects,0,0,0,0,0
80 2018/03/02,device/google/cuttlefish_kernel,,Downstream Only Projects,0,0,0,0,0
84 2018/03/02,device/google/contexthub,device/google/contexthub,Modified Projects,509,91811,55404,1472…
95 2018/03/02,device/common,device/common,Modified Projects,3,52,14,66,10
100 2018/03/02,device/generic/common,device/generic/common,Modified Projects,1,73,0,73,5
[all …]
/development/tools/labpretest/sholes/
Dcustom_flash.sh33 secure=`$fastboot -s $device getvar secure 2>&1 | sed -n 's/secure: \([a-z]*\)\n*/\1/ p'`
49 log_print "downloading bootloader image to $device"

12345