Home
last modified time | relevance | path

Searched refs:mDevice (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java64 private BluetoothDevice mDevice; field in BluetoothPairingDialog
87 if (device == null || device.equals(mDevice)) {
115 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
172 mCachedDeviceManager.getName(mDevice)); in createUserEntryDialog()
192 mCachedDeviceManager.getName(mDevice))); in createPinEntryView()
193 if (mDevice.getPhonebookAccessPermission() == BluetoothDevice.ACCESS_ALLOWED) { in createPinEntryView()
195 } else if (mDevice.getPhonebookAccessPermission() == BluetoothDevice.ACCESS_REJECTED){ in createPinEntryView()
198 if (mDevice.getBluetoothClass().getDeviceClass() in createPinEntryView()
201 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in createPinEntryView()
204 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in createPinEntryView()
[all …]
DBluetoothPermissionRequest.java51 BluetoothDevice mDevice; field in BluetoothPermissionRequest
70 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive()
105 connectionAccessIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onReceive()
109 String deviceAddress = mDevice != null ? mDevice.getAddress() : null; in onReceive()
110 String deviceName = mDevice != null ? mDevice.getName() : null; in onReceive()
134 deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onReceive()
138 String deviceAlias = mDevice != null ? mDevice.getAliasName() : null; in onReceive()
226 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice()
229 bluetoothManager.getProfileManager(), mDevice); in checkUserChoice()
291 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in sendReplyIntentToReceiver()
DDockService.java117 private BluetoothDevice mDevice; field in DockService
376 + mServiceHandler.hasMessages(MSG_TYPE_UNDOCKED_PERMANENT, mDevice)); in msgTypeDocked()
386 if (!device.equals(mDevice)) { in msgTypeDocked()
387 if (mDevice != null) { in msgTypeDocked()
389 handleUndocked(mDevice); in msgTypeDocked()
392 mDevice = device; in msgTypeDocked()
495 mDevice = device; in createDialog()
587 if (mDevice != null) {
589 DockService.this, mDevice.getAddress(), isChecked);
617 if (mDevice != null) {
[all …]
DBluetoothPermissionActivity.java53 private BluetoothDevice mDevice; field in BluetoothPermissionActivity
67 if (mDevice.equals(device)) dismissDialog();
90 mDevice = i.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
154 String mRemoteName = mDevice != null ? mDevice.getAliasName() : null; in createRemoteName()
214 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in onNegative()
218 mDevice); in onNegative()
239 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in sendReplyIntentToReceiver()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java82 final BluetoothDevice mDevice; field in BluetoothPeripheralHandover
111 mDevice = device; in BluetoothPeripheralHandover()
192 if (mInput.getConnectedDevices().contains(mDevice)) { in nextStepInit()
193 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
196 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
200 if (mA2dp.getConnectedDevices().contains(mDevice) || in nextStepInit()
201 mHeadset.getConnectedDevices().contains(mDevice)) { in nextStepInit()
202 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
205 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName); in nextStepInit()
221 if (mInput.getConnectionState(mDevice) in nextStepDisconnect()
[all …]
DConfirmConnectActivity.java30 BluetoothDevice mDevice; field in ConfirmConnectActivity
38 mDevice = launchIntent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
39 if (mDevice == null) finish(); in onCreate()
41 String deviceName = mDevice.getName() != null ? mDevice.getName() : ""; in onCreate()
49 allowIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onCreate()
59 denyIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onCreate()
75 denyIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in onStop()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothPairingDialog.java66 private BluetoothDevice mDevice; field in BluetoothPairingDialog
90 if (device == null || device.equals(mDevice)) {
109 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onCreate()
113 Log.d(TAG, "Requested pairing Type = " + mType + " , Device = " + mDevice); in onCreate()
260 mDevice.cancelPairingUserInput(); in cancelPairing()
265 .replace(android.R.id.content, EntryDialogFragment.newInstance(mDevice, mType)) in createUserEntryDialog()
276 ConfirmationDialogFragment.newInstance(mDevice, mPairingKey, mType); in createConfirmationDialog()
291 mDevice.setPin(pinBytes); in onPair()
296 mDevice.setPasskey(passkey); in onPair()
301 mDevice.setPairingConfirmation(true); in onPair()
[all …]
DBluetoothAccessoryActivity.java65 private BluetoothDevice mDevice; field in BluetoothAccessoryActivity
91 if (mDevice.equals(device)) {
135 mDevice = device; in onCreate()
145 if (mDevice != null && in onStart()
146 (mDevice.getType() == BluetoothDevice.DEVICE_TYPE_LE || in onStart()
147 mDevice.getType() == BluetoothDevice.DEVICE_TYPE_DUAL)) { in onStart()
149 mDeviceGatt = mDevice.connectGatt(this, true, new GattBatteryCallbacks()); in onStart()
300 if (mDevice != null) { in unpairDevice()
301 int state = mDevice.getBondState(); in unpairDevice()
304 mDevice.cancelBondProcess(); in unpairDevice()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java69 private MtpDevice mDevice; field in IngestService
117 if (mDevice == device) { in setDevice()
124 mDevice = device; in setDevice()
125 mIndex.setDevice(mDevice); in setDevice()
126 if (mDevice != null) { in setDevice()
127 MtpDeviceInfo deviceInfo = mDevice.getDeviceInfo(); in setDevice()
180 if (mDevice != null) { in setClientActivity()
195 ImportTask task = new ImportTask(mDevice, importHandles, mDevicePrettyName, this); in importSelectedItems()
206 if (mDevice == null) { in deviceAdded()
213 if (device == mDevice) { in deviceRemoved()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndexRunnable.java69 private final MtpDevice mDevice; field in MtpDeviceIndexRunnable
87 mDevice = index.getDevice(); in MtpDeviceIndexRunnable()
134 if (!mIndex.setIndexingResults(mDevice, mIndexGeneration, in indexDevice()
158 for (int storageId : mDevice.getStorageIds()) { in addAllObjects()
159 if (!mIndex.isAtGeneration(mDevice, mIndexGeneration)) { in addAllObjects()
165 if (!mIndex.isAtGeneration(mDevice, mIndexGeneration)) { in addAllObjects()
169 for (int objectHandle : mDevice.getObjectHandles(storageId, 0, dirHandle)) { in addAllObjects()
170 MtpObjectInfo mtpObjectInfo = mDevice.getObjectInfo(objectHandle); in addAllObjects()
DMtpDeviceIndex.java98 private MtpDevice mDevice; field in MtpDeviceIndex
116 return mDevice; in getDevice()
120 return (mDevice != null); in isDeviceConnected()
140 if (device == mDevice) { in setDevice()
143 mDevice = device; in setDevice()
396 return (mGeneration == generation) && (mDevice == device); in isAtGeneration()
DImportTask.java55 private MtpDevice mDevice; field in ImportTask
62 mDevice = device; in ImportTask()
85 importedPath = new File(dest, object.getName(mDevice)).getAbsolutePath(); in run()
86 if (!mDevice.importFile(object.getObjectHandle(), importedPath)) { in run()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraZslImpl.java158 private final CameraDevice mDevice; field in OneCameraZslImpl
296 mDevice = device; in OneCameraZslImpl()
589 mDevice.close(); in close()
688 mDevice.createCaptureSession(outputSurfaces, new CameraCaptureSession.StateCallback() { in setup()
758 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_ZERO_SHUTTER_LAG); in sendRepeatingCaptureRequest()
760 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in sendRepeatingCaptureRequest()
802 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in sendSingleRequest()
839 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_VIDEO_SNAPSHOT); in sendRepeatingBurstCaptureRequest()
869 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_ZERO_SHUTTER_LAG); in sendAutoExposureTriggerRequest()
871 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in sendAutoExposureTriggerRequest()
[all …]
DOneCameraImpl.java268 private final CameraDevice mDevice; field in OneCameraImpl
319 mDevice = device; in OneCameraImpl()
388 CaptureRequest.Builder builder = mDevice in takePictureNow()
448 mDevice.close(); in close()
551 mDevice.createCaptureSession(outputSurfaces, new CameraCaptureSession.StateCallback() { in setup()
611 CaptureRequest.Builder builder = mDevice. in repeatingPreview()
633 builder = mDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in sendAutoFocusTriggerCaptureRequest()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java203 byte[] devAddr = Utils.getByteAddress(chan.mDevice); in handleMessage()
207 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
211 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
222 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
226 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
283 callHealthChannelCallback(chan.mConfig, chan.mDevice, newState, in handleMessage()
458 if (chan.mDevice.equals(device) && chan.mConfig.equals(config)) { in getMainChannelFd()
758 if (chan.mDevice.equals(device)) { in findChannelByStates()
842 private BluetoothDevice mDevice; field in HealthService.HealthChannel
852 mDevice = device; in HealthChannel()
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DCaptureSessionCreator.java34 private final CameraDeviceProxy mDevice; field in CaptureSessionCreator
43 mDevice = device; in CaptureSessionCreator()
58 mDevice.createCaptureSession(surfaces, new CameraCaptureSessionProxy.StateCallback() { in createCaptureSession()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBluetoothOppHandover.java50 final BluetoothDevice mDevice; field in BluetoothOppHandover
62 mDevice = device; in BluetoothOppHandover()
101 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in sendIntent()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DSdpManagerTestServer.java45 final BluetoothDevice mDevice; field in SdpManagerTestServer
52 mDevice = device; in SdpManagerTestServer()
129 searchAwaitAndValidate(uuids, mDevice, count); in onGet()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java119 private final BluetoothDevice mDevice; field in SdpManager.SdpSearchInstance
127 this.mDevice = device; in SdpSearchInstance()
133 return mDevice; in getDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java405 BluetoothDevice mDevice; field in HeadsetVendorSpecificResultCode
410 mDevice = device; in HeadsetVendorSpecificResultCode()
DHeadsetStateMachine.java3262 atResponseStringNative(stringToSend, getByteAddress(resultCode.mDevice)); in processSendVendorSpecificResultCode()