Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 25 of 107) sorted by relevance

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java70 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in HeadsetNativeInterface
77 getDevice(address)); in onConnectionStateChanged()
86 getDevice(address)); in onAudioStateChanged()
93 getDevice(address)); in onVrStateChanged()
99 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall()
105 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_HANGUP_CALL, getDevice(address)); in onHangupCall()
112 getDevice(address)); in onVolumeChanged()
119 getDevice(address)); in onDialCall()
126 getDevice(address)); in onSendDtmf()
133 getDevice(address)); in onNoiseReductionEnable()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DNativeInterface.java77 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in NativeInterface
88 event.device = getDevice(address); in onConnectionStateChanged()
105 event.device = getDevice(address); in onAudioStateChanged()
121 event.device = getDevice(address); in onVrStateChanged()
138 event.device = getDevice(address); in onNetworkState()
156 event.device = getDevice(address); in onNetworkRoaming()
172 event.device = getDevice(address); in onNetworkSignal()
187 event.device = getDevice(address); in onBatteryLevel()
202 event.device = getDevice(address); in onCurrentOperator()
218 event.device = getDevice(address); in onCall()
[all …]
/packages/services/Car/service/src/com/android/car/
DBluetoothProfileInhibitManager.java98 public BluetoothDevice getDevice() { in getDevice() method in BluetoothProfileInhibitManager.BluetoothConnection
211 + " for device " + mParams.getDevice() in binderDied()
373 params.getDevice()); in addInhibitRecord()
380 + " already disabled for device " + params.getDevice() in addInhibitRecord()
385 params.getDevice(), in addInhibitRecord()
389 params.getDevice()); in addInhibitRecord()
392 + " for device " + params.getDevice()); in addInhibitRecord()
464 + params.getDevice() + " - was manually disabled"); in restoreProfilePriority()
471 params.getDevice(), in restoreProfilePriority()
475 params.getDevice()); in restoreProfilePriority()
[all …]
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java109 public ITestDevice getDevice() { in getDevice() method in TimeZoneUpdateHostTest
197 getDevice().installPackage(appFile, true /* reinstall */); in testInstallNewerRulesVersion()
215 ITestDevice device = getDevice(); in testInstallNewerRulesVersion_secondaryUser()
258 getDevice().installPackage(appFile, true /* reinstall */); in testInstallOlderRulesVersion()
273 getDevice().reboot(); in rebootDeviceAndWaitForRestart()
399 String output = getDevice().executeShellCommand( in getDeviceTimeZoneState()
408 String output = getDevice().executeShellCommand("dumpsys timezone"); in dumpEntireTimeZoneStatusToString()
420 for (String installedPackage : getDevice().getInstalledPackageNames()) { in isPackageInstalled()
429 return getDevice().uninstallPackage(packageName); in uninstallPackage()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java254 public MtpDevice getDevice(String deviceName) { in getDevice() method in MtpClient
267 public MtpDevice getDevice(int id) { in getDevice() method in MtpClient
300 MtpDevice device = getDevice(deviceName); in getStorageList()
332 MtpDevice device = getDevice(deviceName); in getObjectInfo()
347 MtpDevice device = getDevice(deviceName); in deleteObject()
368 MtpDevice device = getDevice(deviceName); in getObjectList()
404 MtpDevice device = getDevice(deviceName); in getObject()
419 MtpDevice device = getDevice(deviceName); in getThumbnail()
437 MtpDevice device = getDevice(deviceName); in importFile()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java89 pref.setTitle(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference()
100 BluetoothDevice device = mCachedDevice.getDevice(); in refreshProfilePreference()
136 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in enableProfile()
153 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in disableProfile()
195 final BluetoothDevice device = mCachedDevice.getDevice(); in getProfiles()
224 BluetoothDevice device = mCachedDevice.getDevice(); in maybeAddHighQualityAudioPref()
233 a2dp.setHighQualityAudioEnabled(mCachedDevice.getDevice(), enable); in maybeAddHighQualityAudioPref()
DBluetoothDeviceUpdater.java225 final BluetoothDevice device = cachedDevice.getDevice(); in addPreference()
244 final BluetoothDevice device = cachedDevice.getDevice(); in removePreference()
253 final BluetoothDevice subDevice = subCachedDevice.getDevice(); in removePreference()
273 device.getDevice().getAddress()); in launchDeviceDetails()
291 final BluetoothDevice device = cachedDevice.getDevice(); in isDeviceConnected()
DAdvancedBluetoothDetailsHeaderController.java95 mCachedDevice.getDevice(), BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET); in getAvailabilityStatus()
114 mBluetoothAdapter.addOnMetadataChangedListener(mCachedDevice.getDevice(), in onStart()
124 mBluetoothAdapter.removeOnMetadataChangedListener(mCachedDevice.getDevice(), in onStop()
199 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateSubLayout()
238 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateDisconnectLayout()
DRemoteDeviceNameDialogFragment.java39 args.putString(KEY_CACHED_DEVICE_ADDRESS, device.getDevice().getAddress()); in newInstance()
46 CachedBluetoothDevice getDevice(Context context) { in getDevice() method in RemoteDeviceNameDialogFragment
56 mDevice = getDevice(context); in onAttach()
DForgetDeviceDialogFragment.java53 CachedBluetoothDevice getDevice(Context context) { in getDevice() method in ForgetDeviceDialogFragment
75 mDevice = getDevice(context); in onCreateDialog()
77 mDevice.getDevice(), BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET); in onCreateDialog()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DBackground.java65 final int centerX = mLauncher.getDevice().getDisplayWidth() / 2; in goToOverviewUnchecked()
97 if (mLauncher.getDevice().isNaturalOrientation()) { in goToOverviewUnchecked()
98 startX = endX = mLauncher.getDevice().getDisplayWidth() / 2; in goToOverviewUnchecked()
104 startY = endY = mLauncher.getDevice().getDisplayHeight() / 2; in goToOverviewUnchecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDeviceUpdater.java215 final BluetoothDevice device = cachedDevice.getDevice(); in addPreference()
234 final BluetoothDevice device = cachedDevice.getDevice(); in removePreference()
243 final BluetoothDevice subDevice = subCachedDevice.getDevice(); in removePreference()
263 device.getDevice().getAddress()); in launchDeviceDetails()
281 final BluetoothDevice device = cachedDevice.getDevice(); in isDeviceConnected()
DRemoteDeviceNameDialogFragment.java39 args.putString(KEY_CACHED_DEVICE_ADDRESS, device.getDevice().getAddress()); in newInstance()
46 CachedBluetoothDevice getDevice(Context context) { in getDevice() method in RemoteDeviceNameDialogFragment
56 mDevice = getDevice(context); in onAttach()
DBluetoothDeviceDetailsFragment.java59 CachedBluetoothDevice getDevice(String deviceAddress); in getDevice() method
89 return sTestDataFactory.getDevice(deviceAddress); in getCachedDevice()
122 ? featureProvider.getBluetoothDeviceSettingsUri(mCachedDevice.getDevice()) in onAttach()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpNativeInterface.java143 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in A2dpNativeInterface
170 event.device = getDevice(address); in onConnectionStateChanged()
181 event.device = getDevice(address); in onAudioStateChanged()
195 event.device = getDevice(address); in onCodecConfigChanged()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattClientListener.java189 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
195 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
205 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
208 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
368 BluetoothDevice device = result.getDevice(); in onScanResult()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java350 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevices.getDevice(address)); in sendDisplayPinIntent()
426 BluetoothDevice device = mRemoteDevices.getDevice(address); in bondStateChangeCallback()
455 BluetoothDevice bdDevice = mRemoteDevices.getDevice(address); in sspRequestCallback()
487 BluetoothDevice device = mRemoteDevices.getDevice(address); in sspRequestCallback()
491 device = Objects.requireNonNull(mRemoteDevices.getDevice(address)); in sspRequestCallback()
511 BluetoothDevice bdDevice = mRemoteDevices.getDevice(address); in pinRequestCallback()
514 bdDevice = Objects.requireNonNull(mRemoteDevices.getDevice(address)); in pinRequestCallback()
DRemoteDevices.java174 BluetoothDevice getDevice(byte[] address) { in getDevice() method in RemoteDevices
179 return prop.getDevice(); in getDevice()
264 BluetoothDevice getDevice() { in getDevice() method in RemoteDevices.DeviceProperties
388 BluetoothDevice device = getDevice(address); in setBondingInitiatedLocally()
482 BluetoothDevice bdDevice = getDevice(address); in devicePropertyChangedCallback()
487 bdDevice = getDevice(address); in devicePropertyChangedCallback()
572 BluetoothDevice device = getDevice(address); in deviceFoundCallback()
599 BluetoothDevice device = getDevice(address); in aclStateChangeCallback()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java254 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceBelowLimit()
291 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testMessageFromNative_deviceConnected()
379 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceAboveLimit()
418 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_withOneDevice()
485 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_withMultipleDevices()
561 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_connectTwoAudioChannelsShouldFail()
639 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_firstConnectedAudioDevice()
688 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectAudio_deviceDisconnected()
744 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testPhoneStateChange_oneDeviceSaveState()
756 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testPhoneStateChange_oneDeviceSaveState()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTestViewHelpers.java53 private static UiDevice getDevice() { in getDevice() method in TestViewHelpers
58 return getDevice().wait(Until.findObject(getSelectorForId(id)), in findViewById()
136 getDevice().wait(Until.gone(getSelectorForId(R.id.delete_target_text)), in dragToWorkspace()
174 final UiDevice device = getDevice(); in openWidgetsTray()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilePreference.java44 setTitle(profile.getNameResource(cachedDevice.getDevice())); in BluetoothDeviceProfilePreference()
78 mProfile.getConnectionStatus(mCachedDevice.getDevice()) == STATE_CONNECTED); in refreshUi()
80 setChecked(mProfile.isPreferred(mCachedDevice.getDevice())); in refreshUi()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidNativeInterface.java127 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in HearingAidNativeInterface
154 event.device = getDevice(address); in onConnectionStateChanged()
166 event.device = getDevice(address); in onDeviceAvailable()
/packages/services/Car/tests/CarTrustAgentClientApp/src/com/android/car/trust/client/
DSimpleBleClient.java222 BluetoothDevice device = result.getDevice();
251 Log.d(TAG, "Batch scanResult: " + r.getDevice().getName()
252 + " " + r.getDevice().getAddress());
277 callback.onDeviceConnected(gatt.getDevice());
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java120 public BluetoothDevice getDevice() { in getDevice() method in SdpManager.SdpSearchInstance
185 if (inst.getDevice().getAddress().equals(addressString) && inst.getUuid() in getSearchInstance()
196 if (inst.getDevice().getAddress().equals(addressString) && inst.getUuid() in isSearching()
431 sdpSearchNative(Utils.getBytesFromAddress(inst.getDevice().getAddress()), in startSearch()
448 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, inst.getDevice()); in sendSdpIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceNativeInterface.java181 service.onApplicationStateChangedFromNative(getDevice(address), registered); in onApplicationStateChanged()
191 service.onConnectStateChangedFromNative(getDevice(address), state); in onConnectStateChanged()
248 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in HidDeviceNativeInterface

12345