Merge "Use com.android.bluetooth as the BT stack APK" into tm-dev am: d6166e42a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/18981799 Change-Id: Ic6317a7cc2f0355a2c94ffddd200b7d489d54d60 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
930ccdecef
@@ -126,7 +126,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
|
|||||||
// "Clear All Notifications" button
|
// "Clear All Notifications" button
|
||||||
|
|
||||||
Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY);
|
Intent deleteIntent = new Intent(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY);
|
||||||
deleteIntent.setPackage("com.android.bluetooth.services");
|
deleteIntent.setPackage("com.android.bluetooth");
|
||||||
deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
|
deleteIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
|
||||||
deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
|
deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
|
||||||
BluetoothDevice.CONNECTION_ACCESS_NO);
|
BluetoothDevice.CONNECTION_ACCESS_NO);
|
||||||
|
@@ -47,10 +47,10 @@ public class BluetoothMaxConnectedAudioDevicesPreferenceController extends
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
Resources res = context.getPackageManager().getResourcesForApplication(
|
Resources res = context.getPackageManager().getResourcesForApplication(
|
||||||
"com.android.bluetooth.services");
|
"com.android.bluetooth");
|
||||||
mDefaultMaxConnectedAudioDevices = res.getInteger(res.getIdentifier(
|
mDefaultMaxConnectedAudioDevices = res.getInteger(res.getIdentifier(
|
||||||
"config_bluetooth_max_connected_audio_devices",
|
"config_bluetooth_max_connected_audio_devices",
|
||||||
"integer", "com.android.bluetooth.services"));
|
"integer", "com.android.bluetooth"));
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@@ -70,8 +70,8 @@ public class BluetoothMaxConnectedAudioDevicesPreferenceControllerTest {
|
|||||||
mPreference.setEntryValues(R.array.bluetooth_max_connected_audio_devices_values);
|
mPreference.setEntryValues(R.array.bluetooth_max_connected_audio_devices_values);
|
||||||
// Retrieve default max connected audio devices to a test controlled value
|
// Retrieve default max connected audio devices to a test controlled value
|
||||||
try {
|
try {
|
||||||
Resources res = mSpyContext.getPackageManager().getResourcesForApplication("com.android.bluetooth.services");
|
Resources res = mSpyContext.getPackageManager().getResourcesForApplication("com.android.bluetooth");
|
||||||
TEST_MAX_CONNECTED_AUDIO_DEVICES = res.getInteger(res.getIdentifier("config_bluetooth_max_connected_audio_devices", "integer", "com.android.bluetooth.services"));
|
TEST_MAX_CONNECTED_AUDIO_DEVICES = res.getInteger(res.getIdentifier("config_bluetooth_max_connected_audio_devices", "integer", "com.android.bluetooth"));
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user