Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 119) 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/winscope/src/trace_collection/controller/
Dtracing_session.ts26 async start(device: AdbDeviceConnection) {
27 await this.setup(device);
28 await device.startTrace(this.target);
32 async stop(device: AdbDeviceConnection) {
36 await device.endTrace(this.target);
37 await this.moveFiles(device);
41 async dump(device: AdbDeviceConnection) {
42 await this.setup(device);
44 const output = await device.runShellCommand(this.target.startCmd);
50 async moveFiles(device: AdbDeviceConnection) {
[all …]
Dtrace_collection_controller.ts76 async onDestroy(device: AdbDeviceConnection) {
78 await session.onDestroy(device);
84 device: AdbDeviceConnection,
87 const perfettoModerator = new PerfettoSessionModerator(device, false);
93 await this.prepareDevice(device, perfettoModerator);
95 await session.start(device);
102 async endTrace(device: AdbDeviceConnection) {
104 await session.stop(device);
110 await this.moveFiles(device, this.activeTracingSessions);
116 device: AdbDeviceConnection,
[all …]
/development/samples/SceneTransitionLayoutDemo/benchmark/utils/src/com/android/compose/animation/scene/benchmark/
DSceneTransitionLayoutDemoBenchmarkUtils.kt67 val device = device() in startActivity() constant
68 device.pressHome() in startActivity()
70 device.waitForObject(sceneSelector(initialScene)) in startActivity()
82 val device = device() in SceneTransitionLayoutBenchmarkScope() constant
83 device.waitForObject(StlDemoConstants.ROOT_STL_SELECTOR_IDLE) in SceneTransitionLayoutBenchmarkScope()
86 device.waitUntilGone(sceneSelector(toScene)) in SceneTransitionLayoutBenchmarkScope()
100 val device = device() in swipeFromScene() constant
103 device.waitForObject(swipeOn) in swipeFromScene()
104 device in swipeFromScene()
110 device.waitUntilGone(sceneSelector(fromScene)) in swipeFromScene()
[all …]
/development/python-packages/gdbrunner/gdbrunner/
D__init__.py69 if result.device == "-a":
70 result.device = adb.get_device(adb_path=adb_path)
71 elif result.device == "-d":
72 result.device = adb.get_usb_device(adb_path=adb_path)
73 elif result.device == "-e":
74 result.device = adb.get_emulator_device(adb_path=adb_path)
76 result.device = adb.get_device(result.serial, adb_path=adb_path)
79 result.device = None
84 def get_processes(device): argument
116 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/VirtualDeviceManager/
Dsetup.sh79 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device root
80 …if ! adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device shell touch /system/test_verity > /dev/null;…
82 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device disable-verity
83 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device reboot
84 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device root
86 … run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device shell rm /system/test_verity
90 adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device uninstall "${PKG_NAME}" > /dev/null 2>&1
92 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device remount -R
93 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device shell stop
95 run_cmd_with_retries adb -s "${TARGET_DEVICE_SERIAL}" wait-for-device shell mkdir -p "${APK_DIR}"
[all …]
DREADME.md20 * **Host**: installed on the host device, creates and manages a virtual
21 device, which represents the client device and communicates with the
22 physical client device by sending audio and frames of the virtual displays,
24 launch apps on the virtual device, which are streamed to the client.
26 * **Client**: installed on the client device. It receives the audio and frames
27 from the host device, which it renders, and sends back input and sensor
29 same time, it's best to use a large screen device as a client, like a Pixel
34 difference in the behavior when they are streamed to a virtual device.
38 * An Android device running Android 13 or newer to act as a client device.
40 * A *rooted* Android device running Android 14 or newer (e.g. a `userdebug` or
[all …]
/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/python-packages/adb/tests/
Dtest_adb.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.py70 def get_tracer_pid(device: adb.AndroidDevice, pid: int | str | None) -> int:
74 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
140 def verify_device(device: adb.AndroidDevice) -> None:
141 names = set([device.get_prop("ro.build.product"), device.get_prop("ro.product.name")])
148 def get_device_dir_exists(device: adb.AndroidDevice, dir: str) -> bool:
149 exit_code, _, _ = device.shell_nocheck(['[', '-d', dir, ']'])
153 def get_remote_pid(device: adb.AndroidDevice, process_name: str) -> int:
154 processes = gdbrunner.get_processes(device)
174 def ensure_linker(device: adb.AndroidDevice, sysroot: str, interp: str | None) -> str | None:
205 interp_real, _ = device.shell(["realpath", interp])
[all …]
Dlldbclient.py70 def get_tracer_pid(device: adb.AndroidDevice, pid: int | str | None) -> int:
74 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
140 def verify_device(device: adb.AndroidDevice) -> None:
141 names = set([device.get_prop("ro.build.product"), device.get_prop("ro.product.name")])
148 def get_device_dir_exists(device: adb.AndroidDevice, dir: str) -> bool:
149 exit_code, _, _ = device.shell_nocheck(['[', '-d', dir, ']'])
153 def get_remote_pid(device: adb.AndroidDevice, process_name: str) -> int:
154 processes = gdbrunner.get_processes(device)
174 def ensure_linker(device: adb.AndroidDevice, sysroot: str, interp: str | None) -> str | None:
205 interp_real, _ = device.shell(["realpath", interp])
[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/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/tools/winscope/src/app/components/
Dcollect_traces_component.ts489 onDeviceClick(device: AdbDeviceConnection) {
490 this.selectedDevice = device;
492 this.storage?.add(this.storeKeyLastDevice, device.id);
567 const device = devices.find((d) => d.id === lastId); constant
568 if (device && device.getState() === AdbDeviceState.AVAILABLE) {
569 this.selectedDevice = device;
571 this.storage?.add(this.storeKeyLastDevice, device.id);
691 const device = assertDefined(this.selectedDevice); constant
693 await controller.dumpState(device, requestedDumpsWithConfig);
718 getDeviceName(device: AdbDeviceConnection): string {
[all …]
/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/tools/emulator/skins/WXGA800/
Dlayout13 device {
45 name device
72 name device
/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/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()

12345