/developers/samples/android/common/src/java/com/example/android/common/midi/ |
MidiInputPortSelector.java | 56 public void onDeviceOpened(MidiDevice device) { 57 if (device == null) { 60 mOpenDevice = device;
|
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 60 // Use this check to determine whether BLE is supported on the device. Then you can 73 // Checks if Bluetooth is supported on the device. 115 // Ensures Bluetooth is enabled on the device. If Bluetooth is not currently enabled, 149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); local 150 if (device == null) return; 152 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName()); 153 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress()); 193 public void addDevice(BluetoothDevice device) { 194 if(!mLeDevices.contains(device)) { 195 mLeDevices.add(device); 236 BluetoothDevice device = mLeDevices.get(i); local [all...] |
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/ |
DeviceScanActivity.java | 60 // Use this check to determine whether BLE is supported on the device. Then you can 73 // Checks if Bluetooth is supported on the device. 115 // Ensures Bluetooth is enabled on the device. If Bluetooth is not currently enabled, 149 final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); local 150 if (device == null) return; 152 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName()); 153 intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress()); 193 public void addDevice(BluetoothDevice device) { 194 if(!mLeDevices.contains(device)) { 195 mLeDevices.add(device); 236 BluetoothDevice device = mLeDevices.get(i); local [all...] |
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
MidiInputPortSelector.java | 56 public void onDeviceOpened(MidiDevice device) { 57 if (device == null) { 60 mOpenDevice = device;
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
MidiInputPortSelector.java | 56 public void onDeviceOpened(MidiDevice device) { 57 if (device == null) { 60 mOpenDevice = device;
|
/device/htc/flounder/ |
aosp_flounder.mk | 18 # device-specific aspects (drivers) with a device-agnostic 35 $(call inherit-product, device/htc/flounder/product.mk) 36 $(call inherit-product, device/htc/flounder/device-lte.mk) 37 $(call inherit-product-if-exists, vendor/htc/flounder_lte/device-vendor.mk)
|
/external/autotest/client/cros/ |
verity_utils.py | 47 # Performs hashing of the backing_path and sets up a device. 49 # Sets up the mapped device and returns the path: 52 # Access the mapped device using the returned string. 64 def _device_release(self, cmd, device): 67 logging.warning("Could not release %s. Retrying..." % (device)) 68 # Other things (like cros-disks) may have the device open briefly, 70 # on who else is using the device. 71 fuser = utils.system_output('fuser -v %s' % (device), 73 lsblk = utils.system_output('lsblk %s' % (device), 83 for attr in ['mountpoint', 'device', 'loop', 'file', 'hash_file'] [all...] |
/external/autotest/client/site_tests/network_3GStressEnable/ |
network_3GStressEnable.py | 30 self.device.Enable(timeout=timeout) 32 self.device.Disable(timeout=timeout) 49 self.device = test_env.shill.find_cellular_device_object()
|
/external/autotest/client/site_tests/network_8021xEapDetection/ |
network_8021xEapDetection.py | 33 device = self._shill_proxy.find_object('Device', 35 if device is None: 36 raise error.TestFail('Device was not found.') 37 device_properties = device.GetProperties(utf8_strings=True) 38 logging.info('Device properties are %r', device_properties)
|
/external/autotest/server/cros/bluetooth/ |
bluetooth_test.py | 18 self.device - BluetoothDevice object for the device being tested 19 self.tester - BluetoothTester object for the device's partner tester 20 self.interactive - InteractiveClient object for the device 40 self.device = bluetooth_device.BluetoothDevice(device_host) 52 self.device.copy_logs(self.outputdir) 53 self.device.close()
|
/external/blktrace/btt/ |
unplug_hist.c | 33 void *unplug_hist_alloc(__u32 device) 40 hbp->dev = device; 50 dip = __dip_find(u_iop->t.device);
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
android_device_unittest.py | 32 device = device_utils.DeviceUtils(device_serial) 33 device.IsOnline = mock.MagicMock(return_value=is_online) 34 return device 51 set(device.device_id for device in 78 device = android_device.GetDevice(finder_options) 81 ' --device=015d14fec128220c\n' 82 ' --device=015d14fec128220d'], 84 self.assertIsNone(device) 89 finder_options.device = '555d14fecddddddd' # pick on [all...] |
cros_platform_backend.py | 20 def __init__(self, device=None): 21 super(CrosPlatformBackend, self).__init__(device) 22 if device and not device.is_local: 24 device.host_name, device.ssh_port, device.ssh_identity) 35 def SupportsDevice(cls, device): 36 return isinstance(device, cros_device.CrOSDevice) 39 def CreatePlatformForDevice(cls, device, finder_options) [all...] |
gpu_device.py | 6 """Provides information about an individual GPU device. 32 device = 'DEVICE = 0x%x' % self._device_id 34 device += ' (%s)' % self._device_string 35 return '%s, %s' % (vendor, device) 57 vendor and device strings.""" 62 """The GPU device's PCI ID as a number, or 0 if not available. 65 vendor and device strings.""" 79 """The GPU device's name as a string, or the empty string if not
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/pyami/installers/ubuntu/ |
ebs.py | 31 If there is already a device mounted at the specified mount point, 42 device = <the linux device the EBS volume should be mounted on> 43 mount_point = <directory to mount device, defaults to /ebs> 107 self.device = boto.config.get('EBS', 'device', '/dev/sdp') 129 ec2.attach_volume(self.volume_id, self.instance_id, self.device) 139 boto.log.info('Attached volume %s to instance %s as device %s' % (self.volume_id, self.instance_id, self.device)) 140 # now wait for the volume device to appea [all...] |
/external/deqp/external/vulkancts/framework/vulkan/ |
vkMemUtil.cpp | 45 HostPtr (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags); 57 void* mapMemory (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags) 60 VK_CHECK(vkd.mapMemory(device, mem, offset, size, flags, &hostPtr)); 65 HostPtr::HostPtr (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags) 67 , m_device (device) 69 , m_ptr (mapMemory(vkd, device, memory, offset, size, flags)) 170 SimpleAllocator::SimpleAllocator (const DeviceInterface& vk, VkDevice device, const VkPhysicalDeviceMemoryProperties& deviceMemProps) 172 , m_device (device) 213 void flushMappedMemoryRange (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size) 224 VK_CHECK(vkd.flushMappedMemoryRanges(device, 1u, &range)) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawBufferObjectUtil.hpp | 41 static de::SharedPtr<Buffer> create (const vk::DeviceInterface& vk, vk::VkDevice device, const vk::VkBufferCreateInfo &createInfo); 44 vk::VkDevice device, 49 Buffer (const vk::DeviceInterface &vk, vk::VkDevice device, vk::Move<vk::VkBuffer> object);
|
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
vktDynamicStateBufferObjectUtil.hpp | 42 static de::SharedPtr<Buffer> create (const vk::DeviceInterface& vk, vk::VkDevice device, const vk::VkBufferCreateInfo &createInfo); 45 vk::VkDevice device, 50 Buffer (const vk::DeviceInterface &vk, vk::VkDevice device, vk::Move<vk::VkBuffer> object);
|
/external/deqp/external/vulkancts/modules/vulkan/query_pool/ |
vktQueryPoolBufferObjectUtil.hpp | 41 static de::SharedPtr<Buffer> create (const vk::DeviceInterface& vk, vk::VkDevice device, const vk::VkBufferCreateInfo &createInfo); 44 vk::VkDevice device, 49 Buffer (const vk::DeviceInterface &vk, vk::VkDevice device, vk::Move<vk::VkBuffer> object);
|
/external/gptfdisk/ |
sgdisk.cc | 33 static int android_dump(char* device) { 46 if (!mbrData.ReadMBRData((string) device)) { 63 if (!gptData.LoadPartitions((string) device)) {
|
/external/libdrm/tests/util/ |
kms.c | 144 int util_open(const char *device, const char *module) 149 fd = drmOpen(module, device); 151 fprintf(stderr, "failed to open device '%s': %s\n", 159 printf("trying to open device '%s'...", modules[i]); 161 fd = drmOpen(modules[i], device); 171 fprintf(stderr, "no device found\n");
|
/external/skia/src/effects/ |
SkTestImageFilters.cpp | 14 // Simple helper canvas that "takes ownership" of the provided device, so that 15 // when this canvas goes out of scope, so will its device. Could be replaced 18 // SkCanvas canvas(device); 19 // SkAutoTUnref<SkBaseDevice> aur(device); 23 OwnDeviceCanvas(SkBaseDevice* device) : SkCanvas(device) { 24 SkSafeUnref(device);
|
/external/webrtc/talk/media/devices/ |
filevideocapturer.h | 85 // Determines if the given device is actually a video file, to be captured 87 static bool IsFileVideoCapturerDevice(const Device& device) { 88 return rtc::starts_with(device.id.c_str(), kVideoFileDevicePrefix); 91 // Creates a fake device for the given filename. 92 static Device CreateFileVideoCapturerDevice(const std::string& filename) { 95 return Device(filename, id.str()); 113 // Initializes the capturer with the given device. This should only be used 114 // if IsFileVideoCapturerDevice returned true for the given device. 115 bool Init(const Device& device) [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
ReceiverActivity.java | 41 final UsbDevice device = getIntent().getParcelableExtra(UsbManager.EXTRA_DEVICE); local 44 provider.openDevice(device.getDeviceId()); 45 final String deviceRootId = provider.getDeviceDocumentId(device.getDeviceId()); 55 Log.e(MtpDocumentsProvider.TAG, "Failed to open device", exception);
|
/frameworks/base/tools/preload2/src/com/android/preload/actions/ |
ReloadListAction.java | 33 public ReloadListAction(ClientUtils utils, IDevice device, 35 super("Reload", device); 42 Client[] clients = clientUtils.findAllClients(device);
|