Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 820) sorted by relevance

12345678910>>...33

/frameworks/native/services/inputflinger/reader/
DEventHub.cpp320 Device* device = mClosingDevices; in ~EventHub() local
321 mClosingDevices = device->next; in ~EventHub()
322 delete device; in ~EventHub()
335 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier() local
336 if (device == nullptr) return InputDeviceIdentifier(); in getDeviceIdentifier()
337 return device->identifier; in getDeviceIdentifier()
342 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local
343 if (device == nullptr) return 0; in getDeviceClasses()
344 return device->classes; in getDeviceClasses()
349 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber() local
[all …]
DInputReader.cpp192 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked() local
193 device->configure(when, &mConfig, 0); in addDeviceLocked()
194 device->reset(when); in addDeviceLocked()
196 if (device->isIgnored()) { in addDeviceLocked()
201 device->getSources()); in addDeviceLocked()
204 mDevices.add(deviceId, device); in addDeviceLocked()
207 if (device->getClasses() & INPUT_DEVICE_CLASS_EXTERNAL_STYLUS) { in addDeviceLocked()
213 InputDevice* device = nullptr; in removeDeviceLocked() local
220 device = mDevices.valueAt(deviceIndex); in removeDeviceLocked()
224 if (device->isIgnored()) { in removeDeviceLocked()
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DCommonTransitions.java53 private static void setRotation(UiDevice device, int rotation) { in setRotation() argument
57 device.setOrientationLeft(); in setRotation()
61 device.setOrientationRight(); in setRotation()
66 device.setOrientationNatural(); in setRotation()
76 device, int beginRotation) { in openAppWarm() argument
82 .runBeforeAll(() -> setRotation(device, beginRotation)) in openAppWarm()
84 .runBefore(device::pressHome) in openAppWarm()
85 .runBefore(device::waitForIdle) in openAppWarm()
86 .runBefore(() -> setRotation(device, beginRotation)) in openAppWarm()
94 device) { in closeAppWithBackKey() argument
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java147 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair() local
149 mTestUtils.unpair(mAdapter, device); in testPair()
153 mTestUtils.pair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey, in testPair()
155 mTestUtils.unpair(mAdapter, device); in testPair()
170 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair() local
172 mTestUtils.unpair(mAdapter, device); in testAcceptPair()
176 mTestUtils.acceptPair(mAdapter, device, BluetoothTestRunner.sDevicePairPasskey, in testAcceptPair()
178 mTestUtils.unpair(mAdapter, device); in testAcceptPair()
194 BluetoothDevice device = mAdapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp() local
196 mTestUtils.unpair(mAdapter, device); in testConnectA2dp()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpManager.java94 final MtpDevice device = new MtpDevice(rawDevice); in openDevice() local
100 if (!device.open(connection)) { in openDevice()
107 device.getStorageIds(), in openDevice()
110 mDevices.put(deviceId, device); in openDevice()
121 for (UsbDevice device : mManager.getDeviceList().values()) { in getDevices()
122 if (!isMtpDevice(device)) { in getDevices()
125 devices.add(createDeviceRecord(device)); in getDevices()
131 final MtpDevice device = getDevice(deviceId); in getObjectInfo() local
132 synchronized (device) { in getObjectInfo()
134 device.getObjectInfo(objectHandle), in getObjectInfo()
[all …]
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java54 static boolean matches(ScanFilter filter, BluetoothDevice device) { in matches() argument
55 boolean result = matchesAddress(filter.getDeviceAddress(), device) in matches()
56 && matchesServiceUuid(filter.getServiceUuid(), filter.getServiceUuidMask(), device); in matches()
57 if (DEBUG) debugLogMatchResult(result, device, filter); in matches()
61 static boolean matchesAddress(String deviceAddress, BluetoothDevice device) { in matchesAddress() argument
63 || (device != null && deviceAddress.equals(device.getAddress())); in matchesAddress()
64 if (DEBUG) debugLogMatchResult(result, device, deviceAddress); in matchesAddress()
69 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) { in matchesServiceUuids() argument
73 if (!matchesServiceUuid(uuid, uuidMask, device)) { in matchesServiceUuids()
81 BluetoothDevice device) { in matchesServiceUuid() argument
[all …]
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbDeviceStateController.java38 void onDeviceResetComplete(UsbDevice device); in onDeviceResetComplete() argument
102 public void startDeviceReset(UsbDevice device) { in startDeviceReset() argument
103 mHandler.requestDeviceReset(device); in startDeviceReset()
110 private void doHandleDeviceReset(UsbDevice device) { in doHandleDeviceReset() argument
111 boolean isInAoap = AoapInterface.isDeviceInAoapMode(device); in doHandleDeviceReset()
114 completedDevice = resetUsbDeviceAndConfirmModeChange(device); in doHandleDeviceReset()
116 UsbDeviceConnection conn = openConnection(device); in doHandleDeviceReset()
118 throw new RuntimeException("cannot open conneciton for device: " + device); in doHandleDeviceReset()
122 throw new RuntimeException("resetDevice failed for devie: " + device); in doHandleDeviceReset()
124 completedDevice = device; in doHandleDeviceReset()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHidHost.java271 public boolean connect(BluetoothDevice device) { in connect() argument
272 if (DBG) log("connect(" + device + ")"); in connect()
274 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
276 return service.connect(device); in connect()
309 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
310 if (DBG) log("disconnect(" + device + ")"); in disconnect()
312 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
314 return service.disconnect(device); in disconnect()
376 public int getConnectionState(@NonNull BluetoothDevice device) { in getConnectionState() argument
377 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothHeadsetClient.java449 public boolean connect(BluetoothDevice device) { in connect() argument
450 if (DBG) log("connect(" + device + ")"); in connect()
453 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
455 return service.connect(device); in connect()
475 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
476 if (DBG) log("disconnect(" + device + ")"); in disconnect()
479 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
481 return service.disconnect(device); in disconnect()
544 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
545 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothHearingAid.java170 public boolean connect(BluetoothDevice device) { in connect() argument
171 if (DBG) log("connect(" + device + ")"); in connect()
174 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
175 return service.connect(device); in connect()
208 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
209 if (DBG) log("disconnect(" + device + ")"); in disconnect()
212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
213 return service.disconnect(device); in disconnect()
267 @NonNull BluetoothDevice device) { in getConnectionState()
268 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothA2dp.java279 public boolean connect(BluetoothDevice device) { in connect() argument
280 if (DBG) log("connect(" + device + ")"); in connect()
283 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
284 return service.connect(device); in connect()
319 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
320 if (DBG) log("disconnect(" + device + ")"); in disconnect()
323 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
324 return service.disconnect(device); in disconnect()
376 public @BtProfileState int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
377 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothMapClient.java161 public boolean isConnected(BluetoothDevice device) { in isConnected() argument
162 if (VDBG) Log.d(TAG, "isConnected(" + device + ")"); in isConnected()
166 return service.isConnected(device); in isConnected()
184 public boolean connect(BluetoothDevice device) { in connect() argument
185 if (DBG) Log.d(TAG, "connect(" + device + ")" + "for MAPS MCE"); in connect()
189 return service.connect(device); in connect()
209 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
210 if (DBG) Log.d(TAG, "disconnect(" + device + ")"); in disconnect()
212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
214 return service.disconnect(device); in disconnect()
[all …]
DBluetoothHidDevice.java262 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged() argument
263 Log.d(TAG, "onConnectionStateChanged: device=" + device + " state=" + state); in onConnectionStateChanged()
276 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport() argument
280 + device in onGetReport()
298 public void onSetReport(BluetoothDevice device, byte type, byte id, byte[] data) { in onSetReport() argument
299 Log.d(TAG, "onSetReport: device=" + device + " type=" + type + " id=" + id); in onSetReport()
309 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
310 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol); in onSetProtocol()
320 public void onInterruptData(BluetoothDevice device, byte reportId, byte[] data) { in onInterruptData() argument
321 Log.d(TAG, "onInterruptData: device=" + device + " reportId=" + reportId); in onInterruptData()
[all …]
DBluetoothA2dpSink.java124 public boolean connect(BluetoothDevice device) { in connect() argument
125 if (DBG) log("connect(" + device + ")"); in connect()
127 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
129 return service.connect(device); in connect()
163 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
164 if (DBG) log("disconnect(" + device + ")"); in disconnect()
166 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
168 return service.disconnect(device); in disconnect()
226 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
227 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothPbapClient.java108 public boolean connect(BluetoothDevice device) { in connect() argument
110 log("connect(" + device + ") for PBAP Client."); in connect()
113 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
115 return service.connect(device); in connect()
136 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
138 log("disconnect(" + device + ")" + new Exception()); in disconnect()
141 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
143 service.disconnect(device); in disconnect()
213 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
215 log("getConnectionState(" + device + ")"); in getConnectionState()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java76 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithDefaultValues() local
77 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithDefaultValues()
78 compareWifiP2pDevices(device, copy); in testCopyConstructorWithDefaultValues()
86 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithUpdatedValues() local
87 device.deviceName = "deviceName"; in testCopyConstructorWithUpdatedValues()
88 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithUpdatedValues()
89 device.primaryDeviceType = "primaryDeviceType"; in testCopyConstructorWithUpdatedValues()
90 device.secondaryDeviceType = "secondaryDeviceType"; in testCopyConstructorWithUpdatedValues()
91 device.wpsConfigMethodsSupported = 0x0008; in testCopyConstructorWithUpdatedValues()
92 device.deviceCapability = 1; in testCopyConstructorWithUpdatedValues()
[all …]
/frameworks/native/vulkan/libvulkan/
Ddriver_gen.cpp34 VKAPI_ATTR VkResult checkedBindImageMemory2(VkDevice device, uint32_t bindInfoCount, const VkBindIm… in checkedBindImageMemory2() argument
35 if (GetData(device).hook_extensions[ProcHook::EXTENSION_CORE_1_1]) { in checkedBindImageMemory2()
36 return BindImageMemory2(device, bindInfoCount, pBindInfos); in checkedBindImageMemory2()
38 Logger(device).Err(device, "VK_VERSION_1_0 not enabled. vkBindImageMemory2 not executed."); in checkedBindImageMemory2()
43 VKAPI_ATTR void checkedGetDeviceQueue2(VkDevice device, const VkDeviceQueueInfo2* pQueueInfo, VkQue… in checkedGetDeviceQueue2() argument
44 if (GetData(device).hook_extensions[ProcHook::EXTENSION_CORE_1_1]) { in checkedGetDeviceQueue2()
45 GetDeviceQueue2(device, pQueueInfo, pQueue); in checkedGetDeviceQueue2()
47 Logger(device).Err(device, "VK_VERSION_1_0 not enabled. vkGetDeviceQueue2 not executed."); in checkedGetDeviceQueue2()
51 VKAPI_ATTR VkResult checkedCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCre… in checkedCreateSwapchainKHR() argument
52 if (GetData(device).hook_extensions[ProcHook::KHR_swapchain]) { in checkedCreateSwapchainKHR()
[all …]
Dapi_gen.cpp82 VKAPI_ATTR VkResult disabledCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR*, co… in disabledCreateSwapchainKHR() argument
83 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkCreateSwapchainKHR no… in disabledCreateSwapchainKHR()
87 VKAPI_ATTR void disabledDestroySwapchainKHR(VkDevice device, VkSwapchainKHR, const VkAllocationCall… in disabledDestroySwapchainKHR() argument
88 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkDestroySwapchainKHR n… in disabledDestroySwapchainKHR()
91 VKAPI_ATTR VkResult disabledGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR, uint32_t*, VkIma… in disabledGetSwapchainImagesKHR() argument
92 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetSwapchainImagesKHR… in disabledGetSwapchainImagesKHR()
96 VKAPI_ATTR VkResult disabledAcquireNextImageKHR(VkDevice device, VkSwapchainKHR, uint64_t, VkSemaph… in disabledAcquireNextImageKHR() argument
97 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkAcquireNextImageKHR n… in disabledAcquireNextImageKHR()
106 VKAPI_ATTR VkResult disabledGetDeviceGroupPresentCapabilitiesKHR(VkDevice device, VkDeviceGroupPres… in disabledGetDeviceGroupPresentCapabilitiesKHR() argument
107 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetDeviceGroupPresent… in disabledGetDeviceGroupPresentCapabilitiesKHR()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DDeviceFilter.java72 public DeviceFilter(UsbDevice device) { in DeviceFilter() argument
73 mVendorId = device.getVendorId(); in DeviceFilter()
74 mProductId = device.getProductId(); in DeviceFilter()
75 mClass = device.getDeviceClass(); in DeviceFilter()
76 mSubclass = device.getDeviceSubclass(); in DeviceFilter()
77 mProtocol = device.getDeviceProtocol(); in DeviceFilter()
78 mManufacturerName = device.getManufacturerName(); in DeviceFilter()
79 mProductName = device.getProductName(); in DeviceFilter()
80 mSerialNumber = device.getSerialNumber(); in DeviceFilter()
173 public boolean matches(UsbDevice device) { in matches() argument
[all …]
/frameworks/native/vulkan/vkjson/
Dvkjson_instance.cc72 VkJsonDevice device; in VkJsonGetDevice() local
93 device.extensions.resize(extension_count); in VkJsonGetDevice()
95 physical_device, nullptr, &extension_count, device.extensions.data()); in VkJsonGetDevice()
101 device.layers.resize(layer_count); in VkJsonGetDevice()
103 device.layers.data()); in VkJsonGetDevice()
113 if (HasExtension("VK_KHR_driver_properties", device.extensions)) { in VkJsonGetDevice()
114 device.ext_driver_properties.reported = true; in VkJsonGetDevice()
115 device.ext_driver_properties.driver_properties_khr.sType = in VkJsonGetDevice()
117 device.ext_driver_properties.driver_properties_khr.pNext = in VkJsonGetDevice()
120 &device.ext_driver_properties.driver_properties_khr; in VkJsonGetDevice()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java53 for (WifiP2pDevice device : devices) { in WifiP2pDeviceList()
54 if (device.deviceAddress != null) { in WifiP2pDeviceList()
55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList()
60 private void validateDevice(WifiP2pDevice device) { in validateDevice() argument
61 if (device == null) throw new IllegalArgumentException("Null device"); in validateDevice()
62 if (TextUtils.isEmpty(device.deviceAddress)) { in validateDevice()
87 public void update(WifiP2pDevice device) { in update() argument
88 updateSupplicantDetails(device); in update()
89 mDevices.get(device.deviceAddress).status = device.status; in update()
93 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails() argument
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp57 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open() local
58 if (device) { in android_hardware_UsbDeviceConnection_open()
59 env->SetLongField(thiz, field_context, (jlong)device); in android_hardware_UsbDeviceConnection_open()
66 return (device != NULL) ? JNI_TRUE : JNI_FALSE; in android_hardware_UsbDeviceConnection_open()
73 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_close() local
74 if (device) { in android_hardware_UsbDeviceConnection_close()
75 usb_device_close(device); in android_hardware_UsbDeviceConnection_close()
83 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_fd() local
84 if (!device) { in android_hardware_UsbDeviceConnection_get_fd()
88 return usb_device_get_fd(device); in android_hardware_UsbDeviceConnection_get_fd()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DTouchButtonAccumulator.cpp28 void TouchButtonAccumulator::configure(InputDevice* device) { in configure() argument
29 mHaveBtnTouch = device->hasKey(BTN_TOUCH); in configure()
30 mHaveStylus = device->hasKey(BTN_TOOL_PEN) || device->hasKey(BTN_TOOL_RUBBER) || in configure()
31 device->hasKey(BTN_TOOL_BRUSH) || device->hasKey(BTN_TOOL_PENCIL) || in configure()
32 device->hasKey(BTN_TOOL_AIRBRUSH); in configure()
35 void TouchButtonAccumulator::reset(InputDevice* device) { in reset() argument
36 mBtnTouch = device->isKeyPressed(BTN_TOUCH); in reset()
37 mBtnStylus = device->isKeyPressed(BTN_STYLUS); in reset()
39 mBtnStylus2 = device->isKeyPressed(BTN_STYLUS2) || device->isKeyPressed(BTN_0); in reset()
40 mBtnToolFinger = device->isKeyPressed(BTN_TOOL_FINGER); in reset()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DA2dpProfile.java72 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
74 if (device == null) { in onServiceConnected()
76 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected()
78 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
79 device.refresh(); in onServiceConnected()
156 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
160 return mService.getConnectionState(device); in getConnectionStatus()
163 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument
167 return device == null in setActiveDevice()
169 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_AUDIO); in setActiveDevice()
[all …]
DHearingAidProfile.java64 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
66 if (device == null) { in onServiceConnected()
70 device = mDeviceManager.addDevice(nextDevice); in onServiceConnected()
72 device.onProfileStateChanged(HearingAidProfile.this, in onServiceConnected()
74 device.refresh(); in onServiceConnected()
154 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
158 return mService.getConnectionState(device); in getConnectionStatus()
161 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument
165 return device == null in setActiveDevice()
167 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_ALL); in setActiveDevice()
[all …]

12345678910>>...33