/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
BluetoothDeviceFilter.java | 36 boolean matches(BluetoothDevice device); 72 Log.w(TAG, "Invalid filter type " + filterType + " for device picker"); 79 public boolean matches(BluetoothDevice device) { 86 public boolean matches(BluetoothDevice device) { 87 return device.getBondState() == BluetoothDevice.BOND_BONDED; 93 public boolean matches(BluetoothDevice device) { 94 return device.getBondState() != BluetoothDevice.BOND_BONDED; 102 public boolean matches(BluetoothDevice device) { 103 return matches(device.getUuids(), device.getBluetoothClass()) [all...] |
BluetoothEventManager.java | 57 void onReceive(Context context, Intent intent, BluetoothDevice device); 141 BluetoothDevice device = intent 146 handler.onReceive(context, intent, device); 153 BluetoothDevice device) { 176 BluetoothDevice device) { 188 BluetoothDevice device) { 194 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); 196 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device); 209 public void onReceive(Context context, Intent intent, BluetoothDevice device) { 210 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothDevicePairer.java | 44 * and connecting to the device. 52 * In auto mode we listen for an input device that looks like it can 55 * connecting to the device. The idea is that a UI making use of this class 60 * First we try to create a bond to the device and listen for bond status 61 * change broadcasts. Once the bond is made, we connect to the device. 62 * Connecting to the device actually opens a socket and hooks the device up 65 * In auto mode if we see more than one compatible input device before 66 * bonding with a candidate device, we stop the process. We don't want to 67 * connect to the wrong device and it is up to the user of this class t 171 InputDevice device = inMan.getInputDevice(deviceIds[ptr]); local [all...] |
/cts/apps/cts-usb-accessory/ |
cts-usb-accessory.c | 72 static int send_string(struct usb_device *device, int index, const char* string) { 73 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, 88 struct usb_device *device = usb_device_open(devname); local 89 if (!device) { 94 char* serial = usb_device_get_serial(device); 101 vendorId = usb_device_get_vendor_id(device); 102 productId = usb_device_get_product_id(device); 111 printf("Found Android device in accessory mode (%x:%x)...\n", 113 sDevice = device; 116 usb_descriptor_iter_init(device, &iter) [all...] |
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
SustainedPerformanceHostTest.java | 21 import com.android.tradefed.device.ITestDevice; 30 * Test to check if device implements Sustained Performance Mode 34 ITestDevice device; field in class:SustainedPerformanceHostTest 74 device.executeShellCommand("cd " + DHRYSTONE + " ; chmod 777 dhry"); 76 String result = device.executeShellCommand("echo " + loopCount + " | " + DHRYSTONE + "dhry"); 157 device.disconnectFromWifi(); 161 device.executeAdbCommand("logcat", "-c"); 162 device.executeShellCommand("settings put global airplane_mode_on 1"); 163 device.executeShellCommand("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true"); 167 device = getDevice() [all...] |
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
ScanResultTest.java | 48 BluetoothDevice device = 50 ScanResult result = new ScanResult(device, TestUtils.parseScanRecord(SCAN_RECORD), RSSI, 60 assertEquals(device, resultFromParcel.getDevice()); 69 BluetoothDevice device = 71 ScanResult result = new ScanResult(device, TestUtils.parseScanRecord(SCAN_RECORD), RSSI,
|
/device/common/ |
generate-blob-lists.sh | 28 # Caveat: this script does many full builds (2 per device). It takes a while 32 # Syntax: device/common/generate-blob-lists.sh -f|--force [<server> <branch>] 49 DEVICES=$(for i in device/*/*/proprietary-blobs.txt ; do basename $(dirname $i) ; done) 85 MANUFACTURERNAME=$( find device -type d | grep ^[^/]\*/[^/]\*/$DEVICENAME\$ | cut -f 2 -d / ) 103 echo '# This file is generated by device/common/generate-blob-lists.sh - DO NOT EDIT' 110 cp $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt device/$MANUFACTURERNAME/$DEVICENAME/proprietary-blobs.txt 113 cd device/$MANUFACTURERNAME/$DEVICENAME 119 git push $1/device/$MANUFACTURERNAME/$DEVICENAME.git HEAD:refs/for/$2/autoblobs 124 cd device/$MANUFACTURERNAME/$DEVICENAME 129 git push $1/device/$MANUFACTURERNAME/$DEVICENAME.git HEAD:refs/for/$2/autoblob [all...] |
/device/moto/shamu/self-extractors/ |
files-by-owner.sh | 25 cat > $target_owner/staging/device-partial.mk << EOF 41 echo -n "# " >> $target_owner/staging/device-partial.mk 44 echo -n Broadcom >> $target_owner/staging/device-partial.mk 47 echo -n Motorola >> $target_owner/staging/device-partial.mk 50 echo -n Qualcomm >> $target_owner/staging/device-partial.mk 53 echo " blob(s) necessary for Shamu hardware" >> $target_owner/staging/device-partial.mk 54 echo "PRODUCT_COPY_FILES := \\" >> $target_owner/staging/device-partial.mk 84 echo " vendor/$target_owner/shamu/proprietary/lib64/$(basename $file):$file:$target_owner \\" >> $target_owner/staging/device-partial.mk 86 echo " vendor/$target_owner/shamu/proprietary/$(basename $file):$file:$target_owner \\" >> $target_owner/staging/device-partial.mk 93 echo >> $target_owner/staging/device-partial.m [all...] |
/external/autotest/client/site_tests/security_SMMLocked/src/ |
smm.c | 97 struct pci_dev *device; local 106 device = pci_get_dev(handle, 0, 0, 0, 0); 107 if (!device) { 108 fprintf(stderr, "Failed to fetch PCI device.\n"); 115 offset = guess_offset(device); 119 return check_smram(device, offset);
|
/external/libdrm/tests/kms/ |
kms-universal-planes.c | 134 struct kms_device *device; local 172 fprintf(stderr, "usage: %s [options] DEVICE\n", argv[0]); 188 device = kms_device_open(fd); 189 if (!device) 193 printf("Screens: %u\n", device->num_screens); 195 for (i = 0; i < device->num_screens; i++) { 196 struct kms_screen *screen = device->screens[i]; 209 printf("Planes: %u\n", device->num_planes); 211 for (i = 0; i < device->num_planes; i++) { 212 struct kms_plane *plane = device->planes[i] [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
device.hpp | 34 typedef struct _cl_device_id device; typedef in namespace:clover 84 typedef std::vector<device>::iterator iterator; 96 device &front() { 100 device &back() { 105 std::vector<device> devs;
|
/external/mesa3d/src/gbm/backends/dri/ |
driver_name.c | 42 struct udev_device *device, *parent; local 48 device = _gbm_udev_device_new_from_fd(udev, fd); 49 if (device == NULL) 52 parent = udev_device_get_parent(device); 54 fprintf(stderr, "gbm: could not get parent device"); 85 udev_device_unref(device);
|
/external/opencv3/modules/videoio/src/ |
cap_ios_abstract_camera.mm | 87 // react to device orientation notifications 120 // react to device orientation notifications 232 #pragma mark - Device Orientation Changes 278 // setup the device 279 AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; 281 NSLog(@"[Camera] device connected? %@", device.connected ? @"YES" : @"NO"); 282 NSLog(@"[Camera] device position %@", (device.position == AVCaptureDevicePositionBack) ? @"back" : @"front"); 316 for (AVCaptureDevice *device in [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo]) [all...] |
/external/skia/src/image/ |
SkSurface_Gpu.cpp | 20 SkSurface_Gpu::SkSurface_Gpu(SkGpuDevice* device) 21 : INHERITED(device->width(), device->height(), &device->surfaceProps()) 22 , fDevice(SkRef(device)) { 38 // legacy: need to dirty the bitmap's genID in our device (curse it) 136 SkAutoTUnref<SkGpuDevice> device( 138 if (!device) { 141 return new SkSurface_Gpu(device); 147 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create [all...] |
/external/skia/src/opts/ |
SkBlitMask_opts.h | 25 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; local 49 uint8x8x4_t vdev = vld4_u8((uint8_t*)device); 60 vst4_u8((uint8_t*)device, vdev); 63 device += 8; 70 *device = SkBlendARGB32(pmc, *device, aa); 72 *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) 73 + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); 75 device += 1; 78 device = (uint32_t*)((char*)device + dstRB) 101 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbDisconnectedReceiver.java | 29 // if their device/accessory is disconnected while the dialog is still open 35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { 37 mDevice = device; 55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); local 56 if (device != null && device.equals(mDevice)) {
|
/frameworks/native/vulkan/include/vulkan/ |
vk_android_native_buffer.h | 49 typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainGrallocUsageANDROID)(VkDevice device, VkFormat format, VkImageUsageFlags imageUsage, int* grallocUsage); 50 typedef VkResult (VKAPI_PTR *PFN_vkAcquireImageANDROID)(VkDevice device, VkImage image, int nativeFenceFd, VkSemaphore semaphore, VkFence fence); 55 VkDevice device, 61 VkDevice device, 76 VkDevice device,
|
/hardware/libhardware/include/hardware/ |
activity_recognition.h | 156 * Common methods of the activity recognition device. This *must* be the first member of 232 activity_recognition_device_t** device) { 234 ACTIVITY_RECOGNITION_HARDWARE_INTERFACE, (hw_device_t**)device); 237 static inline int activity_recognition_close(activity_recognition_device_t* device) { 238 return device->common.close(&device->common);
|
fb.h | 40 * Common methods of the framebuffer device. This *must* be the first member of 158 /** convenience API for opening and closing a supported device */ 161 struct framebuffer_device_t** device) { 163 GRALLOC_HARDWARE_FB0, (struct hw_device_t**)device); 166 static inline int framebuffer_close(struct framebuffer_device_t* device) { 167 return device->common.close(&device->common);
|
gatekeeper.h | 43 * Common methods of the gatekeeper device. As above, this must be the first 163 * no users will be enrolled on the device. 179 gatekeeper_device_t **device) { 181 (struct hw_device_t **) device); 184 static inline int gatekeeper_close(gatekeeper_device_t *device) { 185 return device->common.close(&device->common);
|
keymaster0.h | 25 * Keymaster0 device definition. 29 * Common methods of the keymaster device. This *must* be the first member of 134 keymaster0_device_t** device) 137 (struct hw_device_t**) device); 142 static inline int keymaster0_close(keymaster0_device_t* device) 144 return device->common.close(&device->common);
|
radio.h | 46 * a suffix specific to the device. 282 /** convenience API for opening and closing a supported device */ 285 struct radio_hw_device** device) 288 (struct hw_device_t**)device); 291 static inline int radio_hw_device_close(const struct radio_hw_device* device) 293 return device->common.close((struct hw_device_t *)&device->common);
|
sound_trigger.h | 48 * a suffix specific to the device. 113 * Only supported for device api versions SOUND_TRIGGER_DEVICE_API_VERSION_1_1 or above. 121 /** convenience API for opening and closing a supported device */ 124 struct sound_trigger_hw_device** device) 127 (struct hw_device_t**)device); 130 static inline int sound_trigger_hw_device_close(struct sound_trigger_hw_device* device) 132 return device->common.close(&device->common);
|
/hardware/libhardware/tests/camera3/ |
camera3test_fixtures.h | 63 hw_device_t *device = NULL; local 67 (const hw_module_t*)cam_module(), "0", &device)) 68 << "Can't open camera device"; 69 ASSERT_TRUE(NULL != device) 70 << "Camera open() returned a NULL device"; 71 ASSERT_LE(kVersion3_0, device->version) 72 << "The device does not support HAL3"; 73 cam_device_ = reinterpret_cast<camera3_device_t*>(device);
|
/hardware/libhardware/tests/fingerprint/ |
fingerprint_test_fixtures.h | 56 hw_device_t *device = NULL; local 60 (const hw_module_t*)fp_module(), NULL, &device)) 61 << "Can't open fingerprint device"; 62 ASSERT_TRUE(NULL != device) 63 << "Fingerprint open() returned a NULL device"; 64 ASSERT_EQ(kVersion, device->version) 66 fp_device_ = reinterpret_cast<fingerprint_device_t*>(device);
|