/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
H A D | DeviceDiscoveryService.java | 165 // If filtering to get single device by mac address, also search in the set of already 255 private void onDeviceFound(@Nullable DeviceFilterPair device) { argument 256 if (device == null) return; 258 if (mDevicesFound.contains(device)) { 262 if (DEBUG) Log.i(LOG_TAG, "Found device " + device); 267 mDevicesFound.add(device); 289 private void onDeviceLost(@Nullable DeviceFilterPair device) { argument 290 mDevicesFound.remove(device); 292 if (DEBUG) Log.i(LOG_TAG, "Lost device " 341 bind(TextView textView, DeviceFilterPair device) argument 375 public final T device; field in class:DeviceDiscoveryService.DeviceFilterPair 379 DeviceFilterPair(T device, @Nullable DeviceFilter<T> filter) argument [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpDatabase.java | 54 * If the remote MTP device is backed by typical file system, the file name 191 // Add storage name to device name if we have only 1 storage. 249 * Returns document IDs of storages under the given device document. 251 * @param documentId Document ID that points a device. 259 // Check if the parent document is device that has single storage. 362 throw new FileNotFoundException("The device ID not found: " + deviceId); 742 MtpDeviceRecord device) { 744 values.put(COLUMN_DEVICE_ID, device.deviceId); 750 values.put(COLUMN_MAPPING_KEY, device.deviceKey); 752 values.put(Document.COLUMN_DISPLAY_NAME, device 739 getDeviceDocumentValues( ContentValues values, ContentValues extraValues, MtpDeviceRecord device) argument [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | LocalBluetoothProfileManager.java | 131 // Always add HID host, HID device, and PAN profiles 345 public void onReceive(Context context, Intent intent, BluetoothDevice device) { argument 346 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); 348 Log.w(TAG, "StateChangedHandler found new device: " + device); 350 LocalBluetoothProfileManager.this, device); 360 Log.i(TAG, "Failed to connect " + mProfile + " device"); 419 public void onReceive(Context context, Intent intent, BluetoothDevice device) { argument 422 panProfile.setLocalRole(device, role); 423 super.onReceive(context, intent, device); 533 updateProfiles(ParcelUuid[] uuids, ParcelUuid[] localUuids, Collection<LocalBluetoothProfile> profiles, Collection<LocalBluetoothProfile> removedProfiles, boolean isPanNapConnected, BluetoothDevice device) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImpl.java | 97 for (CachedBluetoothDevice device : getDevices()) { 98 pw.println(" " + getDeviceString(device)); 116 private String getDeviceString(CachedBluetoothDevice device) { argument 117 return device.getName() + " " + device.getBondState() + " " + device.isConnected(); 121 public int getBondState(CachedBluetoothDevice device) { argument 122 return getCachedState(device).mBondState; 131 public int getMaxConnectionState(CachedBluetoothDevice device) { argument 132 return getCachedState(device) 179 connect(final CachedBluetoothDevice device) argument 185 disconnect(CachedBluetoothDevice device) argument 286 getCachedState(CachedBluetoothDevice device) argument 313 ActuallyCachedState(CachedBluetoothDevice device, Handler uiHandler) argument [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbProfileGroupSettingsManager.java | 239 device -> resolveActivity(createDeviceAttachedIntent(device), 240 device, false /* showMtpNotification */)); 299 if ("usb-device".equals(parser.getName())) { 448 // Checks to see if a package matches a device or accessory. 449 // Only one of device and accessory should be non-null. 451 UsbDevice device, UsbAccessory accessory) { 469 if (device != null && "usb-device".equals(tagName)) { 471 if (filter.matches(device)) { 450 packageMatchesLocked(ResolveInfo info, String metaDataName, UsbDevice device, UsbAccessory accessory) argument 626 getDeviceMatchesLocked(UsbDevice device, Intent intent) argument 655 deviceAttached(UsbDevice device) argument 664 resolveActivity(Intent intent, UsbDevice device, boolean showMtpNotification) argument 684 deviceAttachedForFixedHandler(UsbDevice device, ComponentName component) argument 718 usbDeviceRemoved(@onNull UsbDevice device) argument 749 resolveActivity(@onNull Intent intent, @NonNull ArrayList<ResolveInfo> matches, @Nullable ActivityInfo defaultActivity, @Nullable UsbDevice device, @Nullable UsbAccessory accessory) argument 1013 setDevicePackage(@onNull UsbDevice device, @Nullable String packageName, @NonNull UserHandle user) argument 1165 createDeviceAttachedIntent(UsbDevice device) argument [all...] |
H A D | UsbService.java | 58 * UsbService manages all USB related state, including both host and device support. 59 * Host related events and calls are delegated to UsbHostManager, and device related 251 /* Opens the specified USB device (host mode) */ 276 /* returns the currently attached USB accessory (device mode) */ 286 /* opens the currently attached USB accessory (device mode) */ 315 public void setDevicePackage(UsbDevice device, String packageName, int userId) { argument 316 device = Preconditions.checkNotNull(device); 321 mSettingsManager.getSettingsForProfileGroup(user).setDevicePackage(device, packageName, 337 public boolean hasDevicePermission(UsbDevice device, Strin argument 350 requestDevicePermission(UsbDevice device, String packageName, PendingIntent pi) argument 364 grantDevicePermission(UsbDevice device, int uid) argument [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | SinkActivity.java | 124 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); 125 if (device != null) { 126 onDeviceAttached(device); 131 for (UsbDevice device : devices.values()) { 132 onDeviceAttached(device); 145 private void onDeviceAttached(UsbDevice device) { argument 146 mLogger.log("USB device attached: " + device); 148 connect(device); 152 private void onDeviceDetached(UsbDevice device) { argument 159 connect(UsbDevice device) argument 464 isAccessory(UsbDevice device) argument [all...] |
/frameworks/ml/nn/runtime/ |
H A D | ExecutionPlan.h | 49 std::shared_ptr<Device> device); 202 std::shared_ptr<ExecutionStep> createNewStep(const std::shared_ptr<Device> device); 204 void becomeSingleStep(const std::shared_ptr<Device> device, 237 SimpleBody(std::shared_ptr<Device> device, const ModelBuilder* model) : argument 238 mDevice(device), mModel(model) {}
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | WifiP2pMonitor.java | 266 * Broadcast new p2p device discovered event to all handlers registered for this event. 269 * @param device Device that has been discovered during recent scan. 271 public void broadcastP2pDeviceFound(String iface, WifiP2pDevice device) { argument 272 if (device != null) { 273 sendMessage(iface, P2P_DEVICE_FOUND_EVENT, device); 278 * Broadcast p2p device lost event to all handlers registered for this event. 281 * @param device Device that has been lost in recent scan. 283 public void broadcastP2pDeviceLost(String iface, WifiP2pDevice device) { argument 284 if (device != null) { 285 sendMessage(iface, P2P_DEVICE_LOST_EVENT, device); 472 broadcastP2pApStaConnected(String iface, WifiP2pDevice device) argument 481 broadcastP2pApStaDisconnected(String iface, WifiP2pDevice device) argument [all...] |
/frameworks/av/camera/ndk/impl/ |
H A D | ACameraDevice.h | 70 explicit ServiceCallback(CameraDevice* device) : mDevice(device) {} argument 90 // Camera device is only functional after remote being set 99 // device goes into fatal error state after this 136 // only For session to hold device lock 137 // Always grab device lock before grabbing session lock 221 // being removed in callback thread without holding camera device lock 328 // Camera device is only functional after remote being set
|
/frameworks/av/camera/tests/ |
H A D | CameraBinderTests.cpp | 344 // Make sure we're available, or skip device tests otherwise 353 sp<hardware::camera2::ICameraDeviceUser> device; local 355 hardware::ICameraService::USE_CALLING_UID, /*out*/&device); 357 ASSERT_NE(nullptr, device.get()); 358 device->disconnect(); 393 sp<hardware::camera2::ICameraDeviceUser> device; local 397 hardware::ICameraService::USE_CALLING_UID, /*out*/&device); 400 auto p = std::make_pair(callbacks, device); 451 // Make sure we're available, or skip device tests otherwise 461 sp<hardware::camera2::ICameraDeviceUser> device local [all...] |
/frameworks/av/media/libaudiohal/2.0/ |
H A D | StreamHalLocal.cpp | 28 StreamHalLocal::StreamHalLocal(audio_stream_t *stream, sp<DeviceHalLocal> device) argument 29 : mDevice(device), 114 StreamOutHalLocal::StreamOutHalLocal(audio_stream_out_t *stream, sp<DeviceHalLocal> device) argument 115 : StreamHalLocal(&stream->common, device), mStream(stream) { 268 StreamInHalLocal::StreamInHalLocal(audio_stream_in_t *stream, sp<DeviceHalLocal> device) argument 269 : StreamHalLocal(&stream->common, device), mStream(stream) {
|
/frameworks/av/media/libaudiohal/4.0/ |
H A D | StreamHalLocal.cpp | 30 StreamHalLocal::StreamHalLocal(audio_stream_t *stream, sp<DeviceHalLocal> device) argument 31 : mDevice(device), 116 StreamOutHalLocal::StreamOutHalLocal(audio_stream_out_t *stream, sp<DeviceHalLocal> device) argument 117 : StreamHalLocal(&stream->common, device), mStream(stream) { 270 StreamInHalLocal::StreamInHalLocal(audio_stream_in_t *stream, sp<DeviceHalLocal> device) argument 271 : StreamHalLocal(&stream->common, device), mStream(stream) {
|
/frameworks/av/media/mtp/ |
H A D | MtpDevice.cpp | 74 struct usb_device *device = usb_device_new(deviceName, fd); local 75 if (!device) { 83 usb_descriptor_iter_init(device, &iter); 93 char* manufacturerName = usb_device_get_manufacturer_name(device, 95 char* productName = usb_device_get_product_name(device, 103 char* interfaceName = usb_device_get_string(device, interface->iInterface, 113 // Looks like an android style MTP device 114 char* manufacturerName = usb_device_get_manufacturer_name(device, 116 char* productName = usb_device_get_product_name(device, 118 ALOGD("Found MTP device 219 MtpDevice(struct usb_device* device, int interface, const struct usb_endpoint_descriptor *ep_in, const struct usb_endpoint_descriptor *ep_out, const struct usb_endpoint_descriptor *ep_intr) argument [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | Serializer.cpp | 342 ALOGV("%s: adding device tag %s type %08x address %s", __FUNCTION__, 469 sp<DeviceDescriptor> device = local 471 ctx->addAvailableDevice(device); 483 sp<DeviceDescriptor> device = local 485 if (device != 0 && ctx->getDefaultOutputDevice() == 0) { 486 ctx->setDefaultOutputDevice(device);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | ZslProcessor.cpp | 146 sp<Camera3Device> device = local 148 if (device != 0) { 150 device->info().find(ANDROID_REQUEST_PIPELINE_MAX_DEPTH); 159 entry = device->info().find(ANDROID_LENS_INFO_MINIMUM_FOCUS_DISTANCE); 227 sp<Camera3Device> device = local 229 if (device == 0) { 235 res = device->createInputStream(params.fastInfo.maxZslSize.width, 258 res = device->createStream(outSurface, params.fastInfo.maxZslSize.width, 281 sp<Camera3Device> device = nullptr; local 293 device 343 sp<Camera3Device> device = local [all...] |
/frameworks/av/services/soundtrigger/ |
H A D | SoundTriggerHwService.cpp | 590 audio_devices_t device; local 592 status_t status = AudioSystem::acquireSoundTriggerSession(&session, &ioHandle, &device); 614 sp<Model> model = new Model(*handle, session, ioHandle, device, sound_model->type, 693 //TODO: get capture handle and device from audio policy service 903 audio_io_handle_t ioHandle, audio_devices_t device, 907 mCaptureIOHandle(ioHandle), mCaptureDevice(device), mType(type), 902 Model(sound_model_handle_t handle, audio_session_t session, audio_io_handle_t ioHandle, audio_devices_t device, sound_trigger_sound_model_type_t type, sp<ModuleClient>& moduleClient) argument
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGatt.java | 34 * <p>To connect to a remote peripheral device, create a {@link BluetoothGattCallback} 36 * GATT capable devices can be discovered using the Bluetooth device discovery or BLE 94 /** A remote device connection is congested. */ 249 + " clientIf=" + clientIf + " device=" + address); 284 * of the remote device database. Let the application know that 300 //services we receive don't have device set properly. 392 * Characteristic has been written to the remote device. 606 * Remote device RSSI has been read 683 /*package*/ BluetoothGatt(IBluetoothGatt iGatt, BluetoothDevice device, argument 686 mDevice = device; 715 getService(BluetoothDevice device, UUID uuid, int instanceId) argument 733 getCharacteristicById(BluetoothDevice device, int instanceId) argument 750 getDescriptorById(BluetoothDevice device, int instanceId) argument 1550 getConnectionState(BluetoothDevice device) argument [all...] |
H A D | BluetoothHeadset.java | 65 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 86 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li> 99 * Intent used to broadcast the selection of a connected device as active. 103 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. It can 104 * be null if no device is active. </li> 291 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - Remote device. </li> 420 * Initiate connection to a profile of the remote bluetooth device. 427 * device is already connected or Bluetooth is not turned on. 436 * @param device Remote Bluetooth Device 442 public boolean connect(BluetoothDevice device) { argument 484 disconnect(BluetoothDevice device) argument 541 getConnectionState(BluetoothDevice device) argument 573 setPriority(BluetoothDevice device, int priority) argument 605 getPriority(BluetoothDevice device) argument 641 startVoiceRecognition(BluetoothDevice device) argument 669 stopVoiceRecognition(BluetoothDevice device) argument 691 isAudioConnected(BluetoothDevice device) argument 722 getAudioState(BluetoothDevice device) argument 1018 sendVendorSpecificResultCode(BluetoothDevice device, String command, String arg) argument 1063 setActiveDevice(@ullable BluetoothDevice device) argument 1174 isValidDevice(BluetoothDevice device) argument [all...] |
H A D | BluetoothSocket.java | 51 * <p>To create a {@link BluetoothSocket} for connecting to a known device, use 54 * Then call {@link #connect()} to attempt a connection to the remote device. 122 private BluetoothDevice mDevice; /* remote device */ 165 * @param auth require the remote device to be authenticated 167 * @param device remote device that this socket can connect to 174 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { 175 this(type, fd, auth, encrypt, device, port, uuid, false, false); 183 * @param auth require the remote device to be authenticated 185 * @param device remot 173 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument 193 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid, boolean mitm, boolean min16DigitPin) argument [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 156 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { argument 159 mDevice = device; 217 public ConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) { argument 220 mDevice = device; 271 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { argument 272 super(device, BluetoothProfile.PAN, expectedFlags); 508 * Puts the local device into discoverable mode and checks to make sure that the local device 558 * Puts the local device into connectable only mode and checks to make sure that the local 559 * device i 728 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 741 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 757 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument 825 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument 901 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 982 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 1059 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1070 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1083 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument 1164 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1175 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1188 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument 1268 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1279 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1290 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument 1392 getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) argument 1402 getConnectProfileReceiver(BluetoothDevice device, int profile, int expectedFlags) argument 1414 getConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | PersistentDataStore.java | 74 * <stable-device-values> 77 * </stable-device-values> 107 private static final String TAG_STABLE_DEVICE_VALUES = "stable-device-values"; 129 // Display values which should be stable across the device's lifetime. 247 public int getColorMode(DisplayDevice device) { argument 248 if (!device.hasStableUniqueId()) { 251 DisplayState state = getDisplayState(device.getUniqueId(), false); 258 public boolean setColorMode(DisplayDevice device, int colorMode) { argument 259 if (!device.hasStableUniqueId()) { 262 DisplayState state = getDisplayState(device [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecController.java | 43 * and pass it to CEC HAL so that it sends message to other device. For incoming 63 * @param deviceType requested device type to allocate logical address 66 * it failed to allocate logical address for the given device type 77 // Predicate for whether the given logical address is remote device's one or not. 97 // device or issued by internal state change. 120 * inner device or has no device it will return {@code null}. 125 * @return {@link HdmiCecController} if device is initialized successfully. Otherwise, 147 void addLocalDevice(int deviceType, HdmiCecLocalDevice device) { argument 149 mLocalDevices.put(deviceType, device); [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 94 BufferProducerThread(tv_input_device_t* device, int deviceId, const tv_stream_t* stream); 124 tv_input_device_t* device, int deviceId, const tv_stream_t* stream) 126 mDevice(device), 371 ALOGE("Couldn't get stream configs for device id:%d result:%d", deviceId, result); 397 ALOGE("Couldn't open stream. device id:%d stream id:%d result:%d", deviceId, streamId, 429 ALOGE("Couldn't close stream. device id:%d stream id:%d", deviceId, streamId); 449 ALOGE("Couldn't get stream configs for device id:%d result:%d", deviceId, result); 123 BufferProducerThread( tv_input_device_t* device, int deviceId, const tv_stream_t* stream) argument
|
/frameworks/base/services/midi/java/com/android/server/midi/ |
H A D | MidiService.java | 140 // List of all device connections for this client 167 public void addDeviceConnection(Device device, IMidiDeviceOpenCallback callback) { argument 168 DeviceConnection connection = new DeviceConnection(device, this, callback); 170 device.addDeviceConnection(connection); 192 public void deviceAdded(Device device) { argument 194 if (!device.isUidAllowed(mUid)) return; 196 MidiDeviceInfo deviceInfo = device.getDeviceInfo(); 206 public void deviceRemoved(Device device) { argument 208 if (!device.isUidAllowed(mUid)) return; 210 MidiDeviceInfo deviceInfo = device 220 deviceStatusChanged(Device device, MidiDeviceStatus status) argument 528 DeviceConnection(Device device, Client client, IMidiDeviceOpenCallback callback) argument 773 notifyDeviceStatusChanged(Device device, MidiDeviceStatus status) argument 828 removeDeviceLocked(Device device) argument [all...] |