HomeSort by relevance Sort by last modified time
    Searched refs:device (Results 276 - 300 of 4438) sorted by null

<<11121314151617181920>>

  /external/mesa3d/src/egl/drivers/dri2/
common.c 48 struct udev_device *device; local
56 device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev);
57 if (device == NULL) {
59 "EGL-DRI2: could not create udev device for fd %d", fd);
63 return device;
70 struct udev_device *device; local
75 device = dri2_udev_device_new_from_fd(udev, fd);
76 if (device == NULL)
79 const_device_name = udev_device_get_devnode(device);
85 udev_device_unref(device);
95 struct udev_device *device, *parent; local
    [all...]
  /frameworks/av/camera/ndk/
NdkCameraDevice.cpp 30 camera_status_t ACameraDevice_close(ACameraDevice* device) {
32 if (device == nullptr) {
33 ALOGE("%s: invalid argument! device is null", __FUNCTION__);
36 delete device;
41 const char* ACameraDevice_getId(const ACameraDevice* device) {
43 if (device == nullptr) {
44 ALOGE("%s: invalid argument! device is null", __FUNCTION__);
47 return device->getId();
52 const ACameraDevice* device,
56 if (device == nullptr || request == nullptr)
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
CachedBluetoothDeviceManager.java 54 public void onDeviceNameUpdated(BluetoothDevice device) {
55 CachedBluetoothDevice cachedDevice = findDevice(device);
63 * if this device isn't in the cache. Use {@link #addDevice}
67 * @param device the address of the Bluetooth device
68 * @return the cached device object for this device, or null if it has
71 public CachedBluetoothDevice findDevice(BluetoothDevice device) {
73 if (cachedDevice.getDevice().equals(device)) {
83 * @param device the address of the new Bluetooth devic
    [all...]
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...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
HeadsetStateMachine.java 165 // Indicates whether audio can be routed to the device.
168 // mCurrentDevice is the device connected before the state changes
169 // mTargetDevice is the device to be connected
170 // mIncomingDevice is the device connecting to us, valid only in Pending state
181 // Connecting to a device, Pending
183 // Disconnecting device, Connecting to new device
186 // Disconnecting device Pending
345 BluetoothDevice device = (BluetoothDevice) message.obj; local
346 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING
491 BluetoothDevice device = (BluetoothDevice) message.obj; local
777 BluetoothDevice device = (BluetoothDevice) message.obj; local
838 BluetoothDevice device = (BluetoothDevice) message.obj; local
860 BluetoothDevice device = mCurrentDevice; local
891 BluetoothDevice device = (BluetoothDevice) message.obj; local
901 BluetoothDevice device = (BluetoothDevice) message.obj; local
917 BluetoothDevice device = (BluetoothDevice) message.obj; local
923 BluetoothDevice device = (BluetoothDevice) message.obj; local
929 BluetoothDevice device = (BluetoothDevice) message.obj; local
1183 BluetoothDevice device = (BluetoothDevice) message.obj; local
1258 BluetoothDevice device = (BluetoothDevice)message.obj; local
1333 BluetoothDevice device = (BluetoothDevice) message.obj; local
1352 BluetoothDevice device = (BluetoothDevice)message.obj; local
1362 BluetoothDevice device = (BluetoothDevice)message.obj; local
1631 BluetoothDevice device = (BluetoothDevice) message.obj; local
2233 BluetoothDevice device = null; local
2709 BluetoothDevice device = getDeviceForMessage(DIALING_OUT_TIMEOUT); local
3260 BluetoothDevice device = getDeviceForMessage(CLCC_RSP_TIMEOUT); local
3347 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); local
3417 BluetoothDevice device = null; field in class:HeadsetStateMachine.StackEvent
    [all...]
  /cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
PackageDisabler.java 22 import com.android.tradefed.device.DeviceNotAvailableException;
23 import com.android.tradefed.device.ITestDevice;
37 public void run(ITestDevice device, IBuildInfo buildInfo)
40 if (device.getAppPackageInfo(mPackageName) != null) {
42 device.executeShellCommand("pm disable-user " + mPackageName);
  /cts/hostsidetests/sample/src/android/sample/cts/
SampleHostTest.java 19 import com.android.tradefed.device.ITestDevice;
60 ITestDevice device = getDevice(); local
62 device.executeAdbCommand("logcat", "-c");
64 device.executeShellCommand(START_COMMAND);
66 String logs = device.executeAdbCommand("logcat", "-v", "brief", "-d", CLASS + ":I", "*:S");
  /device/generic/goldfish/camera/
EmulatedBaseCamera.cpp 19 * 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
  /device/huawei/angler/
aosp_angler.mk 18 # $(call inherit-product, device/sample/products/backup_overlay.mk)
21 PRODUCT_COPY_FILES := device/huawei/angler/apns-full-conf.xml:system/etc/apns-conf.xml
34 PRODUCT_COPY_FILES += device/huawei/angler/fstab.aosp_angler:root/fstab.angler
36 $(call inherit-product, device/huawei/angler/device.mk)
37 $(call inherit-product-if-exists, vendor/huawei/angler/device-vendor.mk)
  /device/lge/bullhead/
aosp_bullhead.mk 18 # $(call inherit-product, device/sample/products/backup_overlay.mk)
21 PRODUCT_COPY_FILES := device/lge/bullhead/apns-full-conf.xml:system/etc/apns-conf.xml
34 PRODUCT_COPY_FILES += device/lge/bullhead/fstab.aosp_bullhead:root/fstab.bullhead
36 $(call inherit-product, device/lge/bullhead/device.mk)
37 $(call inherit-product-if-exists, vendor/lge/bullhead/device-vendor.mk)
  /external/libmtp/examples/
getfile.c 3 * Example program to retrieve a file off the device.
34 extern LIBMTP_mtpdevice_t *device;
47 if (LIBMTP_Get_File_To_File(device, id, to_path, progress, NULL) != 0 ) {
48 printf("\nError getting file from MTP device.\n");
49 LIBMTP_Dump_Errorstack(device);
50 LIBMTP_Clear_Errorstack(device);
83 if (LIBMTP_Get_File_To_File(device, id, file, progress, NULL) != 0 ) {
84 printf("\nError getting file from MTP device.\n");
newfolder.c 3 * Example program to create a folder on the device.
33 extern LIBMTP_mtpdevice_t *device;
46 newid = LIBMTP_Create_Folder(device, argv[1], atol(argv[2]), atol(argv[3]));
61 int newid = LIBMTP_Create_Folder(device, folder, id, 0);
64 LIBMTP_Dump_Errorstack(device);
65 LIBMTP_Clear_Errorstack(device);
  /external/opencv3/modules/cudalegacy/test/
test_main.cpp 60 "{ device | -1 | Device on which tests will be executed (-1 means all devices) }"
79 int device = cmd.get<int>("device"); local
80 if (device < 0)
88 DeviceManager::instance().load(device);
90 DeviceInfo info(device);
91 cout << "Run tests on device " << device << " [" << info.name() << "] \n" << endl;
  /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...]
  /system/connectivity/shill/test-scripts/
list-ipconfigs 6 print "Usage: %s <device | interface>" % (sys.argv[0])
13 device = flim.FindElementByNameSubstring('Device', name) variable
14 if device is None:
15 device = flim.FindElementByPropertySubstring('Device', 'Interface', name) variable
16 if device is None:
17 print "No such device or interface %s" % name
20 properties = device.GetProperties(utf8_strings = True)
  /external/chromium-trace/catapult/devil/devil/android/
md5sum_test.py 30 mock.Mock(side_effect=lambda a, device=None: mocked_attrs[a])),
93 device = mock.NonCallableMock()
94 device.RunShellCommand = mock.Mock(side_effect=Exception())
96 out = md5sum.CalculateDeviceMd5Sums([], device)
102 device = mock.NonCallableMock()
107 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
110 out = md5sum.CalculateDeviceMd5Sums(test_path, device)
115 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
120 device = mock.NonCallableMock()
127 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output
    [all...]
device_utils_test.py 145 self.device = device_utils.DeviceUtils(
153 args, output, status, msg, str(self.device)))
159 msg, str(self.device)))
164 cmd, output, status, str(self.device))
173 msg, str(self.device)))
180 self.assertTrue(self.device == other)
181 self.assertTrue(other == self.device)
185 self.assertTrue(self.device == other)
186 self.assertTrue(other == self.device)
190 self.assertTrue(self.device == other
    [all...]
  /external/libdrm/tests/kms/
libkms-test.h 47 void kms_device_close(struct kms_device *device);
49 struct kms_plane *kms_device_find_plane_by_type(struct kms_device *device,
54 struct kms_device *device; member in struct:kms_crtc
58 struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id);
62 struct kms_device *device; member in struct:kms_framebuffer
76 struct kms_framebuffer *kms_framebuffer_create(struct kms_device *device,
85 struct kms_device *device; member in struct:kms_screen
97 struct kms_screen *kms_screen_create(struct kms_device *device, uint32_t id);
104 struct kms_device *device; member in struct:kms_plane
113 struct kms_plane *kms_plane_create(struct kms_device *device, uint32_t id)
    [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...]
  /system/connectivity/apmanager/
manager.cc 74 scoped_refptr<Device> Manager::GetAvailableDevice() {
75 for (const auto& device : devices_) {
76 // Look for an unused device with AP interface mode support.
77 if (!device->GetInUse() && !device->GetPreferredApInterface().empty()) {
78 return device;
84 scoped_refptr<Device> Manager::GetDeviceFromInterfaceName(
86 for (const auto& device : devices_) {
87 if (device->InterfaceExists(interface_name)) {
88 return 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...]
  /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...]

Completed in 687 milliseconds

<<11121314151617181920>>