Searched defs:device (Results 51 - 75 of 244) sorted by relevance

12345678910

/frameworks/base/core/java/com/android/internal/usb/
H A DDumpUtils.java66 long id, @NonNull UsbDevice device) {
69 dump.write("name", UsbDeviceProto.NAME, device.getDeviceName());
70 dump.write("vendor_id", UsbDeviceProto.VENDOR_ID, device.getVendorId());
71 dump.write("product_id", UsbDeviceProto.PRODUCT_ID, device.getProductId());
72 dump.write("class", UsbDeviceProto.CLASS, device.getDeviceClass());
73 dump.write("subclass", UsbDeviceProto.SUBCLASS, device.getDeviceSubclass());
74 dump.write("protocol", UsbDeviceProto.PROTOCOL, device.getDeviceProtocol());
76 device.getManufacturerName());
77 dump.write("product_name", UsbDeviceProto.PRODUCT_NAME, device.getProductName());
78 dump.write("version", UsbDeviceProto.VERSION, device
65 writeDevice(@onNull DualDumpOutputStream dump, @NonNull String idName, long id, @NonNull UsbDevice device) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothDeviceFilter.java36 boolean matches(BluetoothDevice device); argument
72 Log.w(TAG, "Invalid filter type " + filterType + " for device picker");
79 public boolean matches(BluetoothDevice device) { argument
86 public boolean matches(BluetoothDevice device) { argument
87 return device.getBondState() == BluetoothDevice.BOND_BONDED;
93 public boolean matches(BluetoothDevice device) { argument
94 return device.getBondState() != BluetoothDevice.BOND_BONDED;
102 public boolean matches(BluetoothDevice device) { argument
103 return matches(device.getUuids(), device
[all...]
H A DLocalBluetoothProfile.java38 boolean connect(BluetoothDevice device); argument
40 boolean disconnect(BluetoothDevice device); argument
42 int getConnectionStatus(BluetoothDevice device); argument
44 boolean isPreferred(BluetoothDevice device); argument
46 int getPreferred(BluetoothDevice device); argument
48 void setPreferred(BluetoothDevice device, boolean preferred); argument
54 /** Display order for device profile settings. */
59 * @param device the Bluetooth device (to distinguish between PAN roles)
61 int getNameResource(BluetoothDevice device); argument
70 getSummaryResourceForDevice(BluetoothDevice device) argument
[all...]
H A DOppProfile.java32 // Order of this profile in device profiles list
43 public boolean connect(BluetoothDevice device) { argument
47 public boolean disconnect(BluetoothDevice device) { argument
51 public int getConnectionStatus(BluetoothDevice device) { argument
55 public boolean isPreferred(BluetoothDevice device) { argument
59 public int getPreferred(BluetoothDevice device) { argument
63 public void setPreferred(BluetoothDevice device, boolean preferred) { argument
83 public int getNameResource(BluetoothDevice device) { argument
87 public int getSummaryResourceForDevice(BluetoothDevice device) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBluetoothController.java37 void connect(CachedBluetoothDevice device); argument
38 void disconnect(CachedBluetoothDevice device); argument
41 int getMaxConnectionState(CachedBluetoothDevice device); argument
42 int getBondState(CachedBluetoothDevice device); argument
H A DCastController.java28 void startCasting(CastDevice device); argument
29 void stopCasting(CastDevice device); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DUsbPermissionActivity.java141 * Can the app be the default for the USB device. I.e. can the app be launched by default if
142 * the device is plugged in.
144 * @param device The device the app would be default for
149 private boolean canBeDefault(@NonNull UsbDevice device, @NonNull PackageInfo packageInfo) { argument
164 if ("usb-device".equals(parser.getName())) {
166 if (filter.matches(device)) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
H A DFakeBluetoothController.java75 public void connect(CachedBluetoothDevice device) { argument
80 public void disconnect(CachedBluetoothDevice device) { argument
90 public int getMaxConnectionState(CachedBluetoothDevice device) { argument
95 public int getBondState(CachedBluetoothDevice device) { argument
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbMidiDevice.cpp43 jint card, jint device)
51 // This control device may not have been created yet. So we should
63 // Typically the device should be ready in 5-10 milliseconds.
70 info.device = device;
84 android_server_UsbMidiDevice_open(JNIEnv *env, jobject thiz, jint card, jint device, argument
89 snprintf(path, sizeof(path), "/dev/snd/midiC%dD%d", card, device);
42 android_server_UsbMidiDevice_get_subdevice_count(JNIEnv *env, jobject , jint card, jint device) argument
/frameworks/base/services/usb/java/com/android/server/usb/
H A DMtpNotificationManager.java75 void showNotification(UsbDevice device) { argument
79 device.getProductName());
90 intent.putExtra(UsbManager.EXTRA_DEVICE, device);
95 device.getDeviceId(),
105 Integer.toString(device.getDeviceId()), SystemMessage.NOTE_USB_MTP_TAP,
117 final UsbDevice device =
119 if (device == null) {
124 mListener.onOpenInApp(device);
130 static boolean shouldShowNotification(PackageManager packageManager, UsbDevice device) { argument
133 isMtpDevice(device);
136 isMtpDevice(UsbDevice device) argument
155 onOpenInApp(UsbDevice device) argument
[all...]
H A DUsbSettingsManager.java162 * Remove temporary access permission and broadcast that a device was removed.
164 * @param device The device that is removed
166 void usbDeviceRemoved(@NonNull UsbDevice device) { argument
169 // clear temporary permissions for the device
170 mSettingsByUser.valueAt(i).removeDevicePermissions(device);
176 intent.putExtra(UsbManager.EXTRA_DEVICE, device);
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A DAoapInterface.java50 * Control request for retrieving device's protocol version
58 * 2 adds HID and device to host audio support
63 * Control request for host to send a string to the device
71 * The device can later retrieve these strings via the
77 * Control request for starting device in accessory mode.
78 * The host sends this after setting all its strings to the device.
128 public static boolean isDeviceInAoapMode(UsbDevice device) { argument
129 final int vid = device.getVendorId();
130 final int pid = device.getProductId();
/frameworks/base/tools/preload2/src/com/android/preload/
H A DClientUtils.java45 public Client findClient(IDevice device, String processName, int processPid) { argument
46 return findClient(device, processName, processPid, defaultTimeout);
53 * @param device The device to communicate with.
59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { argument
60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout);
67 public Client[] findAllClients(IDevice device) { argument
68 return findAllClients(device, defaultTimeout);
72 * Retrieve all clients known to the given device. Wait at most the given timeout.
74 * @param device Th
79 findAllClients(IDevice device, int timeout) argument
89 private IDevice device; field in class:ClientUtils.WaitForClient
95 WaitForClient(IDevice device, String processName, int processPid, long timeout) argument
125 searchForClient(IDevice device) argument
179 private IDevice device; field in class:ClientUtils.WaitForClients
182 WaitForClients(IDevice device, long timeout) argument
[all...]
/frameworks/ml/nn/runtime/
H A DManager.cpp33 Device::Device(std::string name, const sp<V1_0::IDevice>& device) : argument
34 mName(std::move(name)), mInterface(device) {}
146 sp<V1_0::IDevice> device = V1_0::IDevice::getService(name);
147 if (device == nullptr) {
151 registerDevice(name.c_str(), device);
156 void DeviceManager::registerDevice(const char* name, const sp<V1_0::IDevice>& device) { argument
157 auto d = std::make_shared<Device>(name, device);
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp60 MemoryHeapBase::MemoryHeapBase(const char* device, size_t size, uint32_t flags) argument
68 int fd = open(device, open_flags);
69 ALOGE_IF(fd<0, "error opening %s: %s", device, strerror(errno));
74 mDevice = device;
88 status_t MemoryHeapBase::init(int fd, void *base, int size, int flags, const char* device) argument
97 mDevice = device;
/frameworks/native/vulkan/vkjson/
H A Dvkjson_unittest.cc50 VkJsonDevice& device = instance.devices[0]; local
52 const char name[] = "Test device";
53 memcpy(device.properties.deviceName, name, sizeof(name));
54 device.properties.limits.maxImageDimension1D = 3;
55 device.properties.limits.maxSamplerLodBias = 3.5f;
56 device.properties.limits.bufferImageGranularity = 0x1ffffffffull;
57 device.properties.limits.maxViewportDimensions[0] = 1;
58 device.properties.limits.maxViewportDimensions[1] = 2;
63 device.formats.insert(std::make_pair(VK_FORMAT_R8_UNORM, format_props));
64 device
[all...]
/frameworks/av/camera/ndk/
H A DNdkCameraDevice.cpp30 camera_status_t ACameraDevice_close(ACameraDevice* device) { argument
32 if (device == nullptr) {
33 ALOGE("%s: invalid argument! device is null", __FUNCTION__);
36 delete device;
41 const char* ACameraDevice_getId(const ACameraDevice* device) { argument
43 if (device == nullptr) {
44 ALOGE("%s: invalid argument! device is null", __FUNCTION__);
47 return device->getId();
52 const ACameraDevice* device,
56 if (device
51 ACameraDevice_createCaptureRequest( const ACameraDevice* device, ACameraDevice_request_template templateId, ACaptureRequest** request) argument
212 ACameraDevice_createCaptureSession( ACameraDevice* device, const ACaptureSessionOutputContainer* outputs, const ACameraCaptureSession_stateCallbacks* callbacks, ACameraCaptureSession** session) argument
227 ACameraDevice_createCaptureSessionWithSessionParameters( ACameraDevice* device, const ACaptureSessionOutputContainer* outputs, const ACaptureRequest* sessionParameters, const ACameraCaptureSession_stateCallbacks* callbacks, ACameraCaptureSession** session) argument
[all...]
/frameworks/av/media/libmedia/
H A DTypeConverter.cpp371 bool deviceFromString(const std::string& literalDevice, audio_devices_t& device) { argument
372 return InputDeviceConverter::fromString(literalDevice, device) ||
373 OutputDeviceConverter::fromString(literalDevice, device);
376 bool deviceToString(audio_devices_t device, std::string& literalDevice) { argument
377 if (device & AUDIO_DEVICE_BIT_IN) {
378 return InputDeviceConverter::toString(device, literalDevice);
380 return OutputDeviceConverter::toString(device, literalDevice);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DIOProfile.h64 bool isCompatibleProfile(audio_devices_t device,
81 bool supportDevice(audio_devices_t device) const
83 if (audio_is_output_devices(device)) {
84 return mSupportedDevices.types() & device;
86 return mSupportedDevices.types() & (device & ~AUDIO_DEVICE_BIT_IN);
94 // chose first device present in mSupportedDevices also part of deviceType
109 void addSupportedDevice(const sp<DeviceDescriptor> &device) argument
111 mSupportedDevices.add(device);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DStreamDescriptor.cpp46 int StreamDescriptor::getVolumeIndex(audio_devices_t device) const
48 device = Volume::getDeviceForVolume(device);
50 if (mIndexCur.indexOfKey(device) < 0) {
51 device = AUDIO_DEVICE_OUT_DEFAULT_FOR_VOLUME;
53 return mIndexCur.valueFor(device);
61 void StreamDescriptor::addCurrentVolumeIndex(audio_devices_t device, int index) argument
63 mIndexCur.add(device, index);
120 audio_devices_t device, int index)
122 editValueAt(stream).addCurrentVolumeIndex(device, inde
119 addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index) argument
[all...]
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.cpp259 uint32_t device = AUDIO_DEVICE_NONE; local
266 device = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER;
271 device = getDeviceForStrategyInt(
280 // routing is same as media without the "remote" device
281 device = getDeviceForStrategyInt(STRATEGY_MEDIA,
285 // if no media is playing on the device, check for mandatory use of "safe" speaker
288 && (device & AUDIO_DEVICE_OUT_SPEAKER)
290 device |= AUDIO_DEVICE_OUT_SPEAKER_SAFE;
291 device &= ~AUDIO_DEVICE_OUT_SPEAKER;
299 device
621 uint32_t device = AUDIO_DEVICE_NONE; local
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DFrameProcessor.cpp31 FrameProcessor::FrameProcessor(wp<CameraDeviceBase> device, argument
33 FrameProcessorBase(device),
38 sp<CameraDeviceBase> d = device.promote();
66 const sp<CameraDeviceBase> &device) {
86 return FrameProcessorBase::processSingleFrame(frame, device);
65 processSingleFrame(CaptureResult &frame, const sp<CameraDeviceBase> &device) argument
/frameworks/av/services/camera/libcameraservice/common/
H A DFrameProcessorBase.cpp30 FrameProcessorBase::FrameProcessorBase(wp<CameraDeviceBase> device) : argument
32 mDevice(device),
34 sp<CameraDeviceBase> cameraDevice = device.promote();
103 sp<CameraDeviceBase> device; local
105 device = mDevice.promote();
106 if (device == 0) return false;
109 res = device->waitForNextFrame(kWaitDuration);
111 processNewFrames(device);
120 void FrameProcessorBase::processNewFrames(const sp<CameraDeviceBase> &device) { argument
125 ALOGV("%s: Camera %s: Process new frames", __FUNCTION__, device
159 processSingleFrame(CaptureResult &result, const sp<CameraDeviceBase> &device) argument
166 processListeners(const CaptureResult &result, const sp<CameraDeviceBase> &device) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAvrcpController.java54 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
218 public int getConnectionState(BluetoothDevice device) { argument
219 if (VDBG) log("getState(" + device + ")");
221 if (service != null && isEnabled() && isValidDevice(device)) {
223 return service.getConnectionState(device);
238 public BluetoothAvrcpPlayerSettings getPlayerSettings(BluetoothDevice device) { argument
244 settings = service.getPlayerSettings(device);
276 public void sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState) { argument
277 Log.d(TAG, "sendGroupNavigationCmd dev = " + device + " key " + keyCode + " State = "
282 service.sendGroupNavigationCmd(device, keyCod
315 isValidDevice(BluetoothDevice device) argument
[all...]
H A DBluetoothGattServerCallback.java25 * Callback indicating when a remote device has been connected or disconnected.
27 * @param device Remote device that has been connected or disconnected.
32 public void onConnectionStateChange(BluetoothDevice device, int status, argument
52 * @param device The remote device that has requested the read operation
57 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, argument
67 * @param device The remote device that has requested the write operation
71 * @param responseNeeded true, if the remote device require
75 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
92 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument
110 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
126 onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) argument
140 onNotificationSent(BluetoothDevice device, int status) argument
152 onMtuChanged(BluetoothDevice device, int mtu) argument
167 onPhyUpdate(BluetoothDevice device, int txPhy, int rxPhy, int status) argument
181 onPhyRead(BluetoothDevice device, int txPhy, int rxPhy, int status) argument
198 onConnectionUpdated(BluetoothDevice device, int interval, int latency, int timeout, int status) argument
[all...]

Completed in 2272 milliseconds

12345678910