/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManager.java | 177 int profile, BluetoothDevice device, int fromState, int toState) { in profileConnectionStateChanged() argument 181 mHandler.post(() -> handleA2dpConnected(device)); in profileConnectionStateChanged() 184 mHandler.post(() -> handleHfpConnected(device)); in profileConnectionStateChanged() 187 mHandler.post(() -> handleLeAudioConnected(device)); in profileConnectionStateChanged() 190 mHandler.post(() -> handleHearingAidConnected(device)); in profileConnectionStateChanged() 193 mHandler.post(() -> handleHapConnected(device)); in profileConnectionStateChanged() 199 mHandler.post(() -> handleA2dpDisconnected(device)); in profileConnectionStateChanged() 202 mHandler.post(() -> handleHfpDisconnected(device)); in profileConnectionStateChanged() 205 mHandler.post(() -> handleLeAudioDisconnected(device)); in profileConnectionStateChanged() 208 mHandler.post(() -> handleHearingAidDisconnected(device)); in profileConnectionStateChanged() [all …]
|
D | PhonePolicy.java | 109 int profile, BluetoothDevice device, int fromState, int toState) { in profileConnectionStateChanged() argument 117 () -> processProfileStateChanged(device, profile, toState, fromState)); in profileConnectionStateChanged() 130 public void profileActiveDeviceChanged(int profile, BluetoothDevice device) { in profileActiveDeviceChanged() argument 131 mHandler.post(() -> processActiveDeviceChanged(device, profile)); in profileActiveDeviceChanged() 134 public void handleAclConnected(BluetoothDevice device) { in handleAclConnected() argument 135 mHandler.post(() -> processDeviceConnected(device)); in handleAclConnected() 152 BluetoothDevice device = (BluetoothDevice) msg.obj; in handleMessage() local 153 processConnectOtherProfiles(device); in handleMessage() 154 mConnectOtherProfilesDeviceSet.remove(device); in handleMessage() 187 boolean isLeAudioOnlyGroup(BluetoothDevice device) { in isLeAudioOnlyGroup() argument [all …]
|
D | SilenceDeviceManager.java | 80 public void profileActiveDeviceChanged(int profile, BluetoothDevice device) { in profileActiveDeviceChanged() argument 83 mHandler.obtainMessage(MSG_A2DP_ACTIVE_DEVICE_CHANGED, device).sendToTarget(); in profileActiveDeviceChanged() 86 mHandler.obtainMessage(MSG_HFP_ACTIVE_DEVICE_CHANGED, device).sendToTarget(); in profileActiveDeviceChanged() 100 public void a2dpConnectionStateChanged(BluetoothDevice device, int fromState, int toState) { in a2dpConnectionStateChanged() argument 101 mHandler.obtainMessage(MSG_A2DP_CONNECTION_STATE_CHANGED, fromState, toState, device) in a2dpConnectionStateChanged() 112 public void hfpConnectionStateChanged(BluetoothDevice device, int fromState, int toState) { in hfpConnectionStateChanged() argument 113 mHandler.obtainMessage(MSG_HFP_CONNECTION_STATE_CHANGED, fromState, toState, device) in hfpConnectionStateChanged() 128 BluetoothDevice device = (BluetoothDevice) msg.obj; in handleMessage() local 130 handleSilenceDeviceStateChanged(device, state); in handleMessage() 135 BluetoothDevice device = (BluetoothDevice) msg.obj; in handleMessage() local [all …]
|
/packages/modules/Bluetooth/system/bta/has/ |
D | has_client.cc | 174 auto device = std::find_if(devices_.begin(), devices_.end(), in Connect() local 176 if (device == devices_.end()) { in Connect() 181 device->is_connecting_actively = true; in Connect() 182 if (!device->IsConnected()) in Connect() 196 auto device = std::find_if(devices_.begin(), devices_.end(), in AddFromStorage() local 198 if (device == devices_.end()) in AddFromStorage() 224 auto device = std::find_if(devices_.begin(), devices_.end(), in Disconnect() local 226 if (device == devices_.end()) { in Disconnect() 231 auto conn_id = device->conn_id; in Disconnect() 232 auto is_connecting_actively = device->is_connecting_actively; in Disconnect() [all …]
|
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/ |
D | SettingsTestUtil.java | 46 public static void settingsRemoveMainToggleAndMeasurementEntryTestUtil(UiDevice device) { in settingsRemoveMainToggleAndMeasurementEntryTestUtil() argument 47 ApkTestUtil.launchSettingView(device, LAUNCH_TIMEOUT); in settingsRemoveMainToggleAndMeasurementEntryTestUtil() 50 UiObject2 appButton = ApkTestUtil.scrollTo(device, R.string.settingsUI_apps_ga_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil() 53 UiObject2 topicsButton = ApkTestUtil.scrollTo(device, R.string.settingsUI_topics_ga_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil() 57 ApkTestUtil.scrollToAndClick(device, R.string.settingsUI_measurement_view_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil() 61 ApkTestUtil.getElement(device, R.string.settingsUI_measurement_switch_title); in settingsRemoveMainToggleAndMeasurementEntryTestUtil() 64 pressBack(device); in settingsRemoveMainToggleAndMeasurementEntryTestUtil() 69 public static void settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil(UiDevice device) { in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil() argument 70 ApkTestUtil.launchSettingView(device, LAUNCH_TIMEOUT); in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil() 73 ApkTestUtil.scrollTo(device, R.string.settingsUI_measurement_view_title); in settingsRemoveMainToggleAndMeasurementEntryTestRvcUxUtil() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 177 for (BluetoothDevice device : mInputDevices.keySet()) { in cleanup() 180 device, BluetoothDevice.TRANSPORT_LE, BluetoothProfile.STATE_DISCONNECTED); in cleanup() 182 device, in cleanup() 192 private byte[] getIdentityAddress(BluetoothDevice device) { in getIdentityAddress() argument 194 return Utils.getByteBrEdrAddress(mAdapterService, device); in getIdentityAddress() 196 return mAdapterService.getByteIdentityAddress(device); in getIdentityAddress() 200 private byte[] getByteAddress(BluetoothDevice device, int transport) { in getByteAddress() argument 201 ParcelUuid[] uuids = mAdapterService.getRemoteUuids(device); in getByteAddress() 211 return Utils.getByteAddress(device); in getByteAddress() 214 return getIdentityAddress(device); in getByteAddress() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 269 public boolean connect(BluetoothDevice device) { in connect() argument 270 Log.d(TAG, "connect(): " + device); in connect() 272 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect() 273 Log.e(TAG, "Cannot connect to " + device + " : CONNECTION_POLICY_FORBIDDEN"); in connect() 276 if (!Utils.arrayContains(mAdapterService.getRemoteUuids(device), BluetoothUuid.A2DP_SINK)) { in connect() 277 Log.e(TAG, "Cannot connect to " + device + " : Remote does not have A2DP Sink UUID"); in connect() 282 if (!connectionAllowedCheckMaxDevices(device)) { in connect() 293 if (sink.equals(device)) { in connect() 294 Log.w(TAG, "Connecting to device " + device + " : disconnect skipped"); in connect() 300 Log.e(TAG, "Cannot connect to " + device + " : too many connected devices"); in connect() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
D | WifiP2pDeviceTest.java | 92 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithDefaultValues() local 93 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithDefaultValues() 94 compareWifiP2pDevices(device, copy); in testCopyConstructorWithDefaultValues() 102 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithUpdatedValues() local 103 device.deviceName = "deviceName"; in testCopyConstructorWithUpdatedValues() 104 device.deviceAddress = "11:22:33:44:55:66"; in testCopyConstructorWithUpdatedValues() 105 device.primaryDeviceType = "primaryDeviceType"; in testCopyConstructorWithUpdatedValues() 106 device.secondaryDeviceType = "secondaryDeviceType"; in testCopyConstructorWithUpdatedValues() 107 device.wpsConfigMethodsSupported = 0x0008; in testCopyConstructorWithUpdatedValues() 108 device.deviceCapability = 1; in testCopyConstructorWithUpdatedValues() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 306 public boolean connect(BluetoothDevice device, AttributionSource source) { in connect() argument 312 return service.connect(device); in connect() 316 public boolean disconnect(BluetoothDevice device, AttributionSource source) { in disconnect() argument 322 return service.disconnect(device); in disconnect() 347 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() argument 353 return service.getConnectionState(device); in getConnectionState() 358 BluetoothDevice device, int connectionPolicy, AttributionSource source) { in setConnectionPolicy() argument 364 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy() 368 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() argument 374 return service.getConnectionPolicy(device); in getConnectionPolicy() [all …]
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | vc.cc | 116 auto device = volume_control_devices_.FindByAddress(address); in Connect() local 117 if (!device) { in Connect() 125 device->connecting_actively = true; in Connect() 127 if (device->IsConnected()) { in Connect() 129 device->connection_id); in Connect() 131 if (device->IsReady()) { in Connect() 133 device->address); in Connect() 135 OnGattConnected(GATT_SUCCESS, device->connection_id, gatt_if_, in Connect() 136 device->address, BT_TRANSPORT_LE, GATT_MAX_MTU_SIZE); in Connect() 165 VolumeControlDevice* device = in OnGattConnected() local [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothConnectionRetryManagerTest.java | 120 private void sendBondStateChanged(BluetoothDevice device, int newState) { in sendBondStateChanged() argument 123 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendBondStateChanged() 128 private void sendConnectionStateChanged(BluetoothDevice device, int newState) { in sendConnectionStateChanged() argument 131 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendConnectionStateChanged() 136 private void sendSuccessfulConnection(BluetoothDevice device) { in sendSuccessfulConnection() argument 139 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendSuccessfulConnection() 145 private void sendFailedConnectionMethod1(BluetoothDevice device) { in sendFailedConnectionMethod1() argument 148 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendFailedConnectionMethod1() 154 private void sendFailedConnectionMethod2(BluetoothDevice device) { in sendFailedConnectionMethod2() argument 157 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); in sendFailedConnectionMethod2() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 237 public boolean connect(BluetoothDevice device) { in connect() argument 240 Log.d(TAG, "connect(): " + device); in connect() 241 if (device == null) { in connect() 245 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect() 248 ParcelUuid[] featureUuids = mAdapterService.getRemoteUuids(device); in connect() 250 Log.e(TAG, "Cannot connect to " + device + " : Remote does not have Hearing Aid UUID"); in connect() 255 mDeviceHiSyncIdMap.getOrDefault(device, BluetoothHearingAid.HI_SYNC_ID_INVALID); in connect() 266 HearingAidStateMachine smConnect = getOrCreateStateMachine(device); in connect() 268 Log.e(TAG, "Cannot connect to " + device + " : no state machine"); in connect() 274 if (device.equals(storedDevice)) { in connect() [all …]
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpManager.java | 95 final MtpDevice device = new MtpDevice(rawDevice); in openDevice() local 101 if (!device.open(connection)) { in openDevice() 108 device.getStorageIds(), in openDevice() 111 mDevices.put(deviceId, device); in openDevice() 125 for (UsbDevice device : mManager.getDeviceList().values()) { in getDevices() 126 if (!isMtpDevice(device)) { in getDevices() 129 devices.add(createDeviceRecord(device)); in getDevices() 135 final MtpDevice device = getDevice(deviceId); in getObjectInfo() local 136 synchronized (device) { in getObjectInfo() 138 device.getObjectInfo(objectHandle), in getObjectInfo() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/ |
D | HapClientService.java | 215 public void handleBondStateChanged(BluetoothDevice device, int fromState, int toState) { in handleBondStateChanged() argument 216 mHandler.post(() -> bondStateChanged(device, toState)); in handleBondStateChanged() 220 void bondStateChanged(BluetoothDevice device, int bondState) { in bondStateChanged() argument 221 Log.d(TAG, "Bond state changed for device: " + device + " state: " + bondState); in bondStateChanged() 228 mDeviceCurrentPresetMap.remove(device); in bondStateChanged() 229 mDeviceFeaturesMap.remove(device); in bondStateChanged() 230 mPresetsMap.remove(device); in bondStateChanged() 233 HapClientStateMachine sm = mStateMachines.get(device); in bondStateChanged() 239 disconnect(device); in bondStateChanged() 242 removeStateMachine(device); in bondStateChanged() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 217 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService() local 218 assertThat(mHeadsetService.getConnectionState(device)) in testGetHeadsetService() 220 assertThat(mHeadsetService.getAudioState(device)) in testGetHeadsetService() 230 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testConnectFromApi() local 233 .getProfileConnectionPolicy(device, BluetoothProfile.HEADSET); in testConnectFromApi() 234 mBondedDevices.add(device); in testConnectFromApi() 235 assertThat(mHeadsetService.connect(device)).isTrue(); in testConnectFromApi() 239 device, in testConnectFromApi() 246 device, BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED); in testConnectFromApi() 247 verify(mNativeInterface).connectHfp(device); in testConnectFromApi() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 116 BluetoothDevice device, AvrcpCoverArtManager.DownloadEvent event) { in onImageDownloadComplete() argument 120 + device in onImageDownloadComplete() 125 AvrcpControllerStateMachine stateMachine = getStateMachine(device); in onImageDownloadComplete() 127 Log.e(TAG, "No state machine found for device " + device); in onImageDownloadComplete() 128 mCoverArtManager.removeImage(device, event.getUuid()); in onImageDownloadComplete() 210 boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() argument 211 Log.d(TAG, "setActiveDevice(device=" + device + ")"); in setActiveDevice() 214 Log.w(TAG, "setActiveDevice(device=" + device + "): A2DP Sink not available"); in setActiveDevice() 219 if ((device == null && currentActiveDevice == null) in setActiveDevice() 220 || (device != null && device.equals(currentActiveDevice))) { in setActiveDevice() [all …]
|
D | AvrcpControllerNativeInterface.java | 123 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onConnectionStateChanged() local 129 + (" device=" + device)); in onConnectionStateChanged() 132 remoteControlConnected, browsingConnected, device); in onConnectionStateChanged() 138 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in getRcPsm() local 139 Log.d(TAG, "getRcPsm: device=" + device + " psm=" + psm); in getRcPsm() 141 mAvrcpController.getRcPsm(device, psm); in getRcPsm() 146 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handlePlayerAppSetting() local 147 Log.d(TAG, "handlePlayerAppSetting: device=" + device + " rspLen=" + rspLen); in handlePlayerAppSetting() 149 mAvrcpController.handlePlayerAppSetting(device, playerAttribRsp, rspLen); in handlePlayerAppSetting() 154 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onPlayerAppSettingChanged() local [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/ |
D | TbsGatt.java | 181 BluetoothDevice device, int opcode, byte[] args); in onCallControlPointRequest() argument 189 public abstract boolean isInbandRingtoneEnabled(BluetoothDevice device); in isInbandRingtoneEnabled() argument 398 private void removeUuidFromMetadata(ParcelUuid charUuid, BluetoothDevice device) { in removeUuidFromMetadata() argument 400 byte[] gtbs_cccd = device.getMetadata(METADATA_GTBS_CCCD); in removeUuidFromMetadata() 418 if (!device.setMetadata( in removeUuidFromMetadata() 424 private void addUuidToMetadata(ParcelUuid charUuid, BluetoothDevice device) { in addUuidToMetadata() argument 426 byte[] gtbs_cccd = device.getMetadata(METADATA_GTBS_CCCD); in addUuidToMetadata() 441 if (!device.setMetadata( in addUuidToMetadata() 448 void setCcc(BluetoothDevice device, UUID charUuid, byte[] value) { in setCcc() argument 449 HashMap<UUID, Short> characteristicCcc = mCccDescriptorValues.get(device); in setCcc() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/ |
D | VolumeControlService.java | 349 public boolean connect(BluetoothDevice device) { in connect() argument 352 Log.d(TAG, "connect(): " + device); in connect() 353 if (device == null) { in connect() 357 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect() 360 ParcelUuid[] featureUuids = mAdapterService.getRemoteUuids(device); in connect() 364 "Cannot connect to " + device + " : Remote does not have Volume Control UUID"); in connect() 369 VolumeControlStateMachine smConnect = getOrCreateStateMachine(device); in connect() 371 Log.e(TAG, "Cannot connect to " + device + " : no state machine"); in connect() 380 public boolean disconnect(BluetoothDevice device) { in disconnect() argument 383 Log.d(TAG, "disconnect(): " + device); in disconnect() [all …]
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_client.cc | 178 auto device = FindDeviceByAddress(address); in AssignCsisGroup() local 179 if (device == nullptr) { in AssignCsisGroup() 182 device = FindDeviceByAddress(address); in AssignCsisGroup() 185 if (!csis_group->IsDeviceInTheGroup(device)) csis_group->AddDevice(device); in AssignCsisGroup() 211 auto device = FindDeviceByAddress(address); in OnGroupMemberRemovedCb() local 212 if (device) RemoveCsisDevice(device, group_id); in OnGroupMemberRemovedCb() 217 auto device = FindDeviceByAddress(address); in OnGroupAddFromStorageCb() local 218 if (device == nullptr) return; in OnGroupAddFromStorageCb() 226 if (!csis_group->IsDeviceInTheGroup(device)) { in OnGroupAddFromStorageCb() 237 auto csis_instance = device->GetCsisInstanceByGroupId(group_id); in OnGroupAddFromStorageCb() [all …]
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/util/ |
D | HostSideTestUtil.java | 22 import com.android.tradefed.device.DeviceNotAvailableException; 23 import com.android.tradefed.device.ITestDevice; 49 public static void clearData(ITestDevice device) throws Exception { in clearData() argument 50 triggerTestInTestApp(device, DAILY_LOG_TESTS_ACTIVITY, "deleteAllRecordsAddedForTest"); in clearData() 53 increaseDeviceTimeByDays(device, 10); in clearData() 54 triggerDailyJob(device); in clearData() 58 public static void triggerTestInTestApp(ITestDevice device, String className, String testName) in triggerTestInTestApp() argument 62 DeviceUtils.runDeviceTests(device, TEST_APP_PKG_NAME, className, testName); in triggerTestInTestApp() 67 public static void increaseDeviceTimeByDays(ITestDevice device, int numberOfDays) in increaseDeviceTimeByDays() argument 69 Instant deviceDate = Instant.ofEpochMilli(device.getDeviceDate()); in increaseDeviceTimeByDays() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 113 public synchronized boolean connect(BluetoothDevice device) { in connect() argument 116 if (device == null) { in connect() 119 Log.d(TAG, "connect(device= " + device + "): devices=" + mMapInstanceMap.keySet()); in connect() 120 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect() 124 + device.getAddress() in connect() 128 MceStateMachine mapStateMachine = mMapInstanceMap.get(device); in connect() 132 addDeviceToMapAndConnect(device); in connect() 139 addDeviceToMapAndConnect(device); in connect() 146 + device); in connect() 153 int state = getConnectionState(device); in connect() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicesService.java | 69 for (BluetoothDevice device : getDevices()) { in addListener() 70 if (device.isConnected()) { in addListener() 71 listener.onDeviceUpdated(device); in addListener() 83 public void connectDevice(BluetoothDevice device) { in connectDevice() argument 84 BluetoothDevicesService.this.connectDevice(device); in connectDevice() 88 public void disconnectDevice(BluetoothDevice device) { in disconnectDevice() argument 89 BluetoothDevicesService.this.disconnectDevice(device); in disconnectDevice() 93 public void forgetDevice(BluetoothDevice device) { in forgetDevice() argument 94 BluetoothDevicesService.this.forgetDevice(device); in forgetDevice() 98 public void renameDevice(BluetoothDevice device, String newName) { in renameDevice() argument [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 126 private void switchVolumeDevice(@NonNull BluetoothDevice device) { in switchVolumeDevice() argument 128 d("switchVolumeDevice: Set Absolute volume support to " + mDeviceMap.get(device)); in switchVolumeDevice() 133 device.getAddress()); in switchVolumeDevice() 135 mDeviceMap.get(device) in switchVolumeDevice() 151 int savedVolume = getVolume(device, sNewDeviceVolume); in switchVolumeDevice() 156 if (mDeviceMap.get(device)) { in switchVolumeDevice() 160 mNativeInterface.sendVolumeChanged(device, avrcpVolume); in switchVolumeDevice() 204 synchronized void storeVolumeForDevice(@NonNull BluetoothDevice device, int storeVolume) { in storeVolumeForDevice() argument 205 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in storeVolumeForDevice() 212 + device in storeVolumeForDevice() [all …]
|
/packages/modules/adb/ |
D | benchmark_device.py | 32 def lock_min(device): argument 33 device.shell_nocheck([""" 40 def lock_max(device): argument 41 device.shell_nocheck([""" 48 def unlock(device): argument 49 device.shell_nocheck([""" 67 def benchmark_sink(device=None, size_mb=100): argument 68 if device == None: 69 device = adb.get_device() 72 cmd = device.adb_cmd + ["raw", "sink:%d" % (size_mb * 1024 * 1024)] [all …]
|