Home
last modified time | relevance | path

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

123456

/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/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/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-9/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 …]
Dclk.h15 struct device;
19 struct clk *clk_get(struct device *dev, const char *id);
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 *,
Dattribute_container.h25 int (*match)(struct attribute_container *, struct device *);
31 …class_device *attribute_container_find_class_device(struct attribute_container *, struct device *);
/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
120 output, _ = device.shell([ps_script])
[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/ndk/platforms/android-24/include/camera/
DNdkCameraDevice.h98 typedef void (*ACameraDevice_StateCallback)(void* context, ACameraDevice* device);
115 typedef void (*ACameraDevice_ErrorStateCallback)(void* context, ACameraDevice* device, int error);
173 camera_status_t ACameraDevice_close(ACameraDevice* device);
184 const char* ACameraDevice_getId(const ACameraDevice* device);
285 const ACameraDevice* device, ACameraDevice_request_template templateId,
656 ACameraDevice* 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/scripts/
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)
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/ndk/platforms/android-24/include/vulkan/
Dvulkan.h2263 typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName);
2265 typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAlloca…
2270 typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t…
2273 typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device);
2274 typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAl…
2275 typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocati…
2276 typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize …
2277 typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory);
2278 typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCo…
2279 typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRa…
[all …]
/development/tools/emulator/skins/WXGA800/
Dlayout13 device {
45 name device
72 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/tools/emulator/skins/WXGA800-7in/
Dlayout13 device {
46 name device
74 name device
/development/samples/browseable/RuntimePermissionsWear/
D_index.jd9 a wearable device and a mobile device.
/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/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/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());

123456