Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/native/services/inputflinger/
DEventHub.cpp237 Device* device = mClosingDevices; in ~EventHub() local
238 mClosingDevices = device->next; in ~EventHub()
239 delete device; in ~EventHub()
252 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier() local
253 if (device == NULL) return InputDeviceIdentifier(); in getDeviceIdentifier()
254 return device->identifier; in getDeviceIdentifier()
259 Device* device = getDeviceLocked(deviceId); in getDeviceClasses() local
260 if (device == NULL) return 0; in getDeviceClasses()
261 return device->classes; in getDeviceClasses()
266 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber() local
[all …]
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.cpp250 uint32_t device = AUDIO_DEVICE_NONE; in getDeviceForStrategyInt() local
256 device = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForStrategyInt()
261 device = getDeviceForStrategyInt( in getDeviceForStrategyInt()
269 device = getDeviceForStrategyInt( in getDeviceForStrategyInt()
273 if ((device & AUDIO_DEVICE_OUT_SPEAKER) && in getDeviceForStrategyInt()
275 device |= AUDIO_DEVICE_OUT_SPEAKER_SAFE; in getDeviceForStrategyInt()
276 device &= ~AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForStrategyInt()
281 device = getDeviceForStrategyInt( in getDeviceForStrategyInt()
285 device = getDeviceForStrategyInt( in getDeviceForStrategyInt()
289 if ((device & AUDIO_DEVICE_OUT_SPEAKER) && in getDeviceForStrategyInt()
[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/av/services/audiopolicy/common/include/
DVolume.h70 static audio_devices_t getDeviceForVolume(audio_devices_t device) in getDeviceForVolume() argument
72 if (device == AUDIO_DEVICE_NONE) { in getDeviceForVolume()
75 device = AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForVolume()
76 } else if (popcount(device) > 1) { in getDeviceForVolume()
83 if (device & AUDIO_DEVICE_OUT_SPEAKER) { in getDeviceForVolume()
84 device = AUDIO_DEVICE_OUT_SPEAKER; in getDeviceForVolume()
85 } else if (device & AUDIO_DEVICE_OUT_SPEAKER_SAFE) { in getDeviceForVolume()
86 device = AUDIO_DEVICE_OUT_SPEAKER_SAFE; in getDeviceForVolume()
87 } else if (device & AUDIO_DEVICE_OUT_HDMI_ARC) { in getDeviceForVolume()
88 device = AUDIO_DEVICE_OUT_HDMI_ARC; in getDeviceForVolume()
[all …]
/frameworks/base/core/java/android/bluetooth/
DIBluetoothHeadsetClient.aidl29 boolean connect(in BluetoothDevice device); in connect() argument
30 boolean disconnect(in BluetoothDevice device); in disconnect() argument
32 boolean acceptIncomingConnect(in BluetoothDevice device); in acceptIncomingConnect() argument
33 boolean rejectIncomingConnect(in BluetoothDevice device); in rejectIncomingConnect() argument
37 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument
38 boolean setPriority(in BluetoothDevice device, int priority); in setPriority() argument
39 int getPriority(in BluetoothDevice device); in getPriority() argument
41 boolean startVoiceRecognition(in BluetoothDevice device); in startVoiceRecognition() argument
42 boolean stopVoiceRecognition(in BluetoothDevice device); in stopVoiceRecognition() argument
44 List<BluetoothHeadsetClientCall> getCurrentCalls(in BluetoothDevice device); in getCurrentCalls() argument
[all …]
DIBluetooth.aidl60 boolean createBond(in BluetoothDevice device, in int transport); in createBond() argument
61 boolean createBondOutOfBand(in BluetoothDevice device, in int transport, in OobData oobData); in createBondOutOfBand() argument
62 boolean cancelBondProcess(in BluetoothDevice device); in cancelBondProcess() argument
63 boolean removeBond(in BluetoothDevice device); in removeBond() argument
64 int getBondState(in BluetoothDevice device); in getBondState() argument
65 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument
67 String getRemoteName(in BluetoothDevice device); in getRemoteName() argument
68 int getRemoteType(in BluetoothDevice device); in getRemoteType() argument
69 String getRemoteAlias(in BluetoothDevice device); in getRemoteAlias() argument
70 boolean setRemoteAlias(in BluetoothDevice device, in String name); in setRemoteAlias() argument
[all …]
DBluetoothHeadsetClient.java479 public boolean connect(BluetoothDevice device) { in connect() argument
480 if (DBG) log("connect(" + device + ")"); in connect()
482 isValidDevice(device)) { in connect()
484 return mService.connect(device); in connect()
503 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
504 if (DBG) log("disconnect(" + device + ")"); in disconnect()
506 isValidDevice(device)) { in disconnect()
508 return mService.disconnect(device); in disconnect()
568 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
569 if (VDBG) log("getConnectionState(" + device + ")"); in getConnectionState()
[all …]
DBluetoothInputDevice.java314 public boolean connect(BluetoothDevice device) { in connect() argument
315 if (DBG) log("connect(" + device + ")"); in connect()
316 if (mService != null && isEnabled() && isValidDevice(device)) { in connect()
318 return mService.connect(device); in connect()
354 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
355 if (DBG) log("disconnect(" + device + ")"); in disconnect()
356 if (mService != null && isEnabled() && isValidDevice(device)) { in disconnect()
358 return mService.disconnect(device); in disconnect()
405 public int getConnectionState(BluetoothDevice device) { in getConnectionState() argument
406 if (VDBG) log("getState(" + device + ")"); in getConnectionState()
[all …]
DIBluetoothHeadset.aidl28 boolean connect(in BluetoothDevice device); in connect() argument
29 boolean disconnect(in BluetoothDevice device); in disconnect() argument
32 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument
33 boolean setPriority(in BluetoothDevice device, int priority); in setPriority() argument
34 int getPriority(in BluetoothDevice device); in getPriority() argument
35 boolean startVoiceRecognition(in BluetoothDevice device); in startVoiceRecognition() argument
36 boolean stopVoiceRecognition(in BluetoothDevice device); in stopVoiceRecognition() argument
37 boolean isAudioConnected(in BluetoothDevice device); in isAudioConnected() argument
38 boolean sendVendorSpecificResultCode(in BluetoothDevice device, in sendVendorSpecificResultCode() argument
43 int getBatteryUsageHint(in BluetoothDevice device); in getBatteryUsageHint() argument
[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()
86 public void update(WifiP2pDevice device) { in update() argument
87 updateSupplicantDetails(device); in update()
88 mDevices.get(device.deviceAddress).status = device.status; in update()
92 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails() argument
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java156 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testPair() local
159 mTestUtils.unpair(adapter, device); in testPair()
163 mTestUtils.pair(adapter, device, BluetoothTestRunner.sDevicePairPasskey, in testPair()
165 mTestUtils.unpair(adapter, device); in testPair()
182 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testAcceptPair() local
185 mTestUtils.unpair(adapter, device); in testAcceptPair()
189 mTestUtils.acceptPair(adapter, device, BluetoothTestRunner.sDevicePairPasskey, in testAcceptPair()
191 mTestUtils.unpair(adapter, device); in testAcceptPair()
209 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); in testConnectA2dp() local
212 mTestUtils.unpair(adapter, device); in testConnectA2dp()
[all …]
/frameworks/base/tools/preload2/src/com/android/preload/
DClientUtils.java45 public Client findClient(IDevice device, String processName, int processPid) { in findClient() argument
46 return findClient(device, processName, processPid, defaultTimeout); in findClient()
59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { in findClient() argument
60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout); in findClient()
67 public Client[] findAllClients(IDevice device) { in findAllClients() argument
68 return findAllClients(device, defaultTimeout); in findAllClients()
79 public Client[] findAllClients(IDevice device, int timeout) { in findAllClients() argument
80 if (device.hasClients()) { in findAllClients()
81 return device.getClients(); in findAllClients()
83 WaitForClients wfc = new WaitForClients(device, timeout); in findAllClients()
[all …]
DDeviceUtils.java48 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { in doShell() argument
49 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); in doShell()
55 public static String doShellReturnString(IDevice device, String cmdline, long timeout, in doShellReturnString() argument
58 doShell(device, cmdline, rec, timeout, unit); in doShellReturnString()
65 public static void doShell(IDevice device, String cmdline, IShellOutputReceiver receiver, in doShell() argument
68 device.executeShellCommand(cmdline, receiver, timeout, unit); in doShell()
77 public static void doAMStart(IDevice device, String name, String activity) { in doAMStart() argument
78 doShell(device, "am start -n " + name + " /." + activity, 30, TimeUnit.SECONDS); in doAMStart()
102 public static String getBuildType(IDevice device) { in getBuildType() argument
104 Future<String> buildType = device.getSystemProperty("ro.build.type"); in getBuildType()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp52 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open() local
53 if (device) { in android_hardware_UsbDeviceConnection_open()
54 env->SetLongField(thiz, field_context, (jlong)device); in android_hardware_UsbDeviceConnection_open()
61 return (device != NULL) ? JNI_TRUE : JNI_FALSE; in android_hardware_UsbDeviceConnection_open()
68 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_close() local
69 if (device) { in android_hardware_UsbDeviceConnection_close()
70 usb_device_close(device); in android_hardware_UsbDeviceConnection_close()
78 struct usb_device* device = get_device_from_object(env, thiz); in android_hardware_UsbDeviceConnection_get_fd() local
79 if (!device) { in android_hardware_UsbDeviceConnection_get_fd()
83 return usb_device_get_fd(device); in android_hardware_UsbDeviceConnection_get_fd()
[all …]
/frameworks/native/vulkan/libvulkan/
Dapi_gen.cpp80 VKAPI_ATTR VkResult disabledCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR*, co… in disabledCreateSwapchainKHR() argument
81 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkCreateSwapchainKHR no… in disabledCreateSwapchainKHR()
85 VKAPI_ATTR void disabledDestroySwapchainKHR(VkDevice device, VkSwapchainKHR, const VkAllocationCall… in disabledDestroySwapchainKHR() argument
86 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkDestroySwapchainKHR n… in disabledDestroySwapchainKHR()
89 VKAPI_ATTR VkResult disabledGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR, uint32_t*, VkIma… in disabledGetSwapchainImagesKHR() argument
90 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetSwapchainImagesKHR… in disabledGetSwapchainImagesKHR()
94 VKAPI_ATTR VkResult disabledAcquireNextImageKHR(VkDevice device, VkSwapchainKHR, uint64_t, VkSemaph… in disabledAcquireNextImageKHR() argument
95 …driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkAcquireNextImageKHR n… in disabledAcquireNextImageKHR()
289 VKAPI_ATTR PFN_vkVoidFunction GetDeviceProcAddr(VkDevice device, const char* pName);
297 VKAPI_ATTR void GetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQ…
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DMapProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
71 if (device == null) { in onServiceConnected()
73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
75 device.onProfileStateChanged(MapProfile.this, in onServiceConnected()
77 device.refresh(); in onServiceConnected()
114 public boolean connect(BluetoothDevice device) { in connect() argument
119 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
122 if (!deviceList.isEmpty() && deviceList.get(0).equals(device)) { in disconnect()
123 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
124 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DSapProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
70 if (device == null) { in onServiceConnected()
72 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
74 device.onProfileStateChanged(SapProfile.this, in onServiceConnected()
76 device.refresh(); in onServiceConnected()
112 public boolean connect(BluetoothDevice device) { in connect() argument
120 return mService.connect(device); in connect()
123 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
126 if (!deviceList.isEmpty() && deviceList.get(0).equals(device)) { in disconnect()
127 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
[all …]
DPbapClientProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
70 if (device == null) { in onServiceConnected()
72 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
74device.onProfileStateChanged(PbapClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
75 device.refresh(); in onServiceConnected()
90 for (CachedBluetoothDevice device : cachedDevices) { in refreshProfiles()
91 device.onUuidChanged(); in refreshProfiles()
131 public boolean connect(BluetoothDevice device) { in connect() argument
141 if (src.equals(device)) { in connect()
148 mService.disconnect(device); in connect()
[all …]
DA2dpSinkProfile.java66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
68 if (device == null) { in onServiceConnected()
70 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
72device.onProfileStateChanged(A2dpSinkProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
73 device.refresh(); in onServiceConnected()
114 public boolean connect(BluetoothDevice device) { in connect() argument
119 if (src.equals(device)) { in connect()
129 return mService.connect(device); in connect()
132 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
135 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
[all …]
DHfpClientProfile.java70 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
72 if (device == null) { in onServiceConnected()
74 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
76 device.onProfileStateChanged( in onServiceConnected()
78 device.refresh(); in onServiceConnected()
124 public boolean connect(BluetoothDevice device) { in connect() argument
129 if (src.equals(device)) { in connect()
141 return mService.connect(device); in connect()
145 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
148 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
[all …]
DHeadsetProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
71 if (device == null) { in onServiceConnected()
73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
75 device.onProfileStateChanged(HeadsetProfile.this, in onServiceConnected()
77 device.refresh(); in onServiceConnected()
113 public boolean connect(BluetoothDevice device) { in connect() argument
121 return mService.connect(device); in connect()
124 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
129 if (dev.equals(device)) { in disconnect()
133 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
[all …]
DHidProfile.java61 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
63 if (device == null) { in onServiceConnected()
65 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
67 device.onProfileStateChanged(HidProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
68 device.refresh(); in onServiceConnected()
101 public boolean connect(BluetoothDevice device) { in connect() argument
103 return mService.connect(device); in connect()
106 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
108 return mService.disconnect(device); in disconnect()
111 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
[all …]
DA2dpProfile.java66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() local
68 if (device == null) { in onServiceConnected()
70 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); in onServiceConnected()
72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
73 device.refresh(); in onServiceConnected()
114 public boolean connect(BluetoothDevice device) { in connect() argument
122 return mService.connect(device); in connect()
125 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
128 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
129 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DPanProfile.java85 public boolean connect(BluetoothDevice device) { in connect() argument
93 return mService.connect(device); in connect()
96 public boolean disconnect(BluetoothDevice device) { in disconnect() argument
98 return mService.disconnect(device); in disconnect()
101 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() argument
105 return mService.getConnectionState(device); in getConnectionStatus()
108 public boolean isPreferred(BluetoothDevice device) { in isPreferred() argument
112 public int getPreferred(BluetoothDevice device) { in getPreferred() argument
116 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() argument
128 public int getNameResource(BluetoothDevice device) { in getNameResource() argument
[all …]
/frameworks/native/vulkan/nulldrv/
Dnull_driver_gen.h34 VKAPI_ATTR PFN_vkVoidFunction GetDeviceProcAddr(VkDevice device, const char* pName);
43 VKAPI_ATTR void DestroyDevice(VkDevice device, const VkAllocationCallbacks* pAllocator);
48 VKAPI_ATTR void GetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQ…
51 VKAPI_ATTR VkResult DeviceWaitIdle(VkDevice device);
52 VKAPI_ATTR VkResult AllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, cons…
53 VKAPI_ATTR void FreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAl…
54 VKAPI_ATTR VkResult MapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDevice…
55 VKAPI_ATTR void UnmapMemory(VkDevice device, VkDeviceMemory memory);
56 VKAPI_ATTR VkResult FlushMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMap…
57 VKAPI_ATTR VkResult InvalidateMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const …
[all …]

12345678910>>...39