Home
last modified time | relevance | path

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

1234

/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/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()
DAdbSocket.java29 public AdbSocket(AdbDevice device, int id) { in AdbSocket() argument
30 mDevice = device; in AdbSocket()
/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 …]
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 *);
Dmiscdevice.h44 struct device;
52 struct device *dev;
Dmca.h42 struct device dev;
62 struct device dev;
/development/tools/emulator/system/camera/
DEmulatedBaseCamera.cpp37 struct hw_device_t* device, in EmulatedBaseCamera() argument
48 device->tag = HARDWARE_DEVICE_TAG; in EmulatedBaseCamera()
49 device->version = cameraVersion; in EmulatedBaseCamera()
50 device->module = module; in EmulatedBaseCamera()
51 device->close = NULL; // Must be filled in by child implementation in EmulatedBaseCamera()
DEmulatedBaseCamera.h39 struct hw_device_t* device,
65 virtual status_t connectCamera(hw_device_t** device) = 0;
DEmulatedCameraFactory.h68 int cameraDeviceOpen(int camera_id, hw_device_t** device);
90 hw_device_t** 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/tools/emulator/opengl/system/gralloc/
Dgralloc.cpp77 alloc_device_t device; member
87 framebuffer_device_t device; member
417 gralloc_free(&d->device, d->allocListHead->handle); in gralloc_device_close()
765 hw_device_t** device) in gralloc_device_open() argument
773 return sFallback->common.methods->open(&sFallback->common, name, device); in gralloc_device_open()
797 dev->device.common.tag = HARDWARE_DEVICE_TAG; in gralloc_device_open()
798 dev->device.common.version = 0; in gralloc_device_open()
799 dev->device.common.module = const_cast<hw_module_t*>(module); in gralloc_device_open()
800 dev->device.common.close = gralloc_device_close; in gralloc_device_open()
802 dev->device.alloc = gralloc_alloc; in gralloc_device_open()
[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/WXGA720/
Dlayout13 device {
45 name device
72 name device
/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/WSVGA/
Dlayout13 device {
45 name device
72 name device
/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/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"

1234