/frameworks/base/wifi/java/android/net/wifi/p2p/ |
WifiP2pProvDiscEvent.java | 37 public WifiP2pDevice device; field in class:WifiP2pProvDiscEvent 43 device = new WifiP2pDevice(); 71 device = new WifiP2pDevice(); 72 device.deviceAddress = tokens[1]; 81 sbuf.append(device);
|
/hardware/libhardware/include/hardware/ |
local_time_hal.h | 59 * Common methods of the local time hardware device. This *must* be the first member of 105 /** convenience API for opening and closing a supported device */ 109 struct local_time_hw_device** device) 112 (struct hw_device_t**)device); 115 static inline int local_time_hw_device_close(struct local_time_hw_device* device) 117 return device->common.close(&device->common);
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ |
HierarchyViewer.java | 20 import com.android.hierarchyviewer.device.Window; 23 import com.android.hierarchyviewer.device.DeviceBridge; 71 for (IDevice device : DeviceBridge.getDevices()) { 72 printDevice(device); 77 private static void printDevice(IDevice device) { 78 System.out.println(device.toString() + "\t\t" + 79 (device.isEmulator() ? "emulator" : "device")); 83 IDevice device = selectDevice(deviceName); local 84 if (device != null) 138 String device = null; local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetStateMachine.java | 165 // mCurrentDevice is the device connected before the state changes 166 // mTargetDevice is the device to be connected 167 // mIncomingDevice is the device connecting to us, valid only in Pending state 178 // Connecting to a device, Pending 180 // Disconnecting device, Connecting to new device 183 // Disconnecting device Pending 342 BluetoothDevice device = (BluetoothDevice) message.obj; local 343 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 346 if (!connectHfpNative(getByteAddress(device)) ) { 488 BluetoothDevice device = (BluetoothDevice) message.obj; local 774 BluetoothDevice device = (BluetoothDevice) message.obj; local 835 BluetoothDevice device = (BluetoothDevice) message.obj; local 857 BluetoothDevice device = mCurrentDevice; local 888 BluetoothDevice device = (BluetoothDevice) message.obj; local 898 BluetoothDevice device = (BluetoothDevice) message.obj; local 914 BluetoothDevice device = (BluetoothDevice) message.obj; local 920 BluetoothDevice device = (BluetoothDevice) message.obj; local 926 BluetoothDevice device = (BluetoothDevice) message.obj; local 1180 BluetoothDevice device = (BluetoothDevice) message.obj; local 1255 BluetoothDevice device = (BluetoothDevice)message.obj; local 1330 BluetoothDevice device = (BluetoothDevice) message.obj; local 1349 BluetoothDevice device = (BluetoothDevice)message.obj; local 1359 BluetoothDevice device = (BluetoothDevice)message.obj; local 1628 BluetoothDevice device = (BluetoothDevice) message.obj; local 2219 BluetoothDevice device = null; local 2695 BluetoothDevice device = getDeviceForMessage(DIALING_OUT_TIMEOUT); local 3241 BluetoothDevice device = getDeviceForMessage(CLCC_RSP_TIMEOUT); local 3328 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); local 3398 BluetoothDevice device = null; field in class:HeadsetStateMachine.StackEvent [all...] |
/frameworks/base/core/java/android/bluetooth/ |
IBluetoothHealth.aidl | 34 boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 35 boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, 37 boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, int id); 38 ParcelFileDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 41 int getHealthDeviceConnectionState(in BluetoothDevice device);
|
BluetoothHeadsetClient.java | 467 * Connects to remote device. 471 * device automatically and will process the new one. 473 * @param device a remote device we want connect to 479 public boolean connect(BluetoothDevice device) { 480 if (DBG) log("connect(" + device + ")"); 482 isValidDevice(device)) { 484 return mService.connect(device); 495 * Disconnects remote device 497 * @param device a remote device we want disconnec [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpService.java | 128 public boolean connect(BluetoothDevice device) { 132 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { 135 ParcelUuid[] featureUuids = device.getUuids(); 142 int connectionState = mStateMachine.getConnectionState(device); 148 mStateMachine.sendMessage(A2dpStateMachine.CONNECT, device); 152 boolean disconnect(BluetoothDevice device) { 155 int connectionState = mStateMachine.getConnectionState(device); 161 mStateMachine.sendMessage(A2dpStateMachine.DISCONNECT, device); 175 int getConnectionState(BluetoothDevice device) { 177 return mStateMachine.getConnectionState(device); [all...] |
A2dpSinkService.java | 104 public boolean connect(BluetoothDevice device) { 108 int connectionState = mStateMachine.getConnectionState(device); 114 mStateMachine.sendMessage(A2dpSinkStateMachine.CONNECT, device); 118 boolean disconnect(BluetoothDevice device) { 121 int connectionState = mStateMachine.getConnectionState(device); 127 mStateMachine.sendMessage(A2dpSinkStateMachine.DISCONNECT, device); 141 int getConnectionState(BluetoothDevice device) { 143 return mStateMachine.getConnectionState(device); 146 BluetoothAudioConfig getAudioConfig(BluetoothDevice device) { 148 return mStateMachine.getAudioConfig(device); [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/device/ |
DeviceBridge.java | 17 package com.android.hierarchyviewer.device; 64 public static boolean isViewServerRunning(IDevice device) { 68 if (device.isOnline()) { 69 device.executeShellCommand(buildIsServerRunningShellCommand(), 72 if (VersionLoader.loadProtocolVersion(device) > 2) { 89 public static boolean startViewServer(IDevice device) { 90 return startViewServer(device, Configuration.DEFAULT_SERVER_PORT); 93 public static boolean startViewServer(IDevice device, int port) { 97 if (device.isOnline()) { 98 device.executeShellCommand(buildStartServerShellCommand(port) [all...] |
/cts/apps/cts-usb-accessory/ |
cts-usb-accessory.c | 70 static void send_string(struct usb_device *device, int index, const char* string) { 71 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 85 struct usb_device *device = usb_device_open(devname); local 86 if (!device) { 91 vendorId = usb_device_get_vendor_id(device); 92 productId = usb_device_get_product_id(device); 101 printf("Found Android device in accessory mode (%x:%x)...\n", 103 sDevice = device; 105 usb_descriptor_iter_init(device, &iter); 126 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) [all...] |
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
accessorychat.c | 77 static void send_string(struct usb_device *device, int index, const char* string) { 78 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 92 struct usb_device *device = usb_device_open(devname); local 93 if (!device) { 98 vendorId = usb_device_get_vendor_id(device); 99 productId = usb_device_get_product_id(device); 109 printf("Found android device in accessory mode\n"); 110 sDevice = device; 112 usb_descriptor_iter_init(device, &iter); 133 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
PanProfile.java | 42 // Tethering direction for each device 48 // Order of this profile in device profiles list 85 public boolean connect(BluetoothDevice device) { 93 return mService.connect(device); 96 public boolean disconnect(BluetoothDevice device) { 98 return mService.disconnect(device); 101 public int getConnectionStatus(BluetoothDevice device) { 105 return mService.getConnectionState(device); 108 public boolean isPreferred(BluetoothDevice device) { 112 public int getPreferred(BluetoothDevice device) { [all...] |
PbapServerProfile.java | 42 // Order of this profile in device profiles list 45 // The UUIDs indicate that remote device might access pbap server 84 public boolean connect(BluetoothDevice device) { 90 public boolean disconnect(BluetoothDevice device) { 95 public int getConnectionStatus(BluetoothDevice device) { 99 if (mService.isConnected(device)) 105 public boolean isPreferred(BluetoothDevice device) { 109 public int getPreferred(BluetoothDevice device) { 113 public void setPreferred(BluetoothDevice device, boolean preferred) { 125 public int getNameResource(BluetoothDevice device) { [all...] |
/system/gatekeeper/tests/ |
gatekeeper_device_test.cpp | 30 gatekeeper_device_initialize(&device); 34 gatekeeper_close(device); 49 gatekeeper_device_t *device; member in class:GateKeeperDeviceTest 61 ret = device->enroll(device, 0, NULL, 0, NULL, 0, password_payload, password_len, 67 ret = device->verify(device, 0, 0, password_handle, password_handle_length, 82 ret = device->enroll(device, 0, NULL, 0, NULL, 0, password_payload, password_len, 90 ret = device->verify(device, 0, 0, password_handle, password_handle_length [all...] |
/external/deqp/android/scripts/ |
install.py | 47 def installToDevice (device, printPrefix=""): 49 print "Installing to %s (%s)...\n" % (device.serial, device.model), 51 print printPrefix + "Installing to %s\n" % device.serial, 53 install(['-s', device.serial], printPrefix) 56 padLen = max([len(device.model) for device in devices])+1 58 common.parallelApply(installToDevice, [(device, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
HidService.java | 152 BluetoothDevice device = (BluetoothDevice) msg.obj; 153 if (!connectHidNative(Utils.getByteAddress(device)) ) { 154 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTING); 155 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); 158 mTargetDevice = device; 163 BluetoothDevice device = (BluetoothDevice) msg.obj; 164 if (!disconnectHidNative(Utils.getByteAddress(device)) ) { 165 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTING); 166 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); 173 BluetoothDevice device = getDevice((byte[]) msg.obj) [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/device/ |
DeviceInfoCollector.java | 16 package com.android.cts.tradefed.device; 24 import com.android.tradefed.device.DeviceNotAvailableException; 25 import com.android.tradefed.device.ITestDevice; 34 * Collects info from device under test. 36 * This class simply serves as a conduit for grabbing info from device using the device info 52 private static final String DEVICE_INFO_FILES = "device-info-files"; 65 * Installs and runs the device info collector instrumentation, and forwards results 68 * @param device 72 public static void collectDeviceInfo(ITestDevice device, String abi, File testApkDir [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
ApkInstallManager.java | 34 * Registers which apk was installed on which device. 37 * information about whether a new APK should be installed on a device prior to running the 40 * The manager uses {@link IProject} and {@link IDevice} to identify the target device and the 51 * Internal struct to associate a project and a device. 54 public ApkInstall(IProject project, String packageName, IDevice device) { 57 this.device = device; 65 return (device == apkObj.device && project.equals(apkObj.project) && 74 return (device.getSerialNumber() + project.getName() + packageName).hashCode() 79 final IDevice device; field in class:ApkInstallManager.ApkInstall [all...] |
/build/core/ |
device.mk | 22 define dump-device 30 $(foreach p,$(DEVICES),$(call dump-device,$(p))) 34 # $(1): device to inherit 36 define inherit-device 42 # $(1): device makefile list 51 # $(1): short device name like "sooner" 53 define _resolve-short-device-name 65 $(error No matches for device "$(dn)"), \ 66 $(error Device "$(dn)" ambiguous: matches $(d)) \ 72 # $(1): short device name like "sooner [all...] |
/external/blktrace/btt/ |
bno_dump.c | 27 static FILE *bno_dump_open(__u32 device, char rwc) 33 mjr = device >> MINORBITS; 34 mnr = device & ((1 << MINORBITS) - 1); 51 void *bno_dump_alloc(__u32 device) 58 bdp->rfp = bno_dump_open(device, 'r'); 59 bdp->wfp = bno_dump_open(device, 'w'); 60 bdp->cfp = bno_dump_open(device, 'c');
|
/external/libmtp/examples/ |
delfile.c | 3 * Example program to delete a file off the device. 33 extern LIBMTP_mtpdevice_t *device; 50 ret = LIBMTP_Delete_Object(device, id); 52 LIBMTP_Dump_Errorstack(device); 53 LIBMTP_Clear_Errorstack(device); 103 ret = LIBMTP_Delete_Object(device, id); 107 LIBMTP_Dump_Errorstack(device); 108 LIBMTP_Clear_Errorstack(device);
|
newplaylist.c | 3 * Example program to create a playlist on a device. 39 LIBMTP_mtpdevice_t *device = NULL; local 83 device = LIBMTP_Get_First_Device(); 84 if (device == NULL) { 95 int ret = LIBMTP_Create_New_Playlist(device,playlist); 98 LIBMTP_Dump_Errorstack(device); 99 LIBMTP_Clear_Errorstack(device); 105 LIBMTP_Release_Device(device);
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
MtpClient.java | 44 * and notifies the application when the MTP device list changes. 57 // so we can inform when the device has been detached. 114 * Called when a new device has been added 116 * @param device the new device that was added 118 public void deviceAdded(MtpDevice device); 121 * Called when a new device has been removed 123 * @param device the device that was removed 125 public void deviceRemoved(MtpDevice device); 274 MtpDevice device = getDevice(deviceName); local 306 MtpDevice device = getDevice(deviceName); local 321 MtpDevice device = getDevice(deviceName); local 342 MtpDevice device = getDevice(deviceName); local 378 MtpDevice device = getDevice(deviceName); local 393 MtpDevice device = getDevice(deviceName); local 411 MtpDevice device = getDevice(deviceName); local [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
VersionLoader.java | 21 import com.android.hierarchyviewer.device.DeviceBridge; 32 public static int loadServerVersion(IDevice device) { 33 return loadVersion(device, "SERVER"); 36 public static int loadProtocolVersion(IDevice device) { 37 return loadVersion(device, "PROTOCOL"); 40 private static int loadVersion(IDevice device, String command) { 48 DeviceBridge.getDeviceLocalPort(device)));
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
Sector.java | 31 private final BlockDevice device; field in class:Sector 41 protected Sector(BlockDevice device, long offset, int size) { 43 this.device = device; 50 * Reads the contents of this {@code Sector} from the device into the 59 device.read(offset, buffer); 74 * @return this {@code Sector}'s device 77 return this.device; 85 device.write(offset, buffer); 122 * Returns the device offset to this {@code Sector} [all...] |