Searched defs:device (Results 1 - 25 of 34) sorted by relevance

12

/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
H A DWiFiP2pService.java10 WifiP2pDevice device; field in class:WiFiP2pService
/development/tools/hosttestlib/src/com/android/hosttest/
H A DDeviceTest.java24 * Helper JUnit test that stores reference to a Android device and test data.
29 * Sets the device under test
30 * @param device the Android device to test
32 public void setDevice(IDevice device); argument
35 * Retrieves the Android device under test
36 * @return the {@link IDevice} device.
H A DDeviceTestCase.java24 * Helper JUnit test case that stores reference to an Android device and test data.
26 * Can be extended to verify an Android device's response to various adb commands.
30 /** Android device under test */
41 public void setDevice(IDevice device) { argument
42 mDevice = device;
68 // ensure device has been set before test is run
H A DDeviceConnector.java29 * The maximum time to wait for a device to be connected.
34 * Initializes DDMS library, and connects to specified Android device
36 * @param deviceSerial the device serial to connect to. If <code>null</code> connect to first
37 * discovered device.
40 * @throws IllegalArgumentException if no device cannot be found.
46 for (IDevice device : adbBridge.getDevices()) {
48 return device;
49 } else if (deviceSerial.equals(device.getSerialNumber())) {
50 return device;
54 System.out.println("Waiting for device
78 deviceChanged(IDevice device, int changeMask) argument
81 deviceConnected(IDevice device) argument
89 setDevice(IDevice device) argument
94 deviceDisconnected(IDevice device) argument
[all...]
H A DDeviceTestSuite.java26 * Helper JUnit test suite that stores reference to an Android device and test data.
50 * Overrides parent method to pass in device and test app path to included test
79 public void setDevice(IDevice device) { argument
80 mDevice = device;
/development/samples/USB/AdbTest/src/com/android/adb/
H A DAdbSocket.java20 * socket connections to a single device. Typically a socket is created
29 public AdbSocket(AdbDevice device, int id) { argument
30 mDevice = device;
H A DAdbTestActivity.java60 for (UsbDevice device : mManager.getDeviceList().values()) {
61 UsbInterface intf = findAdbInterface(device);
62 if (setAdbInterface(device, intf)) {
108 public void deviceOnline(AdbDevice device) { argument
110 m.obj = device;
114 private void handleDeviceOnline(AdbDevice device) { argument
115 log("device online: " + device.getSerial());
116 device.openSocket("shell:exec logcat");
119 // Sets the current USB device an
120 setAdbInterface(UsbDevice device, UsbInterface intf) argument
161 findAdbInterface(UsbDevice device) argument
[all...]
H A DAdbMessage.java106 public boolean write(AdbDevice device) { argument
107 synchronized (device) {
108 UsbRequest request = device.getOutRequest();
113 request = device.getOutRequest();
118 device.releaseOutRequest(request);
124 device.releaseOutRequest(request);
/development/tools/emulator/system/camera/
H A DEmulatedBaseCamera.cpp19 * functionality common to all emulated camera device versions ("fake",
37 struct hw_device_t* device,
48 device->tag = HARDWARE_DEVICE_TAG;
49 device->version = cameraVersion;
50 device->module = module;
51 device->close = NULL; // Must be filled in by child implementation
35 EmulatedBaseCamera(int cameraId, uint32_t cameraVersion, struct hw_device_t* device, struct hw_module_t* module) argument
H A DEmulatedCameraFactory.cpp51 * device, reported by the service. */
92 ALOGV("%s: Back camera device version is %d", __FUNCTION__,
144 ALOGV("%s: Front camera device version is %d", __FUNCTION__,
185 int EmulatedCameraFactory::cameraDeviceOpen(int camera_id, hw_device_t** device) argument
189 *device = NULL;
202 return mEmulatedCameras[camera_id]->connectCamera(device);
229 hw_device_t** device)
246 return gEmulatedCameraFactory.cameraDeviceOpen(atoi(name), device);
227 device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
H A DEmulatedCamera2.cpp85 status_t EmulatedCamera2::connectCamera(hw_device_t** device) { argument
86 *device = &common;
366 int EmulatedCamera2::close(struct hw_device_t* device) { argument
369 reinterpret_cast<camera2_device_t*>(device) );
371 ALOGE("%s: Unexpected NULL camera2 device", __FUNCTION__);
/development/cmds/monkey/src/com/android/commands/monkey/
H A DMonkeyKeyEvent.java47 int device, int scanCode) {
55 mDeviceId = device;
45 MonkeyKeyEvent(long downTime, long eventTime, int action, int keyCode, int repeatCount, int metaState, int device, int scanCode) argument
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
H A DMissileLauncherActivity.java99 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
101 setDevice(device);
103 if (mDevice != null && mDevice.equals(device)) {
114 private void setDevice(UsbDevice device) { argument
115 Log.d(TAG, "setDevice " + device);
116 if (device.getInterfaceCount() != 1) {
120 UsbInterface intf = device.getInterface(0);
121 // device should have one endpoint
132 mDevice = device;
134 if (device !
[all...]
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
H A DDeviceDetailFragment.java50 * A fragment that manages a particular peer and allows interaction with device
57 private WifiP2pDevice device; field in class:DeviceDetailFragment
75 config.deviceAddress = device.deviceAddress;
81 "Connecting to :" + device.deviceAddress, true, true
163 // The other device acts as the client. In this case, we enable the
175 * Updates the UI with device data
177 * @param device the device to be displayed
179 public void showDetails(WifiP2pDevice device) { argument
180 this.device
[all...]
H A DWiFiDirectActivity.java170 public void showDetails(WifiP2pDevice device) { argument
173 fragment.showDetails(device);
H A DDeviceListFragment.java48 private WifiP2pDevice device; field in class:DeviceListFragment
64 * @return this device
67 return device;
94 WifiP2pDevice device = (WifiP2pDevice) getListAdapter().getItem(position);
95 ((DeviceActionListener) getActivity()).showDetails(device);
125 WifiP2pDevice device = items.get(position);
126 if (device != null) {
130 top.setText(device.deviceName);
133 bottom.setText(getDeviceStatus(device.status));
143 * Update UI for this device
147 updateThisDevice(WifiP2pDevice device) argument
198 showDetails(WifiP2pDevice device) argument
[all...]
/development/ndk/platforms/android-3/include/linux/
H A Dmsm_audio.h58 uint32_t device; member in struct:msm_snd_device_config
68 uint32_t device; member in struct:msm_snd_volume_config
H A 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 *star
172 struct device { struct
[all...]
H A Dfd.h58 unsigned int device,head,track; member in struct:format_descr
H A Dmod_devicetable.h18 __u32 vendor, device; member in struct:pci_device_id
H A Dtelephony.h32 device, enumerator in enum:__anon302
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
H A DBluetoothChatService.java37 * incoming connections, a thread for connecting with a device, and a
68 public static final int STATE_CONNECTED = 3; // now connected to a remote device
125 * Start the ConnectThread to initiate a connection to a remote device.
126 * @param device The BluetoothDevice to connect
129 public synchronized void connect(BluetoothDevice device, boolean secure) { argument
130 if (D) Log.d(TAG, "connect to: " + device);
140 // Start the thread to connect with the given device
141 mConnectThread = new ConnectThread(device, secure);
149 * @param device The BluetoothDevice that has been connected
152 device, fina
151 connected(BluetoothSocket socket, BluetoothDevice device, final String socketType) argument
355 ConnectThread(BluetoothDevice device, boolean secure) argument
[all...]
/development/tools/emulator/system/sensors/
H A Dsensors_qemu.c122 struct sensors_poll_device_t device; member in struct:SensorPoll
405 //ALOGD("(device close) about to close fd=%d", data->events_fd);
594 struct hw_device_t* *device)
605 dev->device.common.tag = HARDWARE_DEVICE_TAG;
606 dev->device.common.version = 0;
607 dev->device.common.module = (struct hw_module_t*) module;
608 dev->device.common.close = poll__close;
609 dev->device.poll = poll__poll;
610 dev->device.activate = poll__activate;
611 dev->device
592 open_sensors(const struct hw_module_t* module, const char* name, struct hw_device_t* *device) argument
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DGameControllerInput.java93 // Register an input device listener to watch when input devices are
109 // Remove the input device listener when the activity is paused.
122 // Update device state for visualization and logging.
147 // Update device state for visualization and logging.
159 final InputDevice device = mInputManager.getInputDevice(deviceId);
160 if (device == null) {
163 state = new InputDeviceState(device);
204 * input device for diagnostic purposes.
212 public InputDeviceState(InputDevice device) { argument
213 mDevice = device;
[all...]
/development/tools/emulator/opengl/system/gralloc/
H A Dgralloc.cpp74 // Our gralloc device structure (alloc interface)
77 alloc_device_t device; member in struct:gralloc_device_t
84 // Our framebuffer device structure
87 framebuffer_device_t device; member in struct:fb_device_t
127 // gralloc device functions (alloc interface)
417 gralloc_free(&d->device, d->allocListHead->handle);
420 // free device
432 // Framebuffer device functions
765 hw_device_t** device)
773 return sFallback->common.methods->open(&sFallback->common, name, device);
763 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]

Completed in 184 milliseconds

12