/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
H A D | 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 an 399 startPairing(BluetoothDevice device) argument 437 invalidateDevice(BluetoothDevice device) argument 441 startPairing(BluetoothDevice device, boolean isManual) argument 478 onDeviceFound(BluetoothDevice device) argument 492 onDeviceLost(BluetoothDevice device) argument 624 unpairDevice(BluetoothDevice device) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | AdapterService.java | 228 public void onProfileConnectionStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { argument 230 m.obj = device; 239 public void initProfilePriorities(BluetoothDevice device, ParcelUuid[] mUuids) { argument 242 m.obj = device; 252 private void processInitProfilePriorities (BluetoothDevice device, ParcelUuid[] uuids){ argument 260 // Set profile priorities only for the profiles discovered on the remote device. 261 // This avoids needless auto-connect attempts to profiles non-existent on the remote device 265 (hidService.getPriority(device) == BluetoothProfile.PRIORITY_UNDEFINED)){ 266 hidService.setPriority(device,BluetoothProfile.PRIORITY_ON); 273 (headsetService.getPriority(device) 304 processProfileStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) argument 1078 createBond(BluetoothDevice device, int transport) argument 1089 createBondOutOfBand(BluetoothDevice device, int transport, OobData oobData) argument 1100 cancelBondProcess(BluetoothDevice device) argument 1111 removeBond(BluetoothDevice device) argument 1122 getBondState(BluetoothDevice device) argument 1129 getConnectionState(BluetoothDevice device) argument 1135 getRemoteName(BluetoothDevice device) argument 1146 getRemoteType(BluetoothDevice device) argument 1157 getRemoteAlias(BluetoothDevice device) argument 1168 setRemoteAlias(BluetoothDevice device, String name) argument 1179 getRemoteClass(BluetoothDevice device) argument 1190 getRemoteUuids(BluetoothDevice device) argument 1201 fetchRemoteUuids(BluetoothDevice device) argument 1214 setPin(BluetoothDevice device, boolean accept, int len, byte[] pinCode) argument 1225 setPasskey(BluetoothDevice device, boolean accept, int len, byte[] passkey) argument 1236 setPairingConfirmation(BluetoothDevice device, boolean accept) argument 1247 getPhonebookAccessPermission(BluetoothDevice device) argument 1258 setPhonebookAccessPermission(BluetoothDevice device, int value) argument 1269 getMessageAccessPermission(BluetoothDevice device) argument 1280 setMessageAccessPermission(BluetoothDevice device, int value) argument 1291 getSimAccessPermission(BluetoothDevice device) argument 1302 setSimAccessPermission(BluetoothDevice device, int value) argument 1313 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument 1320 connectSocket(BluetoothDevice device, int type, ParcelUuid uuid, int port, int flag) argument 1343 sdpSearch(BluetoothDevice device, ParcelUuid uuid) argument 1587 sdpSearch(BluetoothDevice device,ParcelUuid uuid) argument 1597 createBond(BluetoothDevice device, int transport, OobData oobData) argument 1734 connectOtherProfile(BluetoothDevice device, int firstProfileStatus) argument 1744 processConnectOtherProfiles(BluetoothDevice device, int firstProfileStatus) argument 1826 setProfileAutoConnectionPriority(BluetoothDevice device, int profileId) argument 1881 cancelBondProcess(BluetoothDevice device) argument 1887 removeBond(BluetoothDevice device) argument 1899 getBondState(BluetoothDevice device) argument 1908 getConnectionState(BluetoothDevice device) argument 1914 getRemoteName(BluetoothDevice device) argument 1922 getRemoteType(BluetoothDevice device) argument 1929 getRemoteAlias(BluetoothDevice device) argument 1936 setRemoteAlias(BluetoothDevice device, String name) argument 1944 getRemoteClass(BluetoothDevice device) argument 1952 getRemoteUuids(BluetoothDevice device) argument 1959 fetchRemoteUuids(BluetoothDevice device) argument 1966 setPin(BluetoothDevice device, boolean accept, int len, byte[] pinCode) argument 1981 setPasskey(BluetoothDevice device, boolean accept, int len, byte[] passkey) argument 1993 setPairingConfirmation(BluetoothDevice device, boolean accept) argument 2006 getPhonebookAccessPermission(BluetoothDevice device) argument 2017 setPhonebookAccessPermission(BluetoothDevice device, int value) argument 2031 getMessageAccessPermission(BluetoothDevice device) argument 2042 setMessageAccessPermission(BluetoothDevice device, int value) argument 2056 getSimAccessPermission(BluetoothDevice device) argument 2067 setSimAccessPermission(BluetoothDevice device, int value) argument 2081 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument 2091 connectSocket(BluetoothDevice device, int type, ParcelUuid uuid, int port, int flag) argument [all...] |
H A D | BondStateMachine.java | 44 * {@link StableState} : No device is in bonding / unbonding state. 45 * {@link PendingCommandState} : Some device is in bonding / unbonding state. 205 // the device to the list again. This prevents us 206 // from pairing with a device that we just unpaired 330 private void sendIntent(BluetoothDevice device, int newState, int reason) { argument 331 DeviceProperties devProp = mRemoteDevices.getDeviceProperties(device); 337 mAdapterProperties.onBondStateChanged(device, newState); 340 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 347 infoLog("Bond State Change Intent:" + device + " OldState: " + oldState 352 BluetoothDevice device 445 clearProfilePriority(BluetoothDevice device) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
H A D | PanService.java | 138 BluetoothDevice device = (BluetoothDevice) msg.obj; 139 if (!connectPanNative(Utils.getByteAddress(device), 141 handlePanDeviceStateChange(device, null, BluetoothProfile.STATE_CONNECTING, 143 handlePanDeviceStateChange(device, null, 152 BluetoothDevice device = (BluetoothDevice) msg.obj; 153 if (!disconnectPanNative(Utils.getByteAddress(device)) ) { 154 handlePanDeviceStateChange(device, mPanIfName, 157 handlePanDeviceStateChange(device, mPanIfName, 167 BluetoothDevice device = getDevice(cs.addr); 170 log("MESSAGE_CONNECT_STATE_CHANGED: " + device 204 connect(BluetoothDevice device) argument 209 disconnect(BluetoothDevice device) argument 214 getConnectionState(BluetoothDevice device) argument 256 connect(BluetoothDevice device) argument 267 disconnect(BluetoothDevice device) argument 274 getConnectionState(BluetoothDevice device) argument 382 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int local_role, int remote_role) argument 561 getPanDeviceConnectionState(BluetoothDevice device) argument [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | DockService.java | 65 // Time allowed for the device to be undocked and redocked without severing 69 // Time allowed for the device to be undocked and redocked without turning 76 // Msg for device docked event 79 // Msg for device undocked event 269 BluetoothDevice device = null; 271 device = (BluetoothDevice) msg.obj; 274 if(DEBUG) Log.d(TAG, "processMessage: " + msgType + " state: " + state + " device = " 275 + (device == null ? "null" : device.toString())); 281 if (device ! 330 msgTypeUndockedTemporary(BluetoothDevice device, int state, int startId) argument 338 msgTypeUndockedPermanent(BluetoothDevice device, int startId) argument 370 msgTypeDocked(BluetoothDevice device, final int state, final int startId) argument 488 createDialog(BluetoothDevice device, int state, int startId) argument 638 initBtSettings(BluetoothDevice device, int state, boolean firstTime) argument 803 connectIfEnabled(BluetoothDevice device) argument 815 applyBtSettings(BluetoothDevice device, int startId) argument 883 handleDocked(BluetoothDevice device, int state, int startId) argument 895 handleUndocked(BluetoothDevice device) argument 910 getCachedBluetoothDevice(BluetoothDevice device) argument [all...] |
H A D | BluetoothPairingRequest.java | 47 BluetoothDevice device = 53 pairingIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 67 String deviceAddress = device != null ? device.getAddress() : null; 68 String deviceName = device != null ? device.getName() : null; 87 name = device != null ? device.getAliasName() :
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
H A D | PbapPCEClient.java | 156 // If we are disconnected then whatever the current device is we should simply clean up. 184 BluetoothDevice device = (BluetoothDevice) msg.obj; 189 handleConnect(device); 200 BluetoothDevice device = (BluetoothDevice) msg.obj; 201 if (!mDevice.equals(device)) { 205 handleDisconnect(device); 207 if (device != null) { 208 onConnectionStateChanged(device, oldState, newState); 221 private void handleConnect(BluetoothDevice device) { argument 222 Log.d(TAG,"HANDLECONNECT" + device); 251 handleDisconnect(BluetoothDevice device) argument 269 onConnectionStateChanged(BluetoothDevice device, int prevState, int state) argument 279 connect(BluetoothDevice device) argument 283 disconnect(BluetoothDevice device) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/device/ |
H A D | SingleDeviceLifecycle.java | 17 package com.android.camera.device; 24 * Lifecycle for a single device from open to close. 28 * Get the camera device key for this lifecycle. 40 * Tell this instance that it should attempt to get the device to
|
H A D | SingleDeviceRequest.java | 17 package com.android.camera.device; 30 * for a single device request. 61 public boolean set(TDevice device) { argument 63 return mFuture.set(device);
|
H A D | LegacyCameraActions.java | 17 package com.android.camera.device; 31 * Set of device actions for opening and closing a single Legacy camera 32 * device. 63 public void executeClose(SingleDeviceCloseListener closeListener, Camera device) argument 68 device, 82 * camera device. 101 Camera device = Camera.open(mCameraId); 102 mResults.onDeviceOpened(device); 111 * Internal runnable that releases the Camera device.
|
H A D | LegacyCameraActionProvider.java | 17 package com.android.camera.device; 26 * a Legacy API camera device.
|
/packages/apps/Camera2/src/com/android/camera/one/ |
H A D | OneCameraManager.java | 19 import com.android.camera.device.CameraId; 24 * available camera hardware on the current device. 35 * Returns whether the device has a camera facing the given direction. 40 * Get a platform specific device key for the first camera in the list 46 * Get a platform specific device key for a camera facing a particular
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppHandoverReceiver.java | 40 BluetoothDevice device = 42 if (device == null) { 43 if (D) Log.d(TAG, "No device attached to handover intent."); 63 BluetoothOppManager.getInstance(context).startTransfer(device); 72 BluetoothDevice device = 74 if (D) Log.d(TAG, "Adding " + device + " to whitelist"); 75 if (device == null) return; 76 BluetoothOppManager.getInstance(context).addToWhitelist(device.getAddress());
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
H A D | AvrcpControllerService.java | 195 int getConnectionState(BluetoothDevice device) { argument 197 return (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED 201 public void sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState) { argument 203 if (device == null) { 204 throw new NullPointerException("device == null"); 206 if (!(mConnectedDevices.contains(device))) { 210 Log.e(TAG," Device does not match " + device); 215 MESSAGE_SEND_GROUP_NAVIGATION_CMD,keyCode, keyState, device); 219 public void sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) { argument 221 if (device 307 getMetaData(BluetoothDevice device) argument 316 getPlaybackState(BluetoothDevice device) argument 321 getPlayerSettings(BluetoothDevice device) argument 420 getConnectionState(BluetoothDevice device) argument 426 sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) argument 434 sendGroupNavigationCmd(BluetoothDevice device, int keyCode, int keyState) argument 442 getPlayerSettings(BluetoothDevice device) argument 450 getMetadata(BluetoothDevice device) argument 458 getPlaybackState(BluetoothDevice device) argument 941 getByteAddress(BluetoothDevice device) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
H A D | HealthService.java | 265 BluetoothDevice device = getDevice(channelStateEvent.mAddr); 266 chan = new HealthChannel(device, appConfig, appConfig.getChannelType()); 356 public boolean connectChannelToSource(BluetoothDevice device, argument 360 return service.connectChannelToSource(device, config); 363 public boolean connectChannelToSink(BluetoothDevice device, argument 367 return service.connectChannelToSink(device, config, channelType); 370 public boolean disconnectChannel(BluetoothDevice device, argument 374 return service.disconnectChannel(device, config, channelId); 377 public ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, argument 381 return service.getMainChannelFd(device, confi 384 getHealthDeviceConnectionState(BluetoothDevice device) argument 428 connectChannelToSource(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument 434 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument 440 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId) argument 453 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument 469 getHealthDeviceConnectionState(BluetoothDevice device) argument 575 connectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument 591 callHealthChannelCallback(BluetoothHealthAppConfiguration config, BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) argument 640 broadcastHealthDeviceStateChange(BluetoothDevice device, int newChannelState) argument 701 updateAndSendIntent(BluetoothDevice device, int newDeviceState, int prevDeviceState) argument 755 findChannelByStates(BluetoothDevice device, int[] states) argument 769 getConnectionState(BluetoothDevice device) argument 849 HealthChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
H A D | MtpBitmapFetch.java | 44 public static Bitmap getThumbnail(MtpDevice device, IngestObjectInfo info) { argument 45 byte[] imageBytes = device.getThumbnail(info.getObjectHandle()); 70 public static BitmapWithMetadata getFullsize(MtpDevice device, IngestObjectInfo info) { argument 71 return getFullsize(device, info, sMaxSize); 74 public static BitmapWithMetadata getFullsize(MtpDevice device, IngestObjectInfo info, argument 76 byte[] imageBytes = device.getObject(info.getObjectHandle(), info.getCompressedSize());
|
H A D | IngestObjectInfo.java | 49 public String getName(MtpDevice device) { argument 50 if (device != null) { 51 MtpObjectInfo info = device.getObjectInfo(mHandle);
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
H A D | BeamManager.java | 80 handoverData.device, handoverData.carrierActivating, null); 87 whitelistOppDevice(context, handoverData.device); 104 outgoingHandoverData.device, outgoingHandoverData.carrierActivating, 126 void whitelistOppDevice(Context context, BluetoothDevice device) { argument 127 if (DBG) Log.d(TAG, "Whitelisting " + device + " for BT OPP"); 129 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
H A D | StorageResetActivity.java | 17 package com.android.tv.settings.device; 25 * Activity to view storage consumption and factory reset device.
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
H A D | DaydreamActivity.java | 17 package com.android.tv.settings.device.display.daydream;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/ |
H A D | SoundActivity.java | 17 package com.android.tv.settings.device.sound;
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | Camera2OneCameraOpenerImpl.java | 35 import com.android.camera.device.ActiveCameraDeviceTracker; 36 import com.android.camera.device.CameraId; 127 public void onDisconnected(CameraDevice device) { 132 device.close(); 138 public void onClosed(CameraDevice device) { 146 public void onError(CameraDevice device, int error) { 149 device.close(); 159 public void onOpened(CameraDevice device) { 164 .getCameraCharacteristics(device.getId()); 168 device, [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | BluetoothManager.java | 175 // then the device is not BT capable. Use BluetoothDevice.isEnabled() 176 // to see if BT is enabled on the device. 186 * available to the user (i.e. if the device is BT-capable 200 // Log.d(this, " - BT enabled! device name " + adapter.getName() 215 BluetoothDevice device = deviceList.get(i); 216 Log.v(this, "state = " + mBluetoothHeadset.getConnectionState(device) 217 + "for headset: " + device); 241 BluetoothDevice device = deviceList.get(i); 242 boolean isAudioOn = mBluetoothHeadset.isAudioConnected(device); 244 + "for headset: " + device); [all...] |
/packages/apps/TV/src/com/android/usbtuner/ |
H A D | UsbInputController.java | 82 * Simple data holder for a USB device. Used to represent a tuner model, and compare 94 private boolean equals(UsbDevice device) { argument 95 return device.getVendorId() == vendorId && device.getProductId() == productId; 133 * @return {@code true} if any tuner device we support is plugged in 138 for (UsbDevice device : deviceList.values()) { 140 Log.d(TAG, "Device: " + device); 143 if (tuner.equals(device)) {
|
/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | CameraProvider.java | 19 import com.android.camera.device.CameraId; 29 * Requests the camera device. If the camera device of the same ID is 32 * @param id The ID of the requested camera device. 37 * Requests the camera device. If the camera device of the same ID is 40 * @param id The ID of the requested camera device. 48 * Releases the camera device. 74 * Returns the total number of cameras available on the device.
|